CRUX

Welcome to CRUX bug tracking.
Tasklist

FS#1210 - When built as root, ncurses installs files outside of $PKG

Attached to Project: CRUX
Opened by Fredrik Rinnestam (frinnst) - Sunday, 09 August 2015, 18:13 GMT
Last edited by Juergen Daubert (jue) - Wednesday, 07 October 2015, 10:44 GMT
Task Type Bug Report
Category ports
Status Closed
Assigned To Juergen Daubert (jue)
Operating System CRUX
Severity Low
Priority Normal
Reported Version 3.2
Due in Version 3.2
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Seems like ncurses currently installs libncursesw.so.5, libncursesw.so.5 to /usr/lib/ outside of $PKG when built as root. --with-install-prefix=$PKG is not completely respected.
This task depends upon

Closed by  Juergen Daubert (jue)
Wednesday, 07 October 2015, 10:44 GMT
Reason for closing:  Fixed
Comment by Fredrik Rinnestam (frinnst) - Sunday, 09 August 2015, 19:00 GMT
As you can see below from the timestamps. Something is not right.

root@leela:~# ls -lh /usr/lib/libncurses*
-rw-r--r-- 1 root root 648K Aug 7 00:20 /usr/lib/libncurses.a
-rw-r--r-- 1 root root 178K Aug 7 00:20 /usr/lib/libncurses++.a
lrwxrwxrwx 1 root root 27 Aug 7 00:20 /usr/lib/libncurses.so -> ../../lib/libncurses.so.5.9
lrwxrwxrwx 1 root root 12 Jul 22 2012 /usr/lib/libncurses.so.5 -> libcurses.so
-rw-r--r-- 1 root root 178K Aug 7 00:20 /usr/lib/libncurses++w.a
-rw-r--r-- 1 root root 745K Aug 7 00:20 /usr/lib/libncursesw.a
lrwxrwxrwx 1 root root 28 Aug 7 00:20 /usr/lib/libncursesw.so -> ../../lib/libncursesw.so.5.9
lrwxrwxrwx 1 root root 13 Jul 22 2012 /usr/lib/libncursesw.so.5 -> libcursesw.so


Comment by Fredrik Rinnestam (frinnst) - Sunday, 09 August 2015, 20:35 GMT
22:25 <frinnst> hm. might be a pkgmk bug
22:25 -!- Irssi: Pasting 5 lines to #crux-devel. Press Ctrl-K if you wish to do this or Ctrl-C to cancel.
22:25 <frinnst> for i in w ''; do
22:25 <frinnst> mv $PKG/usr/lib/libncurses$i.so.* $PKG/lib
22:25 <frinnst> ln -sf libncurses$i.so $PKG/usr/lib/libcurses$i.so
22:25 <frinnst> ln -sf ../../lib/libncurses$i.so.$version $PKG/usr/lib/libncurses$i.so
22:25 <frinnst> done
22:26 <frinnst> ln -sf libncurses$i.so $PKG/usr/lib/libcurses$i.so <-
22:27 <frinnst> no, nevermind
22:27 <frinnst> that doesnt make sense
22:32 <frinnst> if I comment out that line: ln -sf libncurses$i.so $PKG/usr/lib/libcurses$i.so
22:32 <frinnst> i get this:
22:32 <frinnst> =======> ERROR: Footprint mismatch found:
22:32 <frinnst> MISSING lrwxrwxrwx root/root usr/lib/libcurses.so -> libncurses.so
22:32 <frinnst> MISSING lrwxrwxrwx root/root usr/lib/libcursesw.so -> libncursesw.so
22:32 <frinnst> NEW lrwxrwxrwx root/root usr/lib/libcurses.so -> libncurses.so.6.0
22:33 <frinnst> and /usr/lib/libncurses.so.6 /usr/lib/libncursesw.so.6 are no longer installed when building as root
Comment by Fredrik Rinnestam (frinnst) - Sunday, 09 August 2015, 20:43 GMT
Something similar happens with ppp too.

made sure /usr/lib/pppd didnt exist, then did this:

fredrik@nibbler:/usr/ports/opt/ppp$ sudo pkgmk -f
....
=======> Building '/usr/ports/pkg/ppp#2.4.7-2.pkg.tar.gz' succeeded.
fredrik@nibbler:/usr/ports/opt/ppp$ sudo rm -r /usr/lib/pppd/2.4.7/
openl2tp.so pppol2tp.so

ppp seems to just have a broken Makefile:

make[2]: Entering directory '/usr/ports/work/ppp-2.4.7-2-work/src/ppp-2.4.7/pppd/plugins/pppol2tp'
install -d -m 755 /usr/lib/pppd/2.4.7
install -c -m 755 pppol2tp.so openl2tp.so /usr/lib/pppd/2.4.7
install: cannot remove '/usr/lib/pppd/2.4.7/pppol2tp.so': Permission denied
install: cannot remove '/usr/lib/pppd/2.4.7/openl2tp.so': Permission denied
Comment by Juergen Daubert (jue) - Monday, 10 August 2015, 14:51 GMT
the new symlinks you are seeing are created by ldconfig IMO. Sorry I cannot test/debug this further currently, but if my assumption is correct the right fix is to created the symlinks within the port.
Comment by Fredrik Rinnestam (frinnst) - Wednesday, 07 October 2015, 10:13 GMT
Should be ok to close, right?

Loading...