Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Portage Wants To Unmerge LVM2?
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
sk3l
Tux's lil' helper
Tux's lil' helper


Joined: 14 Jul 2012
Posts: 78
Location: CT USA

PostPosted: Fri Aug 02, 2013 2:08 pm    Post subject: [SOLVED] Portage Wants To Unmerge LVM2? Reply with quote

I use LVM, and I'm not sure why portage thinks it's OK to remove this package? I just sync'd and emerge @world this morning. LVM2 isn't in my @world set, nor do I believe it should be, as per the wiki. So is there some other dependency that keeps it from being unmerged from my system that has been invalidated? I see that a new version of udisks was merged, and that has a dependency on LVM2, however, that is via the cryptsetup USE flag, which I do not deploy.

Thanks,
-sk3l

Code:

emerge -pv --depclean


Code:

>>> These are the packages that would be unmerged:                                                                                       

 dev-cpp/libcmis
    selected: 0.2.3-r1
   protected: none
     omitted: 0.3.1

 app-text/texi2html
    selected: 5.0-r1
   protected: none
     omitted: none

 dev-games/cegui
    selected: 0.6.2b
   protected: none
     omitted: none

 dev-util/dialog
    selected: 1.2.20121230
   protected: none
     omitted: none

 sys-devel/gcc
    selected: 4.6.3
   protected: none
     omitted: 4.7.3

 sys-fs/cryptsetup
    selected: 1.4.3
   protected: none
     omitted: none

 media-sound/alsa-headers
    selected: 1.0.25
   protected: none
     omitted: none

 dev-perl/Text-Unidecode
    selected: 0.40.0
   protected: none
     omitted: none

 dev-perl/libintl-perl
    selected: 1.200.0
   protected: none
     omitted: none

 dev-perl/Unicode-EastAsianWidth
    selected: 1.320.0
   protected: none
     omitted: none

 sys-fs/lvm2
    selected: 2.02.97-r1
   protected: none
     omitted: none

 sys-block/thin-provisioning-tools
    selected: 0.1.5-r1
   protected: none
     omitted: none

All selected packages: sys-fs/lvm2-2.02.97-r1 app-text/texi2html-5.0-r1 dev-perl/Unicode-EastAsianWidth-1.320.0 dev-perl/libintl-perl-1.200.0 sys-fs/cryptsetup-1.4.3 dev-util/dialog-1.2.20121230 sys-devel/gcc-4.6.3 dev-perl/Text-Unidecode-0.40.0 sys-block/thin-provisioning-tools-0.1.5-r1 dev-cpp/libcmis-0.2.3-r1 media-sound/alsa-headers-1.0.25 dev-games/cegui-0.6.2b

>>> 'Selected' packages are slated for removal.
>>> 'Protected' and 'omitted' packages will not be removed.

Packages installed:   881
Packages in world:    64
Packages in system:   43
Required packages:    869
Number to remove:     12
CHEETAH ~ #


Last edited by sk3l on Sat Aug 03, 2013 10:57 am; edited 1 time in total
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 7048
Location: almost Mile High in the USA

PostPosted: Fri Aug 02, 2013 11:46 pm    Post subject: Reply with quote

I don't seem to have lvm in world either but it seemingly looks like it should, if you are using logical volumes. http://wiki.gentoo.org/wiki/LVM

However it's not unmerging lvm2 for me during depclean because I have several other packages that depend on lvm2 directly though some really needed it for device-mapper... Currently I'm still using udev-204 and sys-fs/lvm2-2.02.97-r1 ... (cryptsetup, libvirt, parted, and udisks are depending on lvm2 - probably only for device-mapper).

Bumping in case someone has some more insight. I think udev should have device-mapper tools but lvm2 should be something else...
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
steveL
Watchman
Watchman


Joined: 13 Sep 2006
Posts: 5153
Location: The Peanut Gallery

PostPosted: Sat Aug 03, 2013 12:50 am    Post subject: Reply with quote

I've always had sys-fs/lvm2 in world, because I know my system needs it.
Back to top
View user's profile Send private message
The Doctor
Moderator
Moderator


Joined: 27 Jul 2010
Posts: 2546

PostPosted: Sat Aug 03, 2013 1:12 am    Post subject: Reply with quote

It would make very little sense for portage to require you to have lvm. So from that angle it makes sense depclean wants to remove it. While it may seem strange to add system tools to your world file, it does make sense. @system includes only what is required for everyone. That means init system, some type of /dev, etc. Not everyone wants or needs lvm, why should it be included? Portage also isn't in the habit of probing your system to see what is needed by not protected from depclean. Programs are like a 3 year old child. You have to tell it exactly what you want otherwise strange things happen.

Just a casual observation, but the type of requiring things "just in case" like putting lvm in system leads to software like systemd or Ubuntu. It has all the features and security holes weather you want them or not.
_________________
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
Goverp
l33t
l33t


Joined: 07 Mar 2007
Posts: 638

PostPosted: Sat Aug 03, 2013 9:25 am    Post subject: Reply with quote

FWIW, I found that udisks was dragging in a selection of tools (cyptsetup, LVM etc) that I wasn't using. (See sys-fs/udisks bloat for details.)

I cured it by changes to USE flags, so maybe there's been a profile change that's done the same. As a result, you'd need to explicitly put these tools into world, assuming nothing else you ran needed them
_________________
Greybeard
Back to top
View user's profile Send private message
sk3l
Tux's lil' helper
Tux's lil' helper


Joined: 14 Jul 2012
Posts: 78
Location: CT USA

PostPosted: Sat Aug 03, 2013 10:54 am    Post subject: Reply with quote

Great points all, you more or less bonked me over the head with the same realization that dawned on me last night.

"Wait a sec, nowhere in the wiki was I instructed to emerge lvm2 with oneshot (-1), so of course it should go in the world set!"

So naturally, adding lvm2 to @world prevents portage from trying to dependency clean it.

However, I am still wondering about a couple of things. Firstly, can't see how I wouldn't have allowed lvm2 to *not* be placed in world when I initially installed, if I was following along with the wiki. I would have explicitly had to exclude it via -1, who knows, maybe I was naive enough to do that when I first started with Gentoo. Also, I have been merrily --depcleaning for some time now with the status quo, and never has lvm2 and its associated dependencies been included in the list of packages to cleanse. I also see cryptsetup, which I don't use, in the --depclean list, and I know that there are interdependcies involving lvm2, udisks, and cryptsetup, so presumably something about that relationship recently changed.

So a few learnings to be gleaned from this for the n00b-ish like myself:

1) always -p (practice) along with --depclean and thoroughly scrutinize everything that will be removed, and try to understand if it is or is not appropriate for your system.
2) Understand that everything emerge'd will implicitly go into @world unless you tell portage not to add it (-1).
3) R(and fully understand!)TFM.
Back to top
View user's profile Send private message
Arkhelion
Apprentice
Apprentice


Joined: 07 Sep 2010
Posts: 151
Location: France

PostPosted: Sat Aug 03, 2013 11:11 am    Post subject: Reply with quote

I personnally keep it outside world but I do have "sys-boot/grub device-mapper" in /etc/portage/package.use that pulls it.
_________________
Arkhelion
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 7048
Location: almost Mile High in the USA

PostPosted: Sun Aug 04, 2013 8:52 pm    Post subject: Reply with quote

There was this other thread about cleaning up packages. Dependencies can change over time - my suggestion is for people to put this in world and not make it into a dependency -

Just in case you miss an inadvertent depclean, you don't want to kill your box. lvm should belong to world if your disks require lvm to access (but if you're using lvm just for device mapper stuff, then don't put it in world).

I don't know why I don't have lvm in world (as I am using LVM on my disks), but it will be there very shortly...
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
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