From: Ladislav Michl <ladis@linux-mips.org>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] Check for specific libc version
Date: Wed, 30 Sep 2015 11:30:39 +0200 [thread overview]
Message-ID: <20150930093038.GA994@localhost.localdomain> (raw)
In-Reply-To: <20150928102902.GR26946@pengutronix.de>
On Mon, Sep 28, 2015 at 12:29:02PM +0200, Michael Olbrich wrote:
> On Tue, Aug 18, 2015 at 12:30:41PM +0200, Ladislav Michl wrote:
> > Hi there!
> >
> >
> > PTXCONF_GLIBC_VERSION is used for check for specific toolchain. However when left
> > blank, compilation fails with:
> > ---------------------------
> > target: glibc.targetinstall
> > ---------------------------
> >
> > ptxdist: error: ptxd_make_xpkg_init: please define <PKG>_VERSION
> > ptxdist/rules/glibc.make:30: recipe for target 'glibc.targetinstall' failed
> >
> > shouldn't we get libc version from toolchain in this case?
>
> No. Reproducibility is one of the main goals of PTXdist. What we should
> actually do is check if PTXCONF_GLIBC_VERSION matches the actual glibc
> version, like we do for gcc.
Agree, but we are already selecting toolchains, which gives a clue about
glibc used. For gcclibs code reads:
ifeq ($(shell which $(CROSS_CC) 2>/dev/null),)
GCCLIBS_VERSION := unknown
else
GCCLIBS_VERSION := $(shell $(CROSS_CC) -dumpversion)
endif
and GCC version is verified earlier in check_compiler(). But leaving
GLIBC_VERSION blank does not make PTXdist complain. Everything is built
and it is targetinstall which fails. That a bit unexpected to me. I would
expect
a) glibc version picked from toolchain or
b) ptxdist bailing out early
when glibc version is not specified. But you already voted for b).
Also using the real glibc version in package name instead of some
random string makes more sense.
> However, I'm not sure, if there is a simple test for that. I see a
> libc-<version>.so in my toolchains, but I\m not sure if that's always
> the case.
usr/bin/ldd from sysroot holds answer as well, also
strings <glibc.so> | grep "version [0-9]" could work.
ladis
--
ptxdist mailing list
ptxdist@pengutronix.de
next prev parent reply other threads:[~2015-09-30 9:30 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-18 10:30 Ladislav Michl
2015-09-28 10:29 ` Michael Olbrich
2015-09-30 9:30 ` Ladislav Michl [this message]
2016-01-21 10:52 ` Ladislav Michl
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=20150930093038.GA994@localhost.localdomain \
--to=ladis@linux-mips.org \
--cc=ptxdist@pengutronix.de \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox