[SyncEvolution] Debian building packages for syncevolution 1.5.1 and TDE backends
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@syncevolution.org https://lists.syncevolution.org/mailman/listinfo/syncevolution
Re: [SyncEvolution] syncevolution 1.5.1 and TDE backends
Tino Mettler wrote: > I don't get the real question. If you added your own backend and want > to know how to add it to the Debian packaging, you could > use the KDE backend (in the syncevolution-libs-kde package) as an example: > > 1. add a syncevolution-libs-tde backend package to debian/control (use > the syncevolution-libs-kde part as a template) > > 2. add a file debian/syncevolution-libs-tde.install (use > debian/syncevolution-libs-kde.install as a template) and insert the > backend libs for your TDE backend > > If you have other questions regarding usage of the Debian packaging, > just ask. > > Regards, > Tino Thanks Tino, this was exactly the answer I was looking for. I don't like reinventing the wheel. You saved me some precious time. regards ___ SyncEvolution mailing list SyncEvolution@syncevolution.org https://lists.syncevolution.org/mailman/listinfo/syncevolution
Re: [SyncEvolution] syncevolution 1.5.1 and TDE backends
On Fri, Jun 03, 2016 at 22:34:45 +0200, deloptes wrote: > I was working on a TDE (Tinity Desktop Env) backends in the past few months > and I tried recently to build packages for debian, but failed miserably. > I was wondering how I could go ahead with the code now. I would consider the > backend as working (I need to improve/change few things in the feature). > I am not able to test the wallet because I don't have any account, so the > wallet backend code is not tested. The rest is working without major > issues. > > Can you share some ideas please? Hi, I don't get the real question. If you added your own backend and want to know how to add it to the Debian packaging, you could use the KDE backend (in the syncevolution-libs-kde package) as an example: 1. add a syncevolution-libs-tde backend package to debian/control (use the syncevolution-libs-kde part as a template) 2. add a file debian/syncevolution-libs-tde.install (use debian/syncevolution-libs-kde.install as a template) and insert the backend libs for your TDE backend If you have other questions regarding usage of the Debian packaging, just ask. Regards, Tino ___ SyncEvolution mailing list SyncEvolution@syncevolution.org https://lists.syncevolution.org/mailman/listinfo/syncevolution