home tags events about login
one honk maybe more

hailey@hails.org posted 07 Jun 2024 15:22 +0000

How do I build debian packages?

I want to take bookworm's zlib source package, compile it for x32, and produce a zlib-x32 binary package for bookworm.

I want to track that source package so that as it is updated, like for security, it is easy to build a new version of my own zlib-x32 binary package downstream of it.

My head is spinning looking at all these docs and tooling and I don't understand where to even begin with what I want to do. Pls advise!

eslerm@cyberplace.so.. replied 08 Jun 2024 01:20 +0000
in reply to: https://benjojo.co.uk/u/benjojo/h/HQx4K1H7F13sZjC6l7

@benjojo @hailey This.

To build a shrine:
```
# mkdir <pkg-name>-<version>
cd foo-0.1
vim foo.c Makefile
dh_make --createorig
# edit at least these
vim debian/changelog debian/control
debuild -i -us -uc -b
debsign ../foo_0.1-1_amd64.changes
# upload
dput ppa:eslerm/foopackages ../foo_0.1-1_amd64.changes
```

You might need `debianutils`. More notes https://markesler.com/notes/deb-packaging/