All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Korsgaard <peter@korsgaard.com>
To: Julien Olivain <ju.o@free.fr>
Cc: buildroot@buildroot.org
Subject: Re: [Buildroot] [PATCH 1/1] package/tcl: add mandatory dependency to zlib
Date: Mon, 25 Sep 2023 07:27:07 +0200	[thread overview]
Message-ID: <871qemg6vo.fsf@48ers.dk> (raw)
In-Reply-To: <20230917130122.576967-1-ju.o@free.fr> (Julien Olivain's message of "Sun, 17 Sep 2023 15:01:22 +0200")

>>>>> "Julien" == Julien Olivain <ju.o@free.fr> writes:

 > Tcl changed its zlib handling in upstream commit [1]. Before this
 > commit, the HAVE_ZLIB macro was defined only if a zlib headers/library
 > was found. After that commit, the HAVE_ZLIB macro is unconditionally
 > defined. The only change is that: if a working zlib library is found
 > in the toolchain sysroot, it is used. Otherwise, the package will use
 > a shipped version in [2]. See also [3] and [4].

 > This tcl commit is included in Buildroot since commit 7fda943b43
 > "tcl: bump to version 8.6.1".

 > This behavior leads to runtime failures, when the package is compiled
 > with toolchains including zlib in their sysroot. This is because at
 > configuration time, the package will detect zlib in the sysroot and
 > link against it, but the library files won't be installed on target.

 > This happen to be the case with Bootlin toolchains such as [5]. This
 > toolchain also happen to be the one used in basic configurations
 > of the runtime test infrastructure (this issue was found while
 > attempting to write a runtime test for tcl).

 > In such cases, running "tclsh" command fails with error message:

 >     tclsh: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory

 > libtcl library also miss its dependency.

 >     ldd /usr/lib/libtcl8.6.so
 > 	    libz.so.1 => not found
 > 	    libm.so.6 => /lib/libm.so.6 (0xb6dad000)
 > 	    libc.so.6 => /lib/libc.so.6 (0xb6c65000)
 > 	    /lib/ld-linux.so.3 (0xb6f6c000)

 > This commit fixes this issue by adding zlib as a mandatory dependency.

 > [1] https://github.com/tcltk/tcl/commit/6f3dea45cee94f12ffa0b2acbbdb3eedbc01807b
 > [2] https://github.com/tcltk/tcl/tree/core-8-6-13/compat/zlib
 > [3] https://github.com/tcltk/tcl/blob/core-8-6-13/unix/configure.in#L172
 > [4] https://github.com/tcltk/tcl/blob/core-8-6-13/unix/Makefile.in#L240
 > [5] https://toolchains.bootlin.com/downloads/releases/toolchains/armv5-eabi/tarballs/armv5-eabi--glibc--stable-2023.08-1.tar.bz2

 > Signed-off-by: Julien Olivain <ju.o@free.fr>

Committed to 2023.02.x, 2023.05.x and 2023.08.x, thanks.

-- 
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

      parent reply	other threads:[~2023-09-25  5:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-17 13:01 [Buildroot] [PATCH 1/1] package/tcl: add mandatory dependency to zlib Julien Olivain
2023-09-17 13:31 ` Yann E. MORIN
2023-09-25  5:27 ` Peter Korsgaard [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=871qemg6vo.fsf@48ers.dk \
    --to=peter@korsgaard.com \
    --cc=buildroot@buildroot.org \
    --cc=ju.o@free.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.