[oe-commits] org.oe.dev Fix getline error when compiling for uclibc
ifaistos commit
openembedded-commits at lists.openembedded.org
Sat Feb 3 12:09:49 UTC 2007
Fix getline error when compiling for uclibc
closes bug #1335
Author: ifaistos at openembedded.org
Branch: org.openembedded.dev
Revision: 1fc9a8356e9a0aa9e644e3ce7f8752e0748a6c1b
ViewMTN: http://monotone.openembedded.org/revision.psp?id=1fc9a8356e9a0aa9e644e3ce7f8752e0748a6c1b
Files:
1
packages/gettext/gettext-0.14.1/getline.m4.patch
packages/gettext/gettext_0.14.1.bb
Diffs:
#
# mt diff -rffc9da8986d55c85bc599c483505763c1bc21665 -r1fc9a8356e9a0aa9e644e3ce7f8752e0748a6c1b
#
#
#
# add_file "packages/gettext/gettext-0.14.1/getline.m4.patch"
# content [f10bbae414f8e4f874bda47fd7d9024e03c9ac76]
#
# patch "packages/gettext/gettext_0.14.1.bb"
# from [61b5eeb7577dfdf93b84c0b5b2b8710abac5ad84]
# to [e007f18b70bdc3ec50053098ff35a8f760c2521a]
#
============================================================
--- packages/gettext/gettext-0.14.1/getline.m4.patch f10bbae414f8e4f874bda47fd7d9024e03c9ac76
+++ packages/gettext/gettext-0.14.1/getline.m4.patch f10bbae414f8e4f874bda47fd7d9024e03c9ac76
@@ -0,0 +1,32 @@
+--- /gettext-tools/m4/orig-getline.m4 2003-07-18 18:11:37.000000000 +0300
++++ /gettext-tools/m4/getline.m4 2007-02-03 13:33:41.000000000 +0200
+@@ -42,12 +42,23 @@
+ return 1;
+ len = getline (&line, &siz, in);
+ exit ((len == 4 && line && strcmp (line, "foo\n") == 0) ? 0 : 1);
+- }
+- ], am_cv_func_working_getline=yes dnl The library version works.
+- , am_cv_func_working_getline=no dnl The library version does NOT work.
+- , am_cv_func_working_getline=no dnl We're cross compiling.
+- )])
+- fi
++ }
++ ], am_cv_func_working_getline=yes dnl The library version works.
++ , am_cv_func_working_getline=no dnl The library version does NOT work.
++! , dnl We're cross compiling. Assume ir works on glibc2 systems.
++! [AC_EGREP_CPP([Lucky GNU user],
++! [
++! #include <features.h>
++! #ifdef __GNU_LIBRARY__
++! #if (__GLIBC__ >= 2)
++! Lucky GNU user
++! #endif
++! #endif
++! ],
++! [am_cv_func_working_getline=yes],
++! [am_cv_func_working_getline=no])]
++ )])
++ fi
+
+ if test $am_cv_func_working_getline = no; then
+ dnl We must choose a different name for our function, since on ELF systems
============================================================
--- packages/gettext/gettext_0.14.1.bb 61b5eeb7577dfdf93b84c0b5b2b8710abac5ad84
+++ packages/gettext/gettext_0.14.1.bb e007f18b70bdc3ec50053098ff35a8f760c2521a
@@ -1,13 +1,14 @@ LICENSE = "GPL"
DESCRIPTION = "The GNU internationalization library."
HOMEPAGE = "http://www.gnu.org/software/gettext/gettext.html"
SECTION = "libs"
LICENSE = "GPL"
-PR = "r3"
+PR = "r4"
PROVIDES = "virtual/libintl"
SRC_URI = "${GNU_MIRROR}/gettext/gettext-${PV}.tar.gz \
file://gettext-vpath.patch;patch=1;pnum=1 \
- file://fixchicken.patch;patch=1;pnum=1"
+ file://fixchicken.patch;patch=1;pnum=1 \
+ file://getline.m4.patch;patch=1"
PARALLEL_MAKE = ""
More information about the Openembedded-commits
mailing list