Bug 79800 - magicfilter 2.3 filter files installed with incorrect #! line
Bug#: 79800 Product:  Gentoo Linux Version: unspecified Platform: x86
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: printing@gentoo.org Reported By: euclid80@users.sf.net
Component: Printing
URL: 
Summary: magicfilter 2.3 filter files installed with incorrect #! line
Keywords:  
Status Whiteboard: 
Opened: 2005-01-27 20:51 0000
Description:   Opened: 2005-01-27 20:51 0000
The filters installed by magicfilter 2.3 in /usr/share/magicfilter/filters/
have the wrong first line.  It should be "#!/usr/bin/magicfilter" but instead
it is "#! /var/tmp/portage/magicfilter-2.3a/image//usr/bin/magicfilter".


Reproducible: Always
Steps to Reproduce:
1.emerge magicfilter
2.
3.

Actual Results:  
Printing fails even though printcap is configured correctly.  The filters do
not
run because they don't specify a valid interpreter in the #! line.


Gentoo Base System version 1.4.16
Portage 2.0.51-r3 (default-linux/x86/2004.3, gcc-3.3.5, uclibc-0.9.26-r7,
2.6.10
i686)
=================================================================
System uname: 2.6.10 i686 Pentium III (Coppermine)
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632)
[disabled]
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.92.0.2-r1
Headers:  sys-kernel/linux-headers-2.4.21-r1
Libtools: sys-devel/libtool-1.5.2-r7
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=pentium3 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium3 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms userpriv
usersandbox"
GENTOO_MIRRORS="ftp://cs.ubishops.ca/pub/gentoo "
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X alsa apm avi bitmap-fonts cdparanoia cdr crypt encode esd f77 flac
font-server foomaticdb fortran gif gphoto2 gtk gtk2 imagemagick imlib java jpeg
junit libg++ libwww mbox mikmod mmx mozdevelop mozilla moznomail mpeg ncurses
network nodrm oggvorbis pam pdflib perl png python qt quicktime readline real
rtc samba scanner spell sse ssl tcltk truetype truetype-fonts type1-fonts usb
v4l2 x86 xmms xv zlib"

------- Comment #1 From Luis Medinas (RETIRED) 2005-03-03 09:11:38 0000 -------
Created an attachment (id=52553) [details]
ebuild with fixed headers

------- Comment #2 From Luis Medinas (RETIRED) 2005-03-03 09:12:14 0000 -------
Ok... this is a bug and the fix is in this ebuild.

------- Comment #3 From Heinrich Wendel (RETIRED) 2005-03-03 12:29:34 0000 -------
please only post a diff to the old ebuild

------- Comment #4 From Luis Medinas (RETIRED) 2005-03-04 09:46:58 0000 -------
Sorry for the delay the diff is attached

------- Comment #5 From Luis Medinas (RETIRED) 2005-03-04 09:47:58 0000 -------
Created an attachment (id=52665) [details]
magicfilter-2.3a-r1 diff

------- Comment #6 From euclid80@users.sf.net 2005-04-20 17:31:22 0000 -------
Created an attachment (id=56792) [details]
patch for the patch

The previous patch works for setting the #! line, but it sets it to the wrong
thing!	This patch is a corrected version of the previous one.

------- Comment #7 From Heinrich Wendel (RETIRED) 2005-05-31 17:25:41 0000 -------
fixed in magicfilter-2.3d