Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 164105 - net-print/foo2zjs: sandbox violations
Summary: net-print/foo2zjs: sandbox violations
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Printing (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Printing Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-27 21:22 UTC by Jason Bucata
Modified: 2007-02-19 22:34 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 Jason Bucata 2007-01-27 21:22:12 UTC
The new net-print/foo2zjs-20061130 gets trapped with sandbox violations during the installation step:

unlink:    /usr/share/ppd/HP/HP-LaserJet_1018-foo2zjs.ppd.gz
unlink:    /usr/share/ppd/HP/HP-LaserJet_1022-foo2zjs.ppd.gz
unlink:    /usr/share/ppd/HP/HP-LaserJet_1005-foo2zjs.ppd.gz
unlink:    /usr/share/ppd/HP/HP-LaserJet_1020-foo2zjs.ppd.gz
unlink:    /usr/share/ppd/HP/HP-LaserJet_1000-foo2zjs.ppd.gz
unlink:    /usr/share/ppd/KonicaMinolta/KonicaMinolta-magicolor_2430_DL-foo2zjs.ppd.gz
unlink:    /usr/share/ppd/KonicaMinolta/KonicaMinolta-magicolor_2300_DL-foo2zjs.ppd.gz
unlink:    /usr/share/ppd/Generic/Generic-ZjStream_Printer-foo2zjs.ppd.gz
unlink:    /usr/share/ppd/Generic/Generic-GDI_Printer-foo2zjs.ppd.gz
unlink:    /usr/share/ppd/Minolta/Minolta-Color_PageWorks_Pro_L-foo2zjs.ppd.gz
unlink:    /usr/share/ppd/Minolta/Minolta-magicolor_2200_DL-foo2zjs.ppd.gz
unlink:    /usr/share/ppd/Minolta/Minolta-magicolor_2300_DL-foo2zjs.ppd.gz
unlink:    /usr/share/ppd/Minolta/Minolta-magicolor_2430_DL-foo2zjs.ppd.gz
unlink:    /usr/share/ppd/HP/HP-Color_LaserJet_1600-foo2hp.ppd.gz
unlink:    /usr/share/ppd/HP/HP-Color_LaserJet_2600n-foo2hp.ppd.gz
unlink:    /usr/share/ppd/Generic/Generic-GDI_Printer-foo2hp.ppd.gz
unlink:    /usr/share/ppd/Generic/Generic-ZjStream_Printer-foo2hp.ppd.gz

This might only be tripped if CUPS is installed, which it is for me.

The offending code in the Makefile is:
install-ppd:
        #
        # Install PPD files for CUPS
        #
        if [ -d /usr/share/ppd/ ]; then \
            find /usr/share/ppd/ -name '*foo2zjs*' | xargs rm -f; \
            find /usr/share/ppd/ -name '*foo2hp*' | xargs rm -f; \
            find /usr/share/ppd/ -name '*foo2xqx*' | xargs rm -f; \
            find /usr/share/ppd/ -name '*foo2lava*' | xargs rm -f; \
        fi
        # more code follows         

Simply removing that if block from that target (leaving the code that follows) should fix it.  I tried it in an overlay and it worked for me.

===================================

Portage 2.1.1-r2 (default-linux/x86/2006.1/desktop, gcc-3.4.6, glibc-2.3.6-r5, 2.6.16-gentoo-r13 i686)
=================================================================
System uname: 2.6.16-gentoo-r13 i686 AMD Athlon(tm) XP 2500+
Gentoo Base System version 1.12.6
Last Sync: Sat, 27 Jan 2007 19:00:01 +0000
ccache version 2.4 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.31
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-pipe -O2 -march=athlon-xp -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-pipe -O2 -march=athlon-xp -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS=" http://mirrors.acm.cs.rpi.edu/gentoo http://distro.ibiblio.org/pub/Linux/distributions/gentoo "
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/root/portage_overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowex X aac acl acpi alsa alsa_cards_via82xx,usbaudio alsa_pcm_plugins_adpcm alsa_pcm_plugins_alaw alsa_pcm_plugins_asym alsa_pcm_plugins_copy alsa_pcm_plugins_dmix alsa_pcm_plugins_dshare alsa_pcm_plugins_dsnoop alsa_pcm_plugins_empty alsa_pcm_plugins_extplug alsa_pcm_plugins_file alsa_pcm_plugins_hooks alsa_pcm_plugins_iec958 alsa_pcm_plugins_ioplug alsa_pcm_plugins_ladspa alsa_pcm_plugins_lfloat alsa_pcm_plugins_linear alsa_pcm_plugins_meter alsa_pcm_plugins_mulaw alsa_pcm_plugins_multi alsa_pcm_plugins_null alsa_pcm_plugins_plug alsa_pcm_plugins_rate alsa_pcm_plugins_route alsa_pcm_plugins_share alsa_pcm_plugins_shm alsa_pcm_plugins_softvol asf bash-completion berkdb bitmap-fonts bzip2 bzlib cairo cdr cli cracklib crypt cups curl dbus dlloader dri eds elibc_glibc emboss esd exif fam firefox flac foo2zjs_devices_km2300 fortran gb gdbm gif gnome gpm gstreamer gtk hal iconv input_devices_keyboard input_devices_mouse ipv6 isdnlog java jpeg kernel_linux lcd_devices_bayrad lcd_devices_cfontz lcd_devices_cfontz633 lcd_devices_glk lcd_devices_hd44780 lcd_devices_lb216 lcd_devices_lcdm001 lcd_devices_mtxorb lcd_devices_ncurses lcd_devices_text libg++ mad maildir matrox mbox memlimit mikmod mmx mmx2 mng mp3 mpeg ncurses nls nptl nptlonly nsplugin ofx ogg opengl oss pam pcntl pcre perl pic png posix ppds pppd prelude python quicktime readline reflection sdl session speex spell spl sse ssl svg tcpd theora tiff truetype truetype-fonts type1-fonts udev unicode usb userland_GNU video_cards_mga videos vorbis win32codecs xml xorg xprint xv zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jason Bucata 2007-02-17 19:51:16 UTC
This is still an issue for -20070204.  Can we please get this simple fix applied?
Comment 2 Stefan Schweizer (RETIRED) gentoo-dev 2007-02-19 22:34:42 UTC
thanks, fixed sorry it took so long :(