summaryrefslogtreecommitdiff
path: root/i486-stage3/libpsl
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2018-03-06 21:03:02 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2018-03-06 21:03:02 +0100
commita539fd7795741c2db5bf765aa94c81f6b79df8c4 (patch)
tree0efe341ed4866cecc6edf730ed2abe938b1e187b /i486-stage3/libpsl
parenta88e5410a1e753902ee053ad3061035fd2597d14 (diff)
downloadbootstrap32-a539fd7795741c2db5bf765aa94c81f6b79df8c4.tar.xz
some work on libpsl
Diffstat (limited to 'i486-stage3/libpsl')
-rw-r--r--i486-stage3/libpsl/DESCR9
-rw-r--r--i486-stage3/libpsl/libpsl-0.19.1-configure-disable-man-no-xsltproc.patch41
2 files changed, 50 insertions, 0 deletions
diff --git a/i486-stage3/libpsl/DESCR b/i486-stage3/libpsl/DESCR
index e80b78f..a6a7feb 100644
--- a/i486-stage3/libpsl/DESCR
+++ b/i486-stage3/libpsl/DESCR
@@ -9,3 +9,12 @@ sed -i "s@--enable-gtk-doc@--disable-gtk-doc@" PKGBUILD
sed -i "/makedepends=/s/'libxslt'//" PKGBUILD
sed -i "s@--enable-man@--disable-man@" PKGBUILD
+# patching xsltproc in --disable-man fix, see https://github.com/rockdaboot/libpsl/issues/92
+sed -i 's@source=(@source=(libpsl-0.19.1-configure-disable-man-no-xsltproc.patch @' PKGBUILD
+sed -i "s@sha512sums=(@sha512sums=('48f2d7c407f42e8b6ddfbbacad757c1ed916c8ae2062d85af2365821f3d9cb028fa3b43b5a4e8eb807034eb812ea0ecb1c727243307b09e01f1ddb55cff5368b' @" PKGBUILD
+sed -i '/autoreconf/ i \ patch -Np1 -i "${srcdir}/libpsl-0.19.1-configure-disable-man-no-xsltproc.patch"' PKGBUILD
+
+# TODO: # src/psl-make-dafsa needs python 2.7+, AM_PATH_PYTHON([2.7]),
+# can this be precomputed?
+# psl-make-dafsa using PSL file /usr/share/publicsuffix/effective_tld_names.dat
+
diff --git a/i486-stage3/libpsl/libpsl-0.19.1-configure-disable-man-no-xsltproc.patch b/i486-stage3/libpsl/libpsl-0.19.1-configure-disable-man-no-xsltproc.patch
new file mode 100644
index 0000000..b912c44
--- /dev/null
+++ b/i486-stage3/libpsl/libpsl-0.19.1-configure-disable-man-no-xsltproc.patch
@@ -0,0 +1,41 @@
+diff -rauN libpsl-0.19.1/configure.ac libpsl-0.19.1-configure-disable-man-no-xsltproc-patch/configure.ac
+--- libpsl-0.19.1/configure.ac 2017-11-09 15:37:11.000000000 +0100
++++ libpsl-0.19.1-configure-disable-man-no-xsltproc-patch/configure.ac 2018-03-06 19:58:33.473353671 +0100
+@@ -53,24 +53,20 @@
+ #
+ # enable creation of man pages
+ #
+-AC_ARG_ENABLE(man,[AC_HELP_STRING([--enable-man],
+- [generate man pages [default=auto]])],enable_man=yes,enable_man=no)
+-AS_IF([test "$enable_man" != no], [
+- AC_PATH_PROG([XSLTPROC], [xsltproc])
+- AS_IF([test -z "$XSLTPROC"], [
+- AS_IF([test "$enable_man" = yes], [
+- AC_MSG_ERROR([xsltproc is required for --enable-man])
+- ])
+- enable_man=no
++enable_man=no
++AC_ARG_ENABLE([man],
++ [AC_HELP_STRING([--enable-man], [generate man pages [default=auto]])],
++ [
++ if test "$enableval" = yes; then
++ enable_man=yes
++ AC_PATH_PROG([XSLTPROC], [xsltproc])
++ AS_IF([test -z "$XSLTPROC"], [
++ AC_MSG_ERROR([xsltproc is required for --enable-man])
++ enable_man="no (xsltproc not found)"
++ ])
++ fi
+ ])
+-])
+-AM_CONDITIONAL(ENABLE_MAN, test x$enable_man != xno)
+-AC_MSG_CHECKING([whether to generate man pages])
+-AS_IF([ test "$enable_man" != no ], [
+- AC_MSG_RESULT([yes])
+-], [
+- AC_MSG_RESULT([no])
+-])
++AM_CONDITIONAL(ENABLE_MAN, test x$enable_man = xyes)
+
+ # src/psl-make-dafsa needs python 2.7+
+ AM_PATH_PYTHON([2.7])