Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 509488 - sys-apps/portage: add virtual/openrc when using systemd only.
Summary: sys-apps/portage: add virtual/openrc when using systemd only.
Status: RESOLVED DUPLICATE of bug 373219
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-03 17:41 UTC by Alexandre
Modified: 2014-05-04 03:10 UTC (History)
1 user (show)

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 Alexandre 2014-05-03 17:41:15 UTC
Dear Gentoo Team,

When we are using systemd without sys-apps/openrc we need to add the openrc on package.provided in order to avoid portage claiming for that but we get this message every time we upgrade the system:

"WARNING: A requested package will not be merged because it is listed in
package.provided:

  sys-apps/openrc pulled in by 'system'"

In order to avoid that message would be nice if there are a virtual/openrc (a systemd flag on portage?) to remove that message and avoid to have add sys-apps/openrc on package.provided them a better integration.

Thank you!

Reproducible: Always




Portage 2.2.10 (default/linux/amd64/13.0/desktop/kde/systemd, gcc-4.8.2, glibc-2.19, 3.14.2-gentoo x86_64)
=================================================================
System uname: Linux-3.14.2-gentoo-x86_64-Intel-R-_Pentium-R-_Dual_CPU_T3400_@_2.16GHz-with-gentoo-2.2
KiB Mem:     2820272 total,    759268 free
KiB Swap:    1048572 total,   1048572 free
Timestamp of tree: Sat, 03 May 2014 15:15:01 +0000
ld GNU ld (GNU Binutils) 2.24
ccache version 3.1.9 [disabled]
app-shells/bash:          4.2_p47
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.6-r1, 3.3.5, 3.4.0
dev-util/ccache:          3.1.9-r3
dev-util/cmake:           2.8.12.2
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.14.1
sys-devel/binutils:       2.24-r2
sys-devel/gcc:            4.8.2
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.14 (virtual/os-headers)
sys-libs/glibc:           2.19
Repositories: gentoo privacychain
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe -fomit-frame-pointer -g0"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /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="-O2 -march=native -pipe -fomit-frame-pointer -g0"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs candy config-protect-if-modified distlocks ebuild-locks fail-clean fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS=" ftp://gentoo.c3sl.ufpr.br/gentoo/ http://gentoo.c3sl.ufpr.br/ ftp://ftp.las.ic.unicamp.br/pub/gentoo/ http://www.las.ic.unicamp.br/pub/gentoo/ ftp://ftp.free.fr/mirrors/ftp.gentoo.org/ http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ "
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-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="/usr/local/portage"
SYNC="rsync://rsync.samerica.gentoo.org/gentoo-portage/"
USE="X a52 aac acl acpi alsa amd64 berkdb branding bzip2 cairo caps cdda cdr cli cracklib crypt css cups custom-cflags custom-optimization cxx dbus declarative dga dri dts dvd dvdr emboss encode exif fam ffmpeg firefox flac fontconfig gdbm gif gnutls gpm gtk gtkstyle iconv jit jpeg kde kipi lame lcms libnotify lzma lzo mad minimal mmx mng modules mp3 mp4 mpeg multilib ncurses networkmanager nls nptl nvidia offensive ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds qt3support qt4 readline samba sdl semantic-desktop session spell sse sse2 sse3 ssl ssse3 startup-notification svg syslog systemd tcpd theora threads tiff truetype udev udisks unicode upower usb vdpau vim-syntax vorbis vpx wavpack wxwidgets x264 xattr xcb xcomposite xinerama xml xscreensaver xv xvid zlib" ABI_X86="64" ALSA_CARDS="hda-intel loopback" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 sheets stage tables krita karbon braindump author" 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 ublox ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="nvidia" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2014-05-03 17:49:05 UTC
Just wait until the @system set no longer pulls in sys-apps/openrc.

*** This bug has been marked as a duplicate of bug 373219 ***
Comment 2 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2014-05-03 18:18:57 UTC
Just making sure, I don't see the problem in this, I do run systemd myself and don't get this message here; are you sure the package.provided syntax is right? Here is an example of what I use in that file:

    sys-apps/openrc-0.12.4

