Off-topic: Issues with building Ubuntu packages
silver.bullet at zoho.com
silver.bullet at zoho.com
Tue Aug 11 19:54:47 UTC 2015
On Tue, 11 Aug 2015 09:39:13 -0500, William Scott Lockwood III wrote:
>Have you looked at FPM? It can build all kinds of packages for you
>very easily. Takes all of the pain and drudgery out of the process.
>Check out: https://github.com/jordansissel/fpm
Ok, now I read a little bit of the fpm Wiki. IIUC it does not provide
what I tried to do with my script. IIUC fpm is similar to checkinstall,
as long as building is done with make and not with scons or something
else, while checkinstall seems to be easier to use than fpm. Resp. I
don't understand what fpm is able to do.
Using my script I tried to use an Ubuntu source package and to
overwrite the source code files, with source code files from upstream.
I was using git, but often a tarball is available. For a tarball it
would look like this:
apt-get source foo
sudo apt-get build-dep foo
mv foo-package-version-old/ foo-upstream-replacment-version
wget ftp://foo-upstream-replacment-version.tar
tar xf foo-upstream-replacment-version.tar
cd foo-upstream-replacment-version
nano debian/changelog
libtoolize --force --copy --automake
aclocal
autoreconf
debuild -b -us -uc
sudo dpkg -i ../*foo*.deb
sudo apt-get install -f
This way usually all the split packages are build, IOW foo, foo-dev,
libfoo, foo-dbg, foo-some-separated-thingy,
foo-some-separated-thingy-dev etc. and all dependencies etc. are
automatically mentioned by the packages.
This worked when using my script too, but something failed, since libfm
behaves as usual and not as the fixed version should work. It's not the
code from upstream, since I could build packages for Arch that provide
a working new libfm.
In my script ( http://pastebin.com/kim6UF4j ) the above described build
starts at line 68, I just checked out from git before and build an
archive, instead of downloading a tarball. I likely made a mistake, but
I don't notice it.
Regards,
Ralf
More information about the ubuntu-users
mailing list