The general procedure for changing build options for an Ubuntu/Debian package goes like this:
- Get the build dependencies
- Download the source package
- Change the appropriate files (usually
debian/rules)
- Commit changes
- Build the packages
- Install the packages
The commands involved:
sudo apt-get build-dep graphviz
apt-get source graphviz
cd graphviz-* # Or check the directory with ls and pick the correct version
Then you can delete the configuration option from debian/rules, either using an editor, or:
sed -i '/--without-gts/d' debian/rules
This command is specific to this instance, as there is only one match for --without-gts in debian/rules.
Depending on what changes were made, a commit with a message is required or an error will occur during the build step.
dpkg-source --commit
Then build the package:
dpkg-buildpackage -us -uc
This will create a bunch of packages in the parent directory. The options indicate the you don't wish to make a package for uploading to the Ubuntu repositories (and so don't want to sign them, etc.). Now you can install these packages:
sudo dpkg -i ../*.deb # or pick out the packages manually
The build dependencies may be different from the installation dependencies, so to install all the dependencies you might need to run:
sudo apt-get install -f