Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emerge --depclean wants to remove openrc
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
salfter
n00b
n00b


Joined: 02 Jan 2003
Posts: 40

PostPosted: Mon Dec 18, 2017 7:02 pm    Post subject: emerge --depclean wants to remove openrc Reply with quote

While trying to restart services controlled by /etc/init.d/local on a VPS, I found that /etc/init.d/local itself was missing. I tried rc-status to see what was running...it said "command not found." WTF? I checked another system and found that /bin/rc-status on it belonged to sys-apps/openrc. Back to the VPS.../var/log/emerge.log says that openrc was removed two weeks ago.

I let emerge -1 openrc run to get things back where they should be. emerge --depclean then wants to remove it again.

I then ran emerge -e1av virtual/service-manager. It pulled in 100 different packages, including openrc. If I follow it with emerge --depclean, it wants to remove it again.

I could emerge openrc (without -1) to add it to the world set, but I shouldn't have to do that. None of my other Gentoo systems (all of which get updated about once a week) have had this problem. Why is this particular system intent on removing openrc?
Back to top
View user's profile Send private message
davidm
Guru
Guru


Joined: 26 Apr 2009
Posts: 557
Location: US

PostPosted: Mon Dec 18, 2017 10:34 pm    Post subject: Reply with quote

Maybe this is a stupid question but are you running systemd on that install? I just had depclean propose to remove openrc on my systemd Gentoo install. Out of curiosity I went ahead and let it do it and rebooted. And here I am. Everything went fine. :)

So it appears systemd users may not always need openrc installed now. I know there was an open bug about removing the openrc requirement for systemd installs for some time. It is nice to see things finally resolved.
Back to top
View user's profile Send private message
ian.au
Guru
Guru


Joined: 07 Apr 2011
Posts: 418
Location: Australia

PostPosted: Mon Dec 18, 2017 11:12 pm    Post subject: Reply with quote

There was a news item about this from a couple of months ago, although portage just came up with this and associated dire warnings on my sync this am. The news is a bit thin, There's more information in this thread
Back to top
View user's profile Send private message
salfter
n00b
n00b


Joined: 02 Jan 2003
Posts: 40

PostPosted: Tue Dec 19, 2017 6:35 am    Post subject: Reply with quote

davidm wrote:
Maybe this is a stupid question but are you running systemd on that install?


Nope. One of the reasons (among others) that I've stayed with Gentoo is that it makes it easy to avoid that dumpster fire.
Back to top
View user's profile Send private message
The Doctor
Moderator
Moderator


Joined: 27 Jul 2010
Posts: 2447

PostPosted: Tue Dec 19, 2017 6:49 am    Post subject: Reply with quote

salfter wrote:
davidm wrote:
Maybe this is a stupid question but are you running systemd on that install?


Nope. One of the reasons (among others) that I've stayed with Gentoo is that it makes it easy to avoid that dumpster fire.
Something is off. You must have systemd (or another init system) installed. Remove it and openRC will be selected by default.

I recommend masking systemd because something must have pulled it.
_________________
First things first, but not necessarily in that order.

Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box.
Back to top
View user's profile Send private message
ian.au
Guru
Guru


Joined: 07 Apr 2011
Posts: 418
Location: Australia

PostPosted: Tue Dec 19, 2017 8:21 am    Post subject: Reply with quote

salfter wrote:
davidm wrote:
Maybe this is a stupid question but are you running systemd on that install?


Nope. One of the reasons (among others) that I've stayed with Gentoo is that it makes it easy to avoid that dumpster fire.


8O I've only seen openrc --depcleaned on systemd desktops, and even then portage made a lot of noise about removing an @system package.

I haven't seen any attempt to --depclean openrc on an openrc system. There would be users chucking fits everywhere if this was a bug, so it's something on your system.

Sorry, I misread your initial post and assumed this was systemd related, the post I linked is useless for this issue.
Back to top
View user's profile Send private message
salfter
n00b
n00b


Joined: 02 Jan 2003
Posts: 40

