[M3devel] install issues (stripping, permissions)
John Marino
adacore at marino.st
Fri Jun 5 11:14:50 CEST 2015
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
More information about the M3devel
mailing list