Summary: | net-print/cups-1.5.2-r1,-r2 installs systemd files in root directory | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Henry Gebhardt <hsggebhardt> |
Component: | [OLD] Printing | Assignee: | Printing Team <printing> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | mgorny, systemd |
Priority: | Normal | Keywords: | PATCH |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 411887 | ||
Attachments: |
Patch ebuild to use systemd eclass to install service files into proper location
build.log Patch to the ebuild |
Description
Henry Gebhardt
2012-03-12 23:05:57 UTC
Created attachment 305045 [details, diff]
Patch ebuild to use systemd eclass to install service files into proper location
Thank you! Fixed in 1.5.2-r2 (In reply to comment #2) > Thank you! Fixed in 1.5.2-r2 No, sadly the files still get installed in root folder: >>> Installing (3 of 6) net-print/cups-1.5.2-r2 * Removing /usr/share/info * checking 485 files for package collisions >>> Merging net-print/cups-1.5.2-r2 to / >>> /cups.path >>> /cups.socket >>> /cups.service --- /etc/ Reopening as this still isn't fixed with =net-print/cups-1.5.2-r2: shanghai:~ # qlist -Ce cups | grep ^/cups\\. /cups.path /cups.socket /cups.service shanghai:~ # qlist -CIve cups net-print/cups-1.5.2-r2 shanghai:~ # emerge --info cups Portage 2.2.0_alpha100 (default/linux/amd64/10.0/desktop/kde, gcc-4.6.3-asneeded, glibc-2.13-r4, 3.0.28 x86_64) ================================================================= System Settings ================================================================= System uname: Linux-3.0.28-x86_64-Quad-Core_AMD_Opteron-tm-_Processor_2389-with-gentoo-2.1 Timestamp of tree: Thu, 19 Apr 2012 05:30:01 +0000 app-shells/bash: 4.2_p24 dev-java/java-config: 2.1.11-r3 dev-lang/python: 2.7.3, 3.2.2-r1 dev-util/cmake: 2.8.7-r5 dev-util/pkgconfig: 0.26 sys-apps/baselayout: 2.1 sys-apps/openrc: 0.9.9.3::poly-c sys-apps/sandbox: 2.5 sys-devel/autoconf: 2.13, 2.68 sys-devel/automake: 1.9.6-r3, 1.10.3, 1.11.5 sys-devel/binutils: 2.22-r1 sys-devel/gcc: 4.5.3-r2, 4.6.3_pre::poly-c sys-devel/gcc-config: 1.7 sys-devel/libtool: 2.4.2 sys-devel/make: 3.82-r3 sys-kernel/linux-headers: 3.1 (virtual/os-headers) sys-libs/glibc: 2.13-r4 Repositories: gentoo kde-sunset poly-c Installed sets: @system ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=barcelona -mtune=barcelona -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-3.0 /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/X11/Sessions /etc/X11/app-defaults /etc/X11/xinit /etc/adobe /etc/bonobo-activation /etc/ca-certificates /etc/ca-certificates.conf /etc/dbus-1 /etc/env.d /etc/env.d/java/ /etc/fonts /etc/fonts/fonts.conf /etc/foomatic /etc/games /etc/gconf /etc/gentoo-release /etc/gimp /etc/gnome-vfs-2.0 /etc/gre.d /etc/gtk-2.0 /etc/hp /etc/hsqldb /etc/htdig /etc/init.d /etc/iproute2 /etc/java-config-2 /etc/lftp /etc/logrotate.d /etc/ntop /etc/opt /etc/pango /etc/profile.d /etc/qt4 /etc/revdep-rebuild /etc/sandbox.d /etc/sasl2 /etc/sensors.d /etc/sgml /etc/sound /etc/ssl /etc/ssmtp /etc/t1lib /etc/terminfo /etc/vbox /etc/xdg /etc/xinetd.d /etc/xml" CXXFLAGS="-march=barcelona -mtune=barcelona -O2 -pipe" DISTDIR="/var/tmp/distfiles" EMERGE_DEFAULT_OPTS="--alphabetical --with-bdeps=y --misspell-suggestions=n --autounmask=n --quiet-build=n" FEATURES="assume-digests binpkg-logs collision-protect distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms sign strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox" FFLAGS="" GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo" INSTALL_MASK="/lib/systemd /lib32/systemd /lib64/systemd /usr/lib/systemd /usr/lib32/systemd /usr/lib64/systemd" LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--sort-common -Wl,--as-needed" LINGUAS="de en" MAKEOPTS="-j8" PKGDIR="/opt/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/var/portage" PORTDIR_OVERLAY="/var/lib/layman/kde-sunset /usr/local/portage" SYNC="rsync://192.168.0.254/gentoo-portage" USE="3dnow 3dnowext X a52 aac acpi alsa amd64 berkdb branding bzip2 cairo caps cdda cdr cli cracklib crypt css cups cxx dbus declarative dri dts dvd dvdr emboss encode exif fam ffmpeg firefox flac gdbm gdu gif gmp gnutls gtk iconv idn inotify jpeg jpeg2k kde kipi lame lcms libnotify lzma mad matroska midi mmap mmx mmxext mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl nptlonly nsplugin ogg opengl openmp pam pango pcre pdf phonon plasma png ppds pppd qt3support qt4 quicktime readline rtmp schroedinger sdl semantic-desktop session slang spell sse sse2 ssl startup-notification svg sysfs theora threads tiff truetype twolame udev unicode usb vaapi vcd vorbis vpx wxwidgets x264 xcb xcomposite xinerama xml xorg xscreensaver xulrunner xv xvid zlib zsh-completion" ALSA_CARDS="emu10k1 hda-intel usb-audio" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" CALLIGRA_FEATURES=" kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev joystick" KERNEL="linux" LINGUAS="de en" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby19" USERLAND="GNU" VIDEO_CARDS="radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON ================================================================= Package Settings ================================================================= net-print/cups-1.5.2-r2 was built with the following: USE="X -acl -avahi dbus -debug filters gnutls -java jpeg -kerberos -ldap (multilib) pam -perl png -python -slp ssl -static-libs threads tiff -usb -xinetd" LINGUAS="-da de -es -eu -fi -fr -id -it -ja -ko -nl -no -pl -pt -pt_BR -ru -sv -zh -zh_TW" Hm, I can no longer reproduce this error. I have a suspicion. Please post the output of these two commands: $ pkg-config --variable=systemdsystemunitdir systemd $ pkg-config --exists libsystemd-daemon; echo $? I am also curious as to why the author of "files/cups-1.5.0-systemd-socket.patch" departed from the man page advice given in daemon(7)? Anyone know who that author is? @systemd: we could need some help debugging here... Could we get a build log then? Created attachment 309597 [details]
build.log
The patch is from upstream bugtracker where it was put by Fedora package maintainer [1]. I've added a comment there that it is broken, hopefully we'll receive a revised version. The problem is that it doesn't subst the unit directory when libsystemd-daemon is not available yet it sets the unit file list to install. I think we should add USE=systemd there and depend on sys-apps/systemd which does provide the necessary library. [1]:http://www.cups.org/str.php?L3917 Created attachment 309619 [details, diff]
Patch to the ebuild
And here's a neat patch.
(In reply to comment #10) > Created attachment 309619 [details, diff] [details, diff] > Patch to the ebuild > > And here's a neat patch. Thanks a lot, I've added this in -r3. Should finally be fixed now. |