From: Koen Kooi <k.kooi@student.utwente.nl>
To: openembedded-devel@openembedded.org
Subject: Re: [PATCH] glibc: install correct stubs (fixes midori crash)
Date: Tue, 14 Jul 2009 21:53:51 +0200 [thread overview]
Message-ID: <h3inof$jm9$1@ger.gmane.org> (raw)
In-Reply-To: <1247599483.7178.11.camel@utx.utx.cz>
On 14-07-09 21:24, Stanislav Brabec wrote:
> Attached patch prevents overwriting of a real stub include file by a
> dummy stub file. Patch is tested only with the latest glibc from the
> angstrom.
>
> Dummy stub include causes mis-compilation of undefined number of
> packages, increment of DISTRO_PR may be considered as useful.
>
> I am not sure, why this line was there. Correct stub file is generated
> by make install, at least in the current version of glibc.
>
> --- a/recipes/glibc/glibc-stage.inc
> +++ b/recipes/glibc/glibc-stage.inc
> @@ -8,7 +8,6 @@ do_stage() {
> install -d ${STAGING_INCDIR}/gnu \
> ${STAGING_INCDIR}/bits \
> ${STAGING_INCDIR}/rpcsvc
> - install -m 0644 ${S}/include/gnu/stubs.h ${STAGING_INCDIR}/gnu/
> install -m 0644 ${B}/bits/stdio_lim.h ${STAGING_INCDIR}/bits/
> install -m 0644 misc/syscall-list.h ${STAGING_INCDIR}/bits/syscall.h
> for r in ${rpcsvc}; do
>
> Review of compilation logs shows that at least following packages are
> referring stub functions: glib-2.0, coreutils, module-init-tools,
> openssh, rsync, e2fsprogs, libpcap, pth, python, rxvt-unicode, tar,
> tcpdump.
>
> Example of mis-compiled package:
>
> midori fails due to GIO mis-compilation. GIO (glib-2.0) incorrectly
> thinks, that inotify_init1 is implemented. But it is not true on systems
> compiled with kernel headers< 2.6.27. GIO fails to initialize change
> notification, which normally never happens.
>
> Note:
>
> Kernel added several new functions since 2.6.23 (e. g. inotify_init1).
> It would be nice to reflect it somehow: update linux-libc-headers and
> either keep minimal supported kernel in the build as low as possible
> (makes a bit slower glibc), move affected packages from platform to
> machine feeds or create different repos with different minimal kernel
> version. What do you think about it?
Apply the patch, bump glibc PR and angstrom distro PR.
regards,
Koen
next prev parent reply other threads:[~2009-07-14 20:07 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-14 19:24 [PATCH] glibc: install correct stubs (fixes midori crash) Stanislav Brabec
2009-07-14 19:53 ` Koen Kooi [this message]
2009-07-14 21:27 ` Michael Smith
2009-07-15 10:09 ` Stanislav Brabec
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='h3inof$jm9$1@ger.gmane.org' \
--to=k.kooi@student.utwente.nl \
--cc=openembedded-devel@lists.openembedded.org \
--cc=openembedded-devel@openembedded.org \
/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.