[Slackbuilds-users] man pages problems with git-lfs
Erich Ritz
erich.public at protonmail.com
Wed Feb 22 15:39:05 UTC 2023
Hi Willy,
I noticed reviewing my rkhunter log that git-lfs stores its man pages in /usr/man/man1/man1/ (instead of /usr/man/man1/). It's due to this line in the SlackBuild:
mv man/* $PKG/usr/man/man1/
But in the source directory:
# ls man
html/ man1/ man5/ man7/
I guess they've moved stuff around since you originally wrote the SlackBuild?
So it has the effect:
$ man git-lfs-update
No manual entry for git-lfs-update
I ran sbopkglint on the package and got some warnings (owner/permissions) (see below). From that output I also noticed it's putting html files inside /usr/man.
B. Watson: an idea for an additional check for sbopkglint is to make sure no subdirectories are created under /usr/man/man[123456789n]/ (and also the alternate language dirs /usr/man/*/man[123456789n]).
Erich
# sbopkglint /var/lib/slackrepo/etr/packages/15.0/x86_64/development/git-lfs/git-lfs-3.3.0-x86_64-1_SBo.txz
Using tests from /usr/share/sbo-maintainer-tools/sbopkglint.d
Exploding /var/lib/slackrepo/etr/packages/15.0/x86_64/development/git-lfs/git-lfs-3.3.0-x86_64-1_SBo.txz to /tmp/sbopkglint.Cd1lCd ...OK
Running pre-doinst test...OK
Installing /var/lib/slackrepo/etr/packages/15.0/x86_64/development/git-lfs/git-lfs-3.3.0-x86_64-1_SBo.txz to /tmp/sbopkglint.Cd1lCd ...OK
Running test: 05-basic-sanity...OK
Running test: 10-docs...OK
Running test: 15-noarch...OK
Running test: 20-arch...OK
Running test: 25-lafiles...OK
Running test: 30-manpages...
--- bad man page owner/permissions (should be 0644, root:root)
-rw-r--r-- 1 1001 122 8641 Nov 30 11:24 usr/man/man1/html/git-lfs-checkout.1.html.gz
-rw-r--r-- 1 1001 122 7739 Nov 30 11:24 usr/man/man1/html/git-lfs-clean.1.html.gz
-rw-r--r-- 1 1001 122 8420 Nov 30 11:24 usr/man/man1/html/git-lfs-clone.1.html.gz
-rw-r--r-- 1 1001 122 14236 Nov 30 11:24 usr/man/man1/html/git-lfs-config.5.html.gz
-rw-r--r-- 1 1001 122 7791 Nov 30 11:24 usr/man/man1/html/git-lfs-dedup.1.html.gz
-rw-r--r-- 1 1001 122 7503 Nov 30 11:24 usr/man/man1/html/git-lfs-env.1.html.gz
-rw-r--r-- 1 1001 122 7675 Nov 30 11:24 usr/man/man1/html/git-lfs-ext.1.html.gz
-rw-r--r-- 1 1001 122 10316 Nov 30 11:24 usr/man/man1/html/git-lfs-faq.7.html.gz
-rw-r--r-- 1 1001 122 9773 Nov 30 11:24 usr/man/man1/html/git-lfs-fetch.1.html.gz
-rw-r--r-- 1 1001 122 8225 Nov 30 11:24 usr/man/man1/html/git-lfs-filter-process.1.html.gz
-rw-r--r-- 1 1001 122 8065 Nov 30 11:24 usr/man/man1/html/git-lfs-fsck.1.html.gz
-rw-r--r-- 1 1001 122 8411 Nov 30 11:24 usr/man/man1/html/git-lfs-install.1.html.gz
-rw-r--r-- 1 1001 122 7972 Nov 30 11:24 usr/man/man1/html/git-lfs-lock.1.html.gz
-rw-r--r-- 1 1001 122 8318 Nov 30 11:24 usr/man/man1/html/git-lfs-locks.1.html.gz
-rw-r--r-- 1 1001 122 7781 Nov 30 11:24 usr/man/man1/html/git-lfs-logs.1.html.gz
-rw-r--r-- 1 1001 122 8222 Nov 30 11:24 usr/man/man1/html/git-lfs-ls-files.1.html.gz
-rw-r--r-- 1 1001 122 8964 Nov 30 11:24 usr/man/man1/html/git-lfs-merge-driver.1.html.gz
-rw-r--r-- 1 1001 122 14406 Nov 30 11:24 usr/man/man1/html/git-lfs-migrate.1.html.gz
-rw-r--r-- 1 1001 122 8021 Nov 30 11:24 usr/man/man1/html/git-lfs-pointer.1.html.gz
-rw-r--r-- 1 1001 122 7668 Nov 30 11:24 usr/man/man1/html/git-lfs-post-checkout.1.html.gz
-rw-r--r-- 1 1001 122 7786 Nov 30 11:24 usr/man/man1/html/git-lfs-post-commit.1.html.gz
-rw-r--r-- 1 1001 122 7647 Nov 30 11:24 usr/man/man1/html/git-lfs-post-merge.1.html.gz
-rw-r--r-- 1 1001 122 7901 Nov 30 11:24 usr/man/man1/html/git-lfs-pre-push.1.html.gz
-rw-r--r-- 1 1001 122 10013 Nov 30 11:24 usr/man/man1/html/git-lfs-prune.1.html.gz
-rw-r--r-- 1 1001 122 8324 Nov 30 11:24 usr/man/man1/html/git-lfs-pull.1.html.gz
-rw-r--r-- 1 1001 122 8161 Nov 30 11:24 usr/man/man1/html/git-lfs-push.1.html.gz
-rw-r--r-- 1 1001 122 8316 Nov 30 11:24 usr/man/man1/html/git-lfs-smudge.1.html.gz
-rw-r--r-- 1 1001 122 7802 Nov 30 11:24 usr/man/man1/html/git-lfs-standalone-file.1.html.gz
-rw-r--r-- 1 1001 122 7869 Nov 30 11:24 usr/man/man1/html/git-lfs-status.1.html.gz
-rw-r--r-- 1 1001 122 8634 Nov 30 11:24 usr/man/man1/html/git-lfs-track.1.html.gz
-rw-r--r-- 1 1001 122 8030 Nov 30 11:24 usr/man/man1/html/git-lfs-uninstall.1.html.gz
-rw-r--r-- 1 1001 122 7993 Nov 30 11:24 usr/man/man1/html/git-lfs-unlock.1.html.gz
-rw-r--r-- 1 1001 122 7687 Nov 30 11:24 usr/man/man1/html/git-lfs-untrack.1.html.gz
-rw-r--r-- 1 1001 122 7835 Nov 30 11:24 usr/man/man1/html/git-lfs-update.1.html.gz
-rw-r--r-- 1 1001 122 9057 Nov 30 11:24 usr/man/man1/html/git-lfs.1.html.gz
-rw-r--r-- 1 1001 122 1542 Nov 30 11:24 usr/man/man1/man1/git-lfs-checkout.1.gz
-rw-r--r-- 1 1001 122 660 Nov 30 11:24 usr/man/man1/man1/git-lfs-clean.1.gz
-rw-r--r-- 1 1001 122 1283 Nov 30 11:24 usr/man/man1/man1/git-lfs-clone.1.gz
-rw-r--r-- 1 1001 122 705 Nov 30 11:24 usr/man/man1/man1/git-lfs-dedup.1.gz
-rw-r--r-- 1 1001 122 434 Nov 30 11:24 usr/man/man1/man1/git-lfs-env.1.gz
-rw-r--r-- 1 1001 122 613 Nov 30 11:24 usr/man/man1/man1/git-lfs-ext.1.gz
-rw-r--r-- 1 1001 122 2594 Nov 30 11:24 usr/man/man1/man1/git-lfs-fetch.1.gz
-rw-r--r-- 1 1001 122 1126 Nov 30 11:24 usr/man/man1/man1/git-lfs-filter-process.1.gz
-rw-r--r-- 1 1001 122 953 Nov 30 11:24 usr/man/man1/man1/git-lfs-fsck.1.gz
-rw-r--r-- 1 1001 122 1338 Nov 30 11:24 usr/man/man1/man1/git-lfs-install.1.gz
-rw-r--r-- 1 1001 122 851 Nov 30 11:24 usr/man/man1/man1/git-lfs-lock.1.gz
-rw-r--r-- 1 1001 122 1193 Nov 30 11:24 usr/man/man1/man1/git-lfs-locks.1.gz
-rw-r--r-- 1 1001 122 695 Nov 30 11:24 usr/man/man1/man1/git-lfs-logs.1.gz
-rw-r--r-- 1 1001 122 1092 Nov 30 11:24 usr/man/man1/man1/git-lfs-ls-files.1.gz
-rw-r--r-- 1 1001 122 1855 Nov 30 11:24 usr/man/man1/man1/git-lfs-merge-driver.1.gz
-rw-r--r-- 1 1001 122 7114 Nov 30 11:24 usr/man/man1/man1/git-lfs-migrate.1.gz
-rw-r--r-- 1 1001 122 927 Nov 30 11:24 usr/man/man1/man1/git-lfs-pointer.1.gz
-rw-r--r-- 1 1001 122 596 Nov 30 11:24 usr/man/man1/man1/git-lfs-post-checkout.1.gz
-rw-r--r-- 1 1001 122 710 Nov 30 11:24 usr/man/man1/man1/git-lfs-post-commit.1.gz
-rw-r--r-- 1 1001 122 568 Nov 30 11:24 usr/man/man1/man1/git-lfs-post-merge.1.gz
-rw-r--r-- 1 1001 122 843 Nov 30 11:24 usr/man/man1/man1/git-lfs-pre-push.1.gz
-rw-r--r-- 1 1001 122 2880 Nov 30 11:24 usr/man/man1/man1/git-lfs-prune.1.gz
-rw-r--r-- 1 1001 122 1170 Nov 30 11:24 usr/man/man1/man1/git-lfs-pull.1.gz
-rw-r--r-- 1 1001 122 1040 Nov 30 11:24 usr/man/man1/man1/git-lfs-push.1.gz
-rw-r--r-- 1 1001 122 1183 Nov 30 11:24 usr/man/man1/man1/git-lfs-smudge.1.gz
-rw-r--r-- 1 1001 122 720 Nov 30 11:24 usr/man/man1/man1/git-lfs-standalone-file.1.gz
-rw-r--r-- 1 1001 122 787 Nov 30 11:24 usr/man/man1/man1/git-lfs-status.1.gz
-rw-r--r-- 1 1001 122 1537 Nov 30 11:24 usr/man/man1/man1/git-lfs-track.1.gz
-rw-r--r-- 1 1001 122 966 Nov 30 11:24 usr/man/man1/man1/git-lfs-uninstall.1.gz
-rw-r--r-- 1 1001 122 865 Nov 30 11:24 usr/man/man1/man1/git-lfs-unlock.1.gz
-rw-r--r-- 1 1001 122 617 Nov 30 11:24 usr/man/man1/man1/git-lfs-untrack.1.gz
-rw-r--r-- 1 1001 122 718 Nov 30 11:24 usr/man/man1/man1/git-lfs-update.1.gz
-rw-r--r-- 1 1001 122 1948 Nov 30 11:24 usr/man/man1/man1/git-lfs.1.gz
-rw-r--r-- 1 1001 122 7155 Nov 30 11:24 usr/man/man1/man5/git-lfs-config.5.gz
-rw-r--r-- 1 1001 122 3136 Nov 30 11:24 usr/man/man1/man7/git-lfs-faq.7.gz
--- bad man directory owner/permissions (should be 0755, root:root)
drwxr-xr-x 2 1001 122 4096 Dec 5 11:14 usr/man/man1/man1
drwxr-xr-x 2 1001 122 4096 Dec 5 11:14 usr/man/man1/man5
drwxr-xr-x 2 1001 122 4096 Dec 5 11:14 usr/man/man1/man7
--- invalid man pages (not troff):
-rw-r--r-- 1 1001 122 8641 Nov 30 11:24 usr/man/man1/html/git-lfs-checkout.1.html.gz
-rw-r--r-- 1 1001 122 7739 Nov 30 11:24 usr/man/man1/html/git-lfs-clean.1.html.gz
-rw-r--r-- 1 1001 122 8420 Nov 30 11:24 usr/man/man1/html/git-lfs-clone.1.html.gz
-rw-r--r-- 1 1001 122 14236 Nov 30 11:24 usr/man/man1/html/git-lfs-config.5.html.gz
-rw-r--r-- 1 1001 122 7791 Nov 30 11:24 usr/man/man1/html/git-lfs-dedup.1.html.gz
-rw-r--r-- 1 1001 122 7503 Nov 30 11:24 usr/man/man1/html/git-lfs-env.1.html.gz
-rw-r--r-- 1 1001 122 7675 Nov 30 11:24 usr/man/man1/html/git-lfs-ext.1.html.gz
-rw-r--r-- 1 1001 122 10316 Nov 30 11:24 usr/man/man1/html/git-lfs-faq.7.html.gz
-rw-r--r-- 1 1001 122 9773 Nov 30 11:24 usr/man/man1/html/git-lfs-fetch.1.html.gz
-rw-r--r-- 1 1001 122 8225 Nov 30 11:24 usr/man/man1/html/git-lfs-filter-process.1.html.gz
-rw-r--r-- 1 1001 122 8065 Nov 30 11:24 usr/man/man1/html/git-lfs-fsck.1.html.gz
-rw-r--r-- 1 1001 122 8411 Nov 30 11:24 usr/man/man1/html/git-lfs-install.1.html.gz
-rw-r--r-- 1 1001 122 7972 Nov 30 11:24 usr/man/man1/html/git-lfs-lock.1.html.gz
-rw-r--r-- 1 1001 122 8318 Nov 30 11:24 usr/man/man1/html/git-lfs-locks.1.html.gz
-rw-r--r-- 1 1001 122 7781 Nov 30 11:24 usr/man/man1/html/git-lfs-logs.1.html.gz
-rw-r--r-- 1 1001 122 8222 Nov 30 11:24 usr/man/man1/html/git-lfs-ls-files.1.html.gz
-rw-r--r-- 1 1001 122 8964 Nov 30 11:24 usr/man/man1/html/git-lfs-merge-driver.1.html.gz
-rw-r--r-- 1 1001 122 14406 Nov 30 11:24 usr/man/man1/html/git-lfs-migrate.1.html.gz
-rw-r--r-- 1 1001 122 8021 Nov 30 11:24 usr/man/man1/html/git-lfs-pointer.1.html.gz
-rw-r--r-- 1 1001 122 7668 Nov 30 11:24 usr/man/man1/html/git-lfs-post-checkout.1.html.gz
-rw-r--r-- 1 1001 122 7786 Nov 30 11:24 usr/man/man1/html/git-lfs-post-commit.1.html.gz
-rw-r--r-- 1 1001 122 7647 Nov 30 11:24 usr/man/man1/html/git-lfs-post-merge.1.html.gz
-rw-r--r-- 1 1001 122 7901 Nov 30 11:24 usr/man/man1/html/git-lfs-pre-push.1.html.gz
-rw-r--r-- 1 1001 122 10013 Nov 30 11:24 usr/man/man1/html/git-lfs-prune.1.html.gz
-rw-r--r-- 1 1001 122 8324 Nov 30 11:24 usr/man/man1/html/git-lfs-pull.1.html.gz
-rw-r--r-- 1 1001 122 8161 Nov 30 11:24 usr/man/man1/html/git-lfs-push.1.html.gz
-rw-r--r-- 1 1001 122 8316 Nov 30 11:24 usr/man/man1/html/git-lfs-smudge.1.html.gz
-rw-r--r-- 1 1001 122 7802 Nov 30 11:24 usr/man/man1/html/git-lfs-standalone-file.1.html.gz
-rw-r--r-- 1 1001 122 7869 Nov 30 11:24 usr/man/man1/html/git-lfs-status.1.html.gz
-rw-r--r-- 1 1001 122 8634 Nov 30 11:24 usr/man/man1/html/git-lfs-track.1.html.gz
-rw-r--r-- 1 1001 122 8030 Nov 30 11:24 usr/man/man1/html/git-lfs-uninstall.1.html.gz
-rw-r--r-- 1 1001 122 7993 Nov 30 11:24 usr/man/man1/html/git-lfs-unlock.1.html.gz
-rw-r--r-- 1 1001 122 7687 Nov 30 11:24 usr/man/man1/html/git-lfs-untrack.1.html.gz
-rw-r--r-- 1 1001 122 7835 Nov 30 11:24 usr/man/man1/html/git-lfs-update.1.html.gz
-rw-r--r-- 1 1001 122 9057 Nov 30 11:24 usr/man/man1/html/git-lfs.1.html.gz
FAILED
Running test: 35-desktop...OK
Running test: 40-newconfig...OK
Running test: 45-doinst...OK
Running test: 50-icons...OK
!!! git-lfs-3.3.0-x86_64-1_SBo.txz: 3 failures
More information about the SlackBuilds-users
mailing list