OpenPKG CVS Repository http://cvs.openpkg.org/ ____________________________________________________________________________
Server: cvs.openpkg.org Name: Thomas Lotterer Root: /e/openpkg/cvs Email: [EMAIL PROTECTED] Module: openpkg-re Date: 13-Mar-2004 22:42:17 Branch: HEAD Handle: 2004031321421600 Modified files: openpkg-re upgrade.txt Log: improve dependency query and document its limitations (feedback from Johann Gutauer) Summary: Revision Changes Path 1.38 +12 -3 openpkg-re/upgrade.txt ____________________________________________________________________________ patch -p0 <<'@@ .' Index: openpkg-re/upgrade.txt ============================================================================ $ cvs diff -u -r1.37 -r1.38 upgrade.txt --- openpkg-re/upgrade.txt 13 Mar 2004 21:30:05 -0000 1.37 +++ openpkg-re/upgrade.txt 13 Mar 2004 21:42:16 -0000 1.38 @@ -2,7 +2,7 @@ General Notes ============= - o $Revision: 1.37 $. The most recent update of this file can be + o $Revision: 1.38 $. The most recent update of this file can be downloaded from http://cvs.openpkg.org/openpkg-re/upgrade.txt o This file upgrade.txt file talks about tweaks and quirks when @@ -391,9 +391,18 @@ Then continue with packages that only require the ones you already upgraded. Repeat this until every package is upgraded. - View dependencies: + To view dependencies the following query might help. It is a + incomplete solution because it can only query install dependencies + of installed packages but upgrade also has to take build + dependencies into account which might be different and reach out to + uninstalled packages. A typical upgrade starts with make, binutils + and gcc in that order. + $ %{l_prefix}/bin/openpkg rpm -qa --queryformat '%{name} requires:[ %{REQUIRENAME}]\n' \ - | sed -e 's;[Oo]pen[Pp][Kk][Gg] *;;g' -e 's; [^ ]*([^)]*);;g' + | sed -e 's;rpmlib(VersionedDependencies) *;;' \ + -e 's;OpenPKG *;;' \ + -e 's;: openpkg *;: ;' \ + -e 's; [^ ]*([^)]*);;g' Be sure you use the new options names when rebuilding. Note that packages where version numbering changed might require a @@ . ______________________________________________________________________ The OpenPKG Project www.openpkg.org CVS Repository Commit List [EMAIL PROTECTED]