Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 1/3] flac: explicitly disable checking for nasm
@ 2014-07-17  7:58 Ming Liu
  2014-07-17  7:58 ` [PATCH 2/3] gmp: use PACKAGECONFIG to address readline dependency Ming Liu
  2014-07-17  7:58 ` [PATCH 3/3] gettext: fix implicit build result Ming Liu
  0 siblings, 2 replies; 5+ messages in thread
From: Ming Liu @ 2014-07-17  7:58 UTC (permalink / raw)
  To: openembedded-core

Automatical checking for nasm program will lead flac to a implicit build
result depending on nasm is built before or after it.

Signed-off-by: Ming Liu <ming.liu@windriver.com>
---
 meta/recipes-multimedia/flac/flac_1.3.0.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-multimedia/flac/flac_1.3.0.bb b/meta/recipes-multimedia/flac/flac_1.3.0.bb
index ab37cbe..fdf38e9 100644
--- a/meta/recipes-multimedia/flac/flac_1.3.0.bb
+++ b/meta/recipes-multimedia/flac/flac_1.3.0.bb
@@ -28,6 +28,7 @@ EXTRA_OECONF = "--disable-oggtest \
                 --with-ogg-includes=${STAGING_INCDIR} \
                 --disable-xmms-plugin \
                 --without-libiconv-prefix \
+                ac_cv_prog_NASM="" \
                 "
 
 EXTRA_OECONF += "${@bb.utils.contains("TUNE_FEATURES", "altivec", " --enable-altivec", " --disable-altivec", d)}"
-- 
1.8.4.1



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

* [PATCH 2/3] gmp: use PACKAGECONFIG to address readline dependency
  2014-07-17  7:58 [PATCH 1/3] flac: explicitly disable checking for nasm Ming Liu
@ 2014-07-17  7:58 ` Ming Liu
  2014-07-17  7:58 ` [PATCH 3/3] gettext: fix implicit build result Ming Liu
  1 sibling, 0 replies; 5+ messages in thread
From: Ming Liu @ 2014-07-17  7:58 UTC (permalink / raw)
  To: openembedded-core

To avoid automatically detecting readline dependency, which will lead to
a implicit build result.

Signed-off-by: Ming Liu <ming.liu@windriver.com>
---
 meta/recipes-support/gmp/gmp.inc      | 3 +++
 meta/recipes-support/gmp/gmp_4.2.1.bb | 3 +++
 2 files changed, 6 insertions(+)

diff --git a/meta/recipes-support/gmp/gmp.inc b/meta/recipes-support/gmp/gmp.inc
index d025e07..6aedc85 100644
--- a/meta/recipes-support/gmp/gmp.inc
+++ b/meta/recipes-support/gmp/gmp.inc
@@ -18,6 +18,9 @@ acpaths = ""
 
 BBCLASSEXTEND = "native nativesdk"
 
+PACKAGECONFIG ??= ""
+PACKAGECONFIG[readline] = "--with-readline=yes,--with-readline=no,readline"
+
 EXTRA_OECONF += " --enable-cxx=detect"
 
 PACKAGES =+ "libgmpxx"
diff --git a/meta/recipes-support/gmp/gmp_4.2.1.bb b/meta/recipes-support/gmp/gmp_4.2.1.bb
index 5c93925..69ad0ca 100644
--- a/meta/recipes-support/gmp/gmp_4.2.1.bb
+++ b/meta/recipes-support/gmp/gmp_4.2.1.bb
@@ -17,4 +17,7 @@ SRC_URI = "${GNU_MIRROR}/gmp/${BP}.tar.bz2 \
 SRC_URI[md5sum] = "091c56e0e1cca6b09b17b69d47ef18e3"
 SRC_URI[sha256sum] = "d07ffcb37eecec35c5ec72516d10b35fdf6e6fef1fcf1dcd37e30b8cbf8bf941"
 
+PACKAGECONFIG ??= ""
+PACKAGECONFIG[readline] = "--with-readline=yes,--with-readline=no,readline"
+
 inherit autotools texinfo
-- 
1.8.4.1



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

