[M3devel] install issues (stripping, permissions)
Jay K
jay.krell at cornell.edu
Fri Jun 5 20:51:13 CEST 2015
This is kind of on purpose as Olaf said and kind of broken as you point out.
We often build_standalone() to workaround the origin/rpath matte.
We kind of fail here, in terms of library paths.
I don't think the original system fully accounted for runpath.
I think at the time, LD_LIBRARY_PATH might have been considered an acceptable solution.
Elsewhere, with libtool, make install relinks to reset paths. We don't have that implemented.
It is somewhat a good solution.
- Jay
> Date: Fri, 5 Jun 2015 11:14:50 +0200
> From: adacore at marino.st
> To: wagner at elegosoft.com
> CC: m3devel at elegosoft.com
> Subject: Re: [M3devel] install issues (stripping, permissions)
>
> On 6/5/2015 09:26, Olaf Wagner wrote:
> > On Fri, 05 Jun 2015 08:10:08 +0200
> > John Marino <adacore at marino.st> wrote:
> >
> >> The other issue is that there were numerous files in pkg/ that were
> >> executable and shouldn't have been. I used find/chmod to remove exec
> >> perms for all except "cm3" file. I did this 1.5 years ago, I'm now
> >> wondering how right it was. The current list:
> >>
> >> pkg/m3core/src/C/Common/Csetjmp.i3
> >> pkg/m3back/src/M3C.i3
> >> pkg/m3staloneback/AMD64_FREEBSD/m3back
> >> pkg/cm3/AMD64_FREEBSD/cm3
> >> pkg/libdump/AMD64_FREEBSD/libdump
> >> pkg/cmpfp/AMD64_FREEBSD/cmpfp
> >> pkg/formsview/AMD64_FREEBSD/formsview
> >> pkg/vorun/AMD64_FREEBSD/vorun
> >> pkg/pkl-fonts/AMD64_FREEBSD/PklFonts
> >> pkg/hack/AMD64_FREEBSD/dummy
> >> pkg/test/AMD64_FREEBSD/test
> >>
> >> Should there be executables in pkg/ ? Is the chmod command then wrong?
> >> I had to strips these as well to pass QA tests.
> >
> > Except for the i3-files these are all programs and should be executable.
>
> Okay, when I fixed this internally, I discovered something:
> m3back, libdump, cmpfp, formsview, vorun, dummy, test all link to m3
> libraries but the rpath of $ORIGIN:$ORIGIN/../lib isn't enough. All of
> these programs need an additional rpath to $ORIGIN/../../../lib for the
> linker to find the libs. These all need to be fixed in repository I
> suspect.
>
> John
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20150605/5e468a2d/attachment-0002.html>
More information about the M3devel
mailing list