Skip to content

Instantly share code, notes, and snippets.

@zcot

zcot/deb-cm2.md Secret

Last active February 25, 2024 13:47
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zcot/ff43f40ceaf970623bfd18ead1bd65b2 to your computer and use it in GitHub Desktop.
Save zcot/ff43f40ceaf970623bfd18ead1bd65b2 to your computer and use it in GitHub Desktop.
creating .deb package with conky-manager2 source

You follow the normal conky-manager2 build instructions and stop after this command: make

you do not: sudo make install otherwise you should remove conky-manager2 like this: sudo make uninstall

You must be in that correct directory where the conky-manager2 folder is. My example is creating a directory at home(~) called "source", and I do the building inside there.

So, I have the source code project from github here: ~/source/conky-manager2/ And when you build the .deb it will build it "out of tree"(outside of the main source code files/folders, -this way it does not affect their integrity within anything inside conky-manager2/ folder). So the deb build related files would end up like this example: ~/source/builds/temp/

Now, this is how to create a .deb file from this same build directory( ~/source/conky-manager2/ ).

apt install bzr-builddeb debhelper meson

next command: ./build-deb.sh

You get an informational message:

This package has a Debian revision number but there does not seem to be an appropriate original tar file or .orig directory in the parent directory; (expected one of conky-manager2_2.7.orig.tar.gz, conky-manager2_2.7.orig.tar.bz2, conky-manager2_2.7.orig.tar.lzma, conky-manager2_2.7.orig.tar.xz or conky-manager2-2.7.orig) continue anyway? (y/n)

y

The end result appears as failure but this is fine, fail message, something like:

debsign: gpg error occurred! Aborting.... debuild: fatal error at line 1112: running debsign failed brz: ERROR: The build failed. Failed

Everything is fine though:

Now go find the deb: look in: ~/source/builds/temp/ find the file similar to this: conky-manager2_2.7-0ubuntu2_amd64.deb NOT the one with 'dbgsym_' in the name: conky-manager2-dbgsym_2.7-0ubuntu2_amd64.deb

Maybe you move or copy that to the Downloads folder? You can put it somewhere else, because now you can delete all this conky-manager2 directory and the builds/temp/.

Both directories are only taking up 35 MiB disk space.

Move that .deb file first, then you can kill the whole build directories and all the files: ~/source/conky-manager2 and ~/source/builds(this is where the .deb build landed)

And you can get rid of all the previous build tools packages: apt autoremove build-essential git valac libgee-0.8-dev libgtk-3-dev libjson-glib-dev gettext libgettextpo-dev bzr-builddeb debhelper meson

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment