Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Oct 2014 20:42:24 +0000
From:      bugzilla-noreply@freebsd.org
To:        pkg@FreeBSD.org
Subject:   [Bug 193016] pkg upgrade does not use latest version from repo
Message-ID:  <bug-193016-32340-hJ2qFLYhiZ@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-193016-32340@https.bugs.freebsd.org/bugzilla/>
References:  <bug-193016-32340@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D193016

Kalten <kalten@gmx.at> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kalten@gmx.at

--- Comment #2 from Kalten <kalten@gmx.at> ---
Still not solved.

=C2=BBpkg -v=C2=AB tells me =C2=BB1.3.8=C2=AB.

I have created packages using ports-mgmt/poudriere.
As I have updated the ports tree inside poudriere and recompiled newer ports
multiple times, I have ended up with multiple versions of many many package=
s:
e.g. www/firefox. (Deleting the whole directory and recompiling all takes my
poor computer about three days=E2=80=94that is why I do not prefere this wa=
y)

=C2=BBsqlite3 /var/db/pkg/repo-freeHeimdall.sqlite "select * from pkg_searc=
h"| \
  grep firefox=C2=AB
leads to:
----8<----
972|firefox-31.0,1|www/firefox
2319|firefox-32.0_2,1|www/firefox
2920|firefox-32.0.3,1|www/firefox
2921|firefox-32.0_2,1|www/firefox
4056|firefox-32.0.3,1|www/firefox
4567|firefox-33.0,1|www/firefox
4568|firefox-32.0.3,1|www/firefox
4663|firefox-33.0,1|www/firefox
4664|firefox-32.0.3,1|www/firefox
---->8----

=C2=BBpkg rquery "%n %v" firefox=C2=AB results in =C2=BBfirefox 32.0.3,1=C2=
=AB

and
=C2=BBpkg version -e firefox=C2=AB in
----8<----
firefox-32.0.3,1                   <
---->8----
so pkg seems to notice that firefox has to be updated (right?).

But running =C2=BBpkg upgrade=C2=AB results in:
----8<----
Updating freeHeimdall repository catalogue...
freeHeimdall repository is up-to-date.
All repositories are up-to-date.
Checking for upgrades (3 candidates): 100%
Checking integrity... done (0 conflicting)
Your packages are up to date.
---->8----
And I have no idea which the three mentioned candidates are especially as
=C2=BBpkg version | grep -v "  *=3D"|wc -l=C2=AB tells me, that 35 packages=
 have to be
updated, not three.

Please do correct this problem!  Deleting all packages and installing again=
 is
one solution, but not the best one. (And I suppose that would not solves the
problem).
Deleting all packages in poudriere each time and copying all generated pack=
ages
to the server (instead of the new ones) is not very preferable either.
I could write a script to search for such cases=E2=80=94but than again ther=
e might be
cases of packages e.g fubar-1 and fubar-2 that match two different ports and
should remain both (yes, one could check for that too).
I think the problem ought to be handled by pkg; blaming some server
adinistrators copying multiple versions to one directory must not be the
solution.

Regards,
 Kalten

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-193016-32340-hJ2qFLYhiZ>