Commit Graph

36 Commits

Author SHA1 Message Date
Ross Burton
a41948e86d site: move ac_cv_func_posix_getpwnam_r to libc files
As with the other ac_cv_func_posix_* functions, this is specific to the
libc and not the architecture.

(From OE-Core rev: 2e190f4e443d6c6e44c3f775ff74e8d14e880a59)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-06-07 23:21:43 +01:00
Ross Burton
6033372944 site: remove obsolete dbus entry
The check for working abstract sockets was removed from dbus in 2017[1]
and dbus-glib in 2014[2].

[1] 6a6521746b
[2] e4a163431f

(From OE-Core rev: bb9d25a90287efa13b3ae4ca6edbbe319c597491)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-06-07 23:21:43 +01:00
Ross Burton
2c7663d724 site: move ac_cv_func_fnmatch_works to libc files
ac_cv_func_fnmatch_works (as set by AC_FUNC_FNMATCH) checks if the libc
has a POSIX-compliant fnmatch() implementation. This isn't architecture
specific, so move the definition to common-glibc and common-musl after
verifying the correct result.

(From OE-Core rev: b81ae7affa25eaad016c3ed347a9c4fef0bfee45)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-06-07 23:21:42 +01:00
Khem Raj
153499cb58 Revert "site: merged common-glibc from OE"
This reverts commit a2f942c22e.

AC_TYPE_UID_T autoconf macro caches its result in ac_cv_type_uid_t
for defining uid_t and gid_t to suitable types if system headers do not
define them

back in 2008 autoconf did not evaluate it correctly [1] however it works
fine now with autoconf 2.72c especially after [2]

[1] https://git.openembedded.org/openembedded/commit/?id=d572f3b010ea76c5b79ecf1ae7864f7a6348220a
[2] https://git.savannah.gnu.org/cgit/autoconf.git/commit/?id=51d98495d1aac00970d791f064e83ca762bf81c7

(From OE-Core rev: 96f041cc22b7b23d43a6ed31e969b1c789b3d42d)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-07-30 07:54:44 +01:00
Ross Burton
53f16a9939 site: remove glib site values
GLib 1.x is incredibly obsolete and GLib 2.x is built using Meson
not autotools, so we can remove the GLib entries from the site files.

Also fix a few copy/paste typos where glib_ was used incorrectly, for example:

  ac_cv_sizeof_ptrdiff_t=${glib_cv_sizeof_ptrdiff_t=4}

The glib_cv_ should be ac_cv_.

(From OE-Core rev: 69e757e6bef8b1037e2f23121774af1d5f6c96df)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-02-19 07:47:53 +00:00
Khem Raj
94b1d77472 site: Make sys_siglist default to no
glibc 2.32 has deprecated sys_siglist [1]

since no is default for musl as well, therefore elevate it to common
site file for all

[1] https://sourceware.org/git/?p=glibc.git;a=commit;h=b1ccfc061feee9ce616444ded8e1cd5acf9fa97f

(From OE-Core rev: 7c19f30849e9a73a7497d8e6c4719a2e57017086)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-07-22 23:47:57 +01:00
André Draszik
34c7222e1d site: musl and glibc have working mktime()
This coreutils (gnulib) test tests for various bugs that only
exist in ancient versions.

It defaults to assuming buggy behaviour with its own implementation
when cross-compiling.

musl and recent glibc (2.29) are not affected.

(From OE-Core rev: 65d38cc1ce5a106c4c2e5068b8440eb6e5a2b33e)

Signed-off-by: André Draszik <git@andred.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-11 09:19:20 +00:00
André Draszik
39abf8342b site: strtod() works in glibc / musl
autoconf has a test for strtod(), which assumes non-working
when cross-compiling, but it does work in both musl and
recent glibc.

coreutils (gnulib) does some additional tests on top of that,
but assumes working glibc when >= 2.8 when cross compiling.
It doesn't know about musl where the additional tests also
work, though.

(From OE-Core rev: c8429f707d9ac785f295492470ec8b9ff56c043b)

Signed-off-by: André Draszik <git@andred.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-11 09:19:20 +00:00
André Draszik
a88dfc0ee8 site: set nanosleep() behaviour for glibc / musl
As per coreutils' (gnulib's) autotools test, nanosleep()
misbehaves on glibc (2.29), and works fine on musl.

During cross-compile, recent coreutils assume brokenness
when compiling for linux, which pessimises musl.

Set the correct result for musl, and for coherency reasons,
also specify the result for glibc.

(From OE-Core rev: 4522648758dc59f5ece736a0c1c0e95dcc7dafd1)

Signed-off-by: André Draszik <git@andred.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-11 09:19:20 +00:00
André Draszik
56c6dde17b site: musl and glibc have working utimes()
This coreutils / gnulib autoconf test is for a broken glibc
implementation of utimes from 2003-07-12 to 2003-09-17.

(From OE-Core rev: a60ca6048cc3a4fef862b128a842c70ac0cd2253)

Signed-off-by: André Draszik <git@andred.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-11 09:19:20 +00:00
André Draszik
a127c4df0d site: musl and glibc have working getgroups()
recent coreutils (gnulib) assume yes when cross-compiling
for gnu (glibc), but don't know about musl.
For coherence, just set the result to yes for both.

Note that the old coreutils (from meta-gplv2) doesn't
assume anything and instead that recipe hard-codes to yes.
So behaviour with yocto when using meta-gplv2 is actually
better than when using the latest version (when using musl).

This patch rectifies this shortcoming.

(From OE-Core rev: 692fe85264e599eb659456bd2eebf5f12a1cd30f)

Signed-off-by: André Draszik <git@andred.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-11 09:19:20 +00:00
André Draszik
f50911e245 site: set getcwd() test result for abort()-bug for glibc / musl
This coreutils (gnulib) test checks for an abort() that existed
in glibc before 2.4.90-10 (in 2006) in certain conditions.

Neither libraries exhibit this problem today.

(From OE-Core rev: 506c3b5adaa2fdffa051d83fb99efc00e432156b)

Signed-off-by: André Draszik <git@andred.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-11 09:19:20 +00:00
André Draszik
a1a0fa1317 site: set getcwd() behaviour for long paths for glibc / musl
In glibc, getcwd() handles long file names properly, on
musl, getcwd() only works up to PATH_MAX directory depths.

Configuring the autotools (gnulib) test result here allows
coreutils to compile more optimised code for both platforms,
rather than being pessimistic and re-implementing everything
itself.

The difference in behaviour is because both do the kernel
getcwd syscall (which only supports up to PATH_MAX), but
glibc implements fallbacks for longer paths, while musl
doesn't.

(From OE-Core rev: 525e33cf99983ee4bc3cf1822364123551aa7c83)

Signed-off-by: André Draszik <git@andred.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-11 09:19:20 +00:00
André Draszik
e594841ef5 site: musl and glibc have glibc compatible getcwd()
I.e. allocate memory for the pointer returned when the first
argument is NULL.

(From OE-Core rev: fe148da36af2dc086e05e2ebc1c088f1b5485de2)

Signed-off-by: André Draszik <git@andred.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-11 09:19:20 +00:00
André Draszik
3f1455887a site: musl and glibc have glibc compatible calloc()
calloc (N, S) returns non-NULL when N*S is zero,
and returns NULL when N*S overflows.

(From OE-Core rev: ba2bc4b6529013a303dd67abe944ceb619e7466c)

Signed-off-by: André Draszik <git@andred.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-11 09:19:20 +00:00
André Draszik
8eec7e14db site: musl and glibc have working mkstemp()
their mkstemp() passes all tests from the gnulib m4 macro
gl_FUNC_MKSTEMP.

(From OE-Core rev: 2b0905d25fa295fc868bf6df1da89283b9dc1f45)

Signed-off-by: André Draszik <git@andred.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-11 09:19:20 +00:00
Joe Slater
99e39a1ff6 common-glibc: define bash_cv_getcwd_malloc
We do not want bash to use internal code for getcwd() because
it can fail in certain filesystem types.  Trust that the function
in glibc is not "broken".

(From OE-Core rev: 72539c68e4a6ef1497af3f707107c3a69ab37bbd)

Signed-off-by: Joe Slater <jslater@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2015-07-23 08:48:40 +01:00
Ross Burton
eef85f8b6b site: add xorg_cv_malloc0_returns_null
util-macros 1.18 will look in the autoconf cache for this value so instead of
using overrides in xorg-lib-common, use the per-libc site cache.

Alert readers may notice that the site file claims that glibc returns NULL from
malloc(), when the previous change (e628c8aba0189de30de2833882b9999ff3b6547a)
claimed that it didn't.  The previous change was incorrect, whilst malloc(0)
returns a valid pointer, realloc(p,0) does in fact return NULL, so the Xlib
wrapper functions are needed.

(From OE-Core rev: ecbf3f81f6d2929921e57066c2dd327d41d8e286)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-12-14 09:11:12 +00:00
Henning Heinold
81b6e546bb glib-2.0: fix qsort_t testing for uclibc
* instead of disabling the configure test and set it always true
  use the site files to set it true for glibc/eglibc and false
  for uclibc
* remove the patch
' tested only for uclibc
* bump PR

(From OE-Core rev: 812342e44e9e361a0fa93cfcfe65cf4dd6f2fb57)

