diff options
Diffstat (limited to 'app-text/xmlto/files/xmlto-0.0.28-dont-hardcode-paths.patch')
-rw-r--r-- | app-text/xmlto/files/xmlto-0.0.28-dont-hardcode-paths.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/app-text/xmlto/files/xmlto-0.0.28-dont-hardcode-paths.patch b/app-text/xmlto/files/xmlto-0.0.28-dont-hardcode-paths.patch new file mode 100644 index 000000000000..5823b7350749 --- /dev/null +++ b/app-text/xmlto/files/xmlto-0.0.28-dont-hardcode-paths.patch @@ -0,0 +1,35 @@ +From: Sam James <sam@gentoo.org> +Date: Wed, 10 Nov 2021 04:53:33 +0000 +Subject: [PATCH] Don't hardcode paths to utilities + +The path to e.g. links at build time is not necessarily +the same as the path at runtime. + +TODO: Could chop out the checks from configure but +this package is fragile enough. Leaving it for now. +--- a/xmlto.in ++++ b/xmlto.in +@@ -272,13 +272,13 @@ then + USE_BACKEND=DEFAULT + fi + +-LINKS_PATH=@LINKS@ +-W3M_PATH=@W3M@ +-LYNX_PATH=@LYNX@ +-GCP_PATH=@GCP@ +-SED_PATH=@SED@ +-GREP_PATH=@GREP@ +-ZIP_PATH=@ZIP@ ++LINKS_PATH=$(command -v links) ++W3M_PATH=$(command -v w3m) ++LYNX_PATH=$(command -v lynx) ++GCP_PATH=$(command -v cp) ++SED_PATH=$(command -v sed) ++GREP_PATH=$(command -v grep) ++ZIP_PATH=$(command -v zip) + + # Process any options + ARGS=$(${GETOPT} \ +-- +2.33.1 + |