Skip to contentSkip to conversation

Consolidated Pull Request

PATCH Applied Saul Wold 3 participants 11 messages Mar 10, 2011 – Mar 11, 2011

lore
Share & tools
lore

Saul Wold

author
#0 lore raw

cover Consolidated Pull Request

From: Saul Wold <[email protected]>

Richard,

This is a batch request of changes to address issues found as part of Bernard testing.

Pull URL: git://git.pokylinux.org/poky-contrib.git
Branch: distro/oe-core
Browse: http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=distro/oe-core

Thanks,
Saul Wold <[email protected]>
---

Dexuan Cui (2):
oprofileui: upgrade to the latest version maintained by the Yocto
project
distro_tracking_fields.inc: update the info for oprofileui

Dongxiao Xu (3):
telepathy-python: Fix parallel make issue.
tinylogin: Fix rotate passwd check logic
gst-plugins-bad: add missing dependency librsvg

Lianhao Lu (1):
gcc/collect2: Added --sysroot support into collect2 in gcc.

Liping Ke (1):
Disable wget server side cache

Mark Hatle (1):
gcc-runtime: Ensure that gcc-runtime builds a debug package

 .../conf/distro/include/distro_tracking_fields.inc |   11 +++--
 .../conf/distro/include/poky-default-revisions.inc |    2 +-
 .../telepathy-python-0.15.19/parallel_make.patch   |   40 ++++++++++++++++++++
 .../telepathy/telepathy-python_0.15.19.bb          |    5 +-
 .../tinylogin-1.4/passwd_rotate_check.patch        |   39 +++++++++++++++++++
 meta/recipes-core/tinylogin/tinylogin_1.4.bb       |    5 +-
 meta/recipes-devtools/gcc/gcc-4.5.1.inc            |    1 +
 .../gcc/gcc-4.5.1/COLLECT_GCC_OPTIONS.patch        |   22 +++++++++++
 .../gcc/gcc-cross-canadian_4.5.1.bb                |    2 +-
 .../gcc/gcc-cross-initial_4.5.1.bb                 |    2 +-
 .../gcc/gcc-cross-intermediate_4.5.1.bb            |    2 +-
 meta/recipes-devtools/gcc/gcc-cross_4.5.1.bb       |    2 +-
 .../gcc/gcc-crosssdk-initial_4.5.1.bb              |    2 +-
 .../gcc/gcc-crosssdk-intermediate_4.5.1.bb         |    2 +-
 meta/recipes-devtools/gcc/gcc-crosssdk_4.5.1.bb    |    2 +-
 meta/recipes-devtools/gcc/gcc-package-runtime.inc  |    3 +
 meta/recipes-devtools/gcc/gcc_4.5.1.bb             |    2 +-
 .../installer/adt-installer_1.0.bb                 |    3 +-
 .../installer/files/wget_cache.patch               |   10 +++++
 meta/recipes-kernel/oprofile/oprofileui-git.inc    |   10 +++++
 meta/recipes-kernel/oprofile/oprofileui-svn.inc    |    9 ----
 meta/recipes-kernel/oprofile/oprofileui_git.bb     |    2 +
 meta/recipes-kernel/oprofile/oprofileui_svn.bb     |    2 -
 .../gstreamer/gst-plugins-bad_0.10.20.bb           |    4 +-
 24 files changed, 152 insertions(+), 32 deletions(-)
 create mode 100644 meta/recipes-connectivity/telepathy/telepathy-python-0.15.19/parallel_make.patch
 create mode 100644 meta/recipes-core/tinylogin/tinylogin-1.4/passwd_rotate_check.patch
 create mode 100644 meta/recipes-devtools/gcc/gcc-4.5.1/COLLECT_GCC_OPTIONS.patch
 create mode 100644 meta/recipes-devtools/installer/files/wget_cache.patch
 create mode 100644 meta/recipes-kernel/oprofile/oprofileui-git.inc
 delete mode 100644 meta/recipes-kernel/oprofile/oprofileui-svn.inc
 create mode 100644 meta/recipes-kernel/oprofile/oprofileui_git.bb
 delete mode 100644 meta/recipes-kernel/oprofile/oprofileui_svn.bb
author
#1 lore raw

PATCH 1/8 oprofileui: upgrade to the latest version maintained by the Yocto project

