Skip to contentSkip to conversation

jpeg: upgrade to 9

PATCH In review Constantin Musca 4 participants 6 messages Feb 18, 2013 – Feb 21, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 jpeg: upgrade to 9

License checksum change due to:
- version modification
- links modification
- additional license explanations

fix_for_automake_1.12.1.patch: not needed anymore

fix-jmorecfg-boolean-enum.patch: added
- we have to undef TRUE & FALSE in order to define the boolean enum

---
 .../jpeg/jpeg-8d/fix_for_automake_1.12.1.patch     | 44 ----------------------
 .../{jpeg-8d => jpeg-9}/debian-libjpeg7_7-1.diff   |  0
 .../jpeg/jpeg-9/fix-jmorecfg-boolean-enum.patch    | 19 ++++++++++
 meta/recipes-core/jpeg/{jpeg_8d.bb => jpeg_9.bb}   | 12 +++---
 4 files changed, 25 insertions(+), 50 deletions(-)
 delete mode 100644 meta/recipes-core/jpeg/jpeg-8d/fix_for_automake_1.12.1.patch
 rename meta/recipes-core/jpeg/{jpeg-8d => jpeg-9}/debian-libjpeg7_7-1.diff (100%)
 create mode 100644 meta/recipes-core/jpeg/jpeg-9/fix-jmorecfg-boolean-enum.patch
 rename meta/recipes-core/jpeg/{jpeg_8d.bb => jpeg_9.bb} (81%)
