Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 690446 - emaint -c binhost (sys-apps/portage-2.3.69) reports "not in Packages" when there are multiple builds (binpkg-multi-instance)
Summary: emaint -c binhost (sys-apps/portage-2.3.69) reports "not in Packages" when th...
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 691278
  Show dependency tree
 
Reported: 2019-07-22 17:24 UTC by Daniel M. Weeks
Modified: 2019-11-02 00:33 UTC (History)
0 users

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 Daniel M. Weeks 2019-07-22 17:24:56 UTC
I ran across this when writing some code to check binary packages and a call like "bin_dbapi.cpv_exist" was returning incorrectly. I tried rebuilding the Packages file with `emaint -f binhost` and then checking it with `emaint -c binhost` and also got unexpected results (below). I suspect this problem is not specific to emaint but something deeper.

emaint -c binhost will report a CPV is not in Packages if there are multiple builds of that CPV. Removing and recreating Packages does not fix the problem (emaint -f binhost).

Example snippet from `emaint -c binhost`:
'x11-libs/gdk-pixbuf-2.36.12' is not in Packages
'x11-libs/gdk-pixbuf-2.38.1' is not in Packages
'x11-libs/gdk-pixbuf-2.38.1' is not in Packages
'x11-libs/gdk-pixbuf-2.38.1' is not in Packages

snippet from `grep -B2 'CPV: x11-libs/gdk-pixbuf' Packages`:
BUILD_ID: 2
BUILD_TIME: 1537562359
CPV: x11-libs/gdk-pixbuf-2.36.12
--
BUILD_ID: 1
BUILD_TIME: 1535688480
CPV: x11-libs/gdk-pixbuf-2.36.12
--
BUILD_ID: 3
BUILD_TIME: 1561929334
CPV: x11-libs/gdk-pixbuf-2.38.1
--
BUILD_ID: 2
BUILD_TIME: 1559149464
CPV: x11-libs/gdk-pixbuf-2.38.1
--
BUILD_ID: 4
BUILD_TIME: 1563408413
CPV: x11-libs/gdk-pixbuf-2.38.1
--
BUILD_ID: 1
BUILD_TIME: 1559076893
CPV: x11-libs/gdk-pixbuf-2.38.1

Reproducible: Always
Comment 1 Larry the Git Cow gentoo-dev 2019-07-23 21:23:57 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/portage.git/commit/?id=d107da65c3234b3e73d3ec296a5f843bfde97260

commit d107da65c3234b3e73d3ec296a5f843bfde97260
Author:     Daniel M. Weeks <dan@danweeks.net>
AuthorDate: 2019-07-23 16:53:50 +0000
Commit:     Zac Medico <zmedico@gentoo.org>
CommitDate: 2019-07-23 21:23:09 +0000

    Fix emaint -c binhost support for binpkg-multi-instance
    
    The check function should operate the same way as the fix function when
    using FEATURES=binpkg-multi-instance (using the correct _instance_key)
    otherwise packages will be erroneously reported as missing.
    
    Fixes: 328dd4712f88 ("binpkg-multi-instance 3 of 7")
    Closes: https://github.com/gentoo/portage/pull/439
    Bug: https://bugs.gentoo.org/690446
    Signed-off-by: Daniel M. Weeks <dan@danweeks.net>
    Signed-off-by: Zac Medico <zmedico@gentoo.org>

 lib/portage/emaint/modules/binhost/binhost.py | 15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)
Comment 2 Larry the Git Cow gentoo-dev 2019-08-02 03:46:27 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ea52ac5964e3242159373adf567ff61403b31f96

commit ea52ac5964e3242159373adf567ff61403b31f96
Author:     Zac Medico <zmedico@gentoo.org>
AuthorDate: 2019-08-02 03:41:26 +0000
Commit:     Zac Medico <zmedico@gentoo.org>
CommitDate: 2019-08-02 03:46:19 +0000

    sys-apps/portage: Bump to version 2.3.70
    
     #233589 Support PROPERTIES=live
     #690304 dispatch-conf unicode safety
     #690446 emaint -c binhost support for binpkg-multi-instance
     #690758 network-sandbox support for AI_ADDRCONFIG
    
    Bug: https://bugs.gentoo.org/233589
    Bug: https://bugs.gentoo.org/690304
    Bug: https://bugs.gentoo.org/690446
    Bug: https://bugs.gentoo.org/690758
    Bug: https://bugs.gentoo.org/691278
    Package-Manager: Portage-2.3.70, Repoman-2.3.16
    Signed-off-by: Zac Medico <zmedico@gentoo.org>

 sys-apps/portage/Manifest              |   1 +
 sys-apps/portage/portage-2.3.70.ebuild | 260 +++++++++++++++++++++++++++++++++
 2 files changed, 261 insertions(+)