* [PATCH 3/3] gettext: fix implicit build result
  2014-07-17  7:58 [PATCH 1/3] flac: explicitly disable checking for nasm Ming Liu
  2014-07-17  7:58 ` [PATCH 2/3] gmp: use PACKAGECONFIG to address readline dependency Ming Liu
@ 2014-07-17  7:58 ` Ming Liu
  2014-07-17  9:21   ` Burton, Ross
  1 sibling, 1 reply; 5+ messages in thread
From: Ming Liu @ 2014-07-17  7:58 UTC (permalink / raw)
  To: openembedded-core

Some "once only" variants are being defined instead of standard autoconf
macros, for instance, AC_CHECK_HEADERS_ONCE like AC_CHECK_HEADERS. The
advantage is that the check for each of the headers will be put only once
into the 'configure' file, therefore it keeps the size down. But there
is also a drawback that the checks then will turn to be statically inserted
to the configure and cannot be conditionalized any more. It will
definitely break the dependencies chosen as internally included.

Turns AC_CHECK_HEADERS_ONCE back to AC_CHECK_HEADERS for those cases.

Signed-off-by: Ming Liu <ming.liu@windriver.com>
---
 .../fix-absolute-header-macro.patch                | 28 ++++++++++++++++++++++
 meta/recipes-core/gettext/gettext_0.18.3.2.bb      |  3 ++-
 2 files changed, 30 insertions(+), 1 deletion(-)
 create mode 100644 meta/recipes-core/gettext/gettext-0.18.3.2/fix-absolute-header-macro.patch

diff --git a/meta/recipes-core/gettext/gettext-0.18.3.2/fix-absolute-header-macro.patch b/meta/recipes-core/gettext/gettext-0.18.3.2/fix-absolute-header-macro.patch
new file mode 100644
index 0000000..7b6935f
--- /dev/null
+++ b/meta/recipes-core/gettext/gettext-0.18.3.2/fix-absolute-header-macro.patch
@@ -0,0 +1,28 @@
+Upstream-Status: Inappropriate [embedded specific]
+
+Some "once only" variants are being defined instead of standard autoconf
+macros, for instance, AC_CHECK_HEADERS_ONCE like AC_CHECK_HEADERS. The
+advantage is that the check for each of the headers will be put only once
+into the 'configure' file, therefore it keeps the size down. But there is
+also a drawback that the checks then will turn to be statically inserted
+to the configure and cannot be conditionalized any more. It will
+definitely break the dependencies chosen as internally included.
+
+Turns AC_CHECK_HEADERS_ONCE back to AC_CHECK_HEADERS for those cases.
+
+Signed-off-by: Ming Liu <ming.liu@windriver.com>
+---
+ absolute-header.m4 |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/gettext-tools/gnulib-m4/absolute-header.m4
++++ b/gettext-tools/gnulib-m4/absolute-header.m4
+@@ -29,7 +29,7 @@ m4_foreach_w([gl_HEADER_NAME], [$1],
+     m4_defn([gl_absolute_header]),
+     [AS_VAR_PUSHDEF([ac_header_exists],
+                     [ac_cv_header_]m4_defn([gl_HEADER_NAME]))dnl
+-    AC_CHECK_HEADERS_ONCE(m4_defn([gl_HEADER_NAME]))dnl
++    AC_CHECK_HEADERS(m4_defn([gl_HEADER_NAME]))dnl
+     if test AS_VAR_GET(ac_header_exists) = yes; then
+       gl_ABSOLUTE_HEADER_ONE(m4_defn([gl_HEADER_NAME]))
+     fi
diff --git a/meta/recipes-core/gettext/gettext_0.18.3.2.bb b/meta/recipes-core/gettext/gettext_0.18.3.2.bb
index 65d4103..9375e86 100644
--- a/meta/recipes-core/gettext/gettext_0.18.3.2.bb
+++ b/meta/recipes-core/gettext/gettext_0.18.3.2.bb
@@ -11,7 +11,8 @@ PROVIDES = "virtual/libintl virtual/gettext"
 PROVIDES_class-native = "virtual/gettext-native"
 RCONFLICTS_${PN} = "proxy-libintl"
 SRC_URI = "${GNU_MIRROR}/gettext/gettext-${PV}.tar.gz \
-	   file://parallel.patch \
+           file://parallel.patch \
+           file://fix-absolute-header-macro.patch \
           "
 
 PACKAGECONFIG[msgcat-curses] = "--with-libncurses-prefix=${STAGING_LIBDIR}/..,--disable-curses,ncurses,"
-- 
1.8.4.1



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

* Re: [PATCH 3/3] gettext: fix implicit build result
  2014-07-17  7:58 ` [PATCH 3/3] gettext: fix implicit build result Ming Liu
