Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1722414 - libzypp-17.12.0-3.fc31 FTBFS with rpm-4.15: error: ‘VERIFY_DIGEST’ was not declared in this scope
Summary: libzypp-17.12.0-3.fc31 FTBFS with rpm-4.15: error: ‘VERIFY_DIGEST’ was not de...
Keywords:
Status: CLOSED DUPLICATE of bug 1736067
Alias: None
Product: Fedora
Classification: Fedora
Component: libzypp
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Neal Gompa
QA Contact: Fedora Extras Quality Assurance
URL: https://apps.fedoraproject.org/kosche...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-06-20 10:03 UTC by Petr Pisar
Modified: 2019-08-08 11:51 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-08-08 11:51:37 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Petr Pisar 2019-06-20 10:03:34 UTC
libzypp-17.12.0-3.fc31 fails to build in F31:

cd /home/test/fedora/libzypp/libzypp-17.12.0/x86_64-redhat-linux-gnu/zypp && /usr/bin/c++  -DHAVE_PIPE2 -DHAVE_UDEV -DLOCALEDIR=\"/usr/share/locale\" -DTEXTDOMAIN=\"zypp\" -DVERSION=\"17.12.0\" -DWITH_LIBPROXY_SUPPORT -DZYPP_DLL -D_FILE_OFFSET_BITS=64 -Dzypp_EXPORTS -I/home/test/fedora/libzypp/libzypp-17.12.0 -I/home/test/fedora/libzypp/libzypp-17.12.0/x86_64-redhat-linux-gnu -I/usr/include/rpm -I/usr/include/libxml2 -I/home/test/fedora/libzypp/libzypp-17.12.0/x86_64-redhat-linux-gnu/zypp  -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-strict-aliasing -fPIC -g -rdynamic -Wall -Wl,-as-needed -Wp,-D_GLIBCXX_ASSERTIONS -fvisibility-inlines-hidden -Woverloaded-virtual -Wnon-virtual-dtor -Werror=format-security -O2 -g -DNDEBUG -fPIC   -DZYPP_BASE_LOGGER_LOGGROUP=\"zypp\" -o CMakeFiles/zypp.dir/target/rpm/RpmDb.cc.o -c /home/test/fedora/libzypp/libzypp-17.12.0/zypp/target/rpm/RpmDb.cc
/home/test/fedora/libzypp/libzypp-17.12.0/zypp/target/rpm/RpmDb.cc:235:2: warning: #warning Check for obsolete memebers [-Wcpp]
  235 | #warning Check for obsolete memebers
      |  ^~~~~~~
/home/test/fedora/libzypp/libzypp-17.12.0/zypp/target/rpm/RpmDb.cc:411:2: warning: #warning CHECK: notify root about conversion backup. [-Wcpp]
  411 | #warning CHECK: notify root about conversion backup.
      |  ^~~~~~~
/home/test/fedora/libzypp/libzypp-17.12.0/zypp/target/rpm/RpmDb.cc:667:2: warning: #warning CHECK: compare vs existing v3 backup. notify root [-Wcpp]
  667 | #warning CHECK: compare vs existing v3 backup. notify root
      |  ^~~~~~~
/home/test/fedora/libzypp/libzypp-17.12.0/zypp/target/rpm/RpmDb.cc: In function ‘zypp::target::rpm::RpmDb::CheckPackageResult zypp::target::rpm::{anonymous}::doCheckPackageSig(const zypp::filesystem::Pathname&, const zypp::filesystem::Pathname&, bool, zypp::target::rpm::RpmDb::CheckPackageDetail&)’:
/home/test/fedora/libzypp/libzypp-17.12.0/zypp/target/rpm/RpmDb.cc:1562:22: error: ‘VERIFY_DIGEST’ was not declared in this scope; did you mean ‘VERIFY_FILES’?
 1562 |     qva.qva_flags = (VERIFY_DIGEST|VERIFY_SIGNATURE);
      |                      ^~~~~~~~~~~~~
      |                      VERIFY_FILES
/home/test/fedora/libzypp/libzypp-17.12.0/zypp/target/rpm/RpmDb.cc:1562:36: error: ‘VERIFY_SIGNATURE’ was not declared in this scope
 1562 |     qva.qva_flags = (VERIFY_DIGEST|VERIFY_SIGNATURE);
      |                                    ^~~~~~~~~~~~~~~~

This seems to be triggered by upgrading rpm from 4.14.2.1-10.fc31
to 4.14.90-0.git14653.15...

From rpm changelog:

commit 58d9a792335f9ebdf7297cfd7ad57a493bc68ea5
Author: Panu Matilainen <pmatilai>
Date:   Mon Nov 13 16:07:22 2017 +0200

    Eliminate useless VERIFY_DIGEST and VERIFY_SIGNATURE constants from python
    
    AFAICS there are no python interfaces where those two values would be
    useful, as rpmcliVerify() and rpmcliQuery() are not exported to python.
    The relevant constants are the _RPMVSF_NODIGEST/NOSIGNATURES.

commit 80f8d6376066a3e2e303965d7f0e462d0f2bb8bb
Author: Panu Matilainen <pmatilai>
Date:   Tue Nov 14 11:03:04 2017 +0200

    Split cli verification flags out of qva_flags
    
    These are common in all cli operation, hiding them in "query flags" under
    yet another (or actually two, QUERY_DIGEST / VERIFY_DIGEST etc) different
    names and then translating back to internal vsflags everywhere doesn't
    make anybody's life easier. No functional changes from cli point of view,
    any theoretical API users will need changes of course.

Comment 1 Lukas Slebodnik 2019-08-08 11:51:37 UTC

*** This bug has been marked as a duplicate of bug 1736067 ***


Note You need to log in before you can comment on or make changes to this bug.