ECCC-MSC / libecbufr

libecbufr is a general purpose, template-oriented BUFR encoding/decoding library
Other
10 stars 7 forks source link

need Debian packaging #29

Open vsouvan opened 4 years ago

vsouvan commented 4 years ago

We've removed the Debian packaging script (make_debpkg) for various reasons. We need a way to easily build a proper .deb using as many of the standard Debian tools as possible.

We should also be looking at .rpm support.


Imported from Launchpad using lp2gh.

vsouvan commented 4 years ago

(by vanh-souvanlasy) A new script to create a debian source package has been added. "make_debsrcpkg" This script create a source tar ball .tar.gz along with a .dsc

binary debian package can be created from debian source package using the command dpkg-builpackage

su - dpk-source -x libecbufr_0.8.2.dsc dpkg-source -x libecbufr_0.8.2.dsc cd libecbufr-0.8.2 dpkg-buildpackage -b -us -uc -tc

vsouvan commented 4 years ago

(by chris-beauregard) The following also works (fakeroot is already reqired in make_debsrcpkg):

dpkg-source -x libecbufr_0.8.2.dsc cd libecbufr-0.8.2 fakeroot dpkg-buildpackage -b -us -uc -tc

Minor problem (configure not in path) already fixed in r75. I'm modifying the "make pkg" to generate the .deb so my build boxes also pick it up.

vsouvan commented 4 years ago

(by chris-beauregard) Doesn't want to build under sarge. I think debian/compat needs to be 4 or less, according to the error, which might work. I'm undecided whether we should fix this or just ignore sarge for the moment?

vsouvan commented 4 years ago

(by chris-beauregard) "make pkg" now generates source and binary packages under sarge, etch, lenny, testing, jaunty and karmic. The packages may not entirely meet Debian policy, but at least the process works. Should be able to get a PPA build running without much hassle.