All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alexander Kanavin <alexander.kanavin@linux.intel.com>
To: openembedded-core@lists.openembedded.org
Subject: [PATCH 01/12] ccache: update to 3.2.3
Date: Thu,  3 Sep 2015 18:34:10 +0300	[thread overview]
Message-ID: <b8ff0174fb878e4f0d2cf7aabf6769a85c1c6d1d.1441293149.git.alexander.kanavin@linux.intel.com> (raw)
In-Reply-To: <cover.1441293149.git.alexander.kanavin@linux.intel.com>
In-Reply-To: <cover.1441293149.git.alexander.kanavin@linux.intel.com>

The LICENSE checksum has changed because of updated copyright years.

SRC_URI has been changed to git, because upstream tarball is broken
(includes configure.ac but not .m4 files it depends on).

Add a backported patch that fixes builds with older versions of make
and external zlib.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
---
 meta/recipes-devtools/ccache/ccache.inc            |  4 +-
 meta/recipes-devtools/ccache/ccache_3.1.11.bb      |  7 ---
 meta/recipes-devtools/ccache/ccache_3.2.3.bb       |  8 +++
 ...ion-in-recent-change-related-to-zlib-in-n.patch | 73 ++++++++++++++++++++++
 4 files changed, 84 insertions(+), 8 deletions(-)
 delete mode 100644 meta/recipes-devtools/ccache/ccache_3.1.11.bb
 create mode 100644 meta/recipes-devtools/ccache/ccache_3.2.3.bb
 create mode 100644 meta/recipes-devtools/ccache/files/0001-Fix-regression-in-recent-change-related-to-zlib-in-n.patch

diff --git a/meta/recipes-devtools/ccache/ccache.inc b/meta/recipes-devtools/ccache/ccache.inc
index 087cb7d..4790021 100644
--- a/meta/recipes-devtools/ccache/ccache.inc
+++ b/meta/recipes-devtools/ccache/ccache.inc
@@ -9,7 +9,9 @@ LICENSE = "GPLv3+"
 
 DEPENDS = "zlib"
 
-SRC_URI = "http://samba.org/ftp/ccache/ccache-${PV}.tar.xz"
+SRC_URI = "git://git.samba.org/ccache.git"
+
+S = "${WORKDIR}/git"
 
 inherit autotools
 
