DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 479DfjCk1167943 Authentication-Results: delorie.com; dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=sqJYnTjh X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 38BFE385DC1B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1723210904; bh=LqsBHed8UKMEF6SrkM6JrhF2z8GoXtWp7sJLe6GXJ3k=; h=To:Subject:Date:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=sqJYnTjhifhAQ6LjOwJhjdG68Qo6e3OGoMfITqZnUYq7OYacrr36xQhFAJvdpxpk8 T1gGA8YRW1Yqz1GKA8vSVnEhDypm+kO86IXpIkZYYU1S+7Qizz+gVnhOdn9X78eyPx iOYd4oLaO0/GhRBWDNGYJCHDHHHo9NZCDy/Avgnk= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 0B158385C6C1 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 0B158385C6C1 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1723210878; cv=fail; b=RGmcLVIC0bSML+8JhYUYTWIvuzYv4uw/kJNi5G/iIYM7gFzckHIpAiQYa+WLrCaFCSTPhIt4y3WghvFtPbHsK3oe4tswkaj+XNJKsHjIHKOz8x2SFZjOWN01D+4z7WRrY8zdlrbx1zCD3qHggxxtjwyzQnEdWtZsXAjHSOj1zg4= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1723210878; c=relaxed/simple; bh=DJBVOZHLV6NwibiENwZalOp+6oDXfvhGmhilVJoK4Bc=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=M9pN6tCubbFpjMjMNg8BJhBAGePy5kR20wyKrMxTa+gGVNx5J7eH1zZVUPG8SxS5i38sHfW83fb3ZnI8HdpgsuXpAJcigBu6Uon5eBLyIWddGaCcmCXcIGo3oZ7GkHQPIxoMoMi974gcTAfyy0ZqCYOuWy/rK5kHX/zBro2Bess= ARC-Authentication-Results: i=2; server2.sourceware.org ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=qoJ1l34nVqkFoyVUU2YXHcD67bC3MZ1PWCYdVGSwYjVUarNSlpS9D2/nb0we54F7aOJTuqq1ynVfmxgYK81HuDoKjY2adjjFEiEhCtLbUZm9aQdvSFWvoi/R39NaFdM0mb5HYGlvzzIDiIxw3gh3gOjIjHLaZTuVzkl+K4ry9usti0hMV2BOAYFw86REzoyxxnAcVnxJNTzK/AP7ONyPqZIShi2stxf8drHzWvNb8ZIWXxrQnelOAM0nThpsHYmgL8DDs8bL4MUeeJc794TVI1c2L6fqF3Y9keaF4PsTKCNNFNWU+EJRJ5TidueA05QhCgAWn3dEMGacLClQmq6Emg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=mrNnZMbb4fV198vORZnezxWLt0do8CtHawdJqLxVN7o=; b=eDi0eRPAEGaM0TBCUq6MHVREEnOBMhiguEYQ76U1dWN7RZY2fc+PBZ4NjvTwYvQ7LbVQ8vbuQeOtIHg0o4HNoO0BZaJwAsxlePs27V3zUCeFtv0jy2jvW22s+tcMbAohdjA4fKCNzJ0RZZkRcAUb7GhxFaZLFllVFZgWJDE2DkRb3KNBaP7N2OPCl0tMV09ZRNWYg713w70Qi+skrYI/GNVoFWhNq2AOHfrITjYKygdTYhzJJC0LO545FXVUrvA7KOblUGdzB41mI2qYu5HS3Wj+PCfW2jZJFSed3kihLYH2TLhR0Wz/vOVQ97Ta74+ZJHf/Sa1MJZbMBiiw7ZV6jg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=att.com; dmarc=pass action=none header.from=att.com; dkim=pass header.d=att.com; arc=none To: "cygwin AT cygwin DOT com" , David Karr Subject: RE: How to repair the symlinks in a copied cygwin64 tree Thread-Topic: How to repair the symlinks in a copied cygwin64 tree Thread-Index: AQHa6QhPZKYYBgD+k0iG9lhrZvF4mbIetYyAgAA68+A= Date: Fri, 9 Aug 2024 13:38:01 +0000 Message-ID: References: <798132057 DOT 20240809130631 AT yandex DOT ru> In-Reply-To: <798132057.20240809130631@yandex.ru> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: DM3PR02MB10256:EE_|BN0PR02MB8077:EE_ x-ms-office365-filtering-correlation-id: 15bf5712-4676-4a30-3ee6-08dcb8787d09 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|366016|376014|4022899009|1800799024|38070700018; x-microsoft-antispam-message-info: =?us-ascii?Q?XkXqbfibm0+kPedtVEXdGKPpqvElkpXiMzc6U93mI8krXbbzNLRQaxyiqJ4I?= =?us-ascii?Q?ft2vl1ApqlTIgp3uqxvgCgPcEUK5BPaxyaSdRsBUaxGfx6ZAVg/iC+8nlXqf?= =?us-ascii?Q?V6e2qRQYbpN3JD2HV3JyP6AhoQeb7Dsp2qkwWS3dIohZ2ebqAaVQyuIAMobR?= =?us-ascii?Q?1cIFTevS7fH7J9mDoiyZbgv3FhB8lOHy3TASm63dIVNayCWjJsbygyfkyAuJ?= =?us-ascii?Q?Bnkp1OrTAZBmjbWmE8nrw33n2F+F8OMQz9WA1KngHZztw2QqVB1BcJWuBxjv?= =?us-ascii?Q?2e47ql/qK+izXyLpQjVG1wlgJ4NV0q4MkBE0CB/cp5K9623fZqi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ube9eYSqoWcw/eRer/avp6IxLrC?= =?us-ascii?Q?chKTNVXyWRvRziDu8wX5yEEStiQ8nQhX+XnmmdPvYx3uIilho4QgPioWVMSY?= =?us-ascii?Q?/NJ08oawQ8gblWNiRTuevD2Ad73xEvHuXFKGXwWvdMzyOrjgKuUHRFogGkHy?= =?us-ascii?Q?j6dyu3E=3D?= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM3PR02MB10256.namprd02.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(366016)(376014)(4022899009)(1800799024)(38070700018); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?AD99x8yXJ+rsSo/J1Qmnet4rqH2i60XBXohoz3rHyd44GFx7kCN86vc+gKDQ?= =?us-ascii?Q?QBTBQGh8CBmk5KjUvru31BxN+OgHTHYATgivEgKnVHUtbfJL9ErJJtONT+Ei?= =?us-ascii?Q?PLC9nveDz28Sk3U2KPVSrztIzLdKHHJmvvYlWorJvnLDkqhT1aDjCDCi13u9?= =?us-ascii?Q?JCeJaSAhkZRGEdZvNBc4hJ0lvg7GT/yIRbeYZuLY1f6lURHU5vjx0wN2binS?= =?us-ascii?Q?ctCaWDDRV2uY6rVz1yMT6XsD19e4vy2aMrkDOTce6BMWvwb3dNPF++dvl4PI?= =?us-ascii?Q?K0rl9n5R6iIoD/Y/UtCm0V2XFnimDC3pv8NVmz8Yr9xAzKx83xhzFZWYhF4A?= =?us-ascii?Q?uur9qDkBLXAvL9zP19d596syisnuuh3ljmsqssGqcXqMlf75ipvmFqbhcGyB?= =?us-ascii?Q?+eI0NabIPIkRLrK+3QE1RJtkiwADcYmNGiVyBLCWbp/MCpnhaF/48DhI4KGn?= =?us-ascii?Q?GzJgAGLXOvqwy/wlD/BrjZ7OFexbz8XWpsv/ZSVnwaQXphG6XLEqOCWqztF9?= =?us-ascii?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ncoq/f3uc?= =?us-ascii?Q?CGlY5zwtImBHqjapjPy6tfPhLVp4NugFOVE4AuaFkBeoU5pzis8heW3UJnNB?= =?us-ascii?Q?tNvbZi0ZSNsszNthz7wRLAg+44wb8g1FOGjCkqWI5h2l/q+nRd00Q9pCA+1x?= =?us-ascii?Q?tK4SWbWO3Ke3Pow0+wQ=3D?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM3PR02MB10256.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 15bf5712-4676-4a30-3ee6-08dcb8787d09 X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Aug 2024 13:38:01.2756 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: e741d71c-c6b6-47b0-803c-0f3b32b07556 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: pRYIV3LXGdQ/DUOiDBuAoPuQA4fcknOma36ibl7ZkT1HcvL4/rFRkqsokXIz4P8o X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN0PR02MB8077 X-TM-SNTS-SMTP: 471B48DEA26BDC29099D1D955C7CA0BAFBDC9F8BA1450A2CCB3EF7C1AAE43F542 X-Proofpoint-ORIG-GUID: xRxIUlZA7c3V5RAUeLf1NpaWiSPWQixm X-Proofpoint-GUID: xRxIUlZA7c3V5RAUeLf1NpaWiSPWQixm X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-08-09_10,2024-08-07_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_policy_notspam policy=outbound_policy score=0 suspectscore=0 impostorscore=0 bulkscore=0 priorityscore=1501 mlxscore=0 spamscore=0 lowpriorityscore=0 adultscore=0 malwarescore=0 mlxlogscore=999 phishscore=0 clxscore=1011 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2407110000 definitions=main-2408090099 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, HTML_FONT_LOW_CONTRAST, HTML_MESSAGE, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-Content-Filtered-By: Mailman/MimeDel 2.1.30 X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 List-Id: General Cygwin discussions and problem reports List-Archive: List-Post: List-Help: List-Subscribe: , From: "KARR, DAVID via Cygwin" Reply-To: "KARR, DAVID" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Cygwin" Thanks. I gave up on the backed-up tree a while ago and reinstalled Cygwin, but I'll keep this information in mind if I ever run into this again. From: Cygwin On Behalf Of Andrey Repin via Cygwin Sent: Friday, August 9, 2024 3:07 AM To: David Karr ; cygwin AT cygwin DOT com Cc: Andrey Repin Subject: Re: How to repair the symlinks in a copied cygwin64 tree Greetings, David Karr! > At my work, I had to have my laptop reimagined for various reasons. I had > them save my cygwin64 tree to external storage first. I now have the laptop > back, and I copied the entire tree back in, but now I Greetings, David Karr! > At my work, I had to have my laptop reimagined for various reasons. I had > them save my cygwin64 tree to external storage first. I now have the laptop > back, and I copied the entire tree back in, but now I realize I should have > done this differently, and I'm wondering how best to repair this. Some of > you can probably guess, but now all of the files that were symlinks in > Cygwin are now very small data files. I can tell they used to be symlinks > because when I cat one, it shows "!" in the first characters. These symlinks usually point to Cygwin directory tree and should be fine. Just chmod +S them. > What is the best strategy for repairing this? The most simple-minded > approach that I can see is simply renaming the cygwin64 tree to get it out > of the way, and then just reinstalling Cygwin, and then copying in all the > files in my cygwin home directory in the saved tree. I will likely guess > wrong on what packages I had installed before. Is there some way I can > simply repair the symylink files directly? Easiest I've encountered is to 0. Have a backup of your existing installation, for reference. 1. Install Cygwin anew. 2. Pull /etc/setup/installed.db from backup into a temporary directory. 3. Get a list of manually installed packages from backup # sed -Ee '/ 1$/s/^([^[:space:]]+) [^[:space:]]+?(\.tar[^[:space:]]+ 1)$/\1 \1-0\2/; t; d;' < $backup/installed.db Warning note: There will be failures, not all package versions adhere to the same pattern. 4. Append the list to the end of current /etc/setup/installed.db 5. Run setup to pull the package "updates". > Besides the symlink problem, is there anything else that I might have > broken by doing it this way? None that I know. > I'm guessing the correct way to have done this would have been instead > storing the "tar czpf" output in external storage. I think that would have > preserved the symlinks and restored them properly with "tar xzf". It would have a chance of destroying permissions, I prefer reinstall, with backup of /etc/ and /usr/local directories (that's where I keep custom stuff). Since I don't use Cygwin's /home, it's easy for me. -- With best regards, Andrey Repin Friday, August 9, 2024 12:54:41 Sorry for my terrible english... -- Problem reports: https://urldefense.com/v3/__https://cygwin.com/problems.html__;!!BhdT!l3czdFqFecACnqETjVB_eY1UOMJ68HWpEmeoxXgc7mmyw-6v3UKg3kJVgyw8LPyf5ojJm6KYz_lgLg$ FAQ: https://urldefense.com/v3/__https://cygwin.com/faq/__;!!BhdT!l3czdFqFecACnqETjVB_eY1UOMJ68HWpEmeoxXgc7mmyw-6v3UKg3kJVgyw8LPyf5ojJm6KwJ5XCyA$ Documentation: https://urldefense.com/v3/__https://cygwin.com/docs.html__;!!BhdT!l3czdFqFecACnqETjVB_eY1UOMJ68HWpEmeoxXgc7mmyw-6v3UKg3kJVgyw8LPyf5ojJm6KverV-Yg$ Unsubscribe info: https://urldefense.com/v3/__https://cygwin.com/ml/*unsubscribe-simple__;Iw!!BhdT!l3czdFqFecACnqETjVB_eY1UOMJ68HWpEmeoxXgc7mmyw-6v3UKg3kJVgyw8LPyf5ojJm6KEsFjOFQ$ -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple