Opened 23 years ago

Closed 23 years ago

Last modified 23 years ago

#244 closed defect (fixed)

gzexe: /usr/bin/gzip -> /bin/gzip + fix gzexe's sleep expectancy

Reported by: emh@… Owned by: gerard@…
Priority: highest Milestone:
Component: Book Version: 3.1
Severity: normal Keywords:
Cc: gerard@…

Description

/usr/bin/gzexe refers to /usr/bin/gzip, which is moved to /bin/gzip by the install script.

fix: sed 's/"BINDIR"/\/bin/' gzexe.in > gzexe.fixed mv gzexe.fixed gzexe.in

Eivind Magnus Hvidevold

Change History (17)

comment:1 by gerard@…, 23 years ago

Priority: normalhigh

comment:2 by gerard@…, 23 years ago

Summary: gzexe: /usr/bin/gzip -> /bin/gzipgzexe: /usr/bin/gzip -> /bin/gzip + fix gzexe's sleep expectancy

it expects sleep to be in /usr/bin but it's in /bin

check gzexe for more locations and make sure they exist.

comment:3 by gerard@…, 23 years ago

instead of sed'ing to change the path of gzip in the gzexe script how about just ./configure --bindir=/bin and be done with it. It's not a biggie if gzexe is in /bin

comment:4 by gerard@…, 23 years ago

Resolution: duplicate
Status: newclosed

* This bug has been marked as a duplicate of 251 *

comment:5 by gerard@…, 23 years ago

Resolution: duplicate
Status: closedreopened

comment:6 by gerard@…, 23 years ago

Owner: changed from lfs-book@… to gerard@…
Status: reopenedassigned

comment:7 by gerard@…, 23 years ago

Resolution: duplicate
Status: assignedclosed

* This bug has been marked as a duplicate of 251 *

comment:8 by markh@…, 23 years ago

confirmed that fixing bug 251 will fix this bug. closing bug as duplicate

comment:9 by markh@…, 23 years ago

Resolution: duplicate
Status: closedreopened

gzexe hardcodes:

/bin/sleep

/usr/bin/gzip

The /bin/sleep thing will be dealt with by Bug 251 which will move sleep to this location anyways. We need to fix the gzip path though as we move gzip to /bin/gzip

comment:10 by markh@…, 23 years ago

Cc: gerard@… added

* Bug 272 has been marked as a duplicate of this bug. *

comment:11 by markh@…, 23 years ago

Priority: highhighest

comment:12 by markh@…, 23 years ago

ok. here's a bit more info on this bug. Here is a list of which programs gzexe refers to and how it calls them listed by package.

Fileutils: ========== cp: cp chmod: chmod in some places; /bin/chmod in others... ln: /bin/ln ls: ls rm: rm in some places; /bin/rm in others...

Grep: ===== grep: grep

Gzip: ===== gzip: /usr/bin/gzip

Sed: ==== sed: sed in some places: /bin/sed in others...

Sh-utils: ========= basename: basename sleep: /bin/sleep

Textutils: ========== tail: gzexe checks all directories in the path for this then stores the

absolute location in a variable (!?! why not just refer to tail?)

comment:13 by gerard@…, 23 years ago

Status: reopenedassigned

comment:14 by gerard@…, 23 years ago

The suggested --bindir won't work with gzip because it's configure script isn't one of those autoconf generated ones. So we'll go with the sed:

cp gzexe.in gzexe.in.backup sed 's%"BINDIR"%/bin%' gzexe.in.backup > gzexe.in

comment:15 by gerard@…, 23 years ago

Resolution: fixed
Status: assignedclosed

comment:16 by markh@…, 23 years ago

Keywords: VERIFIED added

confirmed that the sed works as expected

comment:17 by markh@…, 23 years ago

Keywords: VERIFIED removed
Note: See TracTickets for help on using tickets.