exaexa / codecrypt

Post-quantum cryptography tool (THIS REPOSITORY IS ONLY A MIRROR OF THE MAIN ONE, PLEASE DO NOT FILE BUGS HERE)
https://gitea.blesmrt.net/exa/codecrypt
GNU Lesser General Public License v3.0
307 stars 41 forks source link

Inclusion in Debian #10

Closed HulaHoopWhonix closed 8 years ago

HulaHoopWhonix commented 8 years ago

Please submit your packages for inclusion in Debian repos. I would like to see your program in the next stable release so our project can take advantage of it.

Related: Do you host a stand-alone repo we can document installation from? Please consider adding 32-bit packages.

exaexa commented 8 years ago

I was actually just investigating that. There's once been codecrypt package already in debian but the official method is hard to remember and well kindof hard to maintain; is there some good method to e.g. create debian packages automatically just like tarballs with make dist ?

PS. patches/howtos welcome. :]

mosra commented 8 years ago

CMake does that (but ugly and non-conformant) :P

Otherwise, if you want just "ready to copypaste" solution, have a look here, I tried to reduce all the bureaucracy bullshit to a minimum. Then the usage is just calling dpkg-buildpackage and you have your debs ready.

exaexa commented 8 years ago

Oh go on with cmake. :D

I've been just playing with git-buildpackage, it seems to survive my older dsc package just right. Will add to repo as soon as I get some grasp about the gazillion things it actually does. But I have 1.7.2 package working.

@HulaHoopWhonix any experience/examples with debian packaging from git? :]

btw the link for the older packages includes the .dsc: http://e-x-a.org/codecrypt/debian/

exaexa commented 8 years ago

Awright, this does the trick for me:

Can anyone of you please test if it also works for someone else than me? :]

mosra commented 8 years ago

Why a separate repo?

exaexa commented 8 years ago

Noob problems. It can probably be imported here as well, gbp tooling doesn't seem that useful after all.

exaexa commented 8 years ago

Well, there's now infrastructure for quickly generating correct form of packages, see 017ef07f4

exaexa commented 8 years ago

Debian Bug#814462: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=814462

HulaHoopWhonix commented 8 years ago

@exaexa

If there is an easy automated way for packaing i would like to know it. To make a package we usually use a pre-existing package as a template and then modify for the new one. You can see there the /debian sub folder. You could copy and paste it then change it for codecrypt:

https://github.com/Whonix/anon-mixmaster/tree/master/debian

Debian package build instructions are included in the project's readme.

https://github.com/Whonix/anon-mixmaster/blob/master/README.md

There is also the Debian mentors mailing list, which helps with packaging questions.

https://lists.debian.org/debian-mentors/

You can reach out to the Debian Anonymity Tools or Debian Privacy Tools Teams for help:

https://tracker.debian.org/teams/anonymity-tools/

https://qa.debian.org/developer.php?email=pkg-privacy-maintainers%40lists.alioth.debian.org

exaexa commented 8 years ago

Already doing that, now waiting for processing in debian mentors. Don't you happen to know any willing debian sponsors? :]

About the automated way -- Can you please try ./autogen.sh ; ./configure; ./build-debian-package.sh 1.7.3 from master branch on your machine? It should easily produce all the package files in debian-packages dir. (requires devscripts pkg)

EDIT: just made the buildscript smarter, you can omit the version argument.

exaexa commented 8 years ago

RFS: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=814550

HulaHoopWhonix commented 8 years ago

Some Debian maintainers affiliated with privacy projects like Tor can be potential sponsors. Try to contact them all to increase your chances:

Peter Palfrader weasel@debian.org Jacob Appelbaum jacob@appelbaum.net Jérémy Bobbio lunar@debian.org Ximin Luo infinity0@debian.org

When running the scripts above I get this error. The libtoolize dependency doesn't seem to be in Debian stable yet:

./autogen.sh: 33: ./autogen.sh: libtoolize: not found bash: ./configure: No such file or directory make: *\ No rule to make target 'dist'. Stop.

mosra commented 8 years ago

I still think that the package should be self-contained (and even better, re-entrant) to make it easy for users/packagers and automated building tools (e.g. -- I encounter debian/ directory so I just run debuild; I encounter PKGBUILD file so I run makepkg; I encounter package.rb so I run brew install package.rb -- and nothing else, it should do everything including proper dependency checks for all related tools).

exaexa commented 8 years ago

@HulaHoopWhonix apt-get install libtool pkg-config

@mosra Well, is there an automated way for debuild to build the dist package so it can stop complaining about missing orig? Still I hope that anyone who sees ./build-debian-package.sh cannot possibly get confused. :]

mosra commented 8 years ago

Still I hope that anyone who sees ./build-debian-package.sh cannot possibly get confused.

Buildbots won't see that ;)

Missing orig? What's that?

exaexa commented 8 years ago

.orig.tar.gz's are needed for quilt packages. And you can't pass native packages to debian if you don't have a proof that no debian patchwork will ever be needed. Which I obviously don't have.

mosra commented 8 years ago

Ahh, right, now I understand. Crazy overcomplicated rules :/ One would think that you as both a maintainer and a packager can provide "native" packages because all possible patches can be integrated right away in the upstream sources.

exaexa commented 8 years ago

upstream independence. :D

exaexa commented 8 years ago

After some struggle there's now separate repo for the debian herd: https://github.com/exaexa/codecrypt-debian

gbp buildpackage builds the package in the most maintainable way and everything. Going through the sponsoring process now.

exaexa commented 8 years ago

https://packages.debian.org/sid/codecrypt

<3

HulaHoopWhonix commented 6 years ago

@exaexa We have now included codecrypt by default in the next version of our anonymity distro Whonix which will soon be released. I'm running codecrypt and loving it. I wanted to say thanks again for your work on this great software.