PostPosted: Wed Dec 20, 2017 3:21 am    Post subject: Reply with quote

The Doctor wrote:
salfter wrote:
davidm wrote:
Maybe this is a stupid question but are you running systemd on that install?


Nope. One of the reasons (among others) that I've stayed with Gentoo is that it makes it easy to avoid that dumpster fire.
Something is off. You must have systemd (or another init system) installed. Remove it and openRC will be selected by default.


equery list \* | grep systemd returns nothing, as I would expect. systemd is not on this box.

ian.au wrote:
I've only seen openrc --depcleaned on systemd desktops, and even then portage made a lot of noise about removing an @system package.

I haven't seen any attempt to --depclean openrc on an openrc system. There would be users chucking fits everywhere if this was a bug, so it's something on your system.


It's a good thing I didn't have to reboot this VPS while openrc was missing. Portage does bitch about how "openrc is part of your system profile," and equery depends openrc returns net-misc/netifrc and virtual/service-manager.

Looking at the virtual/service-manager ebuild, it appears it can be satisfied by not just openrc or systemd, but also runit and daemontools. I do have daemontools installed; it's pulled in by djbdns. I've had djbdns (and daemontools) on this VPS ever since I set it up however many years ago (first entry in emerge.log is datestamped 18 April 2014), but as near as I can tell, it looks like openrc was unmerged about two weeks ago. The last change to virtual/service-manager was back in February, so that isn't it.

I had djbdns installed because I was serving up DNS records for my domains, but I've migrated that service to DirectNIC. I've uninstalled djbdns. emerge -a --depclean now wants to remove daemontools and is finally leaving openrc alone. If I bring back djbdns and then emerge -a --depclean, it wants to remove net-misc/netifrc, sys-apps/openrc, sys-apps/sysvinit, virtual/tmpfiles, and sys-apps/opentmpfiles.
Back to top
View user's profile Send private message
Tony0945
Advocate
Advocate


Joined: 25 Jul 2006
Posts: 2457
Location: Illinois, USA

PostPosted: Wed Dec 20, 2017 3:38 am    Post subject: Reply with quote

emerge --noreplace openrc

https://dev.gentoo.org/~zmedico/portage/doc/man/emerge.1.html

Because you have another manager the virtual deems openrc redundant. The above command will put openrc in the world file without re-emerging it or doing a risky edit.
Back to top
View user's profile Send private message
gordonp
Tux's lil' helper
Tux's lil' helper


Joined: 23 May 2005
Posts: 83

PostPosted: Fri Jan 05, 2018 11:07 pm    Post subject: Reply with quote

The Doctor wrote:

Something is off. You must have systemd (or another init system) installed. Remove it and openRC will be selected by default.



I too am in the same boat now as @salfter: I have a kvm/QEMU host which is purely OPENRC with these installed packages:
Code:
sys-apps/openrc-0.34.11::gentoo
sys-apps/sysvinit-2.88-r9::gentoo


And 'depclean' now wants to remove:
Code:
!!! 'sys-apps/openrc' (virtual/service-manager) is part of your system profile.
!!! Unmerging it may be damaging to your system.


 sys-apps/openrc
    selected: 0.34.11
   protected: none
     omitted: none

 virtual/tmpfiles
    selected: 0
   protected: none
     omitted: none

 sys-apps/sysvinit
    selected: 2.88-r9
   protected: none
     omitted: none

 sys-apps/opentmpfiles
    selected: 0.1.3
   protected: none
     omitted: none


WTF?!?!?! I don't know what to do with VIRTUAL Paperweights, when all my KVM guests would be taken off-line :-O

This showed up after a downgrade from kernel-4.12.12 to 4.9.72-gentoo ("stable" changed, and this is a production system that I need to keep stable... 4.12.12 brought a few weeks of horrible head-scratching weirdness, but it was after profile-changes, GCC-changes, etc. making the introduction of funkiness hard to pin down. With all these changes, again on dozens of production servers, December was the month of pogo-servers being rebooted every few hours to effect new kernel-changes :cry: ).

