open-eid / gentoo

Gentoo ebuild (community provided)
10 stars 14 forks source link

dev-libs/libdigidocpp: drop 3.15, add 3.16, fix build #63

Closed monoidic closed 12 months ago

monoidic commented 1 year ago

Simple version bump to the latest version of libdigidocpp + dropping the -DOF=_Z_OF definition from CPPFLAGS, as this was dropped by Gentoo and hence causes builds to fail now.

lkraav commented 10 months ago

Hmmm, does this require a dependency on >=sys-libs/zlib-1.3?

I'm currently on zlib-1.2, and building this fails with

FAILED: src/CMakeFiles/digidocpp.dir/util/ZipSerialize.cpp.o                                                                                                                                                                                  
/usr/bin/x86_64-pc-linux-gnu-g++ -DBUILD_VER=0 -DMAJOR_VER=3 -DMINOR_VER=16 -DRELEASE_VER=0 -DTARGET_NAME=\"digidocpp\" -Ddigidocpp_EXPORTS -I/run/zram/portage/dev-libs/libdigidocpp-3.16.0/work/libdigidocpp-3.16.0/src -I/run/zram/portage/
dev-libs/libdigidocpp-3.16.0/work/libdigidocpp-3.16.0_build/src -isystem /usr/include/minizip  -march=core2 -O2 -pipe -Wl,-O1 -Wl,--as-needed -std=gnu++17 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -MD -MT src/CMakeFiles/digido
cpp.dir/util/ZipSerialize.cpp.o -MF src/CMakeFiles/digidocpp.dir/util/ZipSerialize.cpp.o.d -o src/CMakeFiles/digidocpp.dir/util/ZipSerialize.cpp.o -c /run/zram/portage/dev-libs/libdigidocpp-3.16.0/work/libdigidocpp-3.16.0/src/util/ZipSeri
alize.cpp                                                                                                                                                                                                                                     
In file included from /run/zram/portage/dev-libs/libdigidocpp-3.16.0/work/libdigidocpp-3.16.0/src/minizip/unzip.h:55,                                                                                                                         
                 from /run/zram/portage/dev-libs/libdigidocpp-3.16.0/work/libdigidocpp-3.16.0/src/util/ZipSerialize.cpp:26:                                                                                                                   
/run/zram/portage/dev-libs/libdigidocpp-3.16.0/work/libdigidocpp-3.16.0/src/minizip/ioapi.h:137:51: error: expected initializer before ‘OF’                                                                                                   
  137 | typedef voidpf   (ZCALLBACK *open_file_func)      OF((voidpf opaque, const char* filename, int mode));                                                                                                                                
      |                                                   ^~                                                                                                                                                                                  
/run/zram/portage/dev-libs/libdigidocpp-3.16.0/work/libdigidocpp-3.16.0/src/minizip/ioapi.h:138:51: error: expected initializer before ‘OF
...