diff --git a/meta/recipes-devtools/ccache/ccache_3.1.11.bb b/meta/recipes-devtools/ccache/ccache_3.1.11.bb
deleted file mode 100644
index 7696003..0000000
--- a/meta/recipes-devtools/ccache/ccache_3.1.11.bb
+++ /dev/null
@@ -1,7 +0,0 @@
-require ccache.inc
-
-LICENSE = "GPLv3+"
-LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=80e92ec45d4fca91f127864fb9e5d932"
-
-SRC_URI[md5sum] = "0f6df80c8941d9020a1fd5df5ad57dd7"
-SRC_URI[sha256sum] = "60e9f3f1e60f528cfce910f3224bcc698029320f6ab77ec09a7b46bda2bc678e"
diff --git a/meta/recipes-devtools/ccache/ccache_3.2.3.bb b/meta/recipes-devtools/ccache/ccache_3.2.3.bb
new file mode 100644
index 0000000..357df75
--- /dev/null
+++ b/meta/recipes-devtools/ccache/ccache_3.2.3.bb
@@ -0,0 +1,8 @@
+require ccache.inc
+
+LICENSE = "GPLv3+"
+LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=b3c337e7664559a789d9f7a93e5283c1"
+
+SRCREV = "4cad46e8ee0053144bb00919f0dadd20c1f87013"
+
+SRC_URI += "file://0001-Fix-regression-in-recent-change-related-to-zlib-in-n.patch"
diff --git a/meta/recipes-devtools/ccache/files/0001-Fix-regression-in-recent-change-related-to-zlib-in-n.patch b/meta/recipes-devtools/ccache/files/0001-Fix-regression-in-recent-change-related-to-zlib-in-n.patch
new file mode 100644
index 0000000..a8400d5
--- /dev/null
+++ b/meta/recipes-devtools/ccache/files/0001-Fix-regression-in-recent-change-related-to-zlib-in-n.patch
@@ -0,0 +1,73 @@
+From f74c76107933046309861680b741adc67ac2a34e Mon Sep 17 00:00:00 2001
+From: Joel Rosdahl <joel@rosdahl.net>
+Date: Mon, 17 Aug 2015 19:05:14 +0200
+Subject: [PATCH] Fix regression in recent change related to zlib in
+ nonstandard location
+
+To allow for specifying a -L flag in LDFLAGS and have it take effect for
+-lz, 0220de9c8ebfb18caae2ac1aa163d060e98ceade put -lz in extra_libs
+instead of extra_ldflags. However, extra_libs is supposed to contain
+paths to libraries which are prerequisites of the ccache link rule, and
+some older versions of make got confused by seeing -lz as a
+prerequisite.
+
+This fix is to revert 0220de9c8ebfb18caae2ac1aa163d060e98ceade and
+instead make sure that LDFLAGS comes before extra_ldflags.
+
+Upstream-status: Backport
+---
+ Makefile.in  |  2 +-
+ NEWS.txt     | 10 ++++++++++
+ configure.ac |  2 +-
+ 3 files changed, 12 insertions(+), 2 deletions(-)
+
+diff --git a/Makefile.in b/Makefile.in
+index e7515b1..d3621cd 100644
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -20,7 +20,7 @@ RANLIB = @RANLIB@
+ 
+ all_cflags = $(CFLAGS)
+ all_cppflags = @DEFS@ @extra_cppflags@ -DSYSCONFDIR=$(sysconfdir) -I. -I$(srcdir) $(CPPFLAGS)
+-all_ldflags = @extra_ldflags@ $(LDFLAGS)
++all_ldflags = $(LDFLAGS) @extra_ldflags@
+ extra_libs = @extra_libs@
+ 
+ base_sources = \
+diff --git a/NEWS.txt b/NEWS.txt
+index f13feeb..eaeadf6 100644
+--- a/NEWS.txt
++++ b/NEWS.txt
+@@ -2,6 +2,16 @@ ccache news
+ ===========
+ 
+ 
++Unreleased 3.2.4
++----------------
++
++Bug fixes
++~~~~~~~~~
++
++- Fixed build error related to zlib on systems with older make versions
++  (regression in ccache 3.2.3).
++
++
+ ccache 3.2.3
+ ------------
+ Release date: 2015-08-16
+diff --git a/configure.ac b/configure.ac
+index 8d8ce92..9e65588 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -120,7 +120,7 @@ if test x${use_bundled_zlib} = xyes; then
+     extra_libs="zlib/libz.a"
+     mkdir -p zlib
+ else
+-    extra_libs="-lz"
++    extra_ldflags="-lz"
+ fi
+ 
+ dnl Linking on Windows needs ws2_32
+-- 
+2.1.4
+
-- 
2.1.4



  reply	other threads:[~2015-09-03 15:32 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-03 15:34 [PATCH 00/12] Various package/RRS updates Alexander Kanavin
2015-09-03 15:34 ` Alexander Kanavin [this message]
2015-09-03 15:34 ` [PATCH 02/12] mailx: update to 12.5-5 Alexander Kanavin
2015-09-03 15:34 ` [PATCH 03/12] net-tools: update to 1.60-25 Alexander Kanavin
2015-09-03 15:34 ` [PATCH 04/12] gnome-icon-theme: remove the recipe Alexander Kanavin
2015-09-03 16:08   ` Burton, Ross
2015-09-04 11:56     ` Jussi Kukkonen
2015-09-04 12:12       ` Alexander Kanavin
2015-09-04 13:32         ` Burton, Ross
2015-09-03 21:28   ` Khem Raj
2015-09-04 12:14     ` Alexander Kanavin
2015-09-04 14:16       ` Khem Raj
2015-09-07  9:37         ` Alexander Kanavin
2015-09-07 15:14           ` Martin Jansa
2015-09-18 17:30             ` World builds HW Was: " Martin Jansa
2015-09-18 17:38               ` Gary Thomas
2015-09-18 17:52                 ` Martin Jansa
2015-09-18 17:56               ` Tom King
2015-10-13 20:43                 ` Randy MacLeod
2015-10-14 13:01                   ` Martin Jansa
2015-09-03 15:34 ` [PATCH 05/12] libunique: " Alexander Kanavin
2015-09-03 15:34 ` [PATCH 06/12] mkelfimage: add RECIPE_NO_UPDATE_REASON Alexander Kanavin
2015-09-03 15:34 ` [PATCH 07/12] python-async: update to 0.6.2 Alexander Kanavin
2015-09-03 15:34 ` [PATCH 08/12] python-smmap: update to 0.9.0 Alexander Kanavin
2015-09-03 15:34 ` [PATCH 09/12] remake: update to 4.1+dbg-1.1 Alexander Kanavin
2015-09-03 15:34 ` [PATCH 10/12] uclibc: update PV to 0.9.33.2 to match latest upstream release Alexander Kanavin
2015-09-03 20:14   ` Khem Raj
2015-09-04 13:00     ` Alexander Kanavin
2015-09-03 15:34 ` [PATCH 11/12] vte: add RECIPE_NO_UPDATE_REASON Alexander Kanavin
2015-09-03 15:34 ` [PATCH 12/12] package_regex.inc: various updates to improve RRS accuracy Alexander Kanavin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b8ff0174fb878e4f0d2cf7aabf6769a85c1c6d1d.1441293149.git.alexander.kanavin@linux.intel.com \
    --to=alexander.kanavin@linux.intel.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.