Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 20410 - bad location of some gocr's files
Summary: bad location of some gocr's files
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High minor
Assignee: Text-Markup Team (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-03 22:13 UTC by Julien Allanos (RETIRED)
Modified: 2003-09-16 04:21 UTC (History)
0 users

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


Attachments
new ebuild (gocr-0.3.6-r3.ebuild,1.45 KB, text/plain)
2003-08-15 06:29 UTC, Julien Allanos (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Julien Allanos (RETIRED) gentoo-dev 2003-05-03 22:13:21 UTC
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"
Comment 1 Sami Nieminen 2003-05-17 12:54:29 UTC
I can confirm this, I just emerged and files (except man pages) seem to install with prefix /. 
Comment 2 Sami Nieminen 2003-07-21 05:39:20 UTC
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. 
Comment 3 Julien Allanos (RETIRED) gentoo-dev 2003-08-15 06:29:11 UTC
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
Comment 4 Mike Gardiner (RETIRED) gentoo-dev 2003-09-12 02:06:04 UTC
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.
Comment 5 Mike Gardiner (RETIRED) gentoo-dev 2003-09-15 22:25:20 UTC
okay, this has been re-written in portage, as version 0.37. could you please test and report back on success/failure ? thanks.
Comment 6 Julien Allanos (RETIRED) gentoo-dev 2003-09-16 04:21:08 UTC
just to report this was a success for me. thanks.