[SyncEvolution] Debian building packages for syncevolution 1.5.1 and TDE backends

deloptes deloptes at gmail.com
Fri Jun 10 21:49:22 UTC 2016


Hi again,

1.
the second part of my question is/was what to do with the source code and
what would be the best approach?
I think the code should go into syncevolution repository. TDE packages would
be provided then by TDE.
Is it correct assumption and if yes what is the way for doing it?

2.
Now following your advise I updated the package files, but it failed to
build anyway

here is the config (I copy pasted from my test scripts into debian/rules)
and the errors I got.
I don't get those errors when I compile using automake. I assume this is
something to do with dpkg building shared, but I'll be glad if you could
help

dh_auto_configure -- --prefix=/usr \
                --sysconfdir=/etc \
                --libexecdir=/usr/lib/x86_64-linux-gnu/syncevolution \
                --enable-gui \
                --with-rst2man --with-rst2html \
                        --enable-maintainer-mode \
                --enable-core \
                --enable-bluetooth \
                --enable-tdepimabc \
                --enable-tdepimcal \
                --enable-tdepimnotes \
                --disable-tdewallet \
                --enable-sqlite \
                --enable-file \
                --enable-dav \
                --without-gio-gdbus \
                --disable-ssl-certificate-check \
                --disable-akonadi \
                --disable-ebook \
                --disable-ecal \
                --disable-goa \
                --disable-kcalextended \
                --disable-kwallet \
                --disable-maemocal \
                --disable-oauth2 \
                --disable-qtcontacts \
                --disable-gsso \
                --disable-uoa \
                --disable-sign


dpkg-buildpackage -rfakeroot -b -d -us -uc
or
dpkg-buildpackage -rfakeroot -b -d -us -uc -aamd64

/usr/bin/ld: /opt/software/SyncEvolution/syncevolution-1.5.1/src/build-synthesis/src/.libs/libsynthesissdk.a(libsynthesissdk_la-SDK_util.o):
relocation R_X86_64_PC32 against symbol `StrAllocN' can not be used when
making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
Makefile:5931: recipe for target 'src/syncevo/libsyncevolution.la' failed
make[3]: *** [src/syncevo/libsyncevolution.la] Error 1
make[3]: Leaving
directory '/opt/software_x64/SyncEvolution/syncevolution-1.5.1'
Makefile:11453: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving
directory '/opt/software_x64/SyncEvolution/syncevolution-1.5.1'
Makefile:4473: recipe for target 'all' failed
make[1]: *** [all] Error 2
rm src/dbus/glib/stamp-syncevo-session-bindings.h
src/dbus/glib/stamp-syncevo-session-glue.h
src/dbus/glib/stamp-syncevo-connection-bindings.h
src/dbus/glib/stamp-syncevo-server-glue.h
src/dbus/glib/stamp-syncevo-server-bindings.h
src/dbus/glib/stamp-syncevo-connection-glue.h
make[1]: Leaving
directory '/opt/software_x64/SyncEvolution/syncevolution-1.5.1'
dh_auto_build: make -j1 returned exit code 2
debian/rules:18: recipe for target 'binary' failed
make: *** [binary] Error 2
dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit
status 2


perhaps this helps too

grep PIC config.log
configure:9618: checking for gcc option to produce PIC
configure:9625: result: -fPIC -DPIC
configure:9633: checking if gcc PIC flag -fPIC -DPIC works
configure:9651:
gcc -c -g -O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security -Wall -pedantic -D_FORTIFY_SOURCE=2 -fPIC -DPIC -DPIC
conftest.c >&5
configure:11095: gcc -shared  -fPIC -DPIC
conftest.o  -v -Wl,-soname -Wl,conftest -o conftest 2\>\&1
\| /bin/grep  -lc  \>/dev/null 2\>\&1
configure:15166: checking for g++ option to produce PIC
configure:15173: result: -fPIC -DPIC
configure:15181: checking if g++ PIC flag -fPIC -DPIC works
configure:15199:
g++ -c -g -O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DPIC -DPIC
conftest.cpp >&5
lt_cv_prog_compiler_pic='-fPIC -DPIC'
lt_cv_prog_compiler_pic_CXX='-fPIC -DPIC'


_______________________________________________
SyncEvolution mailing list
SyncEvolution at syncevolution.org
https://lists.syncevolution.org/mailman/listinfo/syncevolution



More information about the SyncEvolution mailing list