-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Modernize debian packaging #7
base: master
Are you sure you want to change the base?
Conversation
4d9a88b
to
b3f16da
Compare
Hi @jwt27 !
I don't understand it, the
This will force me to always use a fresh cloned repo to create a package. Is true that I don't currently generate packages often, but this seems really annoying, and quite dangerous.
Ivan added it to make the process simpler. So we can generate a package and continue working, without needing to reconfigure the sources. I think this isn't a big problem, but I must check the consequences. |
That version format is meant for packages generated from an upstream tarball, where the Debian packaging is done separately ("quilt" format). In a "native" package, the debian directory is part of the repository itself, and in this case it now refuses to build if there are hyphens in the version number.
With
If you want to keep the backups, I'll add it back. It only backed up one file though ( |
Maybe another idea: you could back up everything removed by |
b3f16da
to
3c0af48
Compare
Hi @jwt27 !
This doesn't make any sense to me. Changes in the packaging can't be reflected in the version itself, this is why Debian packages have "VERSION-PACKAGE_ITERATION". You must find a way to setup the process to keep it this way.
Some times I add things like project files in local formats, or caches. So this isn't a good idea.
The .a isn't really important, but we must avoid removing files that aren't regenerated. |
Here is an attempt to upgrade the Debian package scripts.
Instead of writing the
dh_*
invocation sequence manually, we can define asingle target that invokes
dh
, and let it run thedh_*
subprograms in theorder that it wants. Then we can define
override_dh_*
targets whenever wewant it do something different than usual.
Alternatively one could make files such as
rhtvision2.2.3.install
,rhtvision2.2.3.docs
, etc. I think the existingdh_*
commands in the rulesscript are adequate, no need to reinvent the wheel. Those files would also
have to be generated at build time to contain the current version number. I
see an attempt has previously been made to do that with
control.in
. Or maybeyou still use this to generate the control file?
Some notes:
'oldstable' has level 12.
changed it to a plus sign.
git clean
. Of coursethis won't do anything when compiling from a tarball. I hope that's okay.
make -j
is notnecessary.
ldconfig
in postinst/postrm scripts is no longer necessary. Or,that is what I assumed, since lintian complains about it.
dh_make
example files, they just add clutter.debianbackup.tar
file. I removed this sinceit seems unnecessary now that we have git.