4

I am new to Linux and I'm learning about packaging in Ubuntu.

I wish to run synapse with recoll plguin (lp:~pmarchwiak/synapse-project/recoll-plugin).

Now,

  1. How can I build a package from the development branch to install locally on my system ?

  2. How can I modify source files that I receive from running apt-get source synapse (with synapse being the package in this context) and repackage them into a deb file? (not sure about license violations in this case though).

I have a launchpad account and I have the ssh key uploaded. I am able to download the branch files from the branch.

./configure runs fine in the synapse (package) folder. make or debuild -uc -us returns errors that several vala (a build dependency) files have been deprecated since its release .16.

I fell it can be done with bzr and debuild both. I'd appreciate it if someone would help me with both the ways of building a package, i.e. directly from the branch and and locally.

Jai
  • 63

2 Answers2

2

I've not tried myself the following commands, but they should work with none or minimal modification.

  1. How can I build a package from the development branch to install locally on my system ?

    • Download branch

$ bzr branch lp:~pmarchwiak/synapse-project/recoll-plugin

  • Install dependencies

$ sudo apt-get install devscripts equivs dh-autoreconf bzr-builddeb libcrypt-ssleay-perl

$ cd recoll-plugin && sudo mk-build-deps -i

  • Build package

$ bzr bd --native -- -b -uc -us

  • Install package

$ sudo dpkg -i ../build-area/*.deb


  1. How can I modify source files that I receive from running apt-get source synapse and repackage them into a deb file? (not sure about license violations in this case though).

    • Get source

$ apt-get source synapse

  • Edit it

$ cd synapse && $EDITOR files

  • Install dependencies

$ sudo apt-get install devscripts equivs dh-autoreconf libcrypt-ssleay-perl

$ cd synapse && sudo mk-build-deps -i

  • Build package

$ debuild -b -us -uc

  • Install package

$ sudo dpkg -i ../*.deb

1

Depends on what you're trying to achieve. If you need a package to conveniently uninstall later, then checkinstall would be a good choice:

https://help.ubuntu.com/community/CheckInstall

Jan
  • 12,931
  • 3
  • 34
  • 39