Skip to contentSkip to conversation

jpeg_8b: Allow using older versions of automake

PATCH Superseded Chase Maupin 5 participants 6 messages Aug 27, 2010 – Sep 10, 2010

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 jpeg_8b: Allow using older versions of automake

From: Chase <chase@chase-laptop.(none)>

* Added patch to allow using older versions of automake such as 1.10.3 when building jpeg version 8b.
* Only use the AM_SILENT_RULES if it is available.

---
 ...igure-make-jpeg-work-with-older-autotools.patch |   30 ++++++++++++++++++++
 recipes/jpeg/jpeg_8b.bb                            |    7 +++-
 2 files changed, 35 insertions(+), 2 deletions(-)
 create mode 100644 recipes/jpeg/jpeg-8b/0001-configure-make-jpeg-work-with-older-autotools.patch
recipes/jpeg/jpeg-8b/0001-configure-make-jpeg-work-with-older-autotools.patch new file +30 -0
new file mode 100644
index 0000000..dd6fd52
@@ -0,0 +1,30 @@
+From e9e77ee999553f9b94de0288688a0bdc60b92e0f Mon Sep 17 00:00:00 2001
+From: Chase Maupin <[email protected]>
+Date: Tue, 17 Aug 2010 08:30:56 -0500
+Subject: [PATCH] configure: make jpeg work with older autotools
+
+* Only use the AM_SILENT_RULES variable if it is defined.  Older
+  versions of automake don't support this option.
+
+Signed-off-by: Chase Maupin <[email protected]>
+---
+ configure.ac |    3 ++-
+ 1 files changed, 2 insertions(+), 1 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index 96da13b..9a58c51 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -26,7 +26,8 @@ AM_INIT_AUTOMAKE([-Wall -Werror ansi2knr no-dist foreign])
+ # Make --enable-silent-rules the default.
+ # To get verbose build output you may configure
+ # with --disable-silent-rules or use "make V=1".
+-AM_SILENT_RULES([yes])
++# only use if available
++m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
+ 
+ # This is required when using the de-ANSI-fication feature.
+ AM_C_PROTOTYPES
+-- 
+1.7.0.4
+
recipes/jpeg/jpeg_8b.bb +5 -2
index 4251ca6..4e6f25b 100644
@@ -2,12 +2,15 @@ DESCRIPTION = "libjpeg is a library for handling the JPEG (JFIF) image format."
 LICENSE = "jpeg"
 SECTION = "libs"
 PRIORITY = "required"
-PR = "r0"
+PR = "r1"
 
 # TODO: really needed?
 RPROVIDES_${PN} = "jpeg"
 
-SRC_URI = "http://www.ijg.org/files/jpegsrc.v${PV}.tar.gz"
+SRC_URI = "\
+    http://www.ijg.org/files/jpegsrc.v${PV}.tar.gz \
+    file://0001-configure-make-jpeg-work-with-older-autotools.patch;apply=yes \
+    "
 S = "${WORKDIR}/jpeg-${PV}"
 
 inherit autotools
Signature · 1 line
1.7.0.4
#1 lore raw
Quoted 3 lines · Chase Maupin

patch looks ok. I would suggest to regenerate configure and also include in the patch. If we use autotools class do_configure then configure is regenerated so that may not be needed but it does not hurt to have it patched

Quoted 12 lines

---
 ...igure-make-jpeg-work-with-older-autotools.patch |   30 ++++++++++++++++++++ recipes/jpeg/jpeg_8b.bb                            |    7 +++-

 2 files changed, 35 insertions(+), 2 deletions(-)

 create mode 100644 recipes/jpeg/jpeg-8b/0001-configure-make-jpeg-work-with-older-autotools.patch

recipes/jpeg/jpeg-8b/0001-configure-make-jpeg-work-with-older-autotools.patch new file +0 -0
new file mode 100644
index 0000000..dd6fd52
@@ -0,0 +1,30 @@
#2 lore raw

Khem,

I'd be happy to make the patch but in this case the resulting differences in configure appear to be just changes to line numbers in the script because my patch caused a new comment line to be inserted. I'm not sure if this patch to configure would add anything but clutter. However, if you still want it I'll add it to the patch and resend. The changes to configure would be (and sorry for any outlook mangling):