From: Dexuan Cui <[email protected]>

Oprofileui at http://labs.o-hand.com/oprofileui/ is not maintained now, so we should change SRC_URI to the one maintained by the Yocto project. This one includes new bugfixes.

This fixes [YOCTO #820]

---
 .../conf/distro/include/poky-default-revisions.inc |    2 +-
 meta/recipes-kernel/oprofile/oprofileui-git.inc    |   10 ++++++++++
 meta/recipes-kernel/oprofile/oprofileui-svn.inc    |    9 ---------
 meta/recipes-kernel/oprofile/oprofileui_git.bb     |    2 ++
 meta/recipes-kernel/oprofile/oprofileui_svn.bb     |    2 --
 5 files changed, 13 insertions(+), 12 deletions(-)
 create mode 100644 meta/recipes-kernel/oprofile/oprofileui-git.inc
 delete mode 100644 meta/recipes-kernel/oprofile/oprofileui-svn.inc
 create mode 100644 meta/recipes-kernel/oprofile/oprofileui_git.bb
 delete mode 100644 meta/recipes-kernel/oprofile/oprofileui_svn.bb
meta/conf/distro/include/poky-default-revisions.inc +1 -1
index 36202a1..aee1749 100644
@@ -146,7 +146,7 @@ SRCREV_pn-opkg-nogpg-native ??= "${OPKGSRCREV}"
 SRCREV_pn-opkg-nogpg-nativesdk ??= "${OPKGSRCREV}"
 SRCREV_pn-opkg-utils-native ??= "4747"
 SRCREV_pn-opkg-utils ??= "4747"
-SRCREV_pn-oprofileui ??= "197"
+SRCREV_pn-oprofileui ??= "e2d998d8a55dc1e49d1588841f83eff8e6809753"
 SRCREV_pn-tcf-agent ??= "1078"
 SRCREV_pn-osc-native ??= "9096"
 SRCREV_pn-owl-video ??= "394"
meta/recipes-kernel/oprofile/oprofileui-git.inc new file +10 -0
new file mode 100644
index 0000000..b4a573b
@@ -0,0 +1,10 @@
+require oprofileui.inc
+
+PV = "0.0+git${SRCPV}"
+PR = "r2"
+
+S = "${WORKDIR}/git"
+
+# Oprofileui at http://labs.o-hand.com/oprofileui/ is not maintained now.
+SRC_URI = "git://git.pokylinux.org/oprofileui;protocol=git \
+           file://dso_linking_change_build_fix.patch "
meta/recipes-kernel/oprofile/oprofileui-svn.inc deleted +0 -9
deleted file mode 100644
index 5d40914..0000000
@@ -1,9 +0,0 @@
-require oprofileui.inc
-
-PV = "0.0+svnr${SRCPV}"
-PR = "r1"
-
-S = "${WORKDIR}/trunk"
-
-SRC_URI = "svn://svn.o-hand.com/repos/oprofileui;module=trunk;proto=http \
-           file://dso_linking_change_build_fix.patch "
meta/recipes-kernel/oprofile/oprofileui_git.bb new file +2 -0
new file mode 100644
index 0000000..705f4e1
@@ -0,0 +1,2 @@
+require oprofileui-git.inc
+
meta/recipes-kernel/oprofile/oprofileui_svn.bb deleted +0 -2
deleted file mode 100644
index 39e10b4..0000000
@@ -1,2 +0,0 @@
-require oprofileui-svn.inc
-
Signature · 1 line
1.7.1.1
#2 lore raw

Re: [PATCH 1/8] oprofileui: upgrade to the latest version maintained by the Yocto project

Quoted 71 lines · Saul Wold

From: Dexuan Cui <[email protected]>

Oprofileui at http://labs.o-hand.com/oprofileui/ is not maintained now, so we should change SRC_URI to the one maintained by the Yocto project. This one includes new bugfixes.

This fixes [YOCTO #820]

---
 .../conf/distro/include/poky-default-revisions.inc |    2 +-
 meta/recipes-kernel/oprofile/oprofileui-git.inc    |   10 ++++++++++
 meta/recipes-kernel/oprofile/oprofileui-svn.inc    |    9 ---------
 meta/recipes-kernel/oprofile/oprofileui_git.bb     |    2 ++
 meta/recipes-kernel/oprofile/oprofileui_svn.bb     |    2 --
 5 files changed, 13 insertions(+), 12 deletions(-)
 create mode 100644 meta/recipes-kernel/oprofile/oprofileui-git.inc
 delete mode 100644 meta/recipes-kernel/oprofile/oprofileui-svn.inc
 create mode 100644 meta/recipes-kernel/oprofile/oprofileui_git.bb
 delete mode 100644 meta/recipes-kernel/oprofile/oprofileui_svn.bb
meta/conf/distro/include/poky-default-revisions.inc +1 -1
index 36202a1..aee1749 100644
@@ -146,7 +146,7 @@ SRCREV_pn-opkg-nogpg-native ??= "${OPKGSRCREV}"
 SRCREV_pn-opkg-nogpg-nativesdk ??= "${OPKGSRCREV}"
 SRCREV_pn-opkg-utils-native ??= "4747"
 SRCREV_pn-opkg-utils ??= "4747"
-SRCREV_pn-oprofileui ??= "197"
+SRCREV_pn-oprofileui ??= "e2d998d8a55dc1e49d1588841f83eff8e6809753"
 SRCREV_pn-tcf-agent ??= "1078"
 SRCREV_pn-osc-native ??= "9096"
 SRCREV_pn-owl-video ??= "394"
meta/recipes-kernel/oprofile/oprofileui-git.inc new file +10 -0
new file mode 100644
index 0000000..b4a573b
@@ -0,0 +1,10 @@
+require oprofileui.inc
+
+PV = "0.0+git${SRCPV}"
+PR = "r2"
+
+S = "${WORKDIR}/git"
+
+# Oprofileui at http://labs.o-hand.com/oprofileui/ is not maintained now.
+SRC_URI = "git://git.pokylinux.org/oprofileui;protocol=git \
+           file://dso_linking_change_build_fix.patch "
meta/recipes-kernel/oprofile/oprofileui-svn.inc deleted +0 -9
deleted file mode 100644
index 5d40914..0000000
@@ -1,9 +0,0 @@
-require oprofileui.inc
-
-PV = "0.0+svnr${SRCPV}"
-PR = "r1"
-
-S = "${WORKDIR}/trunk"
-
-SRC_URI = "svn://svn.o-hand.com/repos/oprofileui;module=trunk;proto=http \
-           file://dso_linking_change_build_fix.patch "
meta/recipes-kernel/oprofile/oprofileui_git.bb new file +0 -0
new file mode 100644
index 0000000..705f4e1

meta/recipes-kernel/oprofile/oprofileui_git.bb line 2

Quoted 2 lines
meta/recipes-kernel/oprofile/oprofileui_git.bb new file +2 -0
@@ -0,0 +1,2 @@
+require oprofileui-git.inc
+

Any reason you've done it htis way?
Can we merge the contents of oprofileui-git.inc into oprofileui_git.bb and delete oprofileui-git.inc only have one file here?

inc files are useful for sharing metadata between several recipes but since we only have one recipe here (and should only ever provide one _git recipe) the inc file is pretty superfluous at this time.

Thanks,
Joshua

Quoted 8 lines
meta/recipes-kernel/oprofile/oprofileui_svn.bb deleted +0 -2
deleted file mode 100644
index 39e10b4..0000000
@@ -1,2 +0,0 @@
-require oprofileui-svn.inc
-
Signature · 3 lines
Joshua Lock
        Yocto Build System Monkey
        Intel Open Source Technology Centre
author
#3 lore raw

PATCH 2/8 distro_tracking_fields.inc: update the info for oprofileui

In reply to Saul Wold

From: Dexuan Cui <[email protected]>

---
 .../conf/distro/include/distro_tracking_fields.inc |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)
meta/conf/distro/include/distro_tracking_fields.inc +6 -5
index 1b05341..cadfac2 100644
@@ -2681,13 +2681,14 @@ RECIPE_MAINTAINER_pn-libsamplerate0 = "Dongxiao Xu <[email protected]>"
 RECIPE_STATUS_pn-oprofileui = "green"
 DISTRO_PN_ALIAS_pn-oprofileui = "Fedora=oprofileui Ubuntu=oprofile-gui Debian=oprofile-gui"
 RECIPE_DEPENDENCY_CHECK_pn-oprofileui = "not done"
-RECIPE_LATEST_VERSION_pn-oprofileui = "0.0+svnr197"
-RECIPE_NO_OF_PATCHES_pn-oprofileui = "0"
+RECIPE_LATEST_VERSION_pn-oprofileui = "0.0+git0+e2d998d8a55dc1e49d1588841f83eff8e6809753"
+RECIPE_NO_OF_PATCHES_pn-oprofileui = "1"
+RECIPE_PATCH_pn-oprofileui+dso_linking_change_build_fix = "fix the build by explicitely passing -lm to linker"
 RECIPE_INTEL_SECTION_pn-oprofileui = "sdk-tools"
-RECIPE_TIME_BETWEEN_LAST_TWO_RELEASES_pn-oprofileui = "13 days"
-RECIPE_LATEST_RELEASE_DATE_pn-oprofileui = "07/2008"
+RECIPE_TIME_BETWEEN_LAST_TWO_RELEASES_pn-oprofileui = "5 months"
+RECIPE_LATEST_RELEASE_DATE_pn-oprofileui = "Dec 10, 2010"
 RECIPE_COMMENTS_pn-oprofileui = ""
-RECIPE_LAST_UPDATE_pn-oprofileui = "Jul 20, 2010"
+RECIPE_LAST_UPDATE_pn-oprofileui = "Mar 9, 2011"
 RECIPE_MAINTAINER_pn-oprofileui = "Dexuan Cui <[email protected]>"
 
 RECIPE_STATUS_pn-oprofile = "green"
Signature · 1 line
1.7.1.1
author
#4 lore raw

PATCH 3/8 telepathy-python: Fix parallel make issue.

In reply to Saul Wold

From: Dongxiao Xu <[email protected]>

There is a missing dependency (creation of "src/_generated" directory) of some tasks. Add it to fix the parallel make issue.

[YOCTO #783]

---
 .../telepathy-python-0.15.19/parallel_make.patch   |   40 ++++++++++++++++++++
 .../telepathy/telepathy-python_0.15.19.bb          |    5 +-
 2 files changed, 43 insertions(+), 2 deletions(-)
 create mode 100644 meta/recipes-connectivity/telepathy/telepathy-python-0.15.19/parallel_make.patch
meta/recipes-connectivity/telepathy/telepathy-python-0.15.19/parallel_make.patch new file +40 -0
new file mode 100644
index 0000000..145e17b
@@ -0,0 +1,40 @@
+Add dependency of __init__.py
+
+Tasks must be done after exec of __init__, which creates the
+src/_generated directory that tasks are based on.
+
+Signed-off-by: Dongxiao Xu <[email protected]>
+
+diff -ruN telepathy-python-0.15.19-orig/src/Makefile.am telepathy-python-0.15.19/src/Makefile.am
+--- telepathy-python-0.15.19-orig/src/Makefile.am	2011-03-10 08:51:49.000000000 +0800
++++ telepathy-python-0.15.19/src/Makefile.am	2011-03-10 08:54:45.000000000 +0800
+@@ -39,17 +39,17 @@
+ XSLTPROC_OPTS = --nonet --novalid --xinclude
+ tools_dir = $(top_srcdir)/tools
+ 
+-_generated/interfaces.py: $(tools_dir)/python-interfaces-generator.xsl $(wildcard $(spec_dir)/*.xml)
++_generated/interfaces.py: _generated/__init__.py $(tools_dir)/python-interfaces-generator.xsl $(wildcard $(spec_dir)/*.xml)
+ 	$(AM_V_GEN)$(XSLTPROC) $(XSLTPROC_OPTS) -o $@ \
+ 	    $(tools_dir)/python-interfaces-generator.xsl \
+ 	    $(spec_dir)/all.xml
+ 
+-_generated/constants.py: $(tools_dir)/python-constants-generator.xsl $(wildcard $(spec_dir)/*.xml)
++_generated/constants.py: _generated/__init__.py $(tools_dir)/python-constants-generator.xsl $(wildcard $(spec_dir)/*.xml)
+ 	$(AM_V_GEN)$(XSLTPROC) $(XSLTPROC_OPTS) -o $@ \
+ 	    $(tools_dir)/python-constants-generator.xsl \
+ 	    $(spec_dir)/all.xml
+ 
+-_generated/errors.py: $(tools_dir)/python-errors-generator.xsl $(wildcard $(spec_dir)/*.xml)
++_generated/errors.py: _generated/__init__.py $(tools_dir)/python-errors-generator.xsl $(wildcard $(spec_dir)/*.xml)
+ 	$(AM_V_GEN)$(XSLTPROC) $(XSLTPROC_OPTS) -o $@ \
+ 	    $(tools_dir)/python-errors-generator.xsl \
+ 	    $(spec_dir)/all.xml
+@@ -58,7 +58,7 @@
+ 	$(AM_V_GEN)$(mkdir_p) $(dir $@)
+ 	@echo "# Placeholder for package" > $@
+ 
+-_generated/%.py: $(tools_dir)/spec-to-python.xsl $(spec_dir)/%.xml
++_generated/%.py: _generated/__init__.py $(tools_dir)/spec-to-python.xsl $(spec_dir)/%.xml
+ 	$(AM_V_GEN)$(XSLTPROC) $(XSLTPROC_OPTS) -o $@ \
+ 	    $(tools_dir)/spec-to-python.xsl \
+ 	    $(spec_dir)/$*.xml
meta/recipes-connectivity/telepathy/telepathy-python_0.15.19.bb +3 -2
index aefde8c..7c83393 100644
@@ -6,9 +6,10 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=2d5025d4aa3495befef8f17206a5b0a1 \
 
 RDEPENDS_${PN} += "python-dbus"
 
-SRC_URI = "http://telepathy.freedesktop.org/releases/${PN}/${P}.tar.gz "
+SRC_URI = "http://telepathy.freedesktop.org/releases/${PN}/${P}.tar.gz \
+           file://parallel_make.patch"
 
-PR = "r0"
+PR = "r1"
 
 inherit autotools
 
Signature · 1 line
1.7.1.1
author
#5 lore raw

PATCH 4/8 gcc-runtime: Ensure that gcc-runtime builds a debug package

In reply to Saul Wold

From: Mark Hatle <[email protected]>

The gcc-runtime package will now create the proper dbg package. The RRECOMMENDS change is required to deal with the default. This is documented in bug 824.

---
 meta/recipes-devtools/gcc/gcc-package-runtime.inc |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
meta/recipes-devtools/gcc/gcc-package-runtime.inc +3 -0
index e8c9011..04c70c0 100644
@@ -1,4 +1,5 @@
 PACKAGES = "\
+  ${PN}-dbg \
   libstdc++ \
   libstdc++-precompile-dev \
   libstdc++-dev \
@@ -11,6 +12,8 @@ PACKAGES = "\
   libmudflap \
   libmudflap-dev \
 "
+# The base package doesn't exist, so we clear the recommends.
+RRECOMMENDS_${PN}-dbg = ""
 
 FILES_libg2c = "${target_libdir}/libg2c.so.*"
 FILES_libg2c-dev = "\
Signature · 1 line
1.7.1.1
author
#6 lore raw

PATCH 5/8 tinylogin: Fix rotate passwd check logic

In reply to Saul Wold

From: Dongxiao Xu <[email protected]>

Fix rotate passwd check logic which will write data into un-allocated memory.

This fixes [YOCTO #735]

---
 .../tinylogin-1.4/passwd_rotate_check.patch        |   39 ++++++++++++++++++++
 meta/recipes-core/tinylogin/tinylogin_1.4.bb       |    5 ++-
 2 files changed, 42 insertions(+), 2 deletions(-)
 create mode 100644 meta/recipes-core/tinylogin/tinylogin-1.4/passwd_rotate_check.patch
meta/recipes-core/tinylogin/tinylogin-1.4/passwd_rotate_check.patch new file +39 -0
new file mode 100644
index 0000000..c602493
@@ -0,0 +1,39 @@
+Fix rotate check logic
+
+Rotate passwd checking code has logic error, which writes data into
+un-allocated memory. This patch fixes the issue.
+
+Signed-off-by: Dongxiao Xu <[email protected]>
+
+diff --git a/libbb/obscure.c b/libbb/obscure.c
+index 750b611..4a07b5f 100644
+--- a/libbb/obscure.c
++++ b/libbb/obscure.c
+@@ -135,7 +135,7 @@ password_check(const char *old, const char *newval, const struct passwd *pwdp)
+ {
+ 	const char *msg;
+ 	char *newmono, *wrapped;
+-	int lenwrap;
++	int lenold, lenwrap;
+ 
+ 	if (strcmp(newval, old) == 0)
+ 		return "no change";
+@@ -144,7 +144,8 @@ password_check(const char *old, const char *newval, const struct passwd *pwdp)
+ 
+ 	msg = NULL;
+ 	newmono = str_lower(xstrdup(newval));
+-	lenwrap = strlen(old) * 2 + 1;
++	lenold = strlen(old);
++	lenwrap = lenold * 2 + 1;
+ 	wrapped = (char *) xmalloc(lenwrap);
+ 	str_lower(strcpy(wrapped, old));
+ 
+@@ -158,7 +159,7 @@ password_check(const char *old, const char *newval, const struct passwd *pwdp)
+ 		msg = "too similiar";
+ 
+ 	else {
+-		safe_strncpy(wrapped + lenwrap, wrapped, lenwrap + 1);
++		safe_strncpy(wrapped + lenold, wrapped, lenold + 1);
+ 		if (strstr(wrapped, newmono))
+ 			msg = "rotated";
+ 	}
meta/recipes-core/tinylogin/tinylogin_1.4.bb +3 -2
index df626cf..0b51b25 100644
@@ -7,14 +7,15 @@ and groups on an embedded system."
 HOMEPAGE = "http://tinylogin.busybox.net/"
 LICENSE = "GPLv2"
 LIC_FILES_CHKSUM="file://LICENSE;md5=f1060fa3a366f098b5b1d8c2077ba269"
-PR = "r5"
+PR = "r6"
 
 SRC_URI = "http://tinylogin.busybox.net/downloads/tinylogin-${PV}.tar.bz2 \
 	file://cvs-20040608.patch;patch=1;pnum=1 \
 	file://add-system.patch;patch=1;pnum=1 \
 	file://adduser-empty_pwd.patch;patch=1 \
 	file://remove-index.patch;patch=1 \
-	file://use_O2_option.patch"
+	file://use_O2_option.patch \
+	file://passwd_rotate_check.patch"
 
 SRC_URI[md5sum] = "44da0ff2b727455669890b24305e351d"
 SRC_URI[sha256sum] = "5e542e4b7825305a3678bf73136c392feb0d44b8bbf926e8eda5453eea7ddd6b"
Signature · 1 line
1.7.1.1
author
#7 lore raw

PATCH 6/8 gcc/collect2: Added --sysroot support into collect2 in gcc.

In reply to Saul Wold

From: Lianhao Lu <[email protected]>

[YOCTO #815] Added --sysroot into COLLECT_GCC_OPTIONS to allow the collect2 support user specifed sysroot.

---
 meta/recipes-devtools/gcc/gcc-4.5.1.inc            |    1 +
 .../gcc/gcc-4.5.1/COLLECT_GCC_OPTIONS.patch        |   22 ++++++++++++++++++++
 .../gcc/gcc-cross-canadian_4.5.1.bb                |    2 +-
 .../gcc/gcc-cross-initial_4.5.1.bb                 |    2 +-
 .../gcc/gcc-cross-intermediate_4.5.1.bb            |    2 +-
 meta/recipes-devtools/gcc/gcc-cross_4.5.1.bb       |    2 +-
 .../gcc/gcc-crosssdk-initial_4.5.1.bb              |    2 +-
 .../gcc/gcc-crosssdk-intermediate_4.5.1.bb         |    2 +-
 meta/recipes-devtools/gcc/gcc-crosssdk_4.5.1.bb    |    2 +-
 meta/recipes-devtools/gcc/gcc_4.5.1.bb             |    2 +-
 10 files changed, 31 insertions(+), 8 deletions(-)
 create mode 100644 meta/recipes-devtools/gcc/gcc-4.5.1/COLLECT_GCC_OPTIONS.patch
meta/recipes-devtools/gcc/gcc-4.5.1.inc +1 -0
index 6c600c1..3c4902e 100644
@@ -56,6 +56,7 @@ SRC_URI = "${GNU_MIRROR}/gcc/gcc-${PV}/gcc-${PV}.tar.bz2 \
 	   file://disable_relax_pic_calls_flag.patch \
 	   file://gcc-poison-parameters.patch \
 	   file://GPLUSPLUS_INCLUDE_DIR_with_sysroot.patch \
+	   file://COLLECT_GCC_OPTIONS.patch \
 	  "
 	
 SRC_URI_append_sh3  = " file://sh3-installfix-fixheaders.patch;patch=1 "
meta/recipes-devtools/gcc/gcc-4.5.1/COLLECT_GCC_OPTIONS.patch new file +22 -0
new file mode 100644
index 0000000..3e3dec7
@@ -0,0 +1,22 @@
+#This patck added --sysroot into COLLECT_GCC_OPTIONS which is used to
+#invoke collect2.
+
+diff -ruN gcc-4.5.1.orig/gcc/gcc.c gcc-4.5.1/gcc/gcc.c
+--- gcc-4.5.1.orig/gcc/gcc.c	2011-03-09 16:43:39.127752586 +0800
++++ gcc-4.5.1/gcc/gcc.c	2011-03-09 16:47:15.894929459 +0800
+@@ -4667,6 +4667,15 @@
+ 		sizeof ("COLLECT_GCC_OPTIONS=") - 1);
+ 
+   first_time = TRUE;
++#ifdef HAVE_LD_SYSROOT
++  if (target_system_root_changed && target_system_root)
++    {
++      obstack_grow (&collect_obstack, "'--sysroot=", sizeof("'--sysroot=")-1);
++      obstack_grow (&collect_obstack, target_system_root,strlen(target_system_root));
++      obstack_grow (&collect_obstack, "'", 1);
++      first_time = FALSE;
++    }
++#endif
+   for (i = 0; (int) i < n_switches; i++)
+     {
+       const char *const *args;
meta/recipes-devtools/gcc/gcc-cross-canadian_4.5.1.bb +1 -1
index 3eea4bc..92708d4 100644
@@ -5,7 +5,7 @@ require gcc-cross-canadian.inc
 require gcc-configure-sdk.inc
 require gcc-package-sdk.inc
 
-PR = "r3"
+PR = "r4"
 
 DEPENDS += "gmp-nativesdk mpfr-nativesdk libmpc-nativesdk elfutils-nativesdk"
 RDEPENDS_${PN} += "mpfr-nativesdk libmpc-nativesdk elfutils-nativesdk"
meta/recipes-devtools/gcc/gcc-cross-initial_4.5.1.bb +1 -1
index 38e0964..081b7d6 100644
@@ -1,5 +1,5 @@
 require gcc-cross_${PV}.bb
 require gcc-cross-initial.inc
 
-PR = "r3"
+PR = "r4"
 
meta/recipes-devtools/gcc/gcc-cross-intermediate_4.5.1.bb +1 -1
index 9a30cb5..a8473b0 100644
@@ -1,4 +1,4 @@
 require gcc-cross_${PV}.bb
 require gcc-cross-intermediate.inc
-PR = "r4"
+PR = "r5"
 
meta/recipes-devtools/gcc/gcc-cross_4.5.1.bb +1 -1
index 78bb05a..af6daf4 100644
@@ -1,4 +1,4 @@
-PR = "r3"
+PR = "r4"
 
 require gcc-${PV}.inc
 require gcc-cross4.inc
meta/recipes-devtools/gcc/gcc-crosssdk-initial_4.5.1.bb +1 -1
index fec53b9..9708248 100644
@@ -1,4 +1,4 @@
 require gcc-cross-initial_${PV}.bb
 require gcc-crosssdk-initial.inc
 
-PR = "r3"
+PR = "r4"
meta/recipes-devtools/gcc/gcc-crosssdk-intermediate_4.5.1.bb +1 -1
index 161d870..d235969 100644
@@ -1,4 +1,4 @@
 require gcc-cross-intermediate_${PV}.bb
 require gcc-crosssdk-intermediate.inc
 
-PR = "r3"
+PR = "r4"
meta/recipes-devtools/gcc/gcc-crosssdk_4.5.1.bb +1 -1
index 7069088..bae2389 100644
@@ -1,4 +1,4 @@
 require gcc-cross_${PV}.bb
 require gcc-crosssdk.inc
 
-PR = "r3"
+PR = "r4"
meta/recipes-devtools/gcc/gcc_4.5.1.bb +1 -1
index 25e455c..a193b38 100644
@@ -1,4 +1,4 @@
-PR = "r3"
+PR = "r4"
 require gcc-${PV}.inc
 require gcc-configure-target.inc
 require gcc-package-target.inc
Signature · 1 line
1.7.1.1
author
#8 lore raw

PATCH 7/8 gst-plugins-bad: add missing dependency librsvg

In reply to Saul Wold

From: Dongxiao Xu <[email protected]>

Defaultly gst-plugins-bad will configured with option --enable-rsvg. Besides, it will check if librsvg really exists by certain configure code.

Therefore there will be a certain race condition that, during librsvg's populate_sysroot, gst-plugins-bad's do_compile will find some header files are still not exists though its configure says the library is supported.

Explicitly add librsvg as gst-plugins-bad's dependency could solve this issue.

This fixes [YOCTO #831]

---
 .../gstreamer/gst-plugins-bad_0.10.20.bb           |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
meta/recipes-multimedia/gstreamer/gst-plugins-bad_0.10.20.bb +2 -2
index 59e127c..239072d 100644
@@ -7,9 +7,9 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3 \
                     file://gst/qtmux/gstqtmuxmap.h;beginline=1;endline=19;md5=2da8f56a44697c1527c5a4bcf8d5d69b \
                     file://gst/tta/crc32.h;beginline=12;endline=29;md5=71a904d99ce7ae0c1cf129891b98145c"
 
-DEPENDS += "gst-plugins-base libmusicbrainz tremor"
+DEPENDS += "gst-plugins-base libmusicbrainz tremor librsvg"
 
-PR = "r0"
+PR = "r1"
 
 inherit gettext
 
Signature · 1 line
1.7.1.1
author
#9 lore raw

PATCH 8/8 Disable wget server side cache

In reply to Saul Wold

From: Liping Ke <[email protected]>

We found some proxy server has wrong cache for long http file name. It will cause fetching wrong ipk files from adt repo. To avoid this, we use wget options --no-cache to disable all server side cache. It will make the fetch speed slower, yet correct always.

---
 .../installer/adt-installer_1.0.bb                 |    3 ++-
 .../installer/files/wget_cache.patch               |   10 ++++++++++
 2 files changed, 12 insertions(+), 1 deletions(-)
 create mode 100644 meta/recipes-devtools/installer/files/wget_cache.patch
meta/recipes-devtools/installer/adt-installer_1.0.bb +2 -1
index 50290f9..ff7afe6 100644
@@ -36,11 +36,13 @@ PR = "r0"
 ADT_DEPLOY = "${TMPDIR}/deploy/sdk/"
 ADT_DIR = "${WORKDIR}/adt-installer/"
 YOCTOADT_VERSION = "${SDK_VERSION}"
+S = "${WORKDIR}/trunk"
 
 inherit deploy
 
 PV = "0.1.8+svnr${SRCPV}"
 SRC_URI = "svn://opkg.googlecode.com/svn;module=trunk;proto=http \
+           file://wget_cache.patch \
            file://adt_installer \
            file://scripts/adt_installer_internal \
            file://scripts/util \
@@ -70,7 +72,6 @@ fakeroot do_deploy () {
 	cp ${WORKDIR}/adt_installer.tar.bz2 ${ADT_DEPLOY}
 }
 
-do_patch[noexec] = "1"
 do_install[noexec] = "1"
 do_configure[noexec] = "1"
 do_compile[noexec] = "1"
meta/recipes-devtools/installer/files/wget_cache.patch new file +10 -0
new file mode 100644
index 0000000..6fd38e5
@@ -0,0 +1,10 @@
+--- trunk/libopkg/opkg_download.c	2011-03-10 16:41:29.000000000 +0800
++++ trunk/libopkg/opkg_download.c	2011-03-10 16:42:33.000000000 +0800
+@@ -162,6 +162,7 @@
+ 
+       argv[i++] = "wget";
+       argv[i++] = "-q";
++      argv[i++] = "--no-cache";
+       if (conf->http_proxy || conf->ftp_proxy) {
+ 	argv[i++] = "-Y";
+ 	argv[i++] = "on";
Signature · 1 line
1.7.1.1