Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ERROR: net-print/cups-filters-1.0.24 failed (compile phase)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Jono86
n00b
n00b


Joined: 10 Aug 2012
Posts: 28

PostPosted: Thu Sep 20, 2012 8:18 am    Post subject: ERROR: net-print/cups-filters-1.0.24 failed (compile phase) Reply with quote

When upgrading ~arch on my system I failed to emerge net-print/cups-filters-1.0.24 on compile phase.
The problem was found to be new C++11 syntax.

NOTE: the patch I have provided replaces the C++11 syntax code!!!!!!!

This is the error:
Code:

gentoo cups-filters # emerge -av cups-filters

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N     ] net-print/cups-filters-1.0.24  USE="jpeg png tiff -perl -static-libs" 0 kB

Total: 1 package (1 new), Size of downloads: 0 kB

Would you like to merge these packages? [Yes/No] yes

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) net-print/cups-filters-1.0.24
 * cups-filters-1.0.24.tar.xz SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                         [ ok ]
>>> Unpacking source...
>>> Unpacking cups-filters-1.0.24.tar.xz to /var/tmp/portage/net-print/cups-filters-1.0.24/work
>>> Source unpacked in /var/tmp/portage/net-print/cups-filters-1.0.24/work
>>> Preparing source in /var/tmp/portage/net-print/cups-filters-1.0.24/work/cups-filters-1.0.24 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/net-print/cups-filters-1.0.24/work/cups-filters-1.0.24 ...
 * econf: updating cups-filters-1.0.24/config.guess with /usr/share/gnuconfig/config.guess
 * econf: updating cups-filters-1.0.24/config.sub with /usr/share/gnuconfig/config.sub