configure +15 -14
diff -burpN orig/configure new/configure
@@ -2950,6 +2950,7 @@ am__tar='${AMTAR} chof - "$$tardir"'; am
 # Make --enable-silent-rules the default.
 # To get verbose build output you may configure
 # with --disable-silent-rules or use "make V=1".
+# only use if available
 # Check whether --enable-silent-rules was given.
 if test "${enable_silent_rules+set}" = set; then :
   enableval=$enable_silent_rules;
@@ -6950,13 +6951,13 @@ if test "${lt_cv_nm_interface+set}" = se
 else
   lt_cv_nm_interface="BSD nm"
   echo "int some_variable = 0;" > conftest.$ac_ext
-  (eval echo "\"\$as_me:6953: $ac_compile\"" >&5)
+  (eval echo "\"\$as_me:6954: $ac_compile\"" >&5)
   (eval "$ac_compile" 2>conftest.err)
   cat conftest.err >&5
-  (eval echo "\"\$as_me:6956: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
+  (eval echo "\"\$as_me:6957: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
   cat conftest.err >&5
-  (eval echo "\"\$as_me:6959: output\"" >&5)
+  (eval echo "\"\$as_me:6960: output\"" >&5)
   cat conftest.out >&5
   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
     lt_cv_nm_interface="MS dumpbin"
@@ -8147,7 +8148,7 @@ ia64-*-hpux*)
   ;;
 *-*-irix6*)
   # Find out which ABI we are using.
-  echo '#line 8150 "configure"' > conftest.$ac_ext
+  echo '#line 8151 "configure"' > conftest.$ac_ext
   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   (eval $ac_compile) 2>&5
   ac_status=$?
@@ -9404,11 +9405,11 @@ else
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    -e 's:$: $lt_compiler_flag:'`
-   (eval echo "\"\$as_me:9407: $lt_compile\"" >&5)
+   (eval echo "\"\$as_me:9408: $lt_compile\"" >&5)
    (eval "$lt_compile" 2>conftest.err)
    ac_status=$?
    cat conftest.err >&5
-   echo "$as_me:9411: \$? = $ac_status" >&5
+   echo "$as_me:9412: \$? = $ac_status" >&5
    if (exit $ac_status) && test -s "$ac_outfile"; then
      # The compiler can only warn and ignore the option if not recognized
      # So say no if there are warnings other than the usual output.
@@ -9743,11 +9744,11 @@ else
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    -e 's:$: $lt_compiler_flag:'`
-   (eval echo "\"\$as_me:9746: $lt_compile\"" >&5)
+   (eval echo "\"\$as_me:9747: $lt_compile\"" >&5)
    (eval "$lt_compile" 2>conftest.err)
    ac_status=$?
    cat conftest.err >&5
-   echo "$as_me:9750: \$? = $ac_status" >&5
+   echo "$as_me:9751: \$? = $ac_status" >&5
    if (exit $ac_status) && test -s "$ac_outfile"; then
      # The compiler can only warn and ignore the option if not recognized
      # So say no if there are warnings other than the usual output.
@@ -9848,11 +9849,11 @@ else
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    -e 's:$: $lt_compiler_flag:'`
-   (eval echo "\"\$as_me:9851: $lt_compile\"" >&5)
+   (eval echo "\"\$as_me:9852: $lt_compile\"" >&5)
    (eval "$lt_compile" 2>out/conftest.err)
    ac_status=$?
    cat out/conftest.err >&5
-   echo "$as_me:9855: \$? = $ac_status" >&5
+   echo "$as_me:9856: \$? = $ac_status" >&5
    if (exit $ac_status) && test -s out/conftest2.$ac_objext
    then
      # The compiler can only warn and ignore the option if not recognized
@@ -9903,11 +9904,11 @@ else
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    -e 's:$: $lt_compiler_flag:'`
-   (eval echo "\"\$as_me:9906: $lt_compile\"" >&5)
+   (eval echo "\"\$as_me:9907: $lt_compile\"" >&5)
    (eval "$lt_compile" 2>out/conftest.err)
    ac_status=$?
    cat out/conftest.err >&5
-   echo "$as_me:9910: \$? = $ac_status" >&5
+   echo "$as_me:9911: \$? = $ac_status" >&5
    if (exit $ac_status) && test -s out/conftest2.$ac_objext
    then
      # The compiler can only warn and ignore the option if not recognized
