public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] have_NPTL proposal/question
@ 2005-05-11 21:20 Francesco Riosa
  2005-05-11 23:12 ` Donnie Berkholz
                   ` (2 more replies)
  0 siblings, 3 replies; 20+ messages in thread
From: Francesco Riosa @ 2005-05-11 21:20 UTC (permalink / raw
  To: gentoo-dev

intro:
Having to patch a package to be installed with nptl I've tried this
function (yes now I know it's wrong patch conditionally a package if not
needed).
Only few days later a user complain that the check failed (seem to
remember on amd64) .

what we have:
At the moment have_NPTL is defined in eclass/eutils.eclass, it compile a
small test program to check if glibc have nptl support.

what I've seen used in at least one other place (modified to be a
candidate substitute):
<code>
case $(getconf GNU_LIBPTHREAD_VERSION | tr abcdefghijklmnopqrstuvwxyz
ABCDEFGHIJKLMNOPQRSTUVWXYZ) in
NPTL* )
    return 0
    ;;
LINUXTHREADS* )
    return 1
    ;;
* )
    eerror "unknown libpthread implementation"
    return 1
    ;;
esac
</code>

there are drawbacks on the use of getconfig (that come with glibc) ?
Maybe it's not supported from *libc ?
This is also important to know (for me ;) because an important package
is going to make this check in it' "configure" and having it break on
certain gentoo supported ARCHs may be tedious.

any hints and/or feedback welcome

-- 
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2005-05-15 12:06 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-11 21:20 [gentoo-dev] have_NPTL proposal/question Francesco Riosa
2005-05-11 23:12 ` Donnie Berkholz
2005-05-11 23:26   ` Ciaran McCreesh
2005-05-12  0:59     ` Georgi Georgiev
2005-05-12 12:30       ` Mike Frysinger
2005-05-12 12:30     ` Mike Frysinger
2005-05-12 12:33       ` Francesco Riosa
2005-05-12  0:45 ` Ned Ludd
2005-05-12  1:13   ` Ciaran McCreesh
2005-05-12  1:30     ` Georgi Georgiev
2005-05-12  2:18       ` Robin H. Johnson
2005-05-12  3:21         ` Georgi Georgiev
2005-05-12  3:33           ` Ciaran McCreesh
2005-05-12 12:33 ` Mike Frysinger
2005-05-12 12:58   ` Francesco Riosa
2005-05-12 13:31     ` Mike Frysinger
2005-05-13  0:32       ` Mike Frysinger
2005-05-12 21:21   ` [gentoo-dev] " R Hill
2005-05-14 12:20     ` Jan Kundrát
2005-05-15 12:06     ` Graham Murray

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox