From mboxrd@z Thu Jan 1 00:00:00 1970 From: Baruch Siach Date: Mon, 17 Nov 2014 15:38:53 +0200 Subject: [Buildroot] [PATCH] wireshark: remove RPATH tag In-Reply-To: <5469EDFC.3050208@zacarias.com.ar> References: <0dae86e37516236d337e8433c63047504f1576f9.1415126141.git.baruch@tkos.co.il> <20141105081555.5aca83e2@free-electrons.com> <20141105072214.GL2358@sapphire.tkos.co.il> <20141105083124.57a5d559@free-electrons.com> <20141117123315.GG2196@tarshish> <5469EDFC.3050208@zacarias.com.ar> Message-ID: <20141117133853.GH2196@tarshish> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Hi Gustavo, On Mon, Nov 17, 2014 at 09:45:48AM -0300, Gustavo Zacarias wrote: > On 11/17/2014 09:33 AM, Baruch Siach wrote: > > It seems that libtool decides to set rpath based on .la files we have in > > staging. Some of them (e.g. glib provided libs, and libnl) set either > > 'dependency_libs' (glib) or 'libdir' (libnl) to paths under output/build > > or staging. wireshark also links its own libraries (e.g. wiretap, epan) > > using local source tree .la files. I'm not sure how to solve this in the > > general case. It probably requires fixing up all these .la files. > > There's a good briefing at https://wiki.debian.org/RpathIssue > Fixing up is nice, however doing it in a good manner will require many > autoreconfs and being proactive about it. > Stripping RPATHs is probably a faster way out (via chrpath). > In the end this could be considered as a build information leak, not > terribly useful but doesn't look good either. chrpath can indeed nullify the ELF RPATH tag, but it leaves the ELF string table alone. This means that the build paths information leak is still there, though somewhat less noticeable. Until we find a better solution I think this patch can go in for -next. baruch -- http://baruch.siach.name/blog/ ~. .~ Tk Open Systems =}------------------------------------------------ooO--U--Ooo------------{= - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -