[pacman-dev] required by relation
Hi, All! I wrote in the arch mailing list about problem with versioned libs such as openssl and db. When I update such lib I should update all packages that depends on it, but pacman can not give me list of such packages. I see I can write trivial one line script or use gtkpacman or update whole system, but I think it is wrong when "pacman -Sy openssl db" breaks system. What do you think about it? (May be it is feature request...)
On Thu, Aug 03, 2006 at 02:06:33PM +0400, Sergej Pupykin <ps@lx-ltd.ru> wrote:
I see I can write trivial one line script or use gtkpacman or update whole system, but I think it is wrong when "pacman -Sy openssl db" breaks system.
before the upgrade you can't run ldd or other tools to determine if there will be problems or not. so what pacman could do is to check the system after an upgrade and print out what's broken, so that you'll know right after the upgrade, not when you want to start a particular application but still, that "trivial oneliner" would be interesting, for example it's normal that ldd reports several apps as broken as long as they have a wrapper script to set LD_LIBRARY_PATH, and of course it's not allowed to hardwirte them in a oneliner.. :) udv / greetings, VMiklos -- Developer of Frugalware Linux, to make things frugal - http://frugalware.org
V> before the upgrade you can't run ldd or other tools to determine if V> there will be problems or not. so what pacman could do is to check the V> system after an upgrade and print out what's broken, so that you'll know V> right after the upgrade, not when you want to start a particular V> application V> but still, that "trivial oneliner" would be interesting, for example V> it's normal that ldd reports several apps as broken as long as they have V> a wrapper script to set LD_LIBRARY_PATH, and of course it's not allowed V> to hardwirte them in a oneliner.. :) I mean following: I know that openssl is "versioned lib" and all apps linked with libopenssl.so.0.9.7 for example. I do pacman -Sy --update-pkgs-which-depends-on openssl. Pacman watch into its database and find all packages that depends on openssl and ask me to update for example. No ldd or other required. Only pacman and its db.
On Thu, Aug 03, 2006 at 03:24:03PM +0400, Sergej Pupykin <ps@lx-ltd.ru> wrote:
I know that openssl is "versioned lib" and all apps linked with libopenssl.so.0.9.7 for example.
I do pacman -Sy --update-pkgs-which-depends-on openssl.
Pacman watch into its database and find all packages that depends on openssl and ask me to update for example.
No ldd or other required. Only pacman and its db.
hm, what about pacman -Qi openssl and watching the "Required By" line? udv / greetings, VMiklos -- Developer of Frugalware Linux, to make things frugal - http://frugalware.org
V> hm, what about pacman -Qi openssl and watching the "Required By" line? It was a "one line trivial script" :) pacman -Qi | grep ... | ... | xargs ... pacman -Sy ... But on second level (can it be at all?) "required by required by" will be annoying...
On Thu, Aug 03, 2006 at 03:51:25PM +0400, Sergej Pupykin <ps@lx-ltd.ru> wrote:
It was a "one line trivial script" :) pacman -Qi | grep ... | ... | xargs ... pacman -Sy ...
But on second level (can it be at all?) "required by required by" will be annoying...
1) as long as the dependencies are correct, you can't upgrade just openssl, since the old packages depend on the old openssl version 2) -Syu will do all the work for you, so why not using it? udv / greetings, VMiklos -- Developer of Frugalware Linux, to make things frugal - http://frugalware.org
V> 1) as long as the dependencies are correct, you can't upgrade just V> openssl, since the old packages depend on the old openssl version Does it mean that in all pkgs that depends on openssl must be versioned dep. depends=('openssl==0.9.8')? If pkg depends properly will "pacman -S" upgrade package that depends on openssl=0.9.7 to package that depends on openssl=0.9.8? V> 2) -Syu will do all the work for you, so why not using it? -u upgrades all packages. I want only openssl and pkgs that depends on it.
On Thu, Aug 03, 2006 at 04:46:18PM +0400, Sergej Pupykin <ps@lx-ltd.ru> wrote:
Does it mean that in all pkgs that depends on openssl must be versioned dep. depends=('openssl==0.9.8')? If pkg depends properly will "pacman -S" upgrade package that depends on openssl=0.9.7 to package that depends on openssl=0.9.8?
depends=('openssl=0.9.8'), not depends=('openssl==0.9.8'), but yes
V> 2) -Syu will do all the work for you, so why not using it?
-u upgrades all packages. I want only openssl and pkgs that depends on it.
that would be a nice feature (add the necessary packages to the target list instead of bailing out with an error) udv / greetings, VMiklos -- Developer of Frugalware Linux, to make things frugal - http://frugalware.org
V> 2) -Syu will do all the work for you, so why not using it?
-u upgrades all packages. I want only openssl and pkgs that depends on it.
V> that would be a nice feature (add the necessary packages to the target V> list instead of bailing out with an error) I break mostly whole my system with only one command that give me no error pacman -Sy openssl db :) It seems arch pkgbuilds need to be reviewed for proper dependencies...
V>> that would be a nice feature (add the necessary packages to the target V>> list instead of bailing out with an error) BTW, where can I add feature request for pacman? :$
On Thu, Aug 03, 2006 at 08:51:26PM +0400, Sergej Pupykin <ps@lx-ltd.ru> wrote:
BTW, where can I add feature request for pacman? :$
choose who should implement it, if the Arch guys then use their bugtracker, if we, then use http://bugs.frugalware.org/ udv / greetings, VMiklos -- Developer of Frugalware Linux, to make things frugal - http://frugalware.org
participants (2)
-
Sergej Pupykin
-
VMiklos