Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 407975 - net-print/cups-1.5.2-r1,-r2 installs systemd files in root directory
Summary: net-print/cups-1.5.2-r1,-r2 installs systemd files in root directory
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Printing (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Printing Team
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: cups-stable
  Show dependency tree
 
Reported: 2012-03-12 23:05 UTC by Henry Gebhardt
Modified: 2012-04-20 23:01 UTC (History)
2 users (show)

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


Attachments
Patch ebuild to use systemd eclass to install service files into proper location (cups-1.5.2-r1.patch,702 bytes, patch)
2012-03-12 23:08 UTC, Henry Gebhardt
Details | Diff
build.log (build.log,63.74 KB, text/plain)
2012-04-20 07:30 UTC, Lars Wendler (Polynomial-C) (RETIRED)
Details
Patch to the ebuild (0001-Introduce-USE-systemd-for-systemd-socket-activation.patch,2.40 KB, patch)
2012-04-20 13:27 UTC, Michał Górny
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Henry Gebhardt 2012-03-12 23:05:57 UTC
cups installs three systemd unit files into the root directory: /cups.socket, /cups.path, and /cups.socket.

systemd does not find them there. They should be in /usr/lib/systemd/system/. I will attach a patch for the cups ebuild to use the systemd eclass.

I am using the following versions:

net-print/cups-1.5.2-r1
sys-apps/systemd-43

Reproducible: Always




$ emerge --info
Portage 2.1.10.49 (default/linux/amd64/10.0/desktop, gcc-4.6.2, glibc-2.14.1-r2, 3.2.9 x86_64)
=================================================================
System uname: Linux-3.2.9-x86_64-Intel-R-_Core-TM-2_Duo_CPU_L7500_@_1.60GHz-with-gentoo-2.1
Timestamp of tree: Mon, 12 Mar 2012 12:00:01 +0000
ccache version 3.1.7 [enabled]
app-shells/bash:          4.2_p20
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3::sage-on-gentoo, 3.2.2
dev-util/ccache:          3.1.7
dev-util/cmake:           2.8.7-r5
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.9.3
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.8.5-r4, 1.11.3
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.6.2
sys-devel/gcc-config:     1.5.1
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.2-r1 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r2
Repositories: gentoo science sage-on-gentoo enlightenment mgorny systemd kork
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y --jobs=2 --load-average=2"
FEATURES="assume-digests binpkg-logs ccache distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://ftp.twaren.net/Linux/Gentoo/ ftp://gentoo.imj.fr/pub/gentoo/"
LANG="POSIX"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_US de"
MAKEOPTS="-j2 -l2.5"
PKGDIR="/usr/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="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/science /var/lib/layman/sage-on-gentoo /var/lib/layman/enlightenment /var/lib/layman/mgorny /usr/local/portage/systemd /usr/local/portage/kork"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acct acpi alsa amd64 apng archive aspell autoipd avahi bash-completion berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib cscope cups cxx data dbus djvu dns dri dts dvd dvdr dvi emboss encode exif faac faad fam fat fbcon ffmpeg firefox flac fontconfig fortran fortune fuse gcj gdbm gdm gdu gif git gmp gnome-keyring go gpm graphics gsm gstreamer gtk gtk3 h323 hdaps hddtemp humanities iconv imap inotify iplayer ipv6 ipython irc ithreads jabber jingle jpeg kpathsea laptop latex latex3 lcms libkms libnotify lm_sensors lxde mad mdnsresponder-compat mikmod mmx mmxext mng modules mp3 mp4 mpeg mudflap multilib ncurses networkmanager nls nntp normalize nptl nptlonly nsplugin ogg opengl openmp optimization pam pango pari24 pcre pdf pipechan png policykit ppds pppd pstricks pulseaudio qt3support readline replaygain sage science sdl session sip smp spell sse sse2 ssl ssse3 startup-notification subversion svg sysfs systemd tcpd theora thinkpad threads tiff truetype udev unicode usb utp v4l vaapi vim-pager vim-syntax vim-with-x vorbis vpx wav webkit wicd wifi wimax wxwidgets x264 xcb xcomposite xetex xinerama xml xorg xpm xrandr xscreensaver xulrunner xv xvid xvmc zeroconf zlib" ALSA_CARDS="hda-intel" 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" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan 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" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US de" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel fbdev vesa" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Henry Gebhardt 2012-03-12 23:08:04 UTC
Created attachment 305045 [details, diff]
Patch ebuild to use systemd eclass to install service files into proper location
Comment 2 Andreas K. Hüttel archtester gentoo-dev 2012-04-18 22:28:17 UTC
Thank you! Fixed in 1.5.2-r2
Comment 3 labor_ratte 2012-04-19 13:00:08 UTC
(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/
Comment 4 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2012-04-19 13:35:19 UTC
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"
Comment 5 Henry Gebhardt 2012-04-19 14:48:37 UTC
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?
Comment 6 Andreas K. Hüttel archtester gentoo-dev 2012-04-19 19:58:40 UTC
@systemd: we could need some help debugging here...
Comment 7 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2012-04-20 04:09:30 UTC
Could we get a build log then?
Comment 8 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2012-04-20 07:30:13 UTC
Created attachment 309597 [details]
build.log
Comment 9 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2012-04-20 13:01:10 UTC
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
Comment 10 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2012-04-20 13:27:18 UTC
Created attachment 309619 [details, diff]
Patch to the ebuild

And here's a neat patch.
Comment 11 Andreas K. Hüttel archtester gentoo-dev 2012-04-20 23:01:54 UTC
(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.