Opened 15 years ago

Closed 15 years ago

#2396 closed task (fixed)

Bzip2 creates symlinks with absolute pathnames

Reported by: chris@… Owned by: bdubbs@…
Priority: normal Milestone: 6.5
Component: Book Version: SVN
Severity: normal Keywords:
Cc:

Description

Bzip2's Makefile contains a number of commands similar to:

ln -s -f $(PREFIX)/bin/bzgrep $(PREFIX)/bin/bzegrep

which creates several symlinks in $(PREFIX)/bin that point specifically to that path. This would cause issues if any of these were moved elsewhere, and certainly if a user tried something like installing to a fakeroot dir. In CLFS we fixed this with a command similar to this before installation:

sed -i 's@\(ln -s -f \)$(PREFIX)/bin/@\1@' Makefile

Change History (3)

comment:1 by Matthew Burgess, 15 years ago

Hi Chris,

Thanks for the report. I couldn't see that command at http://www.linuxfromscratch.org/clfs/view/svn/x86/final-system/bzip2.html. I was just after some words that explain the issue without using terms like fakeroot, which we haven't introduced to LFS yet.

In addition, has that fix been sent upstream?

Thanks,

Matt.

comment:2 by bdubbs@…, 15 years ago

Milestone: 6.5
Owner: changed from lfs-book@… to bdubbs@…
Status: newassigned

comment:3 by bdubbs@…, 15 years ago

Resolution: fixed
Status: assignedclosed

Fixed at commit revision 8879.

Note: See TracTickets for help on using tickets.