If you want, you can temporarily remove this from the following file:

    /usr/lib/portage/pym/_emerge/depgraph.py

The relevant code to remove around "Requested packages will not be " is:

    msg.append(bad("\nWARNING: "))
    ...
    msg.append("\n")

Not sure how an extra virtual will resolve this; sys-apps/openrc is in @system with a specific deprecation purpose, they won't replace it by virtual/openrc as that beats its purpose. It would be a duplicate of virtual/service-manager too.
Comment 3 Alexandre 2014-05-03 20:53:42 UTC
(In reply to Tom Wijsman (TomWij) from comment #2)
> Just making sure, I don't see the problem in this, I do run systemd myself
> and don't get this message here; are you sure the package.provided syntax is
> right? Here is an example of what I use in that file:
> 
>     sys-apps/openrc-0.12.4
> 
> If you want, you can temporarily remove this from the following file:
> 
>     /usr/lib/portage/pym/_emerge/depgraph.py
> 
> The relevant code to remove around "Requested packages will not be " is:
> 
>     msg.append(bad("\nWARNING: "))
>     ...
>     msg.append("\n")
> 
> Not sure how an extra virtual will resolve this; sys-apps/openrc is in
> @system with a specific deprecation purpose, they won't replace it by
> virtual/openrc as that beats its purpose. It would be a duplicate of
> virtual/service-manager too.

Yes, unfortunately the syntax is correct on package.provided.

I commented out the suggested code and now the message is smaller but still there:

"A requested package will not be merged because it is listed in
package.provided:

  sys-apps/openrc pulled in by 'system'"


I'll wait the final solution on Comment 1.
Thank you for your explanation about my suggestion.
Comment 4 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2014-05-03 21:42:43 UTC
The ... were intended to specify a rang; so, removing everything between those two lines as well will cause the entire message to go.
Comment 5 Alexandre 2014-05-03 21:59:04 UTC
Not working for me:

Traceback (most recent call last):
  File "/usr/bin/emerge", line 50, in <module>
    retval = emerge_main()
  File "/usr/lib64/portage/pym/_emerge/main.py", line 1037, in emerge_main
    return run_action(emerge_config)
  File "/usr/lib64/portage/pym/_emerge/actions.py", line 4061, in run_action
    emerge_config.args, spinner)
  File "/usr/lib64/portage/pym/_emerge/actions.py", line 353, in action_build
    mydepgraph.display_problems()
  File "/usr/lib64/portage/pym/_emerge/depgraph.py", line 7770, in display_problems
    if "selected" in problems_sets or "world" in problems_sets:
NameError: global name 'problems_sets' is not defined


I removed:

msg.append(bad("\nWARNING: "))
	if len(self._dynamic_config._pprovided_args) > 1:
	msg.append("Requested packages will not be " + \
	"merged because they are listed in\n")
	else:
	msg.append("A requested package will not be " + \
	"merged because it is listed in\n")
	msg.append("package.provided:\n\n")
	problems_sets = set()
	for (arg, atom), refs in arg_refs.items():
	ref_string = ""
	if refs:
	problems_sets.update(refs)
	refs.sort()
	ref_string = ", ".join(["'%s'" % name for name in refs])
	ref_string = " pulled in by " + ref_string
	msg.append("  %s%s\n" % (colorize("INFORM", str(arg)), ref_string))
msg.append("\n")

Thanks!
Comment 6 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2014-05-03 23:11:12 UTC
Ah, sorry; functional code, you'll want to only remove the msg.append(...) lines.

If you want, I can write you a patch to automatically apply this when you emerge new Portrage versions.
Comment 7 Alexandre 2014-05-04 03:10:20 UTC
@TomWij

I really appreciate your offer but don't want you spend your time with a 1 person solution.

I sholud wait until @system be ready.

Thank you very much!
Alexandre.