./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64 --disable-dependency-tracking --disable-static --with-fontdir=fonts/conf.avail --with-pdftops=pdftops --enable-imagefilters --with-jpeg --with-png --with-tiff --without-php --docdir=/usr/share/doc/cups-filters-1.0.24
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether x86_64-pc-linux-gnu-gcc accepts -g... yes
checking for x86_64-pc-linux-gnu-gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of x86_64-pc-linux-gnu-gcc... none
checking for x86_64-pc-linux-gnu-g++... x86_64-pc-linux-gnu-g++
checking whether we are using the GNU C++ compiler... yes
checking whether x86_64-pc-linux-gnu-g++ accepts -g... yes
checking dependency style of x86_64-pc-linux-gnu-g++... none
checking whether x86_64-pc-linux-gnu-gcc and cc understand -c and -o together... yes
checking how to run the C preprocessor... x86_64-pc-linux-gnu-gcc -E
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by x86_64-pc-linux-gnu-gcc... /usr/x86_64-pc-linux-gnu/bin/ld
checking if the linker (/usr/x86_64-pc-linux-gnu/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/x86_64-pc-linux-gnu/bin/ld option to reload object files... -r
checking for x86_64-pc-linux-gnu-objdump... x86_64-pc-linux-gnu-objdump
checking how to recognize dependent libraries... pass_all
checking for x86_64-pc-linux-gnu-dlltool... no
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for x86_64-pc-linux-gnu-ar... x86_64-pc-linux-gnu-ar
checking for archiver @FILE support... @
checking for x86_64-pc-linux-gnu-strip... x86_64-pc-linux-gnu-strip
checking for x86_64-pc-linux-gnu-ranlib... x86_64-pc-linux-gnu-ranlib
checking command to parse /usr/bin/nm -B output from x86_64-pc-linux-gnu-gcc object... ok
checking for sysroot... no
checking for x86_64-pc-linux-gnu-mt... no
checking for mt... no
checking if : is a manifest tool... no
checking for ANSI C header files... no
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if x86_64-pc-linux-gnu-gcc supports -fno-rtti -fno-exceptions... no
checking for x86_64-pc-linux-gnu-gcc option to produce PIC... -fPIC -DPIC
checking if x86_64-pc-linux-gnu-gcc PIC flag -fPIC -DPIC works... yes
checking if x86_64-pc-linux-gnu-gcc static flag -static works... yes
checking if x86_64-pc-linux-gnu-gcc supports -c -o file.o... yes
checking if x86_64-pc-linux-gnu-gcc supports -c -o file.o... (cached) yes
checking whether the x86_64-pc-linux-gnu-gcc linker (/usr/x86_64-pc-linux-gnu/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking how to run the C++ preprocessor... x86_64-pc-linux-gnu-g++ -E
checking for ld used by x86_64-pc-linux-gnu-g++... /usr/x86_64-pc-linux-gnu/bin/ld -m elf_x86_64
checking if the linker (/usr/x86_64-pc-linux-gnu/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the x86_64-pc-linux-gnu-g++ linker (/usr/x86_64-pc-linux-gnu/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for x86_64-pc-linux-gnu-g++ option to produce PIC... -fPIC -DPIC
checking if x86_64-pc-linux-gnu-g++ PIC flag -fPIC -DPIC works... yes
checking if x86_64-pc-linux-gnu-g++ static flag -static works... yes
checking if x86_64-pc-linux-gnu-g++ supports -c -o file.o... yes
checking if x86_64-pc-linux-gnu-g++ supports -c -o file.o... (cached) yes
checking whether the x86_64-pc-linux-gnu-g++ linker (/usr/x86_64-pc-linux-gnu/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for x86_64-pc-linux-gnu-pkg-config... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.20... yes
checking for cups-config... /usr/bin/cups-config
checking for library containing dlopen... -ldl
checking for sigaction... yes
checking for waitpid... yes
checking for wait3... yes
checking for strtoll... yes
checking for open_memstream... yes
checking for getline... yes
checking for strcasestr... yes
checking for library containing pow... none required
checking for stdlib.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for sys/types.h... (cached) yes
checking for unistd.h... (cached) yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking endian.h usability... yes
checking endian.h presence... yes
checking for endian.h... yes
checking dirent.h usability... yes
checking dirent.h presence... yes
checking for dirent.h... yes
checking jpeglib.h usability... yes
checking jpeglib.h presence... yes
checking for jpeglib.h... yes
checking for library containing jpeg_destroy_decompress... -ljpeg
checking for LIBPNG... yes
checking tiff.h usability... yes
checking tiff.h presence... yes
checking for tiff.h... yes
checking for library containing TIFFReadScanline... -ltiff
checking for LCMS... yes
checking for FREETYPE... yes
checking for FONTCONFIG... yes
checking for IJS... yes
checking for POPPLER... yes
checking for ZLIB... yes
checking for LIBQPDF... yes
checking poppler/cpp/poppler-version.h usability... yes
checking poppler/cpp/poppler-version.h presence... yes
checking for poppler/cpp/poppler-version.h... yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for long long... yes
checking for gs... /usr/bin/gs
checking whether gs supports the ps2write device... yes
checking for pdftops... /usr/bin/pdftops
checking whether pdftops supports -origpagesizes... yes
checking whether pdftops supports -r... yes
checking for acroread... ./configure: line 17688: acroread: command not found
no
configure: creating ./config.status
config.status: creating libcupsfilters.pc
config.status: creating libfontembed.pc
config.status: creating Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
configure:
==============================================================================
Environment settings:
   CFLAGS:          -O2 -pipe -fomit-frame-pointer -Wall -pedantic -std=gnu99 -D_GNU_SOURCE
   CXXFLAGS:        -O2 -pipe -fomit-frame-pointer -Wall -pedantic -D_GNU_SOURCE
   LDFLAGS:         -Wl,-O1 -Wl,--as-needed
Build configuration:
   cups-config:     system
   font directory:  /etc/fonts/conf.avail
   gs-path:         system
   imagefilters:    yes
   jpeg:            yes
   pdftops:         pdftops
   pdftops-path:    system
   png:             yes
   php:             no
   php-config:      system
   test-font:       /usr/share/fonts/dejavu/DejaVuSans.ttf
   tiff:            yes
   werror:          no
==============================================================================

>>> Source configured.
>>> Compiling source in /var/tmp/portage/net-print/cups-filters-1.0.24/work/cups-filters-1.0.24 ...
make -j5
make  all-am
make[1]: Entering directory `/var/tmp/portage/net-print/cups-filters-1.0.24/work/cups-filters-1.0.24'
  CC     libcupsfilters_la-attr.lo
  CC     libcupsfilters_la-check.lo
  CC     libcupsfilters_la-cmyk.lo
  CC     libcupsfilters_la-dither.lo
  CC     libcupsfilters_la-image.lo
cupsfilters/attr.c: In function 'cupsFindAttr':
cupsfilters/attr.c:70:3: warning: 'ppdFindAttr' is deprecated (declared at /usr/include/cups/ppd.h:407)
cupsfilters/attr.c:75:3: warning: 'ppdFindAttr' is deprecated (declared at /usr/include/cups/ppd.h:407)
cupsfilters/attr.c:80:3: warning: 'ppdFindAttr' is deprecated (declared at /usr/include/cups/ppd.h:407)
cupsfilters/attr.c:85:3: warning: 'ppdFindAttr' is deprecated (declared at /usr/include/cups/ppd.h:407)
cupsfilters/attr.c:90:3: warning: 'ppdFindAttr' is deprecated (declared at /usr/include/cups/ppd.h:407)
cupsfilters/attr.c:95:3: warning: 'ppdFindAttr' is deprecated (declared at /usr/include/cups/ppd.h:407)
cupsfilters/attr.c:100:3: warning: 'ppdFindAttr' is deprecated (declared at /usr/include/cups/ppd.h:407)
cupsfilters/image.c: In function 'get_tile':
cupsfilters/image.c:761:11: warning: ignoring return value of 'read', declared with attribute warn_unused_result
cupsfilters/image.c: In function 'flush_tile':
cupsfilters/image.c:669:8: warning: ignoring return value of 'write', declared with attribute warn_unused_result
cupsfilters/image.c: In function 'cupsImageOpen':
cupsfilters/image.c:333:8: warning: ignoring return value of 'fread', declared with attribute warn_unused_result
  CC     libcupsfilters_la-image-bmp.lo
cupsfilters/cmyk.c: In function 'cupsCMYKLoad':
cupsfilters/cmyk.c:1133:5: warning: 'ppdFindNextAttr' is deprecated (declared at /usr/include/cups/ppd.h:409)
cupsfilters/cmyk.c:1180:5: warning: 'ppdFindNextAttr' is deprecated (declared at /usr/include/cups/ppd.h:409)
cupsfilters/cmyk.c:1236:5: warning: 'ppdFindNextAttr' is deprecated (declared at /usr/include/cups/ppd.h:409)
cupsfilters/cmyk.c:1256:5: warning: 'ppdFindNextAttr' is deprecated (declared at /usr/include/cups/ppd.h:409)
cupsfilters/cmyk.c:1281:5: warning: 'ppdFindNextAttr' is deprecated (declared at /usr/include/cups/ppd.h:409)
cupsfilters/cmyk.c:1321:5: warning: 'ppdFindNextAttr' is deprecated (declared at /usr/include/cups/ppd.h:409)
cupsfilters/cmyk.c:1366:5: warning: 'ppdFindNextAttr' is deprecated (declared at /usr/include/cups/ppd.h:409)
cupsfilters/cmyk.c:1406:5: warning: 'ppdFindNextAttr' is deprecated (declared at /usr/include/cups/ppd.h:409)
cupsfilters/cmyk.c:1455:5: warning: 'ppdFindNextAttr' is deprecated (declared at /usr/include/cups/ppd.h:409)
cupsfilters/cmyk.c:1521:5: warning: 'ppdFindNextAttr' is deprecated (declared at /usr/include/cups/ppd.h:409)
cupsfilters/cmyk.c:1560:5: warning: 'ppdFindNextAttr' is deprecated (declared at /usr/include/cups/ppd.h:409)
  CC     libcupsfilters_la-image-colorspace.lo
  CC     libcupsfilters_la-image-gif.lo
cupsfilters/image-bmp.c: In function '_cupsImageReadBMP':
cupsfilters/image-bmp.c:172:10: warning: ignoring return value of 'fread', declared with attribute warn_unused_result
  CC     libcupsfilters_la-image-jpeg.lo
  CC     libcupsfilters_la-image-photocd.lo
cupsfilters/image-gif.c: In function '_cupsImageReadGIF':
cupsfilters/image-gif.c:100:8: warning: ignoring return value of 'fread', declared with attribute warn_unused_result
cupsfilters/image-gif.c:137:16: warning: ignoring return value of 'fread', declared with attribute warn_unused_result
  CC     libcupsfilters_la-image-pix.lo
  CC     libcupsfilters_la-image-png.lo
  CC     libcupsfilters_la-image-pnm.lo
  CC     libcupsfilters_la-image-sgi.lo
  CC     libcupsfilters_la-image-sgilib.lo
  CC     libcupsfilters_la-image-sun.lo
cupsfilters/image-pnm.c: In function '_cupsImageReadPNM':
cupsfilters/image-pnm.c:205:16: warning: ignoring return value of 'fread', declared with attribute warn_unused_result
cupsfilters/image-pnm.c:226:16: warning: ignoring return value of 'fread', declared with attribute warn_unused_result
cupsfilters/image-pnm.c:230:16: warning: ignoring return value of 'fread', declared with attribute warn_unused_result
cupsfilters/image-sgilib.c: In function 'getshort':
cupsfilters/image-sgilib.c:569:8: warning: ignoring return value of 'fread', declared with attribute warn_unused_result
cupsfilters/image-sgilib.c: In function 'sgiOpenFile':
cupsfilters/image-sgilib.c:308:15: warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result
cupsfilters/image-sgilib.c: In function 'getlong':
cupsfilters/image-sgilib.c:554:8: warning: ignoring return value of 'fread', declared with attribute warn_unused_result
  CC     libcupsfilters_la-image-tiff.lo
  CC     libcupsfilters_la-image-zoom.lo
cupsfilters/image-sun.c: In function '_cupsImageReadSunRaster':
cupsfilters/image-sun.c:131:10: warning: ignoring return value of 'fread', declared with attribute warn_unused_result
cupsfilters/image-sun.c:132:10: warning: ignoring return value of 'fread', declared with attribute warn_unused_result
cupsfilters/image-sun.c:133:10: warning: ignoring return value of 'fread', declared with attribute warn_unused_result
cupsfilters/image-sun.c:194:12: warning: ignoring return value of 'fread', declared with attribute warn_unused_result
  CC     libcupsfilters_la-lut.lo
  CC     libcupsfilters_la-pack.lo
  CC     libcupsfilters_la-rgb.lo
  CC     libcupsfilters_la-srgb.lo
cupsfilters/rgb.c: In function 'cupsRGBLoad':
cupsfilters/rgb.c:373:5: warning: 'ppdFindNextAttr' is deprecated (declared at /usr/include/cups/ppd.h:409)
  CC     aglfn13.lo
  CC     dynstring.lo
  CC     embed.lo
  CC     embed_sfnt.lo
  CC     embed_pdf.lo
  CC     fontfile.lo
In file included from fontembed/embed.h:5:0,
                 from fontembed/embed_sfnt.c:1:
fontembed/fontfile.h:13:4: warning: ISO C doesn't support unnamed structs/unions
In file included from fontembed/embed.h:5:0,
                 from fontembed/embed.c:1:
fontembed/fontfile.h:13:4: warning: ISO C doesn't support unnamed structs/unions
In file included from fontembed/embed.h:5:0,
                 from fontembed/embed_pdf.c:1:
fontembed/fontfile.h:13:4: warning: ISO C doesn't support unnamed structs/unions
  CC     frequent.lo
In file included from fontembed/fontfile.c:1:0:
fontembed/fontfile.h:13:4: warning: ISO C doesn't support unnamed structs/unions
  CC     sfnt.lo
  CC     sfnt_subset.lo
  CC     main.o
In file included from fontembed/embed.h:5:0,
                 from fontembed/main.c:6:
fontembed/fontfile.h:13:4: warning: ISO C doesn’t support unnamed structs/unions
fontembed/main.c: In function ‘example_outfn’:
fontembed/main.c:39:5: warning: ISO C does not support the ‘%m’ gnu_printf format
fontembed/main.c: In function ‘example_write_fontdescr’:
fontembed/main.c:92:7: warning: ISO C does not support the ‘%m’ gnu_printf format
  CC     parallel-ieee1284.o
  CC     parallel-parallel.o
  CC     serial-serial.o
  CXX    pdftoopvp-OPRS.o
  CXX    pdftoopvp-OPVPSplashClip.o
  CXX    pdftoopvp-OPVPSplash.o
  CXX    pdftoopvp-OPVPSplashPath.o
  CXX    pdftoopvp-OPVPSplashState.o
  CXX    pdftoopvp-OPVPSplashXPath.o
  CXX    pdftoopvp-OPVPWrapper.o
filter/pdftoopvp/oprs/OPVPWrapper.cxx: In static member function ‘static OPVPWrapper* OPVPWrapper::loadDriver(const char*, int, const char*)’:
filter/pdftoopvp/oprs/OPVPWrapper.cxx:833:51: warning: ISO C++ forbids casting between pointer-to-function and pointer-to-object
filter/pdftoopvp/oprs/OPVPWrapper.cxx:843:45: warning: ISO C++ forbids casting between pointer-to-function and pointer-to-object
  CXX    pdftoopvp-OPVPWrapper_0_2.o
filter/pdftoopvp/oprs/OPVPSplashState.cxx:30:38: warning: ‘opvpSplashColorModeNComps’ defined but not used
  CXX    pdftoopvp-OPVPOutputDev.o
In file included from filter/pdftoopvp/OPVPOutputDev.cxx:23:0:
filter/pdftoopvp/OPVPError.h:41:23: warning: anonymous variadic macros were introduced in C99
  CXX    pdftoopvp-pdftoopvp.o
  CXX    pdftopdf-pdftopdf.o
In file included from filter/pdftoopvp/OPVPOutputDev.cxx:25:0:
/usr/include/poppler/GfxState.h: In member function ‘virtual void GfxColorSpace::getGrayLine(Guchar*, Guchar*, int)’:
/usr/include/poppler/GfxState.h:205:142: warning: deprecated conversion from string constant to ‘char*’
/usr/include/poppler/GfxState.h: In member function ‘virtual void GfxColorSpace::getRGBLine(Guchar*, unsigned int*, int)’:
/usr/include/poppler/GfxState.h:206:162: warning: deprecated conversion from string constant to ‘char*’
/usr/include/poppler/GfxState.h: In member function ‘virtual void GfxColorSpace::getRGBLine(Guchar*, Guchar*, int)’:
/usr/include/poppler/GfxState.h:207:158: warning: deprecated conversion from string constant to ‘char*’
/usr/include/poppler/GfxState.h: In member function ‘virtual void GfxColorSpace::getRGBXLine(Guchar*, Guchar*, int)’:
/usr/include/poppler/GfxState.h:208:143: warning: deprecated conversion from string constant to ‘char*’
In file included from filter/pdftoopvp/pdftoopvp.cxx:31:0:
filter/pdftoopvp/OPVPError.h:41:23: warning: anonymous variadic macros were introduced in C99
filter/pdftoopvp/OPVPOutputDev.cxx: In member function ‘int OPVPOutputDev::init(SplashColorMode, GBool, GBool, Guchar*, const char*, int, const char*, int, const char**, const char**)’:
filter/pdftoopvp/OPVPOutputDev.cxx:234:5: warning: deprecated conversion from string constant to ‘char*’
filter/pdftoopvp/OPVPOutputDev.cxx:239:5: warning: deprecated conversion from string constant to ‘char*’
filter/pdftoopvp/OPVPOutputDev.cxx: In member function ‘SplashPattern* OPVPOutputDev::getColor(GfxGray, GfxRGB*)’:
filter/pdftoopvp/OPVPOutputDev.cxx:481:5: warning: deprecated conversion from string constant to ‘char*’
filter/pdftoopvp/OPVPOutputDev.cxx: In member function ‘void OPVPOutputDev::doUpdateFont(GfxState*)’:
filter/pdftoopvp/OPVPOutputDev.cxx:573:2: warning: deprecated conversion from string constant to ‘char*’
filter/pdftoopvp/OPVPOutputDev.cxx:608:2: warning: deprecated conversion from string constant to ‘char*’
filter/pdftoopvp/OPVPOutputDev.cxx:622:2: warning: deprecated conversion from string constant to ‘char*’
filter/pdftoopvp/OPVPOutputDev.cxx:636:2: warning: deprecated conversion from string constant to ‘char*’
filter/pdftoopvp/OPVPOutputDev.cxx:660:2: warning: deprecated conversion from string constant to ‘char*’
filter/pdftoopvp/OPVPOutputDev.cxx:671:2: warning: deprecated conversion from string constant to ‘char*’
filter/pdftoopvp/OPVPOutputDev.cxx:695:2: warning: deprecated conversion from string constant to ‘char*’
filter/pdftoopvp/OPVPOutputDev.cxx:732:2: warning: deprecated conversion from string constant to ‘char*’
filter/pdftoopvp/OPVPOutputDev.cxx: In member function ‘virtual void OPVPOutputDev::drawChar(GfxState*, double, double, double, double, double, double, CharCode, int, Unicode*, int)’:
filter/pdftoopvp/OPVPOutputDev.cxx:1021:7: warning: deprecated conversion from string constant to ‘char*’
filter/pdftoopvp/OPVPOutputDev.cxx:1038:7: warning: deprecated conversion from string constant to ‘char*’
filter/pdftoopvp/OPVPOutputDev.cxx: In member function ‘virtual void OPVPOutputDev::psXObject(Stream*, Stream*)’:
filter/pdftoopvp/OPVPOutputDev.cxx:1989:3: warning: deprecated conversion from string constant to ‘char*’
  CXX    pdftopdf-pdftopdf_jcl.o
filter/pdftopdf/pdftopdf.cc: In function ‘bool ppdDefaultOrder(ppd_file_t*)’:
filter/pdftopdf/pdftopdf.cc:180:24: warning: ‘ppd_attr_t* ppdFindAttr(ppd_file_t*, const char*, const char*)’ is deprecated (declared at /usr/include/cups/ppd.h:407)
filter/pdftopdf/pdftopdf.cc:180:71: warning: ‘ppd_attr_t* ppdFindAttr(ppd_file_t*, const char*, const char*)’ is deprecated (declared at /usr/include/cups/ppd.h:407)
filter/pdftopdf/pdftopdf.cc:182:21: warning: ‘ppd_attr_t* ppdFindAttr(ppd_file_t*, const char*, const char*)’ is deprecated (declared at /usr/include/cups/ppd.h:407)
filter/pdftopdf/pdftopdf.cc:182:59: warning: ‘ppd_attr_t* ppdFindAttr(ppd_file_t*, const char*, const char*)’ is deprecated (declared at /usr/include/cups/ppd.h:407)
filter/pdftopdf/pdftopdf.cc: In function ‘void getParameters(ppd_file_t*, int, cups_option_t*, ProcessingParameters&)’:
filter/pdftopdf/pdftopdf.cc:521:14: warning: ‘ppd_attr_t* ppdFindAttr(ppd_file_t*, const char*, const char*)’ is deprecated (declared at /usr/include/cups/ppd.h:407)
filter/pdftopdf/pdftopdf.cc:521:48: warning: ‘ppd_attr_t* ppdFindAttr(ppd_file_t*, const char*, const char*)’ is deprecated (declared at /usr/include/cups/ppd.h:407)
  CXX    pdftopdf-pdftopdf_processor.o
filter/pdftopdf/pdftopdf_jcl.cc: In function ‘void emitJCLOptions(FILE*, ppd_file_t*, int)’:
filter/pdftopdf/pdftopdf_jcl.cc:21:15: warning: ‘ppd_attr_t* ppdFindAttr(ppd_file_t*, const char*, const char*)’ is deprecated (declared at /usr/include/cups/ppd.h:407)
filter/pdftopdf/pdftopdf_jcl.cc:21:54: warning: ‘ppd_attr_t* ppdFindAttr(ppd_file_t*, const char*, const char*)’ is deprecated (declared at /usr/include/cups/ppd.h:407)
filter/pdftopdf/pdftopdf_jcl.cc:38:17: warning: ‘ppd_attr_t* ppdFindAttr(ppd_file_t*, const char*, const char*)’ is deprecated (declared at /usr/include/cups/ppd.h:407)
filter/pdftopdf/pdftopdf_jcl.cc:38:56: warning: ‘ppd_attr_t* ppdFindAttr(ppd_file_t*, const char*, const char*)’ is deprecated (declared at /usr/include/cups/ppd.h:407)
filter/pdftopdf/pdftopdf_jcl.cc:52:19: warning: ‘ppd_attr_t* ppdFindAttr(ppd_file_t*, const char*, const char*)’ is deprecated (declared at /usr/include/cups/ppd.h:407)
filter/pdftopdf/pdftopdf_jcl.cc:52:57: warning: ‘ppd_attr_t* ppdFindAttr(ppd_file_t*, const char*, const char*)’ is deprecated (declared at /usr/include/cups/ppd.h:407)
filter/pdftopdf/pdftopdf_jcl.cc: In function ‘void emitPreamble(ppd_file_t*, const ProcessingParameters&)’:
filter/pdftopdf/pdftopdf_jcl.cc:138:16: warning: ‘ppd_attr_t* ppdFindAttr(ppd_file_t*, const char*, const char*)’ is deprecated (declared at /usr/include/cups/ppd.h:407)
filter/pdftopdf/pdftopdf_jcl.cc:138:58: warning: ‘ppd_attr_t* ppdFindAttr(ppd_file_t*, const char*, const char*)’ is deprecated (declared at /usr/include/cups/ppd.h:407)
filter/pdftopdf/pdftopdf_jcl.cc: In function ‘void emitPostamble(ppd_file_t*, const ProcessingParameters&)’:
filter/pdftopdf/pdftopdf_jcl.cc:153:5: warning: ‘int ppdEmitJCLEnd(ppd_file_t*, FILE*)’ is deprecated (declared at /usr/include/cups/ppd.h:423)
filter/pdftopdf/pdftopdf_jcl.cc:153:29: warning: ‘int ppdEmitJCLEnd(ppd_file_t*, FILE*)’ is deprecated (declared at /usr/include/cups/ppd.h:423)
In file included from filter/pdftoopvp/OPVPOutputDev.h:22:0,
                 from filter/pdftoopvp/pdftoopvp.cxx:27:
/usr/include/poppler/GfxState.h: In member function ‘virtual void GfxColorSpace::getGrayLine(Guchar*, Guchar*, int)’:
/usr/include/poppler/GfxState.h:205:142: warning: deprecated conversion from string constant to ‘char*’
/usr/include/poppler/GfxState.h: In member function ‘virtual void GfxColorSpace::getRGBLine(Guchar*, unsigned int*, int)’:
/usr/include/poppler/GfxState.h:206:162: warning: deprecated conversion from string constant to ‘char*’
/usr/include/poppler/GfxState.h: In member function ‘virtual void GfxColorSpace::getRGBLine(Guchar*, Guchar*, int)’:
/usr/include/poppler/GfxState.h:207:158: warning: deprecated conversion from string constant to ‘char*’
/usr/include/poppler/GfxState.h: In member function ‘virtual void GfxColorSpace::getRGBXLine(Guchar*, Guchar*, int)’:
/usr/include/poppler/GfxState.h:208:143: warning: deprecated conversion from string constant to ‘char*’
  CXX    pdftopdf-qpdf_pdftopdf_processor.o
filter/pdftoopvp/pdftoopvp.cxx: In function ‘int outOnePage(PDFDoc*, OPVPOutputDev*, int)’:
filter/pdftoopvp/pdftoopvp.cxx:95:7: warning: deprecated conversion from string constant to ‘char*’
filter/pdftoopvp/pdftoopvp.cxx:102:5: warning: deprecated conversion from string constant to ‘char*’
filter/pdftoopvp/pdftoopvp.cxx:106:7: warning: deprecated conversion from string constant to ‘char*’
filter/pdftoopvp/pdftoopvp.cxx: In function ‘GBool getColorProfilePath(ppd_file_t*, GooString*)’:
filter/pdftoopvp/pdftoopvp.cxx:151:17: warning: ‘ppd_attr_t* ppdFindAttr(ppd_file_t*, const char*, const char*)’ is deprecated (declared at /usr/include/cups/ppd.h:407)
filter/pdftoopvp/pdftoopvp.cxx:151:50: warning: ‘ppd_attr_t* ppdFindAttr(ppd_file_t*, const char*, const char*)’ is deprecated (declared at /usr/include/cups/ppd.h:407)
filter/pdftoopvp/pdftoopvp.cxx:156:17: warning: ‘ppd_attr_t* ppdFindAttr(ppd_file_t*, const char*, const char*)’ is deprecated (declared at /usr/include/cups/ppd.h:407)
filter/pdftoopvp/pdftoopvp.cxx:156:57: warning: ‘ppd_attr_t* ppdFindAttr(ppd_file_t*, const char*, const char*)’ is deprecated (declared at /usr/include/cups/ppd.h:407)
filter/pdftoopvp/pdftoopvp.cxx:166:17: warning: ‘ppd_attr_t* ppdFindAttr(ppd_file_t*, const char*, const char*)’ is deprecated (declared at /usr/include/cups/ppd.h:407)
filter/pdftoopvp/pdftoopvp.cxx:166:57: warning: ‘ppd_attr_t* ppdFindAttr(ppd_file_t*, const char*, const char*)’ is deprecated (declared at /usr/include/cups/ppd.h:407)
filter/pdftoopvp/pdftoopvp.cxx:177:17: warning: ‘ppd_attr_t* ppdFindAttr(ppd_file_t*, const char*, const char*)’ is deprecated (declared at /usr/include/cups/ppd.h:407)
filter/pdftoopvp/pdftoopvp.cxx:177:54: warning: ‘ppd_attr_t* ppdFindAttr(ppd_file_t*, const char*, const char*)’ is deprecated (declared at /usr/include/cups/ppd.h:407)
filter/pdftoopvp/pdftoopvp.cxx:178:15: warning: ‘ppd_attr_t* ppdFindNextAttr(ppd_file_t*, const char*, const char*)’ is deprecated (declared at /usr/include/cups/ppd.h:409)
filter/pdftoopvp/pdftoopvp.cxx:178:56: warning: ‘ppd_attr_t* ppdFindNextAttr(ppd_file_t*, const char*, const char*)’ is deprecated (declared at /usr/include/cups/ppd.h:409)
filter/pdftoopvp/pdftoopvp.cxx: In function ‘int main(int, char**)’:
filter/pdftoopvp/pdftoopvp.cxx:261:5: warning: deprecated conversion from string constant to ‘char*’
filter/pdftoopvp/pdftoopvp.cxx:269:19: warning: ‘ppd_attr_t* ppdFindAttr(ppd_file_t*, const char*, const char*)’ is deprecated (declared at /usr/include/cups/ppd.h:407)
filter/pdftoopvp/pdftoopvp.cxx:269:50: warning: ‘ppd_attr_t* ppdFindAttr(ppd_file_t*, const char*, const char*)’ is deprecated (declared at /usr/include/cups/ppd.h:407)
filter/pdftoopvp/pdftoopvp.cxx:272:19: warning: ‘ppd_attr_t* ppdFindAttr(ppd_file_t*, const char*, const char*)’ is deprecated (declared at /usr/include/cups/ppd.h:407)
filter/pdftoopvp/pdftoopvp.cxx:272:50: warning: ‘ppd_attr_t* ppdFindAttr(ppd_file_t*, const char*, const char*)’ is deprecated (declared at /usr/include/cups/ppd.h:407)
filter/pdftoopvp/pdftoopvp.cxx:275:19: warning: ‘ppd_attr_t* ppdFindAttr(ppd_file_t*, const char*, const char*)’ is deprecated (declared at /usr/include/cups/ppd.h:407)
filter/pdftoopvp/pdftoopvp.cxx:275:51: warning: ‘ppd_attr_t* ppdFindAttr(ppd_file_t*, const char*, const char*)’ is deprecated (declared at /usr/include/cups/ppd.h:407)
filter/pdftoopvp/pdftoopvp.cxx:278:19: warning: ‘ppd_attr_t* ppdFindAttr(ppd_file_t*, const char*, const char*)’ is deprecated (declared at /usr/include/cups/ppd.h:407)
filter/pdftoopvp/pdftoopvp.cxx:278:61: warning: ‘ppd_attr_t* ppdFindAttr(ppd_file_t*, const char*, const char*)’ is deprecated (declared at /usr/include/cups/ppd.h:407)
filter/pdftoopvp/pdftoopvp.cxx:285:19: warning: ‘ppd_attr_t* ppdFindAttr(ppd_file_t*, const char*, const char*)’ is deprecated (declared at /usr/include/cups/ppd.h:407)
filter/pdftoopvp/pdftoopvp.cxx:285:56: warning: ‘ppd_attr_t* ppdFindAttr(ppd_file_t*, const char*, const char*)’ is deprecated (declared at /usr/include/cups/ppd.h:407)
filter/pdftoopvp/pdftoopvp.cxx:292:19: warning: ‘ppd_attr_t* ppdFindAttr(ppd_file_t*, const char*, const char*)’ is deprecated (declared at /usr/include/cups/ppd.h:407)
filter/pdftoopvp/pdftoopvp.cxx:292:57: warning: ‘ppd_attr_t* ppdFindAttr(ppd_file_t*, const char*, const char*)’ is deprecated (declared at /usr/include/cups/ppd.h:407)
filter/pdftoopvp/pdftoopvp.cxx:299:19: warning: ‘ppd_attr_t* ppdFindAttr(ppd_file_t*, const char*, const char*)’ is deprecated (declared at /usr/include/cups/ppd.h:407)
filter/pdftoopvp/pdftoopvp.cxx:299:64: warning: ‘ppd_attr_t* ppdFindAttr(ppd_file_t*, const char*, const char*)’ is deprecated (declared at /usr/include/cups/ppd.h:407)
filter/pdftoopvp/pdftoopvp.cxx:306:19: warning: ‘ppd_attr_t* ppdFindAttr(ppd_file_t*, const char*, const char*)’ is deprecated (declared at /usr/include/cups/ppd.h:407)
filter/pdftoopvp/pdftoopvp.cxx:306:58: warning: ‘ppd_attr_t* ppdFindAttr(ppd_file_t*, const char*, const char*)’ is deprecated (declared at /usr/include/cups/ppd.h:407)
filter/pdftoopvp/pdftoopvp.cxx:313:19: warning: ‘ppd_attr_t* ppdFindAttr(ppd_file_t*, const char*, const char*)’ is deprecated (declared at /usr/include/cups/ppd.h:407)
filter/pdftoopvp/pdftoopvp.cxx:313:57: warning: ‘ppd_attr_t* ppdFindAttr(ppd_file_t*, const char*, const char*)’ is deprecated (declared at /usr/include/cups/ppd.h:407)
filter/pdftoopvp/pdftoopvp.cxx:320:19: warning: ‘ppd_attr_t* ppdFindAttr(ppd_file_t*, const char*, const char*)’ is deprecated (declared at /usr/include/cups/ppd.h:407)
filter/pdftoopvp/pdftoopvp.cxx:320:57: warning: ‘ppd_attr_t* ppdFindAttr(ppd_file_t*, const char*, const char*)’ is deprecated (declared at /usr/include/cups/ppd.h:407)
filter/pdftoopvp/pdftoopvp.cxx:327:19: warning: ‘ppd_attr_t* ppdFindAttr(ppd_file_t*, const char*, const char*)’ is deprecated (declared at /usr/include/cups/ppd.h:407)
filter/pdftoopvp/pdftoopvp.cxx:327:56: warning: ‘ppd_attr_t* ppdFindAttr(ppd_file_t*, const char*, const char*)’ is deprecated (declared at /usr/include/cups/ppd.h:407)
filter/pdftoopvp/pdftoopvp.cxx:334:19: warning: ‘ppd_attr_t* ppdFindAttr(ppd_file_t*, const char*, const char*)’ is deprecated (declared at /usr/include/cups/ppd.h:407)
filter/pdftoopvp/pdftoopvp.cxx:334:58: warning: ‘ppd_attr_t* ppdFindAttr(ppd_file_t*, const char*, const char*)’ is deprecated (declared at /usr/include/cups/ppd.h:407)
filter/pdftoopvp/pdftoopvp.cxx:341:19: warning: ‘ppd_attr_t* ppdFindAttr(ppd_file_t*, const char*, const char*)’ is deprecated (declared at /usr/include/cups/ppd.h:407)
filter/pdftoopvp/pdftoopvp.cxx:341:64: warning: ‘ppd_attr_t* ppdFindAttr(ppd_file_t*, const char*, const char*)’ is deprecated (declared at /usr/include/cups/ppd.h:407)
filter/pdftoopvp/pdftoopvp.cxx:348:19: warning: ‘ppd_attr_t* ppdFindAttr(ppd_file_t*, const char*, const char*)’ is deprecated (declared at /usr/include/cups/ppd.h:407)
filter/pdftoopvp/pdftoopvp.cxx:348:67: warning: ‘ppd_attr_t* ppdFindAttr(ppd_file_t*, const char*, const char*)’ is deprecated (declared at /usr/include/cups/ppd.h:407)
filter/pdftoopvp/pdftoopvp.cxx:352:19: warning: ‘ppd_attr_t* ppdFindAttr(ppd_file_t*, const char*, const char*)’ is deprecated (declared at /usr/include/cups/ppd.h:407)
filter/pdftoopvp/pdftoopvp.cxx:352:65: warning: ‘ppd_attr_t* ppdFindAttr(ppd_file_t*, const char*, const char*)’ is deprecated (declared at /usr/include/cups/ppd.h:407)
filter/pdftoopvp/pdftoopvp.cxx:356:19: warning: ‘ppd_attr_t* ppdFindAttr(ppd_file_t*, const char*, const char*)’ is deprecated (declared at /usr/include/cups/ppd.h:407)
filter/pdftoopvp/pdftoopvp.cxx:356:65: warning: ‘ppd_attr_t* ppdFindAttr(ppd_file_t*, const char*, const char*)’ is deprecated (declared at /usr/include/cups/ppd.h:407)
filter/pdftoopvp/pdftoopvp.cxx:360:19: warning: ‘ppd_attr_t* ppdFindAttr(ppd_file_t*, const char*, const char*)’ is deprecated (declared at /usr/include/cups/ppd.h:407)
filter/pdftoopvp/pdftoopvp.cxx:360:58: warning: ‘ppd_attr_t* ppdFindAttr(ppd_file_t*, const char*, const char*)’ is deprecated (declared at /usr/include/cups/ppd.h:407)
filter/pdftoopvp/pdftoopvp.cxx:367:19: warning: ‘ppd_attr_t* ppdFindAttr(ppd_file_t*, const char*, const char*)’ is deprecated (declared at /usr/include/cups/ppd.h:407)
filter/pdftoopvp/pdftoopvp.cxx:367:49: warning: ‘ppd_attr_t* ppdFindAttr(ppd_file_t*, const char*, const char*)’ is deprecated (declared at /usr/include/cups/ppd.h:407)
filter/pdftoopvp/pdftoopvp.cxx:371:19: warning: ‘ppd_attr_t* ppdFindAttr(ppd_file_t*, const char*, const char*)’ is deprecated (declared at /usr/include/cups/ppd.h:407)
filter/pdftoopvp/pdftoopvp.cxx:371:48: warning: ‘ppd_attr_t* ppdFindAttr(ppd_file_t*, const char*, const char*)’ is deprecated (declared at /usr/include/cups/ppd.h:407)
filter/pdftoopvp/pdftoopvp.cxx:604:7: warning: deprecated conversion from string constant to ‘char*’
filter/pdftoopvp/pdftoopvp.cxx:608:34: warning: deprecated conversion from string constant to ‘char*’
filter/pdftoopvp/pdftoopvp.cxx:639:7: warning: deprecated conversion from string constant to ‘char*’
filter/pdftoopvp/pdftoopvp.cxx:657:7: warning: deprecated conversion from string constant to ‘char*’
filter/pdftoopvp/pdftoopvp.cxx:664:7: warning: deprecated conversion from string constant to ‘char*’
filter/pdftoopvp/pdftoopvp.cxx:672:2: warning: deprecated conversion from string constant to ‘char*’
filter/pdftoopvp/pdftoopvp.cxx:679:2: warning: deprecated conversion from string constant to ‘char*’
filter/pdftoopvp/pdftoopvp.cxx:686:2: warning: deprecated conversion from string constant to ‘char*’
filter/pdftoopvp/pdftoopvp.cxx:700:5: warning: deprecated conversion from string constant to ‘char*’
filter/pdftoopvp/pdftoopvp.cxx:707:5: warning: deprecated conversion from string constant to ‘char*’
filter/pdftoopvp/pdftoopvp.cxx:728:7: warning: deprecated conversion from string constant to ‘char*’
filter/pdftoopvp/pdftoopvp.cxx:739:7: warning: deprecated conversion from string constant to ‘char*’
filter/pdftoopvp/pdftoopvp.cxx:744:7: warning: deprecated conversion from string constant to ‘char*’
filter/pdftoopvp/pdftoopvp.cxx:753:7: warning: deprecated conversion from string constant to ‘char*’
filter/pdftoopvp/pdftoopvp.cxx:758:7: warning: deprecated conversion from string constant to ‘char*’
  CXX    pdftopdf-pptypes.o
  CXX    pdftopdf-nup.o
  CXX    pdftopdf-intervalset.o
  CXX    pdftopdf-qpdf_tools.o
  CXX    pdftopdf-qpdf_xobject.o
filter/pdftopdf/qpdf_pdftopdf_processor.cc: In member function ‘virtual void QPDF_PDFTOPDF_Processor::setComments(const std::vector<std::basic_string<char> >&)’:
filter/pdftopdf/qpdf_pdftopdf_processor.cc:467:17: error: expected initializer before ‘:’ token
filter/pdftopdf/qpdf_pdftopdf_processor.cc:472:1: error: expected primary-expression before ‘}’ token
filter/pdftopdf/qpdf_pdftopdf_processor.cc:472:1: error: expected ‘;’ before ‘}’ token
filter/pdftopdf/qpdf_pdftopdf_processor.cc:472:1: error: expected primary-expression before ‘}’ token
filter/pdftopdf/qpdf_pdftopdf_processor.cc:472:1: error: expected ‘)’ before ‘}’ token
filter/pdftopdf/qpdf_pdftopdf_processor.cc:472:1: error: expected primary-expression before ‘}’ token
filter/pdftopdf/qpdf_pdftopdf_processor.cc:472:1: error: expected ‘;’ before ‘}’ token
make[1]: *** [pdftopdf-qpdf_pdftopdf_processor.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/var/tmp/portage/net-print/cups-filters-1.0.24/work/cups-filters-1.0.24'
make: *** [all] Error 2
 * ERROR: net-print/cups-filters-1.0.24 failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=net-print/cups-filters-1.0.24'`,
 * the complete build log and the output of `emerge -pqv '=net-print/cups-filters-1.0.24'`.
 * The complete build log is located at '/var/tmp/portage/net-print/cups-filters-1.0.24/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-print/cups-filters-1.0.24/temp/environment'.
 * Working directory: '/var/tmp/portage/net-print/cups-filters-1.0.24/work/cups-filters-1.0.24'
 * S: '/var/tmp/portage/net-print/cups-filters-1.0.24/work/cups-filters-1.0.24'

>>> Failed to emerge net-print/cups-filters-1.0.24, Log file:

>>>  '/var/tmp/portage/net-print/cups-filters-1.0.24/temp/build.log'

 * Messages for package net-print/cups-filters-1.0.24:

 * ERROR: net-print/cups-filters-1.0.24 failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=net-print/cups-filters-1.0.24'`,
 * the complete build log and the output of `emerge -pqv '=net-print/cups-filters-1.0.24'`.
 * The complete build log is located at '/var/tmp/portage/net-print/cups-filters-1.0.24/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-print/cups-filters-1.0.24/temp/environment'.
 * Working directory: '/var/tmp/portage/net-print/cups-filters-1.0.24/work/cups-filters-1.0.24'
 * S: '/var/tmp/portage/net-print/cups-filters-1.0.24/work/cups-filters-1.0.24'


To apply the patch do the following:
Code:

gentoo ~ # cd /usr/portage/net-print/cups-filters
gentoo cups-filters # ls -l
total 32
-rw-r--r-- 1 root root 7181 Sep 11 15:31 ChangeLog
-rw-r--r-- 1 root root 1867 Sep  1 19:01 cups-filters-1.0.23-r1.ebuild
-rw-r--r-- 1 root root 1870 Sep 11 15:31 cups-filters-1.0.24.ebuild
-rw-r--r-- 1 root root 1881 Sep 11 15:31 cups-filters-9999.ebuild
-rw-r--r-- 1 root root 2914 Sep 11 15:31 Manifest
-rw-r--r-- 1 root root  162 Apr  3 17:02 metadata.xml


Replace cups-filters-1.0.24.ebuild with the following:

Code:

# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-print/cups-filters/cups-filters-1.0.24.ebuild,v 1.2 2012/09/11 14:13:44 tester Exp $

EAPI=4

GENTOO_DEPEND_ON_PERL=no

inherit base perl-module

if [[ "${PV}" == "9999" ]] ; then
   inherit autotools bzr
   EBZR_REPO_URI="http://bzr.linuxfoundation.org/openprinting/cups-filters"
   KEYWORDS=""
else
   SRC_URI="http://www.openprinting.org/download/${PN}/${P}.tar.xz"
   KEYWORDS="~amd64 ~arm ~hppa ~mips ~ppc ~x86"
fi
DESCRIPTION="Cups PDF filters"
HOMEPAGE="http://www.linuxfoundation.org/collaborate/workgroups/openprinting/pdfasstandardprintjobformat"

LICENSE="MIT GPL-2"
SLOT="0"
IUSE="jpeg perl png static-libs tiff"

RDEPEND="
   app-text/ghostscript-gpl
   app-text/poppler[cxx,jpeg?,lcms,tiff?,xpdf-headers(+)]
   >=app-text/qpdf-3.0.2
   media-libs/fontconfig
   media-libs/freetype:2
   media-libs/lcms:2
   >net-print/cups-1.5.9999
   !<=net-print/cups-1.5.9999
   sys-devel/bc
   sys-libs/zlib
   jpeg? ( virtual/jpeg )
   perl? ( dev-lang/perl )
   png? ( media-libs/libpng )
   tiff? ( media-libs/tiff )
"
DEPEND="${RDEPEND}"

src_prepare() {
   base_src_prepare
   if [[ "${PV}" == "9999" ]]; then
      eautoreconf
   fi

   patch -p0 < /usr/portage/net-print/cups-filters/qpdf_pdftopdf_processor.patch \
      /var/tmp/portage/net-print/cups-filters-1.0.24/work/cups-filters-1.0.24/filter/pdftopdf/qpdf_pdftopdf_processor.cc
}

src_configure() {
   econf \
      $(use_enable static-libs static) \
      --with-fontdir="fonts/conf.avail" \
      --with-pdftops=pdftops \
      --enable-imagefilters \
      $(use_with jpeg) \
      $(use_with png) \
      $(use_with tiff) \
      --without-php \
      --docdir=/usr/share/doc/${PF}
}

src_compile() {
   default

   if use perl; then
      pushd "${S}/scripting/perl" > /dev/null
      perl-module_src_prep
      perl-module_src_compile
      popd > /dev/null
   fi
}

src_install() {
   default

   if use perl; then
      pushd "${S}/scripting/perl" > /dev/null
      perl-module_src_install
      fixlocalpod
      popd > /dev/null
   fi

   find "${ED}" -name '*.la' -exec rm -f {} +
}


The create the following patch file "qpdf_pdftopdf_processor.patch"

Code:
 
ChangeLog                      cups-filters-1.0.24.ebuild     Manifest                       qpdf_pdftopdf_processor.patch
cups-filters-1.0.23-r1.ebuild  cups-filters-9999.ebuild       metadata.xml                   
jwoodward-linux cups-filters # cat qpdf_pdftopdf_processor.patch
--- qpdf_pdftopdf_processor.cc   2012-09-20 08:46:51.749862735 +0100
+++ qpdf_pdftopdf_processor.cc   2012-09-20 08:49:06.736862060 +0100
@@ -460,13 +460,13 @@
 }
 // }}}
 
-
 void QPDF_PDFTOPDF_Processor::setComments(const std::vector<std::string> &comments) // {{{
 {
   extraheader.clear();
-  for (auto &it : comments) {
-    assert(it.at(0)=='%');
-    extraheader.append(it);
+  //for (auto &it : comments) {
+   for (std::vector<std::string>::const_iterator it = comments.begin(); it != comments.end(); ++it) {
+    assert(it->at(0)=='%');
+    extraheader.append(*it);
     extraheader.push_back('\n');
   }
 }


Then run digecst the ebuild:
Code:

gentoo cups-filters # ebuild cups-filters-1.0.24.ebuild digest


Now run emerge again:

Code:

gentoo cups-filters # emerge -av cups-filters

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N     ] net-print/cups-filters-1.0.24  USE="jpeg png tiff -perl -static-libs" 0 kB

Total: 1 package (1 new), Size of downloads: 0 kB

Would you like to merge these packages? [Yes/No] yes

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) net-print/cups-filters-1.0.24
 * cups-filters-1.0.24.tar.xz SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                         [ ok ]
>>> Unpacking source...
>>> Unpacking cups-filters-1.0.24.tar.xz to /var/tmp/portage/net-print/cups-filters-1.0.24/work
>>> Source unpacked in /var/tmp/portage/net-print/cups-filters-1.0.24/work
>>> Preparing source in /var/tmp/portage/net-print/cups-filters-1.0.24/work/cups-filters-1.0.24 ...
patching file /var/tmp/portage/net-print/cups-filters-1.0.24/work/cups-filters-1.0.24/filter/pdftopdf/qpdf_pdftopdf_processor.cc
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/net-print/cups-filters-1.0.24/work/cups-filters-1.0.24 ...
 * econf: updating cups-filters-1.0.24/config.guess with /usr/share/gnuconfig/config.guess
 * econf: updating cups-filters-1.0.24/config.sub with /usr/share/gnuconfig/config.sub
./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64 --disable-dependency-tracking --disable-static --with-fontdir=fonts/conf.avail --with-pdftops=pdftops --enable-imagefilters --with-jpeg --with-png --with-tiff --without-php --docdir=/usr/share/doc/cups-filters-1.0.24
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether x86_64-pc-linux-gnu-gcc accepts -g... yes
checking for x86_64-pc-linux-gnu-gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of x86_64-pc-linux-gnu-gcc... none
checking for x86_64-pc-linux-gnu-g++... x86_64-pc-linux-gnu-g++
checking whether we are using the GNU C++ compiler... yes
checking whether x86_64-pc-linux-gnu-g++ accepts -g... yes
checking dependency style of x86_64-pc-linux-gnu-g++... none
checking whether x86_64-pc-linux-gnu-gcc and cc understand -c and -o together... yes
checking how to run the C preprocessor... x86_64-pc-linux-gnu-gcc -E
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by x86_64-pc-linux-gnu-gcc... /usr/x86_64-pc-linux-gnu/bin/ld
checking if the linker (/usr/x86_64-pc-linux-gnu/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/x86_64-pc-linux-gnu/bin/ld option to reload object files... -r
checking for x86_64-pc-linux-gnu-objdump... x86_64-pc-linux-gnu-objdump
checking how to recognize dependent libraries... pass_all
checking for x86_64-pc-linux-gnu-dlltool... no
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for x86_64-pc-linux-gnu-ar... x86_64-pc-linux-gnu-ar
checking for archiver @FILE support... @
checking for x86_64-pc-linux-gnu-strip... x86_64-pc-linux-gnu-strip
checking for x86_64-pc-linux-gnu-ranlib... x86_64-pc-linux-gnu-ranlib
checking command to parse /usr/bin/nm -B output from x86_64-pc-linux-gnu-gcc object... ok
checking for sysroot... no
checking for x86_64-pc-linux-gnu-mt... no
checking for mt... no
checking if : is a manifest tool... no
checking for ANSI C header files... no
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if x86_64-pc-linux-gnu-gcc supports -fno-rtti -fno-exceptions... no
checking for x86_64-pc-linux-gnu-gcc option to produce PIC... -fPIC -DPIC
checking if x86_64-pc-linux-gnu-gcc PIC flag -fPIC -DPIC works... yes
checking if x86_64-pc-linux-gnu-gcc static flag -static works... yes
checking if x86_64-pc-linux-gnu-gcc supports -c -o file.o... yes
checking if x86_64-pc-linux-gnu-gcc supports -c -o file.o... (cached) yes
checking whether the x86_64-pc-linux-gnu-gcc linker (/usr/x86_64-pc-linux-gnu/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking how to run the C++ preprocessor... x86_64-pc-linux-gnu-g++ -E
checking for ld used by x86_64-pc-linux-gnu-g++... /usr/x86_64-pc-linux-gnu/bin/ld -m elf_x86_64
checking if the linker (/usr/x86_64-pc-linux-gnu/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the x86_64-pc-linux-gnu-g++ linker (/usr/x86_64-pc-linux-gnu/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for x86_64-pc-linux-gnu-g++ option to produce PIC... -fPIC -DPIC
checking if x86_64-pc-linux-gnu-g++ PIC flag -fPIC -DPIC works... yes
checking if x86_64-pc-linux-gnu-g++ static flag -static works... yes
checking if x86_64-pc-linux-gnu-g++ supports -c -o file.o... yes
checking if x86_64-pc-linux-gnu-g++ supports -c -o file.o... (cached) yes
checking whether the x86_64-pc-linux-gnu-g++ linker (/usr/x86_64-pc-linux-gnu/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for x86_64-pc-linux-gnu-pkg-config... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.20... yes
checking for cups-config... /usr/bin/cups-config
checking for library containing dlopen... -ldl
checking for sigaction... yes
checking for waitpid... yes
checking for wait3... yes
checking for strtoll... yes
checking for open_memstream... yes
checking for getline... yes
checking for strcasestr... yes
checking for library containing pow... none required
checking for stdlib.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for sys/types.h... (cached) yes
checking for unistd.h... (cached) yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking endian.h usability... yes
checking endian.h presence... yes
checking for endian.h... yes
checking dirent.h usability... yes
checking dirent.h presence... yes
checking for dirent.h... yes
checking jpeglib.h usability... yes
checking jpeglib.h presence... yes
checking for jpeglib.h... yes
checking for library containing jpeg_destroy_decompress... -ljpeg
checking for LIBPNG... yes
checking tiff.h usability... yes
checking tiff.h presence... yes
checking for tiff.h... yes
checking for library containing TIFFReadScanline... -ltiff
checking for LCMS... yes
checking for FREETYPE... yes
checking for FONTCONFIG... yes
checking for IJS... yes
checking for POPPLER... yes
checking for ZLIB... yes
checking for LIBQPDF... yes
checking poppler/cpp/poppler-version.h usability... yes
checking poppler/cpp/poppler-version.h presence... yes
checking for poppler/cpp/poppler-version.h... yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for long long... yes
checking for gs... /usr/bin/gs
checking whether gs supports the ps2write device... yes
checking for pdftops... /usr/bin/pdftops
checking whether pdftops supports -origpagesizes... yes
checking whether pdftops supports -r... yes
checking for acroread... ./configure: line 17688: acroread: command not found
no
configure: creating ./config.status
config.status: creating libcupsfilters.pc
config.status: creating libfontembed.pc
config.status: creating Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
configure:
==============================================================================
Environment settings:
   CFLAGS:          -O2 -pipe -fomit-frame-pointer -Wall -pedantic -std=gnu99 -D_GNU_SOURCE
   CXXFLAGS:        -O2 -pipe -fomit-frame-pointer -Wall -pedantic -D_GNU_SOURCE
   LDFLAGS:         -Wl,-O1 -Wl,--as-needed
Build configuration:
   cups-config:     system
   font directory:  /etc/fonts/conf.avail
   gs-path:         system
   imagefilters:    yes
   jpeg:            yes
   pdftops:         pdftops
   pdftops-path:    system
   png:             yes
   php:             no
   php-config:      system
   test-font:       /usr/share/fonts/dejavu/DejaVuSans.ttf
   tiff:            yes
   werror:          no
==============================================================================

>>> Source configured.
>>> Compiling source in /var/tmp/portage/net-print/cups-filters-1.0.24/work/cups-filters-1.0.24 ...
make -j5
make  all-am
make[1]: Entering directory `/var/tmp/portage/net-print/cups-filters-1.0.24/work/cups-filters-1.0.24'
Back to top
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5909

PostPosted: Thu Sep 20, 2012 8:25 am    Post subject: Reply with quote

can you explain why this is here and not in portage forum? net-print/cups-filters-1.0.24 is in portage.
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Back to top
View user's profile Send private message
Jono86
n00b
n00b


Joined: 10 Aug 2012
Posts: 28

PostPosted: Thu Sep 20, 2012 8:29 am    Post subject: Reply with quote

Thought it was unsupported software but obviously this section is for overlays.....

Have recreated it in other section.
Back to top
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5909

PostPosted: Thu Sep 20, 2012 8:55 am    Post subject: Reply with quote

Jono86 wrote:
Thought it was unsupported software but obviously this section is for overlays.....

Have recreated it in other section.

if this is indeed an error in net-print/cups-filters-1.0.24, you should open a bug on the matter.
also it is wise to ruleout any system configuration which can cause this scenario.
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Back to top
View user's profile Send private message
Jono86
n00b
n00b


Joined: 10 Aug 2012
Posts: 28

PostPosted: Thu Sep 20, 2012 9:09 am    Post subject: Reply with quote

Where should I raise the bug?
Back to top
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5909

PostPosted: Thu Sep 20, 2012 9:11 am    Post subject: Reply with quote

Jono86 wrote:
Where should I raise the bug?


bugzilla

btw, you didn't needed to open a new thread, you could ask the mods to move this one to the right location.
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10589
Location: Somewhere over Atlanta, Georgia

PostPosted: Thu Sep 20, 2012 10:49 am    Post subject: Reply with quote

Merged and cleaned up the two threads to preserve the useful replies. @DaggyStyle is right: just ask for it to be moved next time. :wink:

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum