* [Buildroot] [PATCH] package/imlib2: add zlib dependency
@ 2026-09-03 9:54 yegorslists--- via buildroot
2026-09-12 14:09 ` Julien Olivain via buildroot
0 siblings, 1 reply; 2+ messages in thread
From: yegorslists--- via buildroot @ 2026-09-03 9:54 UTC (permalink / raw)
To: buildroot
From: Yegor Yefremov <yegorslists@googlemail.com>
The demo programs, which have always been built and are still enabled by
default, gained a zlib dependency in imlib2 1.12.3: upstream commit
f8a451043871 ("imlib2_load: Add crc32 printout") started using zlib's
crc32() in imlib2_load, and 31006b425e11 ("imlib2_view: Optionally show
crc32 of image data") did the same for imlib2_view. Both hardcoded -lz.
Upstream commit b9555030dace ("autofoo: don't hardcode zlib flags"),
first released in 1.12.4, replaced -lz with $(ZLIB_LIBS) and added an
unconditional PKG_CHECK_MODULES(ZLIB, zlib) to the demo programs branch
of configure, turning the previously silent link-time requirement into a
configure failure:
checking for zlib... no
configure: error: Package requirements (zlib) were not met:
Package 'zlib' not found
As Buildroot went straight from 1.7.3 to 1.12.5 the intermediate state
was never packaged, but the dependency has in fact been missing since the
crc32 support landed.
Fixes: https://autobuild.buildroot.org/results/4e05404c353ef985d74757d0b1ec3eda2cdff523/
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
---
package/imlib2/Config.in | 1 +
package/imlib2/imlib2.mk | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/package/imlib2/Config.in b/package/imlib2/Config.in
index c47178f174..46edf375f3 100644
--- a/package/imlib2/Config.in
+++ b/package/imlib2/Config.in
@@ -5,6 +5,7 @@ config BR2_PACKAGE_IMLIB2
bool "imlib2"
depends on !BR2_STATIC_LIBS # dlopen()
select BR2_PACKAGE_FREETYPE
+ select BR2_PACKAGE_ZLIB
help
Imlib 2 is the successor to Imlib. This library provides
routines to load, save and render images in various formats.
diff --git a/package/imlib2/imlib2.mk b/package/imlib2/imlib2.mk
index 5ad89289a4..c650981501 100644
--- a/package/imlib2/imlib2.mk
+++ b/package/imlib2/imlib2.mk
@@ -12,7 +12,7 @@ IMLIB2_LICENSE_FILES = COPYING COPYING-PLAIN
IMLIB2_CPE_ID_VENDOR = enlightenment
IMLIB2_INSTALL_STAGING = YES
-IMLIB2_DEPENDENCIES = host-pkgconf freetype
+IMLIB2_DEPENDENCIES = host-pkgconf freetype zlib
IMLIB2_CONF_OPTS = --with-freetype-config=$(STAGING_DIR)/usr/bin/freetype-config
ifeq ($(BR2_PACKAGE_IMLIB2_X),y)
--
2.34.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Buildroot] [PATCH] package/imlib2: add zlib dependency
2026-09-03 9:54 [Buildroot] [PATCH] package/imlib2: add zlib dependency yegorslists--- via buildroot
@ 2026-09-12 14:09 ` Julien Olivain via buildroot
0 siblings, 0 replies; 2+ messages in thread
From: Julien Olivain via buildroot @ 2026-09-12 14:09 UTC (permalink / raw)
To: yegorslists; +Cc: buildroot
On 03/09/2026 11:54, yegorslists--- via buildroot wrote:
> From: Yegor Yefremov <yegorslists@googlemail.com>
>
> The demo programs, which have always been built and are still enabled
> by
> default, gained a zlib dependency in imlib2 1.12.3: upstream commit
> f8a451043871 ("imlib2_load: Add crc32 printout") started using zlib's
> crc32() in imlib2_load, and 31006b425e11 ("imlib2_view: Optionally show
> crc32 of image data") did the same for imlib2_view. Both hardcoded -lz.
>
> Upstream commit b9555030dace ("autofoo: don't hardcode zlib flags"),
> first released in 1.12.4, replaced -lz with $(ZLIB_LIBS) and added an
> unconditional PKG_CHECK_MODULES(ZLIB, zlib) to the demo programs branch
> of configure, turning the previously silent link-time requirement into
> a
> configure failure:
>
> checking for zlib... no
> configure: error: Package requirements (zlib) were not met:
>
> Package 'zlib' not found
>
> As Buildroot went straight from 1.7.3 to 1.12.5 the intermediate state
> was never packaged, but the dependency has in fact been missing since
> the
> crc32 support landed.
>
> Fixes:
> https://autobuild.buildroot.org/results/4e05404c353ef985d74757d0b1ec3eda2cdff523/
>
> Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Applied to master, thanks.
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-09-12 14:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-03 9:54 [Buildroot] [PATCH] package/imlib2: add zlib dependency yegorslists--- via buildroot
2026-09-12 14:09 ` Julien Olivain via buildroot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox