Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 257671 - sys-libs/glibc: change dependency on portage into blocker
Summary: sys-libs/glibc: change dependency on portage into blocker
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High minor
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-04 21:13 UTC by Dirk Heinrichs
Modified: 2010-05-20 18:16 UTC (History)
10 users (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 Dirk Heinrichs 2009-02-04 21:13:53 UTC
I've never seen a distribution where the C lib depends on the package manager. Why is this the case in Gentoo? Makes it impossible to uninstall portage. It should at least be a virtual.

Reproducible: Always

Steps to Reproduce:
Comment 1 Patrick Lauer gentoo-dev 2009-02-05 07:06:16 UTC
It just depends on a new enough version of portage because there's a bug in older versions. And why would you want to uninstall your package manager anyway? ;)
Comment 2 Dirk Heinrichs 2009-02-05 17:42:44 UTC
I don't want to uninstall _my_ package manager. I want to uninstall _one_ package manager. I only want to keed the one I actaully use.
Comment 3 Dirk Heinrichs 2009-02-05 18:03:10 UTC
Just thought about this: latest stable version of glibc depends on >=portage-2.1.2 and glibc is one of the most fundamental packages on a Linux box. That means that it is not possible to install to install <portage-2.1.2 on any Gentoo system. So thos versions of portage can be removed from the tree which would in turn make the dependency useless. Or am I wrong here?
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2009-02-05 22:09:50 UTC
Using sys-apps/portage, you would simply do `echo sys-apps/portage >> /etc/portage/profile/package.provided'.
Comment 5 Ryan Hill (RETIRED) gentoo-dev 2009-02-06 21:36:06 UTC
i wouldn't recommend uninstalling portage on any system, no matter what pm you use.
Comment 6 Dirk Heinrichs 2009-02-06 21:43:33 UTC
(In reply to comment #5)
> i wouldn't recommend uninstalling portage on any system, no matter what pm you
> use.
> 

I didn't use it for months. I don't need it anymore. Isn't that a fundamental part of Gentoo, to install only what you need?
Comment 7 Jan Oravec 2009-02-17 17:39:55 UTC
The case is, it doesn't work with old portage, not that it needs new portage.

I think the dependency should be changed from ">=sys-apps/portage-2.1.2" to "!<sys-apps/portage-2.1.2".
Comment 8 Dirk Heinrichs 2009-02-17 17:56:47 UTC
(In reply to comment #7)
> The case is, it doesn't work with old portage, not that it needs new portage.

That doesn't matter. Let me repeat: If the most basic library of a Linux system can't be installed with a certain version of the package manager, that version is completely useless and can be removed from the tree. Once all versions that can't install glibc properly have been removed, the dependency is also useless and can be removed from glibc's ebuild.
Comment 9 SpanKY gentoo-dev 2009-02-17 18:07:42 UTC
umm, no.  people upgrade from old systems all the time.  there are plenty of depends in the tree that are against versions of packages no longer in the tree because people still have those versions installed.
Comment 10 Chad Sprouse 2009-03-21 17:33:05 UTC
(In reply to comment #7)
> The case is, it doesn't work with old portage, not that it needs new portage.
> 
> I think the dependency should be changed from ">=sys-apps/portage-2.1.2" to
> "!<sys-apps/portage-2.1.2".
> 

This seems like a good solution if it means that you would then be able to uninstall portage without causing a dependency problem for glibc.  It would be nice if Gentoo was agnostic to the package manager being used.
Comment 11 MageSlayer 2009-03-23 20:07:42 UTC
Guys, I think Dirk Heinrichs is right.
It's kind of strange to have dependency on package manager in packages themselves. We have Paludis for Gentoo which is also a package manager :). 
Comment 12 Nikolaj Šujskij 2009-03-25 11:51:03 UTC
> I think the dependency should be changed from ">=sys-apps/portage-2.1.2" to
> "!<sys-apps/portage-2.1.2".

I don't use Paludis, but I think Jan's suggestion should satisfy everyone.
Comment 13 John R. Graham gentoo-dev 2009-04-23 17:18:24 UTC
(In reply to comment #7)
> I think the dependency should be changed from ">=sys-apps/portage-2.1.2" to
> "!<sys-apps/portage-2.1.2".
> 

Are these not fully equivalent in effect?
Comment 14 Sterling Christensen 2009-06-30 07:42:20 UTC
(In reply to comment #13)
> (In reply to comment #7)
> > I think the dependency should be changed from ">=sys-apps/portage-2.1.2" to
> > "!<sys-apps/portage-2.1.2".
> > 
> 
> Are these not fully equivalent in effect?
> 

Not exactly. Consider a system where portage is not installed (because some alternative like paludis is in use). >= forces paludis to install portage. !< allows paludis to leave portage uninstalled.
Comment 15 Hongjiu Zhang 2009-07-07 08:35:02 UTC
Completely being ignored?
Comment 16 nico 2009-09-10 18:13:33 UTC
Portage 2.1.2 isn't in the tree anymore, why does glibc still depend on it?
Comment 17 Peter Volkov (RETIRED) gentoo-dev 2009-12-11 14:41:14 UTC
Is there any drawback of solution presented in comment #7? Can we change ">=sys-apps/portage-2.1.2" into "!<sys-apps/portage-2.1.2"? I guess that's what was intended in the first place...
Comment 18 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2010-01-06 02:24:40 UTC
2.0 was removed in Oct 2008.
2.1.1 was removed in Mar 2009.

I saw we convert or remove it. It's been nearly a year since the last non-compliant version was removed. If anybody has an older system, they need other hand-holding to upgrade anyway.

vapier: ping for action.
Comment 19 Dror Levin (RETIRED) gentoo-dev 2010-04-07 22:34:30 UTC
(In reply to comment #18)
> vapier: ping for action.

ping?
Comment 20 Samuli Suominen (RETIRED) gentoo-dev 2010-05-20 18:16:47 UTC
converted to a blocker, with kind permission from Mark.

+  20 May 2010; Samuli Suominen <ssuominen@gentoo.org> glibc-2.5-r4.ebuild,
+  glibc-2.5.1.ebuild, glibc-2.6.1.ebuild, glibc-2.7-r2.ebuild,
+  glibc-2.8_p20080602-r1.ebuild, glibc-2.9_p20081201-r2.ebuild,
+  glibc-2.9_p20081201-r3.ebuild, glibc-2.10.1-r1.ebuild,
+  glibc-2.11-r1.ebuild, glibc-2.11.1.ebuild:
+  Change >=sys-apps/portage-2.1.2 DEPEND to \!<sys-apps/portage-2.1.2 wrt
+  #257671.