Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 24726 - net-print/foomatic-db-20030716: Makefile.in bug & fix
Summary: net-print/foomatic-db-20030716: Makefile.in bug & fix
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Printing (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Printing Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-18 04:55 UTC by TGL
Modified: 2003-07-18 05:15 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 TGL 2003-07-18 04:55:40 UTC
I've tried to emerge "net-print/foomatic-db-20030716" with "ppds" flag enabled,
and had the following error:

------------------------------------------------------------------------
 <snip>
  ...printer HP-DeskJet_500C, driver hpdj
  ...printer Okidata-Microline_192plus, driver oki182
  ...printer Kyocera-FS-1200, driver ljet4d
Done.
cp: cannot open `/usr/bin/sperl5.6.1' for reading: Permission denied
make: *** [filters-ppds] Error 1
 
!!! ERROR: net-print/foomatic-db-20030716 failed.
!!! Function src_compile, Line 45, Exitcode 2
!!! (no error message)
------------------------------------------------------------------------

This happens during the "make DESTDIR=${D} filters-ppds" in the
foomatic-db-engine-3.0.0 directory. In fact, to install the man pages, the
Makefile does this: 
  cp $${foomatic_filters_root}/*.1 $${packagename}/share/man/man1

But the $${foomatic_filters_root} should not be there, since its value is
obviously "/usr/bin". Man pages are in the current directory at this point, so
what I've done is removing this wrong prefix in the Makefile.in:

------------------------------------------------------------------------
src_unpack() {
	mkdir foomatic
	cd foomatic
	unpack foomatic-db-engine-3.0.0.tar.gz
	unpack foomatic-db-${PV}.tar.gz
	cd foomatic-db-engine-3.0.0
	mv Makefile.in Makefile.in.orig
	sed s:'cp\ \$\${foomatic_filters_root}/\*\.1':'cp\ \*\.1': \
	  < Makefile.in.orig > Makefile.in
	cd ..
}
------------------------------------------------------------------------

It does work as expected. This fix is not needed in the foomatic-db-engine
ebuild, because the "filters-ppds" section of the Makefile is not used.


Reproducible: Always
Steps to Reproduce:
1. touch /usr/bin/i_should_not_be_copied.1
2. chmod ugo-r /usr/bin/i_should_not_be_copied.1
3. USE="ppds" emerge foomatic-db

Actual Results:  
<snip>
cp: cannot open `/usr/bin/i_should_not_be_copied.1' for reading: Permission denied
<snip>

Expected Results:  
Install some man pages in the build directory, and then forget them here,
instead of failing on some unreadable /usr/bin files.

gromit root # emerge info
Portage 2.0.49_pre11 (default-1.0, gcc-2.95.3, glibc-2.2.5-r4,2.2.5-r8)
=================================================================
System uname: 2.4.21-ck3 i686 AMD Athlon(tm) XP 1800+
GENTOO_MIRRORS=" http://ftp.easynet.nl/mirror/gentoo/
ftp://ftp.easynet.nl/mirror/gentoo// http://ftp.tu-clausthal.de/pub/linux/gentoo/"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config
/usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/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 apm avi crypt cups encode jpeg libg++ mikmod mmx mpeg ncurses
pdflib quicktime spell truetype xml2 xmms xv alsa berkdb bonobo cdr esd gdbm ggi
gif gnome gnome-libs gpm gphoto2 gtk gtkhtml guile imlib java libwww motif
mozilla mysql nas oggvorbis opengl pam perl png python qt readline ruby scanner
sdl slang snmp ssl svga tcltk tcpd tetex tiff X aalib acpi acpi4linux apache2
clamav curl dga -directfb doc dvd faad fbcon flash foomaticdb gd ggz imap ipv6
jack junit lcms leim lirc mbox memlimit moznocompose moznoirc moznomail mozsvg
nls objc pda plotutils pnp ppds samba sasl slp smooth tmpfs usb v4l wmf Xaw3d
xface xml xvid xosd zeo zlib -arts -kde -ldap -pcmcia xfs"
COMPILER=""
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=i686 -O2 -pipe"
CXXFLAGS="-march=i686 -O2 -pipe"
ACCEPT_KEYWORDS="x86 ~x86"
MAKEOPTS="-j1"
AUTOCLEAN="yes"
SYNC="rsync://rsync.fr.gentoo.org/gentoo-portage"
FEATURES="ccache userpriv usersandbox sandbox digest manifest fixpackages"
Comment 1 Heinrich Wendel (RETIRED) gentoo-dev 2003-07-18 05:15:53 UTC
weird, i can't reproduce this bug, but i commited the fix, thx.