diff options
author | Ben Kohler <bkohler@gentoo.org> | 2023-06-15 11:17:06 -0500 |
---|---|---|
committer | Ben Kohler <bkohler@gentoo.org> | 2023-06-15 11:17:41 -0500 |
commit | 03599c76817d939df579400463f5390c0e91934f (patch) | |
tree | cb16b3323ff1bbffab7550baa544caea0148c6b6 /www-client/links | |
parent | profiles/arch/powerpc: unmask dev-python/ipython[smp] (diff) | |
download | gentoo-03599c76817d939df579400463f5390c0e91934f.tar.gz gentoo-03599c76817d939df579400463f5390c0e91934f.tar.bz2 gentoo-03599c76817d939df579400463f5390c0e91934f.zip |
www-client/links: fix zstd-only build
Closes: https://bugs.gentoo.org/908250
Signed-off-by: Ben Kohler <bkohler@gentoo.org>
Diffstat (limited to 'www-client/links')
-rw-r--r-- | www-client/links/files/links-2.29-fix-zstd-only-build.patch | 35 | ||||
-rw-r--r-- | www-client/links/links-2.29.ebuild | 2 |
2 files changed, 37 insertions, 0 deletions
diff --git a/www-client/links/files/links-2.29-fix-zstd-only-build.patch b/www-client/links/files/links-2.29-fix-zstd-only-build.patch new file mode 100644 index 000000000000..96d0cc9184be --- /dev/null +++ b/www-client/links/files/links-2.29-fix-zstd-only-build.patch @@ -0,0 +1,35 @@ +From fbac17250d41c2f0316e8fd7a2da02dcf01852ed Mon Sep 17 00:00:00 2001 +From: Ben Kohler <bkohler@gentoo.org> +Date: Thu, 15 Jun 2023 11:07:27 -0500 +Subject: [PATCH] Fix build where zstd is the only enabled compression +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +If only zstd support is enabled, HAVE_ANY_COMPRESSION doesn't get +defined and links fails to build. + +compress.c: In function ‘get_file_by_term’: +error: label ‘return_decompressed’ used but not defined + +Signed-off-by: Ben Kohler <bkohler@gentoo.org> +--- + links.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/links.h b/links.h +index 3a29a08..72a618e 100644 +--- a/links.h ++++ b/links.h +@@ -2717,7 +2717,7 @@ void detach_object_connection(struct object_request *, off_t); + + /* compress.c */ + +-#if defined(HAVE_ZLIB) || defined(HAVE_BROTLI) || defined(HAVE_BZIP2) || defined(HAVE_LZMA) || defined(HAVE_LZIP) ++#if defined(HAVE_ZLIB) || defined(HAVE_BROTLI) || defined(HAVE_BZIP2) || defined(HAVE_LZMA) || defined(HAVE_LZIP) || defined(HAVE_ZSTD) + #define HAVE_ANY_COMPRESSION + #endif + +-- +2.41.0 + diff --git a/www-client/links/links-2.29.ebuild b/www-client/links/links-2.29.ebuild index 15d73239db8c..5d00117ebd69 100644 --- a/www-client/links/links-2.29.ebuild +++ b/www-client/links/links-2.29.ebuild @@ -92,6 +92,8 @@ REQUIRED_USE="!livecd? ( fbcon? ( gpm ) ) DOCS=( AUTHORS BRAILLE_HOWTO ChangeLog KEYS NEWS README SITES ) +PATCHES=( "${FILESDIR}/links-2.29-fix-zstd-only-build.patch" ) + src_prepare() { use X && xdg_environment_reset |