Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 185378 - sys-apps/util-linux creates two broken symlinks
Summary: sys-apps/util-linux creates two broken symlinks
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-15 05:54 UTC by ta2002
Modified: 2007-07-15 10:30 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ta2002 2007-07-15 05:54:03 UTC
/usr/portage/sys-apps/util-linux/util-linux-2.12r-r7.ebuild

src_install() {
        make install DESTDIR="${D}" || die "install failed"
        dosym ../man8/agetty.8 /usr/share/man/man1/getty.1
        dosbin partx/{addpart,delpart,partx} || die "dosbin"
        use perl || rm -f "${D}"/usr/bin/chkdupexe
        # required by autotools
        dosym /bin/arch /usr/bin/arch

        if use crypt || use old-crypt ; then
                newinitd "${FILESDIR}"/crypto-loop.initd crypto-loop
                newconfd "${FILESDIR}"/crypto-loop.confd crypto-loop
        fi

        # man-pages installs renice(1p) but util-linux does renice(8)
        dosym ../man8/renice.8 /usr/share/man/man1/renice.1

Two lines should read:
        dosym ../man8/agetty.8.bz2 /usr/share/man/man1/getty.1
        dosym ../man8/renice.8.bz2 /usr/share/man/man1/renice.1
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-07-15 08:07:36 UTC
(In reply to comment #0)
> Two lines should read:
>         dosym ../man8/agetty.8.bz2 /usr/share/man/man1/getty.1
>         dosym ../man8/renice.8.bz2 /usr/share/man/man1/renice.1

Not really... The relative symlinks are just fine and portage takes care of the compression.

# readlink /usr/share/man/man1/renice.1.bz2
../man8/renice.8.bz2
# readlink /usr/share/man/man1/getty.1.bz2
../man8/agetty.8.bz2

Comment 2 ta2002 2007-07-15 10:29:03 UTC
(In reply to comment #1)
> Not really... The relative symlinks are just fine and portage takes care of the
> compression.
> 
> # readlink /usr/share/man/man1/renice.1.bz2
> ../man8/renice.8.bz2
> # readlink /usr/share/man/man1/getty.1.bz2
> ../man8/agetty.8.bz2

Portage compresses the actual file, but the link points to an uncompressed file (that doesn't exist).

# ls -al man1/renice.1
lrwxrwxrwx 1 root root 16 2007-05-14 10:11:35 man1/renice.1 -> ../man8/renice.8 (flashing red)

# ls -al man8/renice.8.bz2
-rw-r--r-- 1 root root 2038 2007-05-14 10:11:32 man8/renice.8.bz2

# readlink man1/renice.1
../man8/renice.8 (doesn't exist)

# man 1 renice
No entry for renice in section 1 of the manual
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-07-15 10:30:43 UTC
(In reply to comment #2)
> Portage compresses the actual file, but the link points to an uncompressed file
> (that doesn't exist).

Upgrade your portage, works just fine here.