"!HAVE_STRLCPY" will fail is strlcpy exists

Bug #2036822 reported by Sergio Durigan Junior
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apt-cacher-ng (Debian)
New
Unknown
apt-cacher-ng (Ubuntu)
Fix Released
High
Sergio Durigan Junior

Bug Description

Ubuntu Mantic (current development version) already has glibc 2.38 which
provides its own version of strlcpy. This makes cmake define
HAVE_STRLCPY with an empty value, which in turn causes apt-cacher-ng to
FTBFS due to:

--8<---------------cut here---------------start------------->8---
 /<<PKGBUILDDIR>>/src/meta.h:326:44: error: operator '!' has no right operand
   326 | #if !defined(HAVE_STRLCPY) || !HAVE_STRLCPY
       | ^
--8<---------------cut here---------------end--------------->8---

Tags: ftbfs
Changed in apt-cacher-ng (Debian):
status: Unknown → New
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package apt-cacher-ng - 3.7.4-1ubuntu1

---------------
apt-cacher-ng (3.7.4-1ubuntu1) mantic; urgency=medium

  * d/p/0001-Adjust-HAVE_STRLCPY-macro-check.patch:
    Adjust check of "!HAVE_STRLCPY" for when strlcpy actually
    exists. (LP: #2036822)

 -- Sergio Durigan Junior <email address hidden> Wed, 20 Sep 2023 16:55:51 -0400

Changed in apt-cacher-ng (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.