@ 2014-07-17  9:21   ` Burton, Ross
  2014-07-17  9:38     ` Ming Liu
  0 siblings, 1 reply; 5+ messages in thread
From: Burton, Ross @ 2014-07-17  9:21 UTC (permalink / raw)
  To: Ming Liu; +Cc: OE-core

On 17 July 2014 08:58, Ming Liu <ming.liu@windriver.com> wrote:
> Some "once only" variants are being defined instead of standard autoconf
> macros, for instance, AC_CHECK_HEADERS_ONCE like AC_CHECK_HEADERS. The
> advantage is that the check for each of the headers will be put only once
> into the 'configure' file, therefore it keeps the size down. But there
> is also a drawback that the checks then will turn to be statically inserted
> to the configure and cannot be conditionalized any more. It will
> definitely break the dependencies chosen as internally included.

I'm confused as to why this breaks anything, and if it does break
gettext then it's not embedded-specific but an upstream bug in the
configure script, surely.  Can you explain what the problem is?

Ross


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

* Re: [PATCH 3/3] gettext: fix implicit build result
  2014-07-17  9:21   ` Burton, Ross
@ 2014-07-17  9:38     ` Ming Liu
  0 siblings, 0 replies; 5+ messages in thread
From: Ming Liu @ 2014-07-17  9:38 UTC (permalink / raw)
  To: Burton, Ross; +Cc: OE-core

On 07/17/2014 05:21 PM, Burton, Ross wrote:
> On 17 July 2014 08:58, Ming Liu <ming.liu@windriver.com> wrote:
>> Some "once only" variants are being defined instead of standard autoconf
>> macros, for instance, AC_CHECK_HEADERS_ONCE like AC_CHECK_HEADERS. The
>> advantage is that the check for each of the headers will be put only once
>> into the 'configure' file, therefore it keeps the size down. But there
>> is also a drawback that the checks then will turn to be statically inserted
>> to the configure and cannot be conditionalized any more. It will
>> definitely break the dependencies chosen as internally included.
> I'm confused as to why this breaks anything, and if it does break
> gettext then it's not embedded-specific but an upstream bug in the
> configure script, surely.  Can you explain what the problem is?
Yes, I'd like to explain it a little more.
AC_CHECK_HEADERS_ONCE will statically add some code to 'configure' file 
to force checking headers no matter it's in a condition or not. For example:
   ......
   if test "$gl_cv_libxml_use_included" != yes; then
     ......
     AC_CHECK_HEADERS_ONCE([somehead.h])
     ......
   fi

will always check somehead.h even gl_cv_libxml_use_included equal to 
'yes', then there will be a problem if we want to choose some 
dependency, for instance, libxml2, to be internally included, that means 
not refer to any headers or libraries in system, but oppositely, 
AC_CHECK_HEADERS_ONCE will pull in the header that it's supposed to 
check, and that would break the dependency we intended to set.

//Ming Liu
>
> Ross
>
>



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

end of thread, other threads:[~2014-07-17  9:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-17  7:58 [PATCH 1/3] flac: explicitly disable checking for nasm Ming Liu
2014-07-17  7:58 ` [PATCH 2/3] gmp: use PACKAGECONFIG to address readline dependency Ming Liu
2014-07-17  7:58 ` [PATCH 3/3] gettext: fix implicit build result Ming Liu
2014-07-17  9:21   ` Burton, Ross
2014-07-17  9:38     ` Ming Liu

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