libnet-cups-perl 0.64-3 FTBFS against libcupsfilters 2

Bug #2044113 reported by Olivier Gayot
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libnet-cups-perl (Ubuntu)
Fix Released
Undecided
Olivier Gayot

Bug Description

The version of libcupsfilters in Ubuntu is ahead of Debian's.

libcupsfilters-dev | 1.28.17-3 | unstable | amd64, arm64, armel, armhf, i386, mips64el, ppc64el, riscv64, s390x
libcupsfilters-dev | 2.0.0-0ubuntu1 | noble | amd64, arm64, armhf, ppc64el, riscv64, s390x

libnet-cups-perl 0.64-3, which was synced from Debian, still uses constant names that are defined in libcupsfilters 1.28 but were renamed in libcupsfilters 2.0.

This makes the build fail with:

const-c.inc:730:20: error: ‘CUPS_IMAGE_RGB’ undeclared (first use in this function); did you mean ‘CF_IMAGE_RGB’?
  730 | *iv_return = CUPS_IMAGE_RGB;
      | ^~~~~~~~~~~~~~
      | CF_IMAGE_RGB
const-c.inc:730:20: note: each undeclared identifier is reported only once for each function it appears in
const-c.inc:889:20: error: ‘CUPS_IMAGE_CMY’ undeclared (first use in this function); did you mean ‘CF_IMAGE_CMY’?
  889 | *iv_return = CUPS_IMAGE_CMY;
      | ^~~~~~~~~~~~~~
      | CF_IMAGE_CMY
const-c.inc: In function ‘constant_15’:
const-c.inc:1029:20: error: ‘CUPS_IMAGE_CMYK’ undeclared (first use in this function); did you mean ‘CF_IMAGE_CMYK’?
 1029 | *iv_return = CUPS_IMAGE_CMYK;
      | ^~~~~~~~~~~~~~~
      | CF_IMAGE_CMYK
const-c.inc: In function ‘constant_16’:
const-c.inc:1176:20: error: ‘CUPS_IMAGE_BLACK’ undeclared (first use in this function); did you mean ‘CF_IMAGE_BLACK’?
 1176 | *iv_return = CUPS_IMAGE_BLACK;
      | ^~~~~~~~~~~~~~~~
      | CF_IMAGE_BLACK
const-c.inc:1233:20: error: ‘CUPS_IMAGE_WHITE’ undeclared (first use in this function); did you mean ‘CF_IMAGE_WHITE’?
 1233 | *iv_return = CUPS_IMAGE_WHITE;
      | ^~~~~~~~~~~~~~~~
      | CF_IMAGE_WHITE
const-c.inc: In function ‘constant_19’:
const-c.inc:1880:20: error: ‘CUPS_IMAGE_RGB_CMYK’ undeclared (first use in this function); did you mean ‘CF_IMAGE_RGB_CMYK’?
 1880 | *iv_return = CUPS_IMAGE_RGB_CMYK;
      | ^~~~~~~~~~~~~~~~~~~
      | CF_IMAGE_RGB_CMYK

Olivier Gayot (ogayot)
Changed in libnet-cups-perl (Ubuntu):
assignee: nobody → Olivier Gayot (ogayot)
status: New → In Progress
Revision history for this message
Olivier Gayot (ogayot) wrote (last edit ):

Uploading .debdiff fixing the build.

Package is uploaded to PPA ogayot/noble-proposed
Green build: https://launchpad.net/~ogayot/+archive/ubuntu/noble-proposed/+build/27010765

Changed in libnet-cups-perl (Ubuntu):
status: In Progress → New
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

debdiff looks correct for me. I have uploaded your package now. Thanks a lot for the fix.

Please contact upstream/file an issue there so that they add support for libcupsfilters 2.x.

Changed in libnet-cups-perl (Ubuntu):
status: New → Fix Committed
Revision history for this message
Olivier Gayot (ogayot) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package libnet-cups-perl - 0.64-3ubuntu1

---------------
libnet-cups-perl (0.64-3ubuntu1) noble; urgency=medium

  * Patch source to build against libcupsfilters 2.0, which we use in Ubuntu
    (LP: #2044113).

 -- Olivier Gayot <email address hidden> Tue, 21 Nov 2023 11:49:09 +0100

Changed in libnet-cups-perl (Ubuntu):
status: Fix Committed → 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.