Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
In C++11 the shared_ptr -> bool conversion is explicit. In custom time zone code, make the cast explicit. Fixes compilation failure in C++11
Please see patch and either upstream as boost 1.53-(release+1) or include 1.54 in next el7 release:
https://www.boost.org/patches/1_54_0/002-date-time.patch
Version-Release number of selected component (if applicable):
boost-1.53.0-27
How reproducible:
very
Steps to Reproduce:
NOTE: building gnucash on el7 requires EPEL---but the bug is not from EPEL, it is in the base `boost` library.
1. download https://download.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/source/tree/Packages/g/gnucash-3.3-1.fc30.src.rpm
2. yum install epel-release
3. yum build-dep gnucash-3.3-1.fc30.src.rpm
4. yum install boost-devel libsoup-devel
5. rpmbuild -bb <attached gnucash.spec>
#^^ the attached spec was modified slightly to build on el7
Actual results:
/usr/include/boost/date_time/local_time/custom_time_zone.hpp: In instantiation of ‘bool boost::local_time::custom_time_zone_base<CharT>::has_dst() const [with CharT = char]’:
/root/rpmbuild/BUILD/gnucash-3.3/libgnucash/engine/gnc-timezone.cpp:756:1: required from here
/usr/include/boost/date_time/local_time/custom_time_zone.hpp:67:30: error: cannot convert ‘const boost::shared_ptr<boost::date_time::dst_day_calc_rule<boost::gregorian::date> >’ to ‘bool’ in return
return (dst_calc_rules_); //if calc_rule is set the tz has dst
Expected results:
It should compile ;)
This wasn't high enough priority to make the cut-off for fixes in rhel-7.7, so I'm moving it out to rhel-7.8 now.
I hope the fact it is blocking a downstream EPEL package (and is a really trivial fix with a patch available) will mean it makes the list for rhel-7.8
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://access.redhat.com/errata/RHBA-2020:1072