Here's my fairly-short world file:
Code:
# cat /var/lib/portage/world
app-admin/denyhosts
app-admin/logrotate
app-admin/sudo
app-admin/syslog-ng
app-admin/tripwire
app-backup/amanda
app-editors/emacs
app-editors/nano
app-editors/vim
app-emulation/libvirt
app-emulation/qemu
app-emulation/virt-manager
app-misc/screen
app-portage/gentoolkit
media-gfx/imagemagick
net-analyzer/nagios-plugins
net-analyzer/nrpe
net-dialup/minicom
net-firewall/iptables
net-misc/bridge-utils
net-misc/ifenslave
net-misc/ntp
net-misc/openssh
sys-apps/ethtool
sys-apps/lm_sensors
sys-apps/logwatch
sys-apps/lshw
sys-apps/mlocate
sys-apps/pciutils
sys-apps/portage
sys-apps/smartmontools
sys-apps/xinetd
sys-block/megacli
sys-boot/grub
sys-devel/binutils
sys-devel/binutils-config
sys-devel/gcc
sys-devel/gcc-config
sys-fs/lsscsi
sys-fs/xfsprogs
sys-kernel/genkernel
sys-kernel/gentoo-sources
sys-libs/glibc
sys-libs/gpm
sys-process/htop
sys-process/iotop
sys-process/supervise-scripts
sys-process/vixie-cron
virtual/os-headers
www-client/links


Since this is one of dozens of production systems: what do I do?
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 6241
Location: Austria

PostPosted: Fri Jan 05, 2018 11:28 pm    Post subject: Reply with quote

You don't have USE=prefix enabled, by chance?

Because the virtual/service-manager ebuild
Code:
   prefix? ( >=sys-apps/baselayout-prefix-2.2 )
   !prefix? (
      || (
      sys-apps/openrc
      kernel_linux? ( || (
         sys-apps/systemd
         sys-process/runit
         virtual/daemontools
   ) ) ) )

should make portage always prefer openrc over systemd. Did you already check that sys-apps/systemd is *not* installed? (the world is not enough)
_________________
backend.cpp:92:2: warning: #warning TODO - this error message is about as useful as a cooling unit in the arctic
Back to top
View user's profile Send private message
gordonp
Tux's lil' helper
Tux's lil' helper


Joined: 23 May 2005
Posts: 83

PostPosted: Fri Jan 05, 2018 11:35 pm    Post subject: Reply with quote

asturm wrote:
You don't have USE=prefix enabled, by chance?


Here are my three USE-flags, as they appear in make.conf:
Code:
USE="qemu xfs -X"


emerge --info shows all the USE-flags, besides the three I set:
Code:
USE="acl amd64 bzip2 crypt cxx hardened iconv ipv6 multilib ncurses nls nptl openmp pam pcre pie qemu readline seccomp ssl ssp unicode xattr xfs xtpax zlib"


And no, there is no systemd; I am 100% certain of that!!
Code:
# emerge -pv systemd

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N     ] app-arch/lz4-1.8.0:0/r131::gentoo  USE="-static-libs" ABI_X86="(64) -32 (-x32)" 218 KiB
[ebuild  N     ] sys-apps/systemd-233-r6:0/2::gentoo  USE="acl gcrypt kmod lz4 pam seccomp ssl (-apparmor) -audit -build -cryptsetup -curl -doc -elfutils -gnuefi -http -idn -importd -lzma -nat -policykit -qrcode (-selinux) -sysv-utils {-test} -vanilla -xkb" ABI_X86="(64) -32 (-x32)" 43 KiB
[ebuild  N     ] sys-apps/gentoo-systemd-integration-7::gentoo  63 KiB
[ebuild   R    ] sys-apps/dbus-1.10.18::gentoo  USE="systemd* -X -debug -doc (-elogind) (-selinux) -static-libs {-test} -user-session" ABI_X86="(64) -32 (-x32)" 0 KiB
[blocks B      ] sys-fs/udev ("sys-fs/udev" is blocking sys-apps/gentoo-systemd-integration-7, sys-apps/systemd-233-r6)
[blocks B      ] sys-apps/systemd ("sys-apps/systemd" is blocking sys-fs/udev-233)
[blocks B      ] sys-apps/gentoo-systemd-integration ("sys-apps/gentoo-systemd-integration" is blocking sys-fs/udev-233)