meta/recipes-core/jpeg/jpeg-8d/fix_for_automake_1.12.1.patch deleted +0 -44
deleted file mode 100644
index 3a970ea..0000000
@@ -1,44 +0,0 @@
-Upstream-Status: Pending
-
-The support for automatic de-ANSI-fication has been deprecated in
-automake 1.11.2, and will be removed altogether in automake 1.12
-
-This avoids this error:
-| configure.ac:24: automatic de-ANSI-fication support is deprecated
-| autoreconf: automake failed with exit status: 1
-| ERROR: autoreconf execution failed.
-NOTE: package jpeg-native-8c-r2: task do_configure: Failed
-
-Signed-Off-By: Nitin A Kamble <[email protected]>
-2011/12/28
-
-
-Index: jpeg-8d/configure.ac
-===================================================================
---- jpeg-8d.orig/configure.ac
-+++ jpeg-8d/configure.ac
-@@ -21,7 +21,7 @@ AC_CANONICAL_TARGET
- 
- # Initialize Automake
- # Don't require all the GNU mandated files
--AM_INIT_AUTOMAKE([-Wall -Werror -Wno-obsolete ansi2knr no-dist foreign])
-+AM_INIT_AUTOMAKE([-Wall -Werror -Wno-obsolete no-dist foreign])
- 
- # Make --enable-silent-rules the default.
- # To get verbose build output you may configure
-@@ -29,7 +29,14 @@ AM_INIT_AUTOMAKE([-Wall -Werror -Wno-obs
- AM_SILENT_RULES([yes])
- 
- # This is required when using the de-ANSI-fication feature.
--AM_C_PROTOTYPES
-+#AM_C_PROTOTYPES
-+# add following to avoid this error:
-+#| automake: warnings are treated as errors
-+#| /srv/home/nitin/builds2/build0/tmp/sysroots/x86_64-linux/usr/share/automake-1.12/am/ltlibrary.am: warning: 'libjpeg.la': linking libtool libraries using a non-POSIX
-+#| /srv/home/nitin/builds2/build0/tmp/sysroots/x86_64-linux/usr/share/automake-1.12/am/ltlibrary.am: archiver requires 'AM_PROG_AR' in 'configure.ac'
-+#| Makefile.am:65:   while processing Libtool library 'libjpeg.la'
-+#| autoreconf: automake failed with exit status: 1
-+AM_PROG_AR
- 
- # Add configure option --enable-maintainer-mode which enables
- # dependency checking and generation useful to package maintainers.
meta/recipes-core/jpeg/jpeg-9/debian-libjpeg7_7-1.diff renamed from meta/recipes-core/jpeg/jpeg-8d/debian-libjpeg7_7-1.diff +0 -0
similarity index 100%
rename from meta/recipes-core/jpeg/jpeg-8d/debian-libjpeg7_7-1.diff
rename to meta/recipes-core/jpeg/jpeg-9/debian-libjpeg7_7-1.diff
meta/recipes-core/jpeg/jpeg-9/fix-jmorecfg-boolean-enum.patch new file +19 -0
new file mode 100644
index 0000000..089eb1d
@@ -0,0 +1,19 @@
+TRUE & FALSE have to be undefined in order to define
+the boolean enum
+
+Upstream-Status: Pending
+Signed-off-by: Constantin Musca <[email protected]>
+
+Index: jpeg-9/jmorecfg.h
+===================================================================
+--- jpeg-9.orig/jmorecfg.h
++++ jpeg-9/jmorecfg.h
+@@ -260,6 +260,8 @@ typedef void noreturn_t;
+ #define TRUE	1
+ #endif
+ #else
++#undef TRUE
++#undef FALSE
+ typedef enum { FALSE = 0, TRUE = 1 } boolean;
+ #endif
+ 
meta/recipes-core/jpeg/jpeg_9.bb renamed from meta/recipes-core/jpeg/jpeg_8d.bb +6 -6
similarity index 81%
rename from meta/recipes-core/jpeg/jpeg_8d.bb
rename to meta/recipes-core/jpeg/jpeg_9.bb
index eba5bf4..8d0f541 100644
@@ -4,21 +4,21 @@ HOMEPAGE = "http://www.ijg.org/"
 BUGTRACKER = ""
 
 LICENSE ="BSD-3-Clause"
-LIC_FILES_CHKSUM = "file://README;md5=4f46756b064c225fae088903300e5c98"
+LIC_FILES_CHKSUM = "file://README;md5=c7b449f4c8fb865866a8fc0231431526"
 
 SECTION = "libs"
 
 DEPENDS = "libtool-cross"
 DEPENDS_class-native = "libtool-native"
 
-PR = "r1"
+PR = "r0"
 
 SRC_URI = "http://www.ijg.org/files/jpegsrc.v${PV}.tar.gz \
-	   file://debian-libjpeg7_7-1.diff \
-           file://fix_for_automake_1.12.1.patch"
+           file://debian-libjpeg7_7-1.diff \
+           file://fix-jmorecfg-boolean-enum.patch"
 
-SRC_URI[md5sum] = "52654eb3b2e60c35731ea8fc87f1bd29"
-SRC_URI[sha256sum] = "00029b1473f0f0ea72fbca3230e8cb25797fbb27e58ae2e46bb8bf5a806fe0b3"
+SRC_URI[md5sum] = "b397211ddfd506b92cd5e02a22ac924d"
+SRC_URI[sha256sum] = "c4e29e9375aaf60b4b79db87a58b063fb5b84f923bee97a88280b3d159e7e535"
 
 inherit autotools 
 
Signature · 1 line
1.7.11.7
#1 lore raw
Quoted 5 lines · Constantin Musca

License checksum change due to:
- version modification
- links modification
- additional license explanations

Quoted 7 lines

fix_for_automake_1.12.1.patch: not needed anymore

fix-jmorecfg-boolean-enum.patch: added
- we have to undef TRUE & FALSE in order to define the boolean enum

Have you tried to build webkit-gtk against this? At one point I had
similar jpeg update in my tree causing webkit-gtk build failure.

- ML

#2 lore raw
Quoted 12 lines · Marko Lindqvist
Quoted 11 lines · Constantin Musca

License checksum change due to:
- version modification
- links modification
- additional license explanations

fix_for_automake_1.12.1.patch: not needed anymore

fix-jmorecfg-boolean-enum.patch: added
- we have to undef TRUE & FALSE in order to define the boolean enum

Quoted 6 lines
Quoted 1 line

Have you tried to build webkit-gtk against this? At one point I had
similar jpeg update in my tree causing webkit-gtk build failure.

- ML

You are right. The problem is that I can't upgrade webkit-gtk because the new version requires ruby.

Cheers,
Constantin

#3 lore raw
Quoted 5 lines · Constantin Musca
Quoted 2 lines

Have you tried to build webkit-gtk against this? At one point I had
similar jpeg update in my tree causing webkit-gtk build failure.

You are right. The problem is that I can't upgrade webkit-gtk because the new version requires ruby.

But we can cherry-pick any libjpeg fixes until we've bitten the bullet and integrated ruby.

Ross

#4 lore raw
Quoted 9 lines · Ross
Quoted 5 lines · Constantin Musca
Quoted 2 lines

Have you tried to build webkit-gtk against this? At one point I had
similar jpeg update in my tree causing webkit-gtk build failure.

You are right. The problem is that I can't upgrade webkit-gtk because the new version requires ruby.

But we can cherry-pick any libjpeg fixes until we've bitten the bullet and integrated ruby.

ruby-native is already in meta-ruby

Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
#5 lore raw
Quoted 4 lines · Martin Jansa
Quoted 2 lines

But we can cherry-pick any libjpeg fixes until we've bitten the bullet and integrated ruby.

ruby-native is already in meta-ruby

Yes, "biting the bullet" means either committing to building WebKit in oe-core or not.

Ross