From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 102015 invoked by alias); 4 Nov 2015 14:56:36 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 101997 invoked by uid 89); 4 Nov 2015 14:56:35 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: ausxipps310.us.dell.com Received: from AUSXIPPS310.us.dell.com (HELO ausxipps310.us.dell.com) (143.166.148.211) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (CAMELLIA256-SHA encrypted) ESMTPS; Wed, 04 Nov 2015 14:56:29 +0000 X-LoopCount0: from 10.175.216.249 From: To: Subject: sysroot and softlinks Date: Wed, 04 Nov 2015 14:56:00 -0000 Message-ID: <736EC98D-ED8D-4179-B82A-984C249E1D8E@dell.com> Content-Type: text/plain; charset="us-ascii" Content-ID: <32A76A5CEF104743A016D1A9D05521E2@dell.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-IsSubscribed: yes X-SW-Source: 2015-11/txt/msg00001.txt.bz2 I have a cross-build setup where the target file system image is built into= some directory tree, which means that the base of that tree is the value t= o be used in "set sysroot".=20=20 For the most part that works. But I have a reference to a file (shared lib= rary or the like) which is actually a softlink, and the link target is an a= bsolute path. That absolute path is valid in the target system, but not in= the sysroot subtree. Changing that softlink to a relative link would cure the problem, of course= , but I don't really want to mess with the system build; for one thing, tha= t wouldn't help with previously built images. The other solution would be for solid_find to test for this case: check if = the name is a softlink and if so, whether its target is absolute. If yes, = prefix sysroot onto the target and repeat. Does that change make sense? paul