Skip to content

Commit

Permalink
man-db: Various packaging improvements
Browse files Browse the repository at this point in the history
 - Update to 2.12.0
 - Use a proper release tarball
 - Drop spurious builddeps
 - Add `mandb` moss pre trigger

Signed-off-by: Ikey Doherty <[email protected]>
  • Loading branch information
ikeycode committed Jan 31, 2024
1 parent 8946be8 commit 2f2779d
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 14 deletions.
Binary file modified m/man-db/manifest.x86_64.bin
Binary file not shown.
16 changes: 11 additions & 5 deletions m/man-db/manifest.x86_64.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,12 @@
"packages": {
"man-db": {
"build-depends": [
"binary(autopoint)",
"binary(groff)",
"binary(gzip)",
"flex-devel",
"gdbm-devel",
"pkgconfig(libmagic)",
"pkgconfig(libpipeline)",
"pkgconfig(libpkgconf)",
"pkgconfig(libseccomp)",
"pkgconfig(libzstd)",
"pkgconfig(zlib)",
Expand All @@ -34,6 +32,10 @@
"/usr/bin/mandb",
"/usr/bin/manpath",
"/usr/bin/whatis",
"/usr/lib/man-db/libman-2.12.0.so",
"/usr/lib/man-db/libman.so",
"/usr/lib/man-db/libmandb-2.12.0.so",
"/usr/lib/man-db/libmandb.so",
"/usr/lib/man-db/man-db/globbing",
"/usr/lib/man-db/man-db/manconv",
"/usr/lib/man-db/man-db/zsoelim",
Expand Down Expand Up @@ -76,6 +78,7 @@
"/usr/share/locale/ja/LC_MESSAGES/man-db-gnulib.mo",
"/usr/share/locale/ja/LC_MESSAGES/man-db.mo",
"/usr/share/locale/ka/LC_MESSAGES/man-db-gnulib.mo",
"/usr/share/locale/ka/LC_MESSAGES/man-db.mo",
"/usr/share/locale/ko/LC_MESSAGES/man-db-gnulib.mo",
"/usr/share/locale/ko/LC_MESSAGES/man-db.mo",
"/usr/share/locale/ms/LC_MESSAGES/man-db-gnulib.mo",
Expand Down Expand Up @@ -128,14 +131,17 @@
"/usr/share/man/man5/manpath.5",
"/usr/share/man/man8/accessdb.8",
"/usr/share/man/man8/catman.8",
"/usr/share/man/man8/mandb.8"
"/usr/share/man/man8/mandb.8",
"/usr/share/moss/triggers/pre.d/mandb.yaml"
],
"name": "man-db",
"provides": [
"sysbinary(accessdb)",
"binary(apropos)",
"binary(catman)",
"binary(lexgrog)",
"soname(libman-2.12.0.so(x86_64))",
"soname(libmandb-2.12.0.so(x86_64))",
"binary(man)",
"binary(man-recode)",
"binary(mandb)",
Expand All @@ -145,6 +151,6 @@
}
},
"source-name": "man-db",
"source-release": "1",
"source-version": "2.11.2"
"source-release": "2",
"source-version": "2.12.0"
}
13 changes: 13 additions & 0 deletions m/man-db/pkg/trigger.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: mandb
description: |
Rebuild the man page database
handlers:
mandb:
run: /usr/bin/mandb
args: ["-q"]

paths:
"/usr/share/man/man*/*" :
handlers:
- mandb
14 changes: 5 additions & 9 deletions m/man-db/stone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,23 @@
# SPDX-License-Identifier: MPL-2.0
#
name : man-db
version : 2.11.2
release : 1
version : 2.12.0
release : 2
homepage : https://man-db.nongnu.org/
upstreams :
- https://mirror.hostiran.ir/gnu/releases/man-db/man-db-2.11.2.tar.xz : cffa1ee4e974be78646c46508e6dd2f37e7c589aaab2938cc1064f058fef9f8d
- https://download.savannah.nongnu.org/releases/man-db/man-db-2.12.0.tar.xz : 415a6284a22764ad22ff0f66710d853be7790dd451cd71436e3d25c74d996a95
summary : Application to read Linux man pages
description : |
man-db is an implementation of the standard Unix documentation system accessed using the man command. It uses a Berkeley DB database in place of the traditional flat-text whatis databases.
license :
- GPL-2.0-or-later
- GPL-3.0-or-later
- LGPL-2.1-or-later
toolchain : gnu # slibtool issues
builddeps :
- binary(autopoint)
- binary(groff)
- binary(gzip)
- pkgconfig(libmagic)
- pkgconfig(libpipeline)
- pkgconfig(libpkgconf)
- pkgconfig(libseccomp)
- pkgconfig(libzstd)
- pkgconfig(zlib)
Expand All @@ -34,7 +31,7 @@ rundeps :
- binary(groff)
setup : |
%patch %(pkgdir)/stateless.patch
%reconfigure \
%configure \
--disable-setuid \
--enable-cache-owner=root \
--with-db=gdbm \
Expand All @@ -43,5 +40,4 @@ build : |
%make
install : |
%make_install
rm %(installroot)/%(libdir)/man-db/*.a
%install_file %(pkgdir)/trigger.yaml %(installroot)/usr/share/moss/triggers/pre.d/mandb.yaml

0 comments on commit 2f2779d

Please sign in to comment.