[Bug 252283] security/gpgme

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Dec 30 14:03:03 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=252283

            Bug ID: 252283
           Summary: security/gpgme
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: jhale at FreeBSD.org
          Reporter: adridg at freebsd.org
          Assignee: jhale at FreeBSD.org
             Flags: maintainer-feedback?(jhale at FreeBSD.org)

Created attachment 221102
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=221102&action=edit
Fix constness

The 1.15.0 release of gpgme-cpp adds a `Signature::operator<` which is missing
a const. In 6a6d2a27648, Signature got an operator< . This is used in
*security/libkleo*, for instance, to sort the signatures for display.

The build failure looks like this (trimmed for brevity, on 13-):


===
/usr/include/c++/v1/algorithm:715:71: error: invalid operands to binary 
expression ('const GpgME::UserID::Signature' and 'const 
GpgME::UserID::Signature')
    bool operator()(const _T1& __x, const _T1& __y) const {return __x < __y;}

/wrkdirs/usr/ports/security/libkleo/work/libkleo-20.12.0/src/models/
useridlistmodel.cpp:203:14: note: in instantiation of function template 
specialization 'std::__1::sort<GpgME::UserID::Signature>' requested here
        std::sort(sigs.begin(), sigs.end());
===

The attached patch has been submitted upstream as well.

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


More information about the freebsd-ports-bugs mailing list