Skip to content

Commit

Permalink
Overhaul of jq for Debian (11). #1445
Browse files Browse the repository at this point in the history
  • Loading branch information
mfeit-internet2 committed Jul 1, 2024
1 parent 7a78586 commit 4ed47b4
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 281 deletions.
3 changes: 2 additions & 1 deletion jq/unibuild-packaging/deb/control
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ Source: jq
Section: utils
Priority: optional
Maintainer: ChangZhuo Chen (陳昌倬) <[email protected]>
Build-Depends: debhelper (>= 10), dh-autoreconf, flex, bison, libtool-bin, valgrind [amd64 i386], rake, ruby-ronn, libonig-dev
Build-Depends: debhelper (>= 10), dh-autoreconf, flex, bison, libtool-bin, valgrind [amd64 i386], rake, ruby-ronn, libonig-dev,
python3-lxml, python3-markdown
Standards-Version: 3.9.6
Homepage: https://github.com/stedolan/jq
Vcs-Git: git://anonscm.debian.org/users/else-guest/jq.git
Expand Down
2 changes: 0 additions & 2 deletions jq/unibuild-packaging/deb/jq.docs

This file was deleted.

175 changes: 0 additions & 175 deletions jq/unibuild-packaging/deb/libjq1.symbols

This file was deleted.

36 changes: 0 additions & 36 deletions jq/unibuild-packaging/deb/patches/disable-static-libtool.patch

This file was deleted.

This file was deleted.

16 changes: 0 additions & 16 deletions jq/unibuild-packaging/deb/patches/enable-manpages.patch

This file was deleted.

20 changes: 0 additions & 20 deletions jq/unibuild-packaging/deb/patches/patch-version-into-build.patch

This file was deleted.

4 changes: 0 additions & 4 deletions jq/unibuild-packaging/deb/patches/series

This file was deleted.

17 changes: 7 additions & 10 deletions jq/unibuild-packaging/deb/rules
Original file line number Diff line number Diff line change
Expand Up @@ -15,27 +15,24 @@ get-orig-source:

# This target replaces the version script with one that doesn't get
# the wrong answer by depending on git.
_fix-version:
printf "#!/bin/sh -e\necho '%s.10+pscheduler-patches'\n" \
$$(./configure --version | head -1 | sed -e "s/^[^']*'//g; s/'.*\$$//g") \
_fix-version: libjq.pc
printf '#!/bin/sh -e \necho %s\n' "$$(awk '$$1 == "Version:" { print $$2 }' libjq.pc | head -1)" \
> ./scripts/version


override_dh_auto_configure: _fix-version
cd docs && rake manpage > ../jq.1
dh_auto_configure -- --disable-static --disable-fpectl --without-fpectl

override_dh_auto_test:

override_dh_auto_clean:
dh_auto_clean
test ! -f ./jq.1.old || mv ./jq.1.old jq.1
override_dh_installdocs:
cd docs && ./build_manpage.py > jq.1
dh_installdocs

override_dh_install:
dh_install --list-missing

%:
dh $@ --with autoreconf


# Ubuntu dbgsym.ddeb are currently not supported by reprepro
override_dh_strip:
dh_strip --no-automatic-dbgsym

0 comments on commit 4ed47b4

Please sign in to comment.