Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 25889 - xv installs to ${D}/${D}
Summary: xv installs to ${D}/${D}
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-04 11:06 UTC by James Cloos
Modified: 2003-09-11 19:45 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 James Cloos 2003-08-04 11:06:49 UTC
An example CONTENTS file is:

:; cat /var/db/pkg/media-gfx/xv-3.10a-r4/CONTENTS 
dir /home
dir /home/portage
dir /home/portage/portage
dir /home/portage/portage/xv-3.10a-r4
dir /home/portage/portage/xv-3.10a-r4/image
dir /home/portage/portage/xv-3.10a-r4/image/usr
dir /home/portage/portage/xv-3.10a-r4/image/usr/lib
dir /home/portage/portage/xv-3.10a-r4/image/usr/bin
obj /home/portage/portage/xv-3.10a-r4/image/usr/bin/bggen
d45e4c4dffe74db890ec5155c54f26f0 1059767847
obj /home/portage/portage/xv-3.10a-r4/image/usr/bin/xvpictoppm
03d6c30a4e22e8c4a1b82f5ccb1e894c 1059767847
obj /home/portage/portage/xv-3.10a-r4/image/usr/bin/xcmap
cc96d52da1872d51682d0183c8f3b325 1059767847
obj /home/portage/portage/xv-3.10a-r4/image/usr/bin/xv
c0e0c6d5334c955832728561b651f6df 1059767847
obj /home/portage/portage/xv-3.10a-r4/image/usr/bin/vdcomp
5f023aa4812c8ecfe9925641789c9ab0 1059767847
dir /home/portage/portage/xv-3.10a-r4/image/usr/share
dir /home/portage/portage/xv-3.10a-r4/image/usr/share/man
dir /home/portage/portage/xv-3.10a-r4/image/usr/share/man/man1
obj /home/portage/portage/xv-3.10a-r4/image/usr/share/man/man1/xvpictoppm.1
3fd18504d61c3dbff7a263c7dcf77628 1059767847
obj /home/portage/portage/xv-3.10a-r4/image/usr/share/man/man1/bggen.1
84d0a7c1122a8b22df2d55edbc594101 1059767847
obj /home/portage/portage/xv-3.10a-r4/image/usr/share/man/man1/xcmap.1
7f694bda0d861015b2925f55b5a1dffd 1059767847
obj /home/portage/portage/xv-3.10a-r4/image/usr/share/man/man1/vdcomp.1
f7b7f50c5eb6420bf324b930fe3c7811 1059767847
obj /home/portage/portage/xv-3.10a-r4/image/usr/share/man/man1/xv.1
e86b981f9a46f6282eed1a85c37616e6 1059767847
dir /usr
dir /usr/bin
dir /usr/share
dir /usr/share/man
dir /usr/share/man/man1
dir /usr/share/doc
dir /usr/share/doc/xv-3.10a
obj /usr/share/doc/xv-3.10a/xvdocs.ps 1837326dd35f009ceeadb9669a0ccf6c 1059767847
dir /usr/share/doc/xv-3.10a-r4
obj /usr/share/doc/xv-3.10a-r4/README.gz 5582596a81c0ca6c73e2004012e3ddf2 1059767847
obj /usr/share/doc/xv-3.10a-r4/bmp.doc.gz 3bd7df15d9a3bbc13f830337ae21fc2a
1059767847
obj /usr/share/doc/xv-3.10a-r4/epsf.ps.gz cc0af6fe7f9f1ace6fec7608770074c4
1059767847
obj /usr/share/doc/xv-3.10a-r4/xvtitle.ps.gz f54c9ab52fd90548265197856e0f3cae
1059767847
obj /usr/share/doc/xv-3.10a-r4/CHANGELOG.gz 3152df4805d36ad216f75aef7f7dcf0d
1059767847
obj /usr/share/doc/xv-3.10a-r4/INSTALL.gz 0760f4533cd9cc9de7864dd8616d1367
1059767847
obj /usr/share/doc/xv-3.10a-r4/BUGS.gz 354ba0fb6054ffdf012cf6744609e781 1059767847
obj /usr/share/doc/xv-3.10a-r4/IDEAS.gz d2eb6a8de4e0c250825622981e98c85e 1059767847
obj /usr/share/doc/xv-3.10a-r4/xvdocs.ps.gz 657dcbdebfedbfcee58df9c35519e08c
1059767847
obj /usr/share/doc/xv-3.10a-r4/gif89.doc.gz 7512250f2c61828d2311bad16514bd63
1059767847
obj /usr/share/doc/xv-3.10a-r4/xpm.ps.gz f619860c13a652c510001a9de7d2be9f 1059767847
obj /usr/share/doc/xv-3.10a-r4/gif87.doc.gz c47a4aae31ab1c17f270b4f23668dfee
1059767847

this has only started recently.  I have 8 CONTENTS files so affected.

NB that in each case every file listed in ${PORTAGE_TMPDIR}/portage/${P}/image/
is not installed in /, and is of course lost when image is deleted during the
emerge.

When this happened to perl, I was forced to manually untar the package of the
last working emerge to get the box back to a working condition.


:; emerge info
Portage 2.0.48-r7 (default-x86-1.4, gcc-3.3, glibc-2.3.2-r3)
=================================================================
System uname: 2.6.0-test2 i686 Intel(R) Pentium(R) III Mobile CPU      1000MHz
GENTOO_MIRRORS="http://gentoo.oregonstate.edu/"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config /var/bind /usr/X11R6/lib/X11/xkb
/usr/kde/3.1/share/config /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/home/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/home/portage"
PORTDIR_OVERLAY="/usr/local/portage"
USE="x86 3dnow apm foomaticdb mad gtkhtml arts ggi esd ldap aalib acl acpi alsa
apache2 avi berkdb bonobo cdr cjk crypt cups dvd encode ethereal evo flash gb gd
gdbm gif gnome gphoto2 gpm gtk gtk2 guile imap imlib innodb ipv6 java jikes jpeg
junit kde ksi lcms leim libg++ libgda libwww mikmod mmx motif mozilla mozsvg
mpeg mule nas ncurses nls nptl objc oci8 oggvorbis opengl oss pam pcmcia pda
pdflib perl pic plotutils png pnp postgres python qt quicktime radeon readline
ruby sasl scanner sdl slang slp snmp spell sse ssl tcltk tcpd tetex tiff
truetype usb wmf X xml xml2 xmms xv zlib -mysql -svga"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=pentium3 -mmmx -msse -O2 -pipe"
CXXFLAGS="-march=pentium3 -mmmx -msse -O2 -pipe"
ACCEPT_KEYWORDS="x86 ~x86"
MAKEOPTS=""
AUTOCLEAN="yes"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
FEATURES="sandbox buildpkg ccache keeptemp cvs"
Comment 1 James Cloos 2003-08-04 11:12:14 UTC
I just tried re-merging xv, and saw this in the emerge output:

>>> Install xv-3.10a-r4 into /home/portage/portage/xv-3.10a-r4/image/ category media-gfx
mkdir -p /home/portage/portage/xv-3.10a-r4/image//{/home/portage/portage/xv-3.10a-r4/image//usr/bin,/home/portage/portage/xv-3.10a-r4/image//usr/share/man/man1,/home/portage/portage/xv-3.10a-r4/image//usr/lib,/usr/share/doc/xv-3.10a}
cp xv bggen vdcomp xcmap xvpictoppm /home/portage/portage/xv-3.10a-r4/image///home/portage/portage/xv-3.10a-r4/image//usr/bin

so the bug is in installing, not in merging from image to /
Comment 2 James Cloos 2003-08-04 11:24:24 UTC
I'm changing this to componenet:ebuilds.  Turns out that this patch to
xv-3.10a-r4.ebuild fixed the problem:

--- xv-3.10a-r4.ebuild.~1~      2003-08-04 14:19:36.205357858 -0400
+++ xv-3.10a-r4.ebuild  2003-08-04 14:13:16.071723482 -0400
@@ -68,5 +68,5 @@
                DESTDIR=${D} \
-               BINDIR=${D}/usr/bin \
+               BINDIR=/usr/bin \
-               MANDIR=${D}/usr/share/man/man1 \
+               MANDIR=/usr/share/man/man1 \
-               LIBDIR=${D}/usr/lib \
+               LIBDIR=/usr/lib \
                install || die


(NB the context) got it to work....

dvnet-0.9.8, gif2png-2.4.7, perl-5.8.1_rc3, freetds-0.61 have similar bugs,
and erlang-9b & netcdf-3.5.0-r2 have related bugs that only affect symlinks.
Comment 3 Nicholas Jones (RETIRED) gentoo-dev 2003-08-06 01:17:16 UTC
I really have no idea what you're talking about.
Please explain what is happening. If this is a
bug regarding specific packages, please report
them as ebuild changes/fixes/bugs.
Comment 4 James Cloos 2003-08-06 08:38:58 UTC
> I really have no idea what you're talking about.

(I had to take some time to ensure this doesn't come out flamable.
Please ignore any heat that may appear to be intended....)

Try starting with Additonal Comment #1.  That should make it more clear.

In short, some packages are doubling up DESTDIR like such:

DESTDIR=${D} BINDIR=${D}/usr/bin make install

where Makefile installs into $(DESTDIR)/$(BINDIR), thus the files
end up in ${D}/${D}/usr/bin rather than ${D}/usr/bin, and at merge
time get moved from ${D}/${D}/usr/bin to ${D}/usr/bin.  Etc.

Also, some makefiles are creating symlinks that are absolute, so
the merged link points to someplace under ${D} rather than where
is should.

Try:

find /var/db/pkg -name CONTENTS -print0|xargs -0 egrep /image/

Ignoring false positives I get the entire contents of /var/db/pkg/dev-lang/perl-5.8.1_rc3/CONTENTS and 
/var/db/pkg/dev-libs/dvnet-0.9.8/CONTENTS as well as:

/var/db/pkg/media-gfx/gif2png-2.4.7/CONTENTS:dir /home/portage/portage
/var/db/pkg/media-gfx/gif2png-2.4.7/CONTENTS:dir /home/portage/portage/gif2png-2.4.7
/var/db/pkg/media-gfx/gif2png-2.4.7/CONTENTS:dir /home/portage/portage/gif2png-2.4.7/image
/var/db/pkg/media-gfx/gif2png-2.4.7/CONTENTS:dir /home/portage/portage/gif2png-2.4.7/image/usr
/var/db/pkg/media-gfx/gif2png-2.4.7/CONTENTS:dir /home/portage/portage/gif2png-2.4.7/image/usr/bin
/var/db/pkg/dev-lang/erlang-9b/CONTENTS:sym /usr/lib/erlang/bin/epmd -> /home/portage/portage/erlang-9b/image//usr/lib/erlang/erts-5.2/bin/epmd (41471, 1198155L, 773L, 1, 0, 0, 71L, 1051705543, 1051705543, 1051705543)
/var/db/pkg/dev-db/freetds-0.61/CONTENTS:dir /home/portage/portage
/var/db/pkg/dev-db/freetds-0.61/CONTENTS:dir /home/portage/portage/freetds-0.61
/var/db/pkg/dev-db/freetds-0.61/CONTENTS:dir /home/portage/portage/freetds-0.61/image
/var/db/pkg/dev-db/freetds-0.61/CONTENTS:dir /home/portage/portage/freetds-0.61/image/etc
/var/db/pkg/dev-db/freetds-0.61/CONTENTS:obj /home/portage/portage/freetds-0.61/image/etc/locales.conf acb4b9cf792dbff17396e53cc8d775e4 1059528964
/var/db/pkg/dev-db/freetds-0.61/CONTENTS:obj /home/portage/portage/freetds-0.61/image/etc/freetds.conf bd53ccf09a5e88624160fdb588bc1fff 1059528964
/var/db/pkg/app-sci/netcdf-3.5.0-r2/CONTENTS:sym /usr/share/man/man3f/netcdf.3f.gz -> /home/portage/portage/netcdf-3.5.0-r2/image//usr/share/man/man3/netcdf.3f.gz (41471, 1461090L, 773L, 1, 0, 0, 76L, 1052414330, 1052414330, 1052414330)
Comment 5 SpanKY gentoo-dev 2003-09-03 11:27:32 UTC
not to make more work for you, but if you find other packages than xv please file 
a sep bug about each 
Comment 6 SpanKY gentoo-dev 2003-09-11 19:45:11 UTC
r4 has been removed because it was broken badly

use r3 or r5