Signed-off-by: Henning Heinold <heinold@inf.fu-berlin.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-11-18 14:22:41 +00:00
Julian Pidancet
96415387fa Give coreutils a chance to build the df utility
The coreutils configure script is unable determine how to get free
space from the Operating System when cross-compiling.
This changes caches the result of the "statfs2_bsize" test for the
coreutils configure script.
Both glibc and uclibc defines statfs as a two-argument function
and uses a struct statfs containing a f_bsize field. That's why
the fu_cv_sys_stat_statfs2_bsize variable has to be defined for
both libcs.

(From OE-Core rev: fa1eb21933a880aa20e4ca87574753b1ec272c3b)

Signed-off-by: Julian Pidancet <julian.pidancet@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-10-27 08:45:47 +01:00
Tom Rini
2a5dab5a56 Various siteinfo files: Consolidate va_copy/__va_copy/va_val_copy
Providing va_copy / __va_copy come down to the libc.  va_val_copy
comes down to the architecture.  Unfortunately it's assumed true
if not set, so we need to make sure to set this to false for
x86_64 where it is not true.

(From OE-Core rev: a54a803ed89969c2416bfa9d911fe4cf558e2391)

Signed-off-by: Tom Rini <tom_rini@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-08-04 15:04:36 +01:00
Tom Rini
4ac307ec40 Various siteinfo files: Consolidate ac_cv_func_getaddrinfo
This is a libc feature, move there.  Drop the ipsec-tools specific
test as ipsec-tools (a) assumes fine on cross-compile and (b) doesn't
support buggy getaddrinfo now.

(From OE-Core rev: bca50524921a870bf774e23973a834f20701f146)

Signed-off-by: Tom Rini <tom_rini@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-08-04 15:04:36 +01:00
Tom Rini
c8f8ca9e46 Various site files: Drop monotone/mono
Not in oe-core nor meta-oe and based on oe.dev, possibly incomplete.

(From OE-Core rev: dc678e674ba9c56feb150bf06829a44fbe4e2b5a)

Signed-off-by: Tom Rini <tom_rini@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-08-04 15:04:36 +01:00
Tom Rini
4193d0e542 siteinfo: Move (getpgrp|setpgrp|setgrent|*get{pwuid,grgid}) to common-libc
These functions are determined by the C library so move them to common-glibc
and common-uclibc

(From OE-Core rev: 9226635ab28b5ca44ec04931d27c5c3313d56e61)

Signed-off-by: Tom Rini <tom_rini@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-07-27 12:02:44 +01:00
Tom Rini
85a49c9ed6 siteinfo: Move general realloc/malloc values to common-$libc
These are tests for glibc behavior which we have enabled in uclibc.
Note that if we ever disable MALLOC_GLIBC_COMPAT the uclibc tests
will need to be changed (but I believe this would also entail massive
patching to the rest of userspace so this should be unlikely).

(From OE-Core rev: cab512d7ee50fb55b9412c0e1a52a589de09e0a7)

Signed-off-by: Tom Rini <tom_rini@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-07-27 12:02:44 +01:00
Richard Purdie
07b4e14734 m4: Set further site entries
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-06-10 10:42:21 +01:00
Richard Purdie
247da0351e site/common-glibc: Add entries for m4
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-06-09 10:11:52 +01:00
Richard Purdie
34d7e090e8 site/common-glibc: Set ac_cv_check_sjlj since system headers can otherwise break the setting in pth
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4975 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-07-28 19:27:14 +00:00
Marcin Juszkiewicz
a2f942c22e site: merged common-glibc from OE
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3999 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-03-14 10:14:15 +00:00
Richard Purdie
34927dfa61 Sync various tweaks from OE, change default SRCREV policy to not auto increment rather than hitting the network.
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3345 311d38ba-8fff-0310-9ca6-ca027cbcb966
2007-12-18 15:04:06 +00:00
Richard Purdie
cdd1dbc477 site/common-glibc: Add definitions to make gcc's inbuilt zlib work
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2989 311d38ba-8fff-0310-9ca6-ca027cbcb966
2007-10-26 11:03:36 +00:00
Marcin Juszkiewicz
286da62fb5 site: sync with OE
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2923 311d38ba-8fff-0310-9ca6-ca027cbcb966
2007-10-19 12:05:49 +00:00
Richard Purdie
d20e041f2f site: Sync with OE
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2655 311d38ba-8fff-0310-9ca6-ca027cbcb966
2007-09-02 15:48:40 +00:00
Richard Purdie
f6a013b161 site/common-glibc: Set glib_cv_long_long_format
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2306 311d38ba-8fff-0310-9ca6-ca027cbcb966
2007-08-01 23:01:44 +00:00
Ross Burton
7e5766f1ae Move some site defines from arm-common to common-glibc
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2288 311d38ba-8fff-0310-9ca6-ca027cbcb966
2007-08-01 13:45:35 +00:00
Richard Purdie
99d5d9996b site: Sync ARM changes with OE (creation of common ARM site file)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1792 311d38ba-8fff-0310-9ca6-ca027cbcb966
2007-05-27 22:46:45 +00:00