For completeness, here is my entire 'emerge --info' output:
Code:
# emerge --info
Portage 2.3.13 (python 3.5.4-final-0, default/linux/amd64/17.0/hardened, gcc-6.4.0, glibc-2.25-r9, 4.9.72-gentoo x86_64)
=================================================================
System uname: Linux-4.9.72-gentoo-x86_64-Intel-R-_Xeon-R-_CPU_E5-2680_v2_@_2.80GHz-with-gentoo-2.4.1
KiB Mem:   131858616 total, 122456352 free
KiB Swap:   49151996 total,  49151996 free
Timestamp of repository gentoo: Fri, 05 Jan 2018 21:45:01 +0000
Head commit of repository gentoo: cfe6316c2530c1534fb94e315eb1ccc102eae7e5
sh bash 4.4_p12
ld GNU ld (Gentoo 2.29.1 p3) 2.29.1
app-shells/bash:          4.4_p12::gentoo
dev-lang/perl:            5.24.3::gentoo
dev-lang/python:          2.7.14-r1::gentoo, 3.5.4-r1::gentoo
dev-util/cmake:           3.9.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.34.11::gentoo
sys-apps/sandbox:         2.10-r4::gentoo
sys-devel/autoconf:       2.69-r4::gentoo
sys-devel/automake:       1.15.1-r1::gentoo
sys-devel/binutils:       2.29.1-r1::gentoo
sys-devel/gcc:            6.4.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.25-r9::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://musashi.iat.sfu.ca/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts:

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 0

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
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"
CXXFLAGS="-march=core2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict 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="rsync://musashi.iat.sfu.ca/gentoo http://gentoo.osuosl.org http://gentoo.arcticnetworks.ca"
LANG="en_CA.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j41"
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 --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="acl amd64 bzip2 crypt cxx hardened iconv ipv6 multilib ncurses nls nptl openmp pam pcre pie qemu readline seccomp ssl ssp unicode xattr xfs xtpax zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5" QEMU_SOFTMMU_TARGETS="x86_64" QEMU_USER_TARGETS="x86_64" RUBY_TARGETS="ruby22" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" 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:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Back to top
View user's profile Send private message
gordonp
Tux's lil' helper
Tux's lil' helper


Joined: 23 May 2005
Posts: 83

PostPosted: Sat Jan 06, 2018 12:18 am    Post subject: Reply with quote

Python is implicated.

Before:

Code:
# eselect python list
Available Python interpreters, in order of preference:
  [1]   python3.4
  [2]   python3.5 (fallback)
  [3]   python2.7 (fallback)


and with this configuration, depclean wants to remove OpenRC! I don't recall ever messing with this file before, but I may have (sometimes 'fail2ban' or 'denyhosts' get fussy and crash...?).

I made one single edit, by adding this line to the bottom of /etc/python-exec/python-exec.conf:
Code:
python2.7



After:

Code:
# eselect python list
Available Python interpreters, in order of preference:
  [1]   python3.4
  [2]   python2.7
  [3]   python3.5 (fallback)



VOILA! I now get rational behaviour from my system! 'depclean' is no longer harassing OpenRC!
Back to top
View user's profile Send private message
AndCycle
n00b
n00b


Joined: 05 Jun 2004
Posts: 16

PostPosted: Fri May 25, 2018 9:00 pm    Post subject: Reply with quote

just hit this and fixed by make python2.7 as preferred interpreter, is there anything wrong if I prefer 3.6?

what the hell is going on here I wonder ...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum