I'm wondering why the gocr's ebuild installs some files with a / prefix and others with a /usr prefix. # qpkg -l gocr app-text/gocr-0.3.6-r2 * CONTENTS: /bin /bin/gocr /lib /lib/libPgm2asc.a /usr /usr/share /usr/share/man /usr/share/man/man1 /usr/share/man/man1/gocr.1.gz /include /include/gocr.h I was quite suprised to see a /include dir with a single gocr.h in it. Gocr is working but wouldn't it be better to have /usr/bin instead of /bin, /usr/include instead of /include and /usr/lib instead of /lib ? Reproducible: Always Steps to Reproduce: 1. emerge gocr Portage 2.0.47-r10 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r4) ================================================================= System uname: 2.4.20-gentoo-r2 i686 AMD Athlon(tm) processor GENTOO_MIRRORS="http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo http://ftp.easynet.nl/mirror/gentoo http://gentoo.linux.no http://www.ibiblio.org/pub/Linux/distributions/gentoo" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="/usr/local/portage" USE="x86 oss 3dnow avi crypt cups encode gif jpeg kde libg++ mmx mpeg ncurses nls pdflib png quicktime spell xml2 xmms xv zlib gdbm berkdb slang readline arts svga java guile X sdl gpm tcpd pam libwww ssl python imlib oggvorbis gtk qt motif opengl aalib acpi alsa -apm cdr dvd emacs esd flash gd gtk2 -gnome imap lcms maildir mozilla moznoirc moznomail mikmod perl sasl scanner tcltk tetex tiff truetype usb" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-march=athlon-tbird -O3 -pipe -fomit-frame-pointer -falign-functions=4 -fforce-addr -ffast-math -mmmx -m3dnow" CXXFLAGS="-march=athlon-tbird -O3 -pipe -fomit-frame-pointer -falign-functions=4 -fforce-addr -ffast-math -mmmx -m3dnow" ACCEPT_KEYWORDS="x86" MAKEOPTS="-j4" AUTOCLEAN="yes" SYNC="rsync://gentoo.irisa.fr/gentoo-portage" FEATURES="sandbox userpriv usersandbox ccache distcc"
I can confirm this, I just emerged and files (except man pages) seem to install with prefix /.
Is something being done for this? I wish to get some comments from the developer. I just tried to emerge gocr again, and it is still broken, like in the original report.
Created attachment 16131 [details] new ebuild this ebuild installs gocr with a /usr prefix. # qpkg -l gocr app-text/gocr-0.3.6-r3 * CONTENTS: /usr /usr/bin /usr/bin/gocr /usr/lib /usr/lib/libPgm2asc.a /usr/share /usr/share/man /usr/share/man/man1 /usr/share/man/man1/gocr.1.gz /usr/include /usr/include/gocr.h
i know you just modified the ebuild in portage, so please dont take this as offence, but this ebuild needs a solid rewrite, a simple look at the DEPENDS shows you errors (depend on app-text/tetex, and then conditionally depend on it if tetex is USE'd?). working on a rewrite, then we can solve the bad location problems.
okay, this has been re-written in portage, as version 0.37. could you please test and report back on success/failure ? thanks.
just to report this was a success for me. thanks.