On 8/24/18 16:31, Sebastien Bacher wrote: > Package: volume-key > Version: 0.3.10-1 > > hey, > > There is a new 0.3.11 version available switch to python3, it would be > nice to have the update in Debian (and maybe the python binary > re-enabled now that the code is using python3)
There are some unresolved issues which need to be fixed first. See my email to the upstream developer: > Hi Jiri, > > when trying to build volume_key 0.3.11 for debian, the package fails to > build as we use -Wl,-z,defs to detect underlinking and unresolved symbols: > > libtool: link: gcc -shared -fPIC -DPIC > python/.libs/_volume_key_la-volume_key_wrap.o -Wl,-rpath > -Wl,/home/michael/debian/build-area/volume-key-0.3.11/lib/.libs > -L/usr/lib/python3.6/config-3.6m-x86_64-linux-gnu -L/usr/lib > lib/.libs/libvolume_key.so -lpython3.6m -lpthread -ldl -lutil -lm > -lglib-2.0 -lnss3 -lnssutil3 -lsmime3 -lssl3 -lplds4 -lplc4 -lnspr4 -g > -O2 -fstack-protector-strong -Wl,-export-dynamic -Wl,-O1 > -Wl,-Bsymbolic-functions -Wl,-z -Wl,relro -Wl,-z -Wl,now -Wl,-z -Wl,defs > -Wl,--as-needed -Wl,-soname -Wl,_volume_key.so -o > python/.libs/_volume_key.so > /usr/bin/ld: python/.libs/_volume_key_la-volume_key_wrap.o: in function > `_wrap_Packet_get_format': > ./python/volume_key_wrap.c:5232: undefined reference to > `PyString_AsStringAndSize' > /usr/bin/ld: python/.libs/_volume_key_la-volume_key_wrap.o: in function > `_wrap_Packet_open_unencrypted': > ./python/volume_key_wrap.c:5326: undefined reference to > `PyString_AsStringAndSize' > /usr/bin/ld: python/.libs/_volume_key_la-volume_key_wrap.o: in function > `_wrap_Volume_add_secret': > ./python/volume_key_wrap.c:4387: undefined reference to > `PyString_AsStringAndSize' > /usr/bin/ld: python/.libs/_volume_key_la-volume_key_wrap.o: in function > `_wrap_Volume_create_packet_cleartext': > ./python/volume_key_wrap.c:4664: undefined reference to > `PyString_FromStringAndSize' > /usr/bin/ld: python/.libs/_volume_key_la-volume_key_wrap.o: in function > `_wrap_Volume_create_packet_assymetric': > ./python/volume_key_wrap.c:4743: undefined reference to > `PyString_FromStringAndSize' > /usr/bin/ld: python/.libs/_volume_key_la-volume_key_wrap.o: in function > `_wrap_Volume_create_packet_asymmetric': > ./python/volume_key_wrap.c:4828: undefined reference to > `PyString_FromStringAndSize' > /usr/bin/ld: python/.libs/_volume_key_la-volume_key_wrap.o: in function > `_wrap_Volume_create_packet_assymetric_from_cert_data': > ./python/volume_key_wrap.c:4894: undefined reference to > `PyString_AsStringAndSize' > /usr/bin/ld: ./python/volume_key_wrap.c:4931: undefined reference to > `PyString_FromStringAndSize' > /usr/bin/ld: python/.libs/_volume_key_la-volume_key_wrap.o: in function > `_wrap_Volume_create_packet_asymmetric_from_cert_data': > ./python/volume_key_wrap.c:4997: undefined reference to > `PyString_AsStringAndSize' > /usr/bin/ld: ./python/volume_key_wrap.c:5034: undefined reference to > `PyString_FromStringAndSize' > /usr/bin/ld: python/.libs/_volume_key_la-volume_key_wrap.o: in function > `_wrap_Volume_create_packet_with_passphrase': > ./python/volume_key_wrap.c:5111: undefined reference to > `PyString_FromStringAndSize' > /usr/bin/ld: python/.libs/_volume_key_la-volume_key_wrap.o: in function > `_wrap_Packet_open': > ./python/volume_key_wrap.c:5273: undefined reference to > `PyString_AsStringAndSize' > collect2: error: ld returned 1 exit status > make[3]: *** [Makefile:959: python/_volume_key.la] Error 1 > make[3]: Leaving directory > '/home/michael/debian/build-area/volume-key-0.3.11' > make[2]: *** [Makefile:1235: all-recursive] Error 1 > make[2]: Leaving directory > '/home/michael/debian/build-area/volume-key-0.3.11' > make[1]: *** [Makefile:746: all] Error 2 > make[1]: Leaving directory > '/home/michael/debian/build-area/volume-key-0.3.11' > > As I'm no python developer, I searched a bit and found > https://github.com/google/sentencepiece/issues/25 > which hints at a Python3 related problem, which correlates with the > switch to Python3 in 0.3.11 > > Maybe volume-key needs a similar fix. > > To reproduce the problem, run LDFLAGS=-Wl,-z,defs ./configure && make > > I would have filed an upstream bug report, bug > https://pagure.io/volume_key/ requires yet another user account. > Hope you don't mind if I contact you directly. ... > Am 13.08.2018 um 21:10 schrieb Michael Biebl: > >> ./python/volume_key_wrap.c:5232: undefined reference to >> `PyString_AsStringAndSize' > > ... > >> As I'm no python developer, I searched a bit and found >> https://github.com/google/sentencepiece/issues/25 >> which hints at a Python3 related problem, which correlates with the >> switch to Python3 in 0.3.11 > > It looks like this API was removed in python 3.3. At least that's how I > understand https://bugs.python.org/issue2799 -- Why is it that all of the instruments seeking intelligent life in the universe are pointed away from Earth?
signature.asc
Description: OpenPGP digital signature