# Buildsheet autogenerated by ravenadm tool -- Do not edit. NAMEBASE= perl-Net-CUPS VERSION= 0.64 KEYWORDS= perl VARIANTS= 538 540 SDESC[540]= Common Unix Printing System Interface (5.40) SDESC[538]= Common Unix Printing System Interface (5.38) HOMEPAGE= https://github.com/niner/perl-Net-CUPS CONTACT= Perl_Automaton[perl@ironwolf.systems] DOWNLOAD_GROUPS= main SITES[main]= CPAN/ID:N/NI/NINE DISTFILE[1]= Net-CUPS-0.64.tar.gz:main DF_INDEX= 1 SPKGS[540]= single SPKGS[538]= single OPTIONS_AVAILABLE= PERL_538 PERL_540 OPTIONS_STANDARD= none VOPTS[540]= PERL_538=OFF PERL_540=ON VOPTS[538]= PERL_538=ON PERL_540=OFF BUILD_DEPENDS= libcupsfilters:dev:std BUILDRUN_DEPENDS= cups-filters:primary:std cups:tools:std DISTNAME= Net-CUPS-0.64 GENERATED= yes SINGLE_JOB= yes [PERL_540].USES_ON= perl:540,configure [PERL_538].USES_ON= perl:538,configure [FILE:39:descriptions/desc.single] Common Unix Printing System Interface [FILE:99:distinfo] d7bc77ff0f62bf874c843c590eb12a80bbd44749a2fb74dbed445c35d0e85a85 87872 Net-CUPS-0.64.tar.gz [FILE:11859:patches/patch-fix-with-cups-filters-v2] Description: Fix build against libcupsfilters 2.0 With version 2.0, libcupsfilters renamed some of the constants to make the API consistent. Update the code accordingly. https://github.com/OpenPrinting/libcupsfilters/blob/26f9c3fb7c8eb3451f517da0fd91870534fac842/CHANGES.md Author: Olivier Gayot Bug-Ubuntu: https://launchpad.net/bugs/2044113 Forwarded: not-needed Last-Update: 2023-11-21 --- This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ Index: libnet-cups-perl-0.64/Makefile.PL =================================================================== --- Makefile.PL.orig 2016-07-21 06:49:51 UTC +++ Makefile.PL @@ -82,6 +82,12 @@ if (eval {require ExtUtils::Constant; 1 my @names = ( { name => "AF_LOCAL", macro => "1" }, + { name => "CF_IMAGE_BLACK", macro => "1" }, + { name => "CF_IMAGE_CMY", macro => "1" }, + { name => "CF_IMAGE_CMYK", macro => "1" }, + { name => "CF_IMAGE_RGB", macro => "1" }, + { name => "CF_IMAGE_RGB_CMYK", macro => "1" }, + { name => "CF_IMAGE_WHITE", macro => "1" }, { name => "CUPS_ACCEPT_JOBS", macro => "1" }, { name => "CUPS_ADD_CLASS", macro => "1" }, { name => "CUPS_ADD_MODIFY_CLASS", macro => "1" }, @@ -112,12 +118,6 @@ if (eval {require ExtUtils::Constant; 1 { name => "CUPS_GET_DEVICES", macro => "1" }, { name => "CUPS_GET_PPDS", macro => "1" }, { name => "CUPS_GET_PRINTERS", macro => "1" }, - { name => "CUPS_IMAGE_BLACK", macro => "1" }, - { name => "CUPS_IMAGE_CMY", macro => "1" }, - { name => "CUPS_IMAGE_CMYK", macro => "1" }, - { name => "CUPS_IMAGE_RGB", macro => "1" }, - { name => "CUPS_IMAGE_RGB_CMYK", macro => "1" }, - { name => "CUPS_IMAGE_WHITE", macro => "1" }, { name => "CUPS_ISO8859_1", macro => "1" }, { name => "CUPS_ISO8859_10", macro => "1" }, { name => "CUPS_ISO8859_11", macro => "1" }, --- fallback/const-c.inc.orig 2008-05-08 02:43:32 UTC +++ fallback/const-c.inc @@ -651,7 +651,7 @@ static int constant_14 (pTHX_ const char *name, IV *iv_return) { /* When generated this function returned values for the list of names given here. However, subsequent manual editing may have added or removed some. - CUPS_ADD_CLASS CUPS_FILE_GZIP CUPS_FILE_NONE CUPS_IMAGE_CMY CUPS_IMAGE_RGB + CUPS_ADD_CLASS CUPS_FILE_GZIP CUPS_FILE_NONE CF_IMAGE_CMY CF_IMAGE_RGB CUPS_ISO8859_1 CUPS_ISO8859_2 CUPS_ISO8859_3 CUPS_ISO8859_4 CUPS_ISO8859_5 CUPS_ISO8859_6 CUPS_ISO8859_7 CUPS_ISO8859_8 CUPS_ISO8859_9 CUPS_MAC_ROMAN HTTP_AUTH_NONE HTTP_FIELD_MAX HTTP_FORBIDDEN HTTP_MAX_VALUE HTTP_NOT_FOUND @@ -725,9 +725,9 @@ constant_14 (pTHX_ const char *name, IV } break; case 'B': - if (memEQ(name, "CUPS_IMAGE_RG", 13)) { + if (memEQ(name, "CF_IMAGE_RG", 13)) { /* B */ - *iv_return = CUPS_IMAGE_RGB; + *iv_return = CF_IMAGE_RGB; return PERL_constant_ISIV; } if (memEQ(name, "IPP_CANCEL_JO", 13)) { @@ -884,9 +884,9 @@ constant_14 (pTHX_ const char *name, IV } break; case 'Y': - if (memEQ(name, "CUPS_IMAGE_CM", 13)) { + if (memEQ(name, "CF_IMAGE_CM", 13)) { /* Y */ - *iv_return = CUPS_IMAGE_CMY; + *iv_return = CF_IMAGE_CMY; return PERL_constant_ISIV; } if (memEQ(name, "HTTP_USE_PROX", 13)) { @@ -903,7 +903,7 @@ static int constant_15 (pTHX_ const char *name, IV *iv_return) { /* When generated this function returned values for the list of names given here. However, subsequent manual editing may have added or removed some. - CUPS_BACKEND_OK CUPS_IMAGE_CMYK CUPS_ISO8859_10 CUPS_ISO8859_11 + CUPS_BACKEND_OK CF_IMAGE_CMYK CUPS_ISO8859_10 CUPS_ISO8859_11 CUPS_ISO8859_13 CUPS_ISO8859_14 CUPS_ISO8859_15 CUPS_ISO8859_16 CUPS_PRINTER_BW HTTP_AUTH_BASIC HTTP_FIELD_DATE HTTP_FIELD_HOST HTTP_FIELD_LINK HTTP_MAX_BUFFER HTTP_NO_CONTENT IPP_BAD_REQUEST @@ -1029,9 +1029,9 @@ constant_15 (pTHX_ const char *name, IV *iv_return = CUPS_BACKEND_OK; return PERL_constant_ISIV; } - if (memEQ(name, "CUPS_IMAGE_CMY", 14)) { + if (memEQ(name, "CF_IMAGE_CMY", 14)) { /* K */ - *iv_return = CUPS_IMAGE_CMYK; + *iv_return = CF_IMAGE_CMYK; return PERL_constant_ISIV; } if (memEQ(name, "HTTP_FIELD_LIN", 14)) { @@ -1136,7 +1136,7 @@ constant_16 (pTHX_ const char *name, IV /* When generated this function returned values for the list of names given here. However, subsequent manual editing may have added or removed some. CUPS_ACCEPT_JOBS CUPS_ADD_PRINTER CUPS_GET_CLASSES CUPS_GET_DEFAULT - CUPS_GET_DEVICES CUPS_IMAGE_BLACK CUPS_IMAGE_WHITE CUPS_MAX_USTRING + CUPS_GET_DEVICES CF_IMAGE_BLACK CF_IMAGE_WHITE CUPS_MAX_USTRING CUPS_PRINTER_FAX CUPS_REJECT_JOBS CUPS_SET_DEFAULT CUPS_WINDOWS_874 CUPS_WINDOWS_932 CUPS_WINDOWS_936 CUPS_WINDOWS_949 CUPS_WINDOWS_950 HTTP_BAD_GATEWAY HTTP_BAD_REQUEST HTTP_FIELD_RANGE HTTP_URI_BAD_URI @@ -1176,9 +1176,9 @@ constant_16 (pTHX_ const char *name, IV } break; case 'A': - if (memEQ(name, "CUPS_IMAGE_BLACK", 16)) { + if (memEQ(name, "CF_IMAGE_BLACK", 16)) { /* ^ */ - *iv_return = CUPS_IMAGE_BLACK; + *iv_return = CF_IMAGE_BLACK; return PERL_constant_ISIV; } if (memEQ(name, "IPP_TAG_LANGUAGE", 16)) { @@ -1233,9 +1233,9 @@ constant_16 (pTHX_ const char *name, IV } break; case 'I': - if (memEQ(name, "CUPS_IMAGE_WHITE", 16)) { + if (memEQ(name, "CF_IMAGE_WHITE", 16)) { /* ^ */ - *iv_return = CUPS_IMAGE_WHITE; + *iv_return = CF_IMAGE_WHITE; return PERL_constant_ISIV; } if (memEQ(name, "CUPS_MAX_USTRING", 16)) { @@ -1855,7 +1855,7 @@ constant_19 (pTHX_ const char *name, IV /* When generated this function returned values for the list of names given here. However, subsequent manual editing may have added or removed some. CUPS_BACKEND_CANCEL CUPS_BACKEND_FAILED CUPS_DELETE_PRINTER - CUPS_IMAGE_RGB_CMYK CUPS_PRINTER_COPIES CUPS_PRINTER_DELETE + CF_IMAGE_RGB_CMYK CUPS_PRINTER_COPIES CUPS_PRINTER_DELETE CUPS_PRINTER_DUPLEX CUPS_PRINTER_MEDIUM CUPS_PRINTER_REMOTE CUPS_PRINTER_STAPLE HTTP_ENCODE_CHUNKED HTTP_ENCRYPT_ALWAYS HTTP_FIELD_LOCATION HTTP_NOT_ACCEPTABLE HTTP_URI_BAD_SCHEME @@ -1903,9 +1903,9 @@ constant_19 (pTHX_ const char *name, IV } break; case 'C': - if (memEQ(name, "CUPS_IMAGE_RGB_CMYK", 19)) { + if (memEQ(name, "CF_IMAGE_RGB_CMYK", 19)) { /* ^ */ - *iv_return = CUPS_IMAGE_RGB_CMYK; + *iv_return = CF_IMAGE_RGB_CMYK; return PERL_constant_ISIV; } if (memEQ(name, "PPD_CUSTOM_PASSCODE", 19)) { @@ -3319,6 +3319,12 @@ use ExtUtils::Constant qw (constant_type my $types = {map {($_, 1)} qw(IV)}; my @names = (qw(INET6), {name=>"AF_LOCAL", type=>"IV", macro=>"1"}, + {name=>"CF_IMAGE_BLACK", type=>"IV", macro=>"1"}, + {name=>"CF_IMAGE_CMY", type=>"IV", macro=>"1"}, + {name=>"CF_IMAGE_CMYK", type=>"IV", macro=>"1"}, + {name=>"CF_IMAGE_RGB", type=>"IV", macro=>"1"}, + {name=>"CF_IMAGE_RGB_CMYK", type=>"IV", macro=>"1"}, + {name=>"CF_IMAGE_WHITE", type=>"IV", macro=>"1"}, {name=>"CUPS_ACCEPT_JOBS", type=>"IV", macro=>"1"}, {name=>"CUPS_ADD_CLASS", type=>"IV", macro=>"1"}, {name=>"CUPS_ADD_MODIFY_CLASS", type=>"IV", macro=>"1"}, @@ -3349,12 +3355,6 @@ my @names = (qw(INET6), {name=>"CUPS_GET_DEVICES", type=>"IV", macro=>"1"}, {name=>"CUPS_GET_PPDS", type=>"IV", macro=>"1"}, {name=>"CUPS_GET_PRINTERS", type=>"IV", macro=>"1"}, - {name=>"CUPS_IMAGE_BLACK", type=>"IV", macro=>"1"}, - {name=>"CUPS_IMAGE_CMY", type=>"IV", macro=>"1"}, - {name=>"CUPS_IMAGE_CMYK", type=>"IV", macro=>"1"}, - {name=>"CUPS_IMAGE_RGB", type=>"IV", macro=>"1"}, - {name=>"CUPS_IMAGE_RGB_CMYK", type=>"IV", macro=>"1"}, - {name=>"CUPS_IMAGE_WHITE", type=>"IV", macro=>"1"}, {name=>"CUPS_ISO8859_1", type=>"IV", macro=>"1"}, {name=>"CUPS_ISO8859_10", type=>"IV", macro=>"1"}, {name=>"CUPS_ISO8859_11", type=>"IV", macro=>"1"}, --- lib/Net/CUPS.pm.orig 2017-06-08 18:09:35 UTC +++ lib/Net/CUPS.pm @@ -23,6 +23,12 @@ our @ISA = qw(Exporter); # will save memory. our %EXPORT_TAGS = ( 'all' => [ qw( AF_LOCAL + CF_IMAGE_BLACK + CF_IMAGE_CMY + CF_IMAGE_CMYK + CF_IMAGE_RGB + CF_IMAGE_RGB_CMYK + CF_IMAGE_WHITE CUPS_ACCEPT_JOBS CUPS_ADD_CLASS CUPS_ADD_MODIFY_CLASS @@ -53,12 +59,6 @@ our %EXPORT_TAGS = ( 'all' => [ qw( CUPS_GET_DEVICES CUPS_GET_PPDS CUPS_GET_PRINTERS - CUPS_IMAGE_BLACK - CUPS_IMAGE_CMY - CUPS_IMAGE_CMYK - CUPS_IMAGE_RGB - CUPS_IMAGE_RGB_CMYK - CUPS_IMAGE_WHITE CUPS_ISO8859_1 CUPS_ISO8859_10 CUPS_ISO8859_11 @@ -493,6 +493,12 @@ our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all' our @EXPORT = qw( AF_LOCAL + CF_IMAGE_BLACK + CF_IMAGE_CMY + CF_IMAGE_CMYK + CF_IMAGE_RGB + CF_IMAGE_RGB_CMYK + CF_IMAGE_WHITE CUPS_ACCEPT_JOBS CUPS_ADD_CLASS CUPS_ADD_MODIFY_CLASS @@ -523,12 +529,6 @@ our @EXPORT = qw( CUPS_GET_DEVICES CUPS_GET_PPDS CUPS_GET_PRINTERS - CUPS_IMAGE_BLACK - CUPS_IMAGE_CMY - CUPS_IMAGE_CMYK - CUPS_IMAGE_RGB - CUPS_IMAGE_RGB_CMYK - CUPS_IMAGE_WHITE CUPS_ISO8859_1 CUPS_ISO8859_10 CUPS_ISO8859_11 --- lib/Net/CUPS/Destination.pm.orig 2017-06-08 18:06:22 UTC +++ lib/Net/CUPS/Destination.pm @@ -25,6 +25,12 @@ our @ISA = qw(Exporter); # will save memory. our %EXPORT_TAGS = ( 'all' => [ qw( AF_LOCAL + CF_IMAGE_BLACK + CF_IMAGE_CMY + CF_IMAGE_CMYK + CF_IMAGE_RGB + CF_IMAGE_RGB_CMYK + CF_IMAGE_WHITE CUPS_ACCEPT_JOBS CUPS_ADD_CLASS CUPS_ADD_MODIFY_CLASS @@ -55,12 +61,6 @@ our %EXPORT_TAGS = ( 'all' => [ qw( CUPS_GET_DEVICES CUPS_GET_PPDS CUPS_GET_PRINTERS - CUPS_IMAGE_BLACK - CUPS_IMAGE_CMY - CUPS_IMAGE_CMYK - CUPS_IMAGE_RGB - CUPS_IMAGE_RGB_CMYK - CUPS_IMAGE_WHITE CUPS_ISO8859_1 CUPS_ISO8859_10 CUPS_ISO8859_11 @@ -495,6 +495,12 @@ our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all' our @EXPORT = qw( AF_LOCAL + CF_IMAGE_BLACK + CF_IMAGE_CMY + CF_IMAGE_CMYK + CF_IMAGE_RGB + CF_IMAGE_RGB_CMYK + CF_IMAGE_WHITE CUPS_ACCEPT_JOBS CUPS_ADD_CLASS CUPS_ADD_MODIFY_CLASS @@ -525,12 +531,6 @@ our @EXPORT = qw( CUPS_GET_DEVICES CUPS_GET_PPDS CUPS_GET_PRINTERS - CUPS_IMAGE_BLACK - CUPS_IMAGE_CMY - CUPS_IMAGE_CMYK - CUPS_IMAGE_RGB - CUPS_IMAGE_RGB_CMYK - CUPS_IMAGE_WHITE CUPS_ISO8859_1 CUPS_ISO8859_10 CUPS_ISO8859_11 --- lib/Net/CUPS/PPD.pm.orig 2016-07-21 06:53:57 UTC +++ lib/Net/CUPS/PPD.pm @@ -25,6 +25,12 @@ our @ISA = qw(Exporter); # will save memory. our %EXPORT_TAGS = ( 'all' => [ qw( AF_LOCAL + CF_IMAGE_BLACK + CF_IMAGE_CMY + CF_IMAGE_CMYK + CF_IMAGE_RGB + CF_IMAGE_RGB_CMYK + CF_IMAGE_WHITE CUPS_ACCEPT_JOBS CUPS_ADD_CLASS CUPS_ADD_MODIFY_CLASS @@ -55,12 +61,6 @@ our %EXPORT_TAGS = ( 'all' => [ qw( CUPS_GET_DEVICES CUPS_GET_PPDS CUPS_GET_PRINTERS - CUPS_IMAGE_BLACK - CUPS_IMAGE_CMY - CUPS_IMAGE_CMYK - CUPS_IMAGE_RGB - CUPS_IMAGE_RGB_CMYK - CUPS_IMAGE_WHITE CUPS_ISO8859_1 CUPS_ISO8859_10 CUPS_ISO8859_11 @@ -498,6 +498,12 @@ our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all' our @EXPORT = qw( AF_LOCAL + CF_IMAGE_BLACK + CF_IMAGE_CMY + CF_IMAGE_CMYK + CF_IMAGE_RGB + CF_IMAGE_RGB_CMYK + CF_IMAGE_WHITE CUPS_ACCEPT_JOBS CUPS_ADD_CLASS CUPS_ADD_MODIFY_CLASS @@ -528,12 +534,6 @@ our @EXPORT = qw( CUPS_GET_DEVICES CUPS_GET_PPDS CUPS_GET_PRINTERS - CUPS_IMAGE_BLACK - CUPS_IMAGE_CMY - CUPS_IMAGE_CMYK - CUPS_IMAGE_RGB - CUPS_IMAGE_RGB_CMYK - CUPS_IMAGE_WHITE CUPS_ISO8859_1 CUPS_ISO8859_10 CUPS_ISO8859_11