* [PATCH] glibc: install correct stubs (fixes midori crash)
@ 2009-07-14 19:24 Stanislav Brabec
2009-07-14 19:53 ` Koen Kooi
2009-07-14 21:27 ` Michael Smith
0 siblings, 2 replies; 4+ messages in thread
From: Stanislav Brabec @ 2009-07-14 19:24 UTC (permalink / raw)
To: openembedded-devel
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?
________________________________________________________________________
Stanislav Brabec
http://www.penguin.cz/~utx/zaurus
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH] glibc: install correct stubs (fixes midori crash)
2009-07-14 19:24 [PATCH] glibc: install correct stubs (fixes midori crash) Stanislav Brabec
@ 2009-07-14 19:53 ` Koen Kooi
2009-07-14 21:27 ` Michael Smith
1 sibling, 0 replies; 4+ messages in thread
From: Koen Kooi @ 2009-07-14 19:53 UTC (permalink / raw)
To: openembedded-devel
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
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH] glibc: install correct stubs (fixes midori crash)
2009-07-14 19:24 [PATCH] glibc: install correct stubs (fixes midori crash) Stanislav Brabec
2009-07-14 19:53 ` Koen Kooi
@ 2009-07-14 21:27 ` Michael Smith
2009-07-15 10:09 ` Stanislav Brabec
1 sibling, 1 reply; 4+ messages in thread
From: Michael Smith @ 2009-07-14 21:27 UTC (permalink / raw)
To: openembedded-devel
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.
Hi Stanislav,
Patch 2/3 here fixes it:
http://patchwork.openembedded.org/bundle/msmith%40cbnco.com/glibc_tweaks/
Also cleans some of the other lines that aren't needed.
Mike
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-07-15 10:23 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-14 19:24 [PATCH] glibc: install correct stubs (fixes midori crash) Stanislav Brabec
2009-07-14 19:53 ` Koen Kooi
2009-07-14 21:27 ` Michael Smith
2009-07-15 10:09 ` Stanislav Brabec
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.