|
From: John C. <jc...@sa...> - 2019-06-06 16:50:11
|
Hi, I have been trying to build a deb for v2.6.3 I finally figured out how to build 2.6.0 - the build wants "zint_2.6.0.orig.tar.gz" but the download is "zint-2.6.0.src.tar.gz" So: wget https://sourceforge.net/projects/zint/files/zint/2.6.0/zint-2.6.0.src.tar.gz -O zint_2.6.0.orig.tar.gz tar -zxvf zint_2.6.0.orig.tar.gz cd zint-2.6.0 dpkg-buildpackage -us -uc zint_2.6.0_amd64.deb zint-qt_2.6.0_amd64.deb OK, Trying the same sort of thing with 2.6.3 tar -zxvf zint-2.6.3_final.tar.gz This gives us 2.6.3.src (inconsistent dir name) cd zint-2.6.3.src dpkg-buildpackage -us -uc dpkg-buildpackage: source package zint dpkg-buildpackage: source version 2.6.0 dpkg-buildpackage: source distribution stable dpkg-buildpackage: source changed by Robin Stuart <rst...@gm...> dpkg-buildpackage: host architecture amd64 dpkg-source --before-build zint-2.6.3.src fakeroot debian/rules clean dh clean dh_testdir dh_auto_clean dh_clean dpkg-source -b zint-2.6.3.src dpkg-source: warning: non-native package version does not contain a revision dpkg-source: info: using source format '3.0 (quilt)' dpkg-source: info: building zint using existing ./zint_2.6.0.orig.tar.gz Finally found that I needed to edit the debian/changelog to get it to work. It could do with being updated properly. When I was there I noticed there were loads of entries missing, but at least it built. zint_2.6.3_amd64.deb zint-qt_2.6.3_amd64.deb The only think I can't figure how to do is add the .desktop to the deb file automatically. Ironically I can see the conf in the RPM spec file but nothing in the Debian dir. I can also see some mimelink stuff as well for when you do a straight build with 'make install' but not in the debian dir And last but not least.... Installing zint as a deb sems to depend on libpng12-dev ?? And zint-qt depends on libqt4-dev ? Removed those and it builds fine so I think you can patch with this (if the project was on github I'd try and submit a PR) --- zint-2.6.3.src.old/debian/control 2018-02-15 11:47:59.000000000 +0100 +++ zint-2.6.3.src/debian/control 2019-06-06 16:41:18.002142098 +0200 @@ -9,7 +9,6 @@ Package: zint Section: libs Architecture: any -Depends: libpng12-dev Description: A library for encoding data in barcode symbols. Zint is an Open Source barcode encoding and image generating library. It currently features support for over 50 symbologies including @@ -29,7 +28,7 @@ Package: zint-qt Section: libs Architecture: any -Depends: zint (= ${binary:Version}), libqt4-dev +Depends: zint (= ${binary:Version}) Description: Zint Barcode Studio. This package contains Zint Barcode Studio, a QT frontend for the Zint barcode encoding library. B. Rgds John |