@@ -12270,7 +12271,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 12273 "configure"
+#line 12274 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -12366,7 +12367,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 12369 "configure"
+#line 12370 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H

Sincerely,
Chase Maupin
Software Applications
Catalog DSP Products
e-mail: [email protected]
phone: (281) 274-3285

For support:
Forums - http://community.ti.com/forums/
Wiki - http://wiki.davincidsp.com/

Quoted 41 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Khem Raj
Sent: Friday, August 27, 2010 3:19 PM
To: [email protected]
Subject: Re: [oe] [PATCH] jpeg_8b: Allow using older versions of automake

Quoted 3 lines · Chase Maupin

patch looks ok. I would suggest to regenerate configure and also include in the patch. If we use autotools class do_configure then configure is regenerated so that may not be needed but it does not hurt to have it patched

Quoted 2 lines

---
 ...igure-make-jpeg-work-with-older-autotools.patch |   30

++++++++++++++++++++

Quoted 3 lines

 recipes/jpeg/jpeg_8b.bb                            |    7 +++-

 2 files changed, 35 insertions(+), 2 deletions(-)

 create mode 100644 recipes/jpeg/jpeg-8b/0001-configure-make-jpeg-work-

with-older-autotools.patch

Review

Quoted 2 lines
(quoted diff) +0 -0

older-autotools.patch b/recipes/jpeg/jpeg-8b/0001-configure-make-jpeg- work-with-older-autotools.patch

recipes/jpeg/jpeg-8b/0001-configure-make-jpeg-work-with-older-

Quoted 4 lines

new file mode 100644
index 0000000..dd6fd52

recipes/jpeg/jpeg-8b/0001-configure-make-jpeg-work-with-older- new file +0 -0

autotools.patch

recipes/jpeg/jpeg-8b/0001-configure-make-jpeg-work-with-older-

Quoted 1 line
recipes/jpeg/jpeg-8b/0001-configure-make-jpeg-work-with-older- new file +0 -0
@@ -0,0 +1,30 @@

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

#3 lore raw
Quoted 8 lines · Chase

Khem,

I'd be happy to make the patch but in this case the resulting differences in configure appear to be just changes to line numbers in the script because my patch caused a new comment line to be inserted. I'm not sure if this patch to configure would add anything but clutter. However, if you still want it I'll add it to the patch and resend. The changes to configure would be (and sorry for any outlook mangling):

Ping.

While the patch is not required, but it's nice to have. I'd vote to apply the original version w/o changes to configure script, but with change proposed by Enrico.

Signature · 1 line
Denys
#4 lore raw

Enricos change is on my list. I will resubmit this.

Sincerely,
Chase Maupin
Software Applications
Catalog DSP Products
e-mail: [email protected]
phone: (281) 274-3285

For support:
Forums - http://community.ti.com/forums/
Wiki - http://wiki.davincidsp.com/

Quoted 40 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Denys Dmytriyenko
Sent: Friday, September 10, 2010 1:05 PM
To: [email protected]
Subject: Re: [oe] [PATCH] jpeg_8b: Allow using older versions of automake

Quoted 3 lines · Chase

Khem,

I'd be happy to make the patch but in this case the resulting

differences in

Quoted 1 line

configure appear to be just changes to line numbers in the script

because my

Quoted 1 line

patch caused a new comment line to be inserted. I'm not sure if this

patch

Quoted 1 line

to configure would add anything but clutter. However, if you still want

it

Quoted 1 line

I'll add it to the patch and resend. The changes to configure would be

(and

Quoted 1 line

sorry for any outlook mangling):

Ping.

While the patch is not required, but it's nice to have. I'd vote to apply the
original version w/o changes to configure script, but with change proposed by
Enrico.

--
Denys

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

Acked-by on v1 1/1
#5 lore raw
In reply to Chase Maupin
Quoted 5 lines · Chase Maupin

* Added patch to allow using older versions of automake such as 1.10.3 when building jpeg version 8b.
* Only use the AM_SILENT_RULES if it is available.

Quoted 1 line

+ file://0001-configure-make-jpeg-work-with-older-autotools.patch;apply=yes \

I suggest to remove the explicit ';apply=yes'.

Enrico