pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/57077: cwrappers can't handle -Wl,-rpath,/usr/X11R7/lib while normal wrappers can
>Number: 57077
>Category: pkg
>Synopsis: cwrappers can't handle -Wl,-rpath,/usr/X11R7/lib while normal wrappers can
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Oct 30 18:00:00 +0000 2022
>Originator: Niclas Rosenvik
>Release: NetBSD 9.2 pkgsrc-current cwrappers-20220403
>Organization:
>Environment:
NetBSD localhost 9.2 NetBSD 9.2 (CAN_KERNEL) #0: Mon Dec 13 17:36:42 CET 2021 niclas@localhost:/usr/src/sys/arch/amd64/compile/CAN_KERNEL amd64
>Description:
When testing to build x11/clisp-gtk2 it fails with:
ld: unrecognised option: -rpath,/usr/X11R7/lib
This is when X11_TYPE=native .
The command arguments to ld includes -Wl,-rpath,/usr/X11R7/lib
Building the same package with USE_CWRAPPERS=no in mk.conf succeeds.
cd:ing into work/.cwrapper/bin and executing:
env CWRAPPERS_CONFIG_DIR=../config ./ld -Wl,-rpath,/usr/X11R7/lib
gives:
ld: unrecognised option: -rpath,/usr/X11R7/lib
In .work.log:
[*] ld -Wl,-rpath,/usr/X11R7/lib
<.> ld -rpath,/usr/X11R7/lib -pie
When USE_CWRAPPERS=no this happens:
cd:ing into work/.wrapper/bin and executing:
./ld -Wl,-rpath,/usr/X11R7/lib
gives:
usr/bin/ld: no input files
In .work.log:
[*] ./ld ./ld -Wl,-rpath,/usr/X11R7/lib
<.> /usr/bin/ld -rpath /usr/X11R7/lib -L/home/nros/pkgsrc/x11/clisp-gtk2/work/.buildlink/lib
This looks more correct to me since it actually transforms the argument into something that ld understands.
>How-To-Repeat:
>Fix:
Home |
Main Index |
Thread Index |
Old Index