The Wayback Machine - https://web.archive.org/web/20221225202056/https://github.com/github/backup-utils/pull/732
Skip to content
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

Fix and make its Debian package modern #732

Merged
merged 21 commits into from Jun 8, 2021
Merged

Conversation

henrich
Copy link
Contributor

@henrich henrich commented May 13, 2021

With the power of lintian, lintian-brush, and my DD experience, fix all lintian warnings for the deb package (bonus: add man pages).

And also fix this package as arch-indep package (arch: amd64 -> arch: all). It means we can install this package on arm64 hosts without a rebuild.

h-yamane-sti added 16 commits May 13, 2021
Specifying empty build-indep: target does not have any meanings.
Changes-By: lintian-brush
Fixes: lintian: missing-debian-source-format
See-also: https://lintian.debian.org/tags/missing-debian-source-format.html
Fixes: lintian: older-source-format
See-also: https://lintian.debian.org/tags/older-source-format.html
W: github-backup-utils: syntax-error-in-debian-changelog line 144 "found trailer where expected start of change data"
W: github-backup-utils: syntax-error-in-debian-changelog line 155 "found trailer where expected start of change data"
W: github-backup-utils: syntax-error-in-debian-changelog line 160 "found trailer where expected start of change data"
W: github-backup-utils: syntax-error-in-debian-changelog line 45 "badly formatted trailer line"
W: github-backup-utils: syntax-error-in-debian-changelog line 47 "found start of entry where expected more change data or trailer"
As debian package, "Runs under most Linux/Unix environments." comment is
unnecessary, "MIT licensed, open source software maintained
by GitHub, Inc." is also no meaning for users (It should be documented
on other file/items on debian/control).
"Architecture:" field shows it depends which architecture, if you specify
it as "any" it would be converted on build host arch. "all" means architecture
independs.

Well, this package does not contain any architecture depend files. No .so files,
and /usr/bin/* files are shellscripts.

> $ file ghe-*
> ghe-backup:     Bourne-Again shell script, ASCII text executable
> ghe-host-check: Bourne-Again shell script, ASCII text executable
> ghe-restore:    Bourne-Again shell script, ASCII text executable

So it should be "Architecture: all", not "any".
This does not require access to root (or fakeroot), so set it as.
> commit 1de3dd4
> Author: Twan Wolthof <twan@xeago.nl>
> Date:   Wed Feb 4 16:34:19 2015 +0100
>
>     Add devscripts to debian's build-depends for checkbashisms

However, not necessary to build package itself, so it should be removed.
current oldstable "stretch" has debhelper v10, so we can use 10.
We can improve deb package with current debian-policy 4.5.1, so declare it.
It seems that Twan Wolthof <xeago@spotify.com> does not have any
responsibility for maintaining this package now. someone@github.com
should be specified as Maintainer in fact.

If other than Zachary would update this package too, just add it as
"Uploaders: foobar <foobar@github.com>" or so.
1. Add help2man as Build dependency via debian/control
2. Run it on build time via debian/rules
3. Install it via debian/manpages
4. Add clean target via debian/clean
henrich pushed a commit to henrich/backup-utils that referenced this pull request May 13, 2021
Well, GitHub workflow specifies ubuntu 16.04 as test env. It is now under
EMS stage (https://lists.ubuntu.com/archives/ubuntu-announce/2021-March/000266.html)
but is still there. We can ignore that as "package build" env, but once
revert changes
@henrich
Copy link
Contributor Author

henrich commented May 17, 2021

Note: a test failure on macos-latest is fixed with #733 (more strict shellcheck behavior since ubuntu-* env use v0.7.0 but macos env uses latest 0.7.2).

@djdefi djdefi requested a review from a team May 17, 2021
@henrich
Copy link
Contributor Author

henrich commented May 18, 2021

Hmm, macos-latest failed with another issue

test: ghe-restore -c into unconfigured vm ... ... FAILED (15s)

Of course, it is not related to this PR and merged shellcheck fix PR :)

Copy link
Contributor

@zachary-mark zachary-mark left a comment

Apologies for the delay on reviewing this pull request! We were in the process of getting 3.1.0 GAed and this fell a bit by the wayside.

This looks awesome! I've hit the button to merge master into this PR and if everything passes I will give this one last look before approval - I tried it out myself on a stretch system that I use on a regular basis and things seem to be working correctly.

Copy link
Contributor

@zachary-mark zachary-mark left a comment

I'm re-running the CI now, but I'm pretty sure you didn't cause the OSX failure. Nice work on this and I love the help2man addition. Thank you for your contribution!

@zachary-mark zachary-mark merged commit 6c0d60f into github:master Jun 8, 2021
4 checks passed
Copy link

@t2GreenFamidam t2GreenFamidam left a comment

Done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants