Skip to contentSkip to conversation

Upgrade binutils,gdb,gcc-4.8

PATCH In review Khem Raj 2 participants 29 messages Apr 6, 2015 – Apr 10, 2015

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

cover Upgrade binutils,gdb,gcc-4.8

Mainly it does following

Upgrade gcc-4.8, binutils, gdb to latest releases Upgrade recipes e.g. ncurses to help gcc5 migration Fix recipes to build with gcc5 and on musl libc Add missing license for BSD claus 0
change mounting /var/volatile based on ro-rfs

Khem Raj (23):
ncurses: Upgrade 4.9 stable to latest patchlevel 20150329
mtd-utils: update to latest and fix static inlining
binutils: Fix ICE in gold
binuitls: Switch to using binutils stable/2.25 branch
gdb: Upgrade 7.8.1 -> 7.9
binutils: Fix linking issue for R_ARM_REL32 relocs var/volatile: Mount it if doing ro-rfs
gcc-4.8: Upgrade 4.8.2 -> 4.8.4
quota: Upgrade quota_4.01.bb -> quota_4.02.bb
util-linux: Upgrade to 2.26
libusb-compat: Include sys/types.h in usb.h
libdaemon: Explicitly include unisttd.h instead of sys/unistd.h
common-licenses: Add BSD-0-Clause
libffi: Use proper compiler define for linux platform
quota: Fix build with musl
bluez4: Fix encrypt symbol namespace collision
mesa: Fix building with musl
at-spi2-core: Add nls.m4 from gettext
ofono: Disable backtrace for non-glibc libraries pixman,libpciaccess: Fix build on musl
wpa-supplicant: Replace non-standard base defines with c99 compliant
ones
libxml2: Contain glibc-extentions under __GLIBC__
rpcbind: Fix build with musl

Robert Yang (1):
binutils: upgrade to 2.25

 meta/classes/image.bbclass                         |     1 +
 meta/conf/distro/include/tcmode-default.inc        |     4 +-
 meta/files/common-licenses/BSD-0-Clause            |    12 +
 .../bluez/bluez4-4.101/fix_encrypt_collision.patch |   110 +
 meta/recipes-connectivity/bluez/bluez4_4.101.bb    |     1 +
 ...cktrace-Disable-for-non-glibc-C-libraries.patch |    40 +
 meta/recipes-connectivity/ofono/ofono_1.16.bb      |     1 +
 .../wpa-supplicant/wpa-supplicant.inc              |     1 +
 .../0001-linux_wext-Fix-types-for-musl.patch       |    38 +
 meta/recipes-core/base-files/base-files/fstab      |     1 -
 .../initscripts-1.0/read-only-rootfs-hook.sh       |     2 +-
 ...ine-pthread-definitions-for-glibc-complia.patch |    32 +
 meta/recipes-core/libxml/libxml2_2.9.2.bb          |     4 +-
 meta/recipes-core/ncurses/ncurses.inc              |    14 +-
 meta/recipes-core/ncurses/ncurses_5.9.bb           |     8 +-
 .../systemd/systemd/journald-volatile.conf         |     6 +
 .../util-linux/util-linux/CVE-2014-9114.patch      |   174 -
 .../{util-linux_2.25.2.bb => util-linux_2.26.1.bb} |    15 +-
 meta/recipes-devtools/binutils/binutils-2.24.inc   |    46 -
 meta/recipes-devtools/binutils/binutils-2.25.inc   |    40 +
 ...ian_2.24.bb => binutils-cross-canadian_2.25.bb} |     0
 ...nutils-cross_2.24.bb => binutils-cross_2.25.bb} |     0
 ...-crosssdk_2.24.bb => binutils-crosssdk_2.25.bb} |     2 +-
 ...ild-breakage-from-bfd_set_section_vma-cha.patch |    31 -
 ....patch => 0001-Generate-relocatable-SDKs.patch} |    45 +-
 ...1-gold-arm-Skip-pic-check-for-R_ARM_REL32.patch |    25 +
 ...re-widen-the-regexp-for-SH-architectures.patch} |    42 +-
 .../0003-Point-scripts-location-to-libdir.patch    |    42 +
 ...te-an-RPATH-entry-if-LD_RUN_PATH-is-not-e.patch |    41 +
 ...0005-Explicitly-link-with-libm-on-uclibc.patch} |    38 +-
 ...2.4-update.patch => 0006-Use-libtool-2.4.patch} | 33152 ++++++++++---------
 ...-Add-the-armv5e-architecture-to-binutils.patch} |    34 +-
 ...e-distro-compiler-point-to-the-wrong-ins.patch} |    33 +-
 ...tus-Inappropriate-distribution-codesourc.patch} |   219 +-
 ...rpath-in-libtool-when-sysroot-is-enabled.patch} |    25 +-
 ...Change-default-emulation-for-mips64-linux.patch |    59 +
 ...tch => 0012-Add-XLP-instructions-support.patch} |   328 +-
 ...rnal-error-in-do_print_to_mapfile-seen-wi.patch |    35 +
 ...binutils-uclibc-300-001_ld_makefile_patch.patch |    55 -
 ...binutils-uclibc-300-006_better_file_error.patch |    45 -
 ...ils-uclibc-300-012_check_ldrunpath_length.patch |    49 -
 .../binutils/binutils-uninitialised-warning.patch  |    50 -
 .../binutils/binutils/binutils_CVE-2014-8484.patch |    67 -
 .../binutils/binutils/binutils_CVE-2014-8485.patch |   102 -
 .../binutils/binutils/binutils_CVE-2014-8501.patch |    60 -
 .../binutils/binutils/binutils_CVE-2014-8502.patch |    89 -
 .../binutils/binutils_CVE-2014-8502_1.patch        |   523 -
 .../binutils/binutils/binutils_CVE-2014-8503.patch |    47 -
 .../binutils/binutils/binutils_CVE-2014-8504.patch |    75 -
 .../binutils/binutils/binutils_CVE-2014-8737.patch |   177 -
 .../binutils/binutils/fix-pr15815.patch            |    36 -
 .../binutils/binutils/fix-pr16428.patch            |   123 -
 .../binutils/binutils/fix-pr16476.patch            |   220 -
 .../binutils/binutils/fix-pr2404.patch             |    76 -
 .../binutils/mips64-default-ld-emulation.patch     |    54 -
 .../replace_macros_with_static_inline.patch        |   188 -
 .../{binutils_2.24.bb => binutils_2.25.bb}         |     0
 meta/recipes-devtools/gcc/gcc-4.8.inc              |    13 +-
 .../0016-gcc-poison-system-directories.patch       |    95 +-
 .../gcc/gcc-4.8/0019-64-bit-multilib-hack.patch    |    41 +-
 ...C_DYNAMIC_LINKER-and-UCLIBC_DYNAMIC_LINKE.patch |   101 +-
 .../gcc/gcc-4.8/0038-gcc-4.8-build-args.patch      |    63 +-
 .../gcc/gcc-4.8/0039-gcc-4.8-PR57717.patch         |    23 -
 .../0045-gcc-4.8-PR57717-PowerPC-E500v2.patch      |    21 -
 .../0048-PR58854_fix_arm_apcs_epilogue.patch       |    23 -
 .../gcc/gcc-4.8/0050-PR-target-58595.patch         |   132 -
 .../gcc-4.8/0052-PR-rtl-optimization-61801.patch   |    36 -
 .../gdb/{gdb-7.8.1.inc => gdb-7.9.inc}             |     4 +-
 ...canadian_7.8.1.bb => gdb-cross-canadian_7.9.bb} |     0
 meta/recipes-devtools/gdb/gdb-cross_7.8.1.bb       |     4 -
 meta/recipes-devtools/gdb/gdb-cross_7.9.bb         |     4 +
 meta/recipes-devtools/gdb/gdb.inc                  |     5 +-
 ...0001-make-man-install-relative-to-DESTDIR.patch |    28 +
 ...last.diff => 0002-Change-order-of-CFLAGS.patch} |    33 +-
 ...-support-for-Renesas-SH-sh4-architecture.patch} |   854 +-
 .../gdb/0004-Change-comment-in-gdb-compile.patch   |    48 +
 .../recipes-devtools/gdb/gdb/sim-install-6.6.patch |    14 -
 meta/recipes-devtools/gdb/gdb/sim-install.patch    |    36 -
 meta/recipes-devtools/gdb/gdb/uclibc.patch         |   196 -
 .../gdb/{gdb_7.8.1.bb => gdb_7.9.bb}               |     0
 ...emove-duplicate-hashtable_iterator_value-.patch |    56 +
 meta/recipes-devtools/mtd/mtd-utils_git.bb         |     1 +
 meta/recipes-extended/quota/quota/fcntl.patch      |   113 +
 .../quota/quota/remove_non_posix_types.patch       |   185 +
 .../quota/quota/replace_getrpcbynumber_r.patch     |    20 +
 .../quota/{quota_4.01.bb => quota_4.02.bb}         |    20 +-
 ...001-Avoid-use-of-glibc-sys-cdefs.h-header.patch |   224 +
 .../rpcbind/0002-uclibc-rpcsvc-defines.patch       |     6 +-
 .../rpcbind/rpcbind/musl-sunrpc.patch              |    29 +
 .../rpcbind/rpcbind/remove-sys-queue.patch         |    22 +
 meta/recipes-extended/rpcbind/rpcbind_0.2.2.bb     |     6 +
 ...ps-Use-compiler-internal-define-for-linux.patch |    32 +
 meta/recipes-gnome/libffi/libffi_3.2.1.bb          |     4 +-
 ...D_MUTEX_RECURSIVE_NP-is-specific-to-glibc.patch |    29 +
 ...002-mesa-simplify-detection-of-fpclassify.patch |    53 +
 meta/recipes-graphics/mesa/mesa_10.4.4.bb          |     5 +-
 .../xorg-lib/libpciaccess/limits.patch             |    17 +
 .../xorg-lib/libpciaccess_0.13.3.bb                |     2 +
 .../xorg-lib/pixman/asm_include.patch              |    29 +
 meta/recipes-graphics/xorg-lib/pixman_0.32.6.bb    |     1 +
 .../0001-nls.m4-Take-it-from-gettext-0.15.patch    |    54 +
 meta/recipes-support/atk/at-spi2-core_2.14.1.bb    |     4 +-
 .../libdaemon/libdaemon/fix-includes.patch         |    20 +
 meta/recipes-support/libdaemon/libdaemon_0.14.bb   |     4 +-
 .../0001-usb.h-Include-sys-types.h.patch           |    30 +
 meta/recipes-support/libusb/libusb-compat_0.1.5.bb |     4 +-
 106 files changed, 18982 insertions(+), 20499 deletions(-)
 create mode 100644 meta/files/common-licenses/BSD-0-Clause
 create mode 100644 meta/recipes-connectivity/bluez/bluez4-4.101/fix_encrypt_collision.patch
 create mode 100644 meta/recipes-connectivity/ofono/ofono/0001-backtrace-Disable-for-non-glibc-C-libraries.patch
 create mode 100644 meta/recipes-connectivity/wpa-supplicant/wpa-supplicant/0001-linux_wext-Fix-types-for-musl.patch
 create mode 100644 meta/recipes-core/libxml/libxml2/0001-threads-Define-pthread-definitions-for-glibc-complia.patch
 create mode 100644 meta/recipes-core/systemd/systemd/journald-volatile.conf
 delete mode 100644 meta/recipes-core/util-linux/util-linux/CVE-2014-9114.patch
 rename meta/recipes-core/util-linux/{util-linux_2.25.2.bb => util-linux_2.26.1.bb} (66%)
 delete mode 100644 meta/recipes-devtools/binutils/binutils-2.24.inc
 create mode 100644 meta/recipes-devtools/binutils/binutils-2.25.inc
 rename meta/recipes-devtools/binutils/{binutils-cross-canadian_2.24.bb => binutils-cross-canadian_2.25.bb} (100%)
 rename meta/recipes-devtools/binutils/{binutils-cross_2.24.bb => binutils-cross_2.25.bb} (100%)
 rename meta/recipes-devtools/binutils/{binutils-crosssdk_2.24.bb => binutils-crosssdk_2.25.bb} (84%)
 delete mode 100644 meta/recipes-devtools/binutils/binutils/0001-Fix-MMIX-build-breakage-from-bfd_set_section_vma-cha.patch
 rename meta/recipes-devtools/binutils/binutils/{relocatable_sdk.patch => 0001-Generate-relocatable-SDKs.patch} (56%)
 create mode 100644 meta/recipes-devtools/binutils/binutils/0001-gold-arm-Skip-pic-check-for-R_ARM_REL32.patch
 rename meta/recipes-devtools/binutils/binutils/{binutils-uclibc-100-uclibc-conf.patch => 0002-configure-widen-the-regexp-for-SH-architectures.patch} (41%)
 create mode 100644 meta/recipes-devtools/binutils/binutils/0003-Point-scripts-location-to-libdir.patch
 create mode 100644 meta/recipes-devtools/binutils/binutils/0004-Only-generate-an-RPATH-entry-if-LD_RUN_PATH-is-not-e.patch
 rename meta/recipes-devtools/binutils/binutils/{binutils-uclibc-gas-needs-libm.patch => 0005-Explicitly-link-with-libm-on-uclibc.patch} (49%)
 rename meta/recipes-devtools/binutils/binutils/{libtool-2.4-update.patch => 0006-Use-libtool-2.4.patch} (94%)
 rename meta/recipes-devtools/binutils/binutils/{binutils-armv5e.patch => 0007-Add-the-armv5e-architecture-to-binutils.patch} (43%)
 rename meta/recipes-devtools/binutils/binutils/{libiberty_path_fix.patch => 0008-don-t-let-the-distro-compiler-point-to-the-wrong-ins.patch} (43%)
 rename meta/recipes-devtools/binutils/binutils/{binutils-poison.patch => 0009-Upstream-Status-Inappropriate-distribution-codesourc.patch} (69%)
 rename meta/recipes-devtools/binutils/binutils/{libtool-rpath-fix.patch => 0010-Fix-rpath-in-libtool-when-sysroot-is-enabled.patch} (74%)
 create mode 100644 meta/recipes-devtools/binutils/binutils/0011-Change-default-emulation-for-mips64-linux.patch
 rename meta/recipes-devtools/binutils/binutils/{binutils-xlp-support.patch => 0012-Add-XLP-instructions-support.patch} (59%)
 create mode 100644 meta/recipes-devtools/binutils/binutils/0013-Fix-an-internal-error-in-do_print_to_mapfile-seen-wi.patch
 delete mode 100644 meta/recipes-devtools/binutils/binutils/binutils-uclibc-300-001_ld_makefile_patch.patch
 delete mode 100644 meta/recipes-devtools/binutils/binutils/binutils-uclibc-300-006_better_file_error.patch
 delete mode 100644 meta/recipes-devtools/binutils/binutils/binutils-uclibc-300-012_check_ldrunpath_length.patch
 delete mode 100644 meta/recipes-devtools/binutils/binutils/binutils-uninitialised-warning.patch
 delete mode 100644 meta/recipes-devtools/binutils/binutils/binutils_CVE-2014-8484.patch
 delete mode 100644 meta/recipes-devtools/binutils/binutils/binutils_CVE-2014-8485.patch
 delete mode 100644 meta/recipes-devtools/binutils/binutils/binutils_CVE-2014-8501.patch
 delete mode 100644 meta/recipes-devtools/binutils/binutils/binutils_CVE-2014-8502.patch
 delete mode 100644 meta/recipes-devtools/binutils/binutils/binutils_CVE-2014-8502_1.patch
 delete mode 100644 meta/recipes-devtools/binutils/binutils/binutils_CVE-2014-8503.patch
 delete mode 100644 meta/recipes-devtools/binutils/binutils/binutils_CVE-2014-8504.patch
 delete mode 100644 meta/recipes-devtools/binutils/binutils/binutils_CVE-2014-8737.patch
 delete mode 100644 meta/recipes-devtools/binutils/binutils/fix-pr15815.patch
 delete mode 100644 meta/recipes-devtools/binutils/binutils/fix-pr16428.patch
 delete mode 100644 meta/recipes-devtools/binutils/binutils/fix-pr16476.patch
 delete mode 100644 meta/recipes-devtools/binutils/binutils/fix-pr2404.patch
 delete mode 100644 meta/recipes-devtools/binutils/binutils/mips64-default-ld-emulation.patch
 delete mode 100644 meta/recipes-devtools/binutils/binutils/replace_macros_with_static_inline.patch
 rename meta/recipes-devtools/binutils/{binutils_2.24.bb => binutils_2.25.bb} (100%)
 delete mode 100644 meta/recipes-devtools/gcc/gcc-4.8/0039-gcc-4.8-PR57717.patch
 delete mode 100644 meta/recipes-devtools/gcc/gcc-4.8/0045-gcc-4.8-PR57717-PowerPC-E500v2.patch
 delete mode 100644 meta/recipes-devtools/gcc/gcc-4.8/0048-PR58854_fix_arm_apcs_epilogue.patch
 delete mode 100644 meta/recipes-devtools/gcc/gcc-4.8/0050-PR-target-58595.patch
 delete mode 100644 meta/recipes-devtools/gcc/gcc-4.8/0052-PR-rtl-optimization-61801.patch
 rename meta/recipes-devtools/gdb/{gdb-7.8.1.inc => gdb-7.9.inc} (68%)
 rename meta/recipes-devtools/gdb/{gdb-cross-canadian_7.8.1.bb => gdb-cross-canadian_7.9.bb} (100%)
 delete mode 100644 meta/recipes-devtools/gdb/gdb-cross_7.8.1.bb
 create mode 100644 meta/recipes-devtools/gdb/gdb-cross_7.9.bb
 create mode 100644 meta/recipes-devtools/gdb/gdb/0001-make-man-install-relative-to-DESTDIR.patch
 rename meta/recipes-devtools/gdb/gdb/{gdbserver-cflags-last.diff => 0002-Change-order-of-CFLAGS.patch} (42%)
 rename meta/recipes-devtools/gdb/gdb/{renesas-sh-native-support.patch => 0003-Add-support-for-Renesas-SH-sh4-architecture.patch} (57%)
 create mode 100644 meta/recipes-devtools/gdb/gdb/0004-Change-comment-in-gdb-compile.patch
 delete mode 100644 meta/recipes-devtools/gdb/gdb/sim-install-6.6.patch
 delete mode 100644 meta/recipes-devtools/gdb/gdb/sim-install.patch
 delete mode 100644 meta/recipes-devtools/gdb/gdb/uclibc.patch
 rename meta/recipes-devtools/gdb/{gdb_7.8.1.bb => gdb_7.9.bb} (100%)
 create mode 100644 meta/recipes-devtools/mtd/mtd-utils/0001-hashtable-Remove-duplicate-hashtable_iterator_value-.patch
 create mode 100644 meta/recipes-extended/quota/quota/fcntl.patch
 create mode 100644 meta/recipes-extended/quota/quota/remove_non_posix_types.patch
 create mode 100644 meta/recipes-extended/quota/quota/replace_getrpcbynumber_r.patch
 rename meta/recipes-extended/quota/{quota_4.01.bb => quota_4.02.bb} (59%)
 create mode 100644 meta/recipes-extended/rpcbind/rpcbind/0001-Avoid-use-of-glibc-sys-cdefs.h-header.patch
 create mode 100644 meta/recipes-extended/rpcbind/rpcbind/musl-sunrpc.patch
 create mode 100644 meta/recipes-extended/rpcbind/rpcbind/remove-sys-queue.patch
 create mode 100644 meta/recipes-gnome/libffi/libffi/0001-mips-Use-compiler-internal-define-for-linux.patch
 create mode 100644 meta/recipes-graphics/mesa/mesa/0001-PTHREAD_MUTEX_RECURSIVE_NP-is-specific-to-glibc.patch
 create mode 100644 meta/recipes-graphics/mesa/mesa/0002-mesa-simplify-detection-of-fpclassify.patch
 create mode 100644 meta/recipes-graphics/xorg-lib/libpciaccess/limits.patch
 create mode 100644 meta/recipes-graphics/xorg-lib/pixman/asm_include.patch
 create mode 100644 meta/recipes-support/atk/at-spi2-core/0001-nls.m4-Take-it-from-gettext-0.15.patch
 create mode 100644 meta/recipes-support/libdaemon/libdaemon/fix-includes.patch
 create mode 100644 meta/recipes-support/libusb/libusb-compat/0001-usb.h-Include-sys-types.h.patch
Signature · 1 line
2.1.4
author
#1 lore raw

PATCH 1/24 ncurses: Upgrade 4.9 stable to latest patchlevel 20150329

gcc5 barfs on older release

Change-Id Ib1ad9b1cf7f16eb454da21fd61dc56fe1d9f6783
---
 meta/recipes-core/ncurses/ncurses.inc    | 14 ++++++++++++--
 meta/recipes-core/ncurses/ncurses_5.9.bb |  8 +++++---
 2 files changed, 17 insertions(+), 5 deletions(-)
meta/recipes-core/ncurses/ncurses.inc +12 -2
index 10f7dd1..225e369 100644
@@ -13,7 +13,7 @@ BINCONFIG = "${bindir}/ncurses-config"
 inherit autotools binconfig-disabled multilib_header
 
 # Upstream has useful patches at times at ftp://invisible-island.net/ncurses/
-SRC_URI = "${GNU_MIRROR}/ncurses/ncurses-${PV}.tar.gz"
+SRC_URI = "ftp://invisible-island.net/${BPN}/current/${BP}-${REVISION}.tgz"
 
 EXTRA_AUTORECONF = "-I m4"
 CONFIG_SITE =+ "${WORKDIR}/config.cache"
@@ -97,6 +97,8 @@ do_configure() {
         # broken because it requires stdin to be pollable (which is
         # not the case for /dev/null redirections)
         export cf_cv_working_poll=yes
+	#Remove ${includedir} from CPPFLAGS, need for cross compile
+	sed -i 's#-I${cf_includedir}##g' ${S}/configure || die "sed CPPFLAGS"
 
 	# The --enable-pc-files requires PKG_CONFIG_LIBDIR existed
 	mkdir -p ${PKG_CONFIG_LIBDIR}
@@ -105,6 +107,7 @@ do_configure() {
 		return 1
 	! ${ENABLE_WIDEC} || \
 		ncurses_configure "widec" "--enable-widec" "--without-progs"
+
 }
 
 do_compile() {
@@ -231,7 +234,14 @@ do_install() {
             # At some point we can rely on coreutils 8.16 which has ln -r.
             lnr ${D}${base_libdir}/libtinfo.so.5 ${D}${libdir}/libtinfo.so
         fi
-
+        if [ -d "${D}${includedir}/ncurses" ]; then
+            for f in `find ${D}${includedir}/ncurses -name "*.h"`
+            do
+	        f=`basename $f`
+	        test -e ${D}${includedir}/$f && continue
+                ln -sf ncurses/$f ${D}${includedir}/$f
+            done
+        fi
         oe_multilib_header curses.h
 }
 
meta/recipes-core/ncurses/ncurses_5.9.bb +5 -3
index 6d23c0c..54d27a9 100644
@@ -1,10 +1,12 @@
 require ncurses.inc
 
+REVISION = "20150329"
+
 PR = "${INC_PR}.1"
 
 SRC_URI += "file://tic-hang.patch \
             file://config.cache \
 "
-
-SRC_URI[md5sum] = "8cb9c412e5f2d96bc6f459aa8c6282a1"
-SRC_URI[sha256sum] = "9046298fb440324c9d4135ecea7879ffed8546dd1b58e59430ea07a4633f563b"
+S = "${WORKDIR}/${BP}-${REVISION}"
+SRC_URI[md5sum] = "cee991d09e69e60ebedef424804c52d4"
+SRC_URI[sha256sum] = "5b64f40e4dce73e3aa83d15bd9257c6eff8790ec41150f0938bd87c0eb75828f"
Signature · 1 line
2.1.4
author
#2 lore raw

PATCH 2/24 mtd-utils: update to latest and fix static inlining

use static storage class instead of extern for inline functions and remove duplicate definitions as a result

Change-Id I72e8c5f19dff656c18f719d1e9e2ca697c9a856f
---
 ...emove-duplicate-hashtable_iterator_value-.patch | 56 ++++++++++++++++++++++
 meta/recipes-devtools/mtd/mtd-utils_git.bb         |  1 +
 2 files changed, 57 insertions(+)
 create mode 100644 meta/recipes-devtools/mtd/mtd-utils/0001-hashtable-Remove-duplicate-hashtable_iterator_value-.patch
meta/recipes-devtools/mtd/mtd-utils/0001-hashtable-Remove-duplicate-hashtable_iterator_value-.patch new file +56 -0
new file mode 100644
index 0000000..695f020
@@ -0,0 +1,56 @@
+From b856ff35c20124ceae40bbc4d32584df47618c96 Mon Sep 17 00:00:00 2001
+From: Khem Raj <[email protected]>
+Date: Wed, 25 Feb 2015 09:28:26 +0000
+Subject: [PATCH] hashtable: Remove duplicate
+ hashtable_iterator_value/hashtable_iterator_key
+
+Signed-off-by: Khem Raj <[email protected]>
+---
+ mkfs.ubifs/hashtable/hashtable_itr.c | 12 ------------
+ 1 file changed, 12 deletions(-)
+
+Index: git/mkfs.ubifs/hashtable/hashtable_itr.h
+===================================================================
+--- git.orig/mkfs.ubifs/hashtable/hashtable_itr.h
++++ git/mkfs.ubifs/hashtable/hashtable_itr.h
+@@ -28,7 +28,7 @@ hashtable_iterator(struct hashtable *h);
+ /* hashtable_iterator_key
+  * - return the value of the (key,value) pair at the current position */
+ 
+-extern inline void *
++static inline void *
+ hashtable_iterator_key(struct hashtable_itr *i)
+ {
+     return i->e->k;
+@@ -37,7 +37,7 @@ hashtable_iterator_key(struct hashtable_
+ /*****************************************************************************/
+ /* value - return the value of the (key,value) pair at the current position */
+ 
+-extern inline void *
++static inline void *
+ hashtable_iterator_value(struct hashtable_itr *i)
+ {
+     return i->e->v;
+Index: git/mkfs.ubifs/hashtable/hashtable_itr.c
+===================================================================
+--- git.orig/mkfs.ubifs/hashtable/hashtable_itr.c
++++ git/mkfs.ubifs/hashtable/hashtable_itr.c
+@@ -35,18 +35,6 @@ hashtable_iterator(struct hashtable *h)
+ }
+ 
+ /*****************************************************************************/
+-/* key      - return the key of the (key,value) pair at the current position */
+-/* value    - return the value of the (key,value) pair at the current position */
+-
+-void *
+-hashtable_iterator_key(struct hashtable_itr *i)
+-{ return i->e->k; }
+-
+-void *
+-hashtable_iterator_value(struct hashtable_itr *i)
+-{ return i->e->v; }
+-
+-/*****************************************************************************/
+ /* advance - advance the iterator to the next element
+  *           returns zero if advanced to end of table */
+ 
meta/recipes-devtools/mtd/mtd-utils_git.bb +1 -0
index 12daffe..f991ea1 100644
@@ -13,6 +13,7 @@ SRCREV = "9f107132a6a073cce37434ca9cda6917dd8d866b"
 SRC_URI = "git://git.infradead.org/mtd-utils.git \
            file://add-exclusion-to-mkfs-jffs2-git-2.patch \
            file://fix-armv7-neon-alignment.patch \
+           file://0001-hashtable-Remove-duplicate-hashtable_iterator_value-.patch \
 "
 
 S = "${WORKDIR}/git/"
Signature · 1 line
2.1.4
#3 lore raw

Re: [PATCH 02/24] mtd-utils: update to latest and fix static inlining

Quoted 2 lines · Khem Raj

use static storage class instead of extern for inline functions and remove duplicate definitions as a result

This says what this does but not why. Upstream-Status is also missing.

Cheers,

Richard

Quoted 85 lines
Change-Id I72e8c5f19dff656c18f719d1e9e2ca697c9a856f
---
 ...emove-duplicate-hashtable_iterator_value-.patch | 56 ++++++++++++++++++++++
 meta/recipes-devtools/mtd/mtd-utils_git.bb         |  1 +
 2 files changed, 57 insertions(+)
 create mode 100644 meta/recipes-devtools/mtd/mtd-utils/0001-hashtable-Remove-duplicate-hashtable_iterator_value-.patch
meta/recipes-devtools/mtd/mtd-utils/0001-hashtable-Remove-duplicate-hashtable_iterator_value-.patch new file +56 -0
new file mode 100644
index 0000000..695f020
@@ -0,0 +1,56 @@
+From b856ff35c20124ceae40bbc4d32584df47618c96 Mon Sep 17 00:00:00 2001
+From: Khem Raj <[email protected]>
+Date: Wed, 25 Feb 2015 09:28:26 +0000
+Subject: [PATCH] hashtable: Remove duplicate
+ hashtable_iterator_value/hashtable_iterator_key
+
+Signed-off-by: Khem Raj <[email protected]>
+---
+ mkfs.ubifs/hashtable/hashtable_itr.c | 12 ------------
+ 1 file changed, 12 deletions(-)
+
+Index: git/mkfs.ubifs/hashtable/hashtable_itr.h
+===================================================================
+--- git.orig/mkfs.ubifs/hashtable/hashtable_itr.h
++++ git/mkfs.ubifs/hashtable/hashtable_itr.h
+@@ -28,7 +28,7 @@ hashtable_iterator(struct hashtable *h);
+ /* hashtable_iterator_key
+  * - return the value of the (key,value) pair at the current position */
+ 
+-extern inline void *
++static inline void *
+ hashtable_iterator_key(struct hashtable_itr *i)
+ {
+     return i->e->k;
+@@ -37,7 +37,7 @@ hashtable_iterator_key(struct hashtable_
+ /*****************************************************************************/
+ /* value - return the value of the (key,value) pair at the current position */
+ 
+-extern inline void *
++static inline void *
+ hashtable_iterator_value(struct hashtable_itr *i)
+ {
+     return i->e->v;
+Index: git/mkfs.ubifs/hashtable/hashtable_itr.c
+===================================================================
+--- git.orig/mkfs.ubifs/hashtable/hashtable_itr.c
++++ git/mkfs.ubifs/hashtable/hashtable_itr.c
+@@ -35,18 +35,6 @@ hashtable_iterator(struct hashtable *h)
+ }
+ 
+ /*****************************************************************************/
+-/* key      - return the key of the (key,value) pair at the current position */
+-/* value    - return the value of the (key,value) pair at the current position */
+-
+-void *
+-hashtable_iterator_key(struct hashtable_itr *i)
+-{ return i->e->k; }
+-
+-void *
+-hashtable_iterator_value(struct hashtable_itr *i)
+-{ return i->e->v; }
+-
+-/*****************************************************************************/
+ /* advance - advance the iterator to the next element
+  *           returns zero if advanced to end of table */
+ 
meta/recipes-devtools/mtd/mtd-utils_git.bb +1 -0
index 12daffe..f991ea1 100644
@@ -13,6 +13,7 @@ SRCREV = "9f107132a6a073cce37434ca9cda6917dd8d866b"
 SRC_URI = "git://git.infradead.org/mtd-utils.git \
            file://add-exclusion-to-mkfs-jffs2-git-2.patch \
            file://fix-armv7-neon-alignment.patch \
+           file://0001-hashtable-Remove-duplicate-hashtable_iterator_value-.patch \
 "
 
 S = "${WORKDIR}/git/"
Signature · 1 line
2.1.4
author
#4 lore raw

Re: [PATCH 02/24] mtd-utils: update to latest and fix static inlining

Quoted 8 lines · Richard Purdie
Quoted 3 lines

use static storage class instead of extern for inline functions and remove duplicate definitions as a result

This says what this does but not why. Upstream-Status is also missing.

Fair enough, I have added some documentation in patch header and updated the patch on contrib branch here

http://git.openembedded.org/openembedded-core-contrib/commit/?h=kraj/master&id=815e7fc68563013749b5be4da6c137e7d3677308

author
#5 lore raw

PATCH 3/24 binutils: upgrade to 2.25

In reply to Khem Raj

From: Robert Yang <[email protected]>

* Remove the following patches since they are already in the new code:
binutils/fix-pr15815.patch
binutils/fix-pr16428.patch
binutils/fix-pr16476.patch
binutils/fix-pr2404.patch binutils/replace_macros_with_static_inline.patch binutils/binutils_CVE-2014-8484.patch binutils/binutils_CVE-2014-8485.patch binutils/binutils_CVE-2014-8501.patch binutils/binutils_CVE-2014-8502.patch binutils/binutils_CVE-2014-8502_1.patch binutils/binutils_CVE-2014-8503.patch binutils/binutils_CVE-2014-8504.patch binutils/binutils_CVE-2014-8737.patch

* The file src-release is gone.

* Updated patches for the new code.

Conflicts:
meta/conf/distro/include/tcmode-default.inc

Change-Id Ifd88f07771238755081a993b843ace423742eb85
---
 meta/conf/distro/include/tcmode-default.inc        |   2 +-
 .../{binutils-2.24.inc => binutils-2.25.inc}       |  20 +-
 ...ian_2.24.bb => binutils-cross-canadian_2.25.bb} |   0
 ...nutils-cross_2.24.bb => binutils-cross_2.25.bb} |   0
 ...-crosssdk_2.24.bb => binutils-crosssdk_2.25.bb} |   0
 .../binutils/binutils/binutils-poison.patch        |  40 +-
 .../binutils/binutils/binutils-xlp-support.patch   | 296 ++++++------
 .../binutils/binutils/binutils_CVE-2014-8484.patch |  67 ---
 .../binutils/binutils/binutils_CVE-2014-8485.patch | 102 ----
 .../binutils/binutils/binutils_CVE-2014-8501.patch |  60 ---
 .../binutils/binutils/binutils_CVE-2014-8502.patch |  89 ----
 .../binutils/binutils_CVE-2014-8502_1.patch        | 523 ---------------------
 .../binutils/binutils/binutils_CVE-2014-8503.patch |  47 --
 .../binutils/binutils/binutils_CVE-2014-8504.patch |  75 ---
 .../binutils/binutils/binutils_CVE-2014-8737.patch | 177 -------
 .../binutils/binutils/fix-pr15815.patch            |  36 --
 .../binutils/binutils/fix-pr16428.patch            | 123 -----
 .../binutils/binutils/fix-pr16476.patch            | 220 ---------
 .../binutils/binutils/fix-pr2404.patch             |  76 ---
 .../binutils/binutils/libtool-2.4-update.patch     | 301 ++++++------
 .../binutils/mips64-default-ld-emulation.patch     |  38 +-
 .../replace_macros_with_static_inline.patch        | 188 --------
 .../{binutils_2.24.bb => binutils_2.25.bb}         |   0
 23 files changed, 340 insertions(+), 2140 deletions(-)
 rename meta/recipes-devtools/binutils/{binutils-2.24.inc => binutils-2.25.inc} (58%)
 rename meta/recipes-devtools/binutils/{binutils-cross-canadian_2.24.bb => binutils-cross-canadian_2.25.bb} (100%)
 rename meta/recipes-devtools/binutils/{binutils-cross_2.24.bb => binutils-cross_2.25.bb} (100%)
 rename meta/recipes-devtools/binutils/{binutils-crosssdk_2.24.bb => binutils-crosssdk_2.25.bb} (100%)
 delete mode 100644 meta/recipes-devtools/binutils/binutils/binutils_CVE-2014-8484.patch
 delete mode 100644 meta/recipes-devtools/binutils/binutils/binutils_CVE-2014-8485.patch
 delete mode 100644 meta/recipes-devtools/binutils/binutils/binutils_CVE-2014-8501.patch
 delete mode 100644 meta/recipes-devtools/binutils/binutils/binutils_CVE-2014-8502.patch
 delete mode 100644 meta/recipes-devtools/binutils/binutils/binutils_CVE-2014-8502_1.patch
 delete mode 100644 meta/recipes-devtools/binutils/binutils/binutils_CVE-2014-8503.patch
 delete mode 100644 meta/recipes-devtools/binutils/binutils/binutils_CVE-2014-8504.patch
 delete mode 100644 meta/recipes-devtools/binutils/binutils/binutils_CVE-2014-8737.patch
 delete mode 100644 meta/recipes-devtools/binutils/binutils/fix-pr15815.patch
 delete mode 100644 meta/recipes-devtools/binutils/binutils/fix-pr16428.patch
 delete mode 100644 meta/recipes-devtools/binutils/binutils/fix-pr16476.patch
 delete mode 100644 meta/recipes-devtools/binutils/binutils/fix-pr2404.patch
 delete mode 100644 meta/recipes-devtools/binutils/binutils/replace_macros_with_static_inline.patch
 rename meta/recipes-devtools/binutils/{binutils_2.24.bb => binutils_2.25.bb} (100%)
meta/conf/distro/include/tcmode-default.inc +1 -1
index a666510..f69fe9a 100644
@@ -24,7 +24,7 @@ PREFERRED_PROVIDER_virtual/gettext ??= "gettext"
 
 GCCVERSION ?= "4.9%"
 SDKGCCVERSION ?= "${GCCVERSION}"
-BINUVERSION ?= "2.24"
+BINUVERSION ?= "2.25"
 GDBVERSION ?= "7.8%"
 GLIBCVERSION ?= "2.21"
 UCLIBCVERSION ?= "0.9.33+git%"
meta/recipes-devtools/binutils/binutils-2.25.inc renamed from meta/recipes-devtools/binutils/binutils-2.24.inc +2 -18
similarity index 58%
rename from meta/recipes-devtools/binutils/binutils-2.24.inc
rename to meta/recipes-devtools/binutils/binutils-2.25.inc
index 63c9287..d69b519 100644
@@ -1,5 +1,4 @@
 LIC_FILES_CHKSUM="\
-    file://src-release;endline=17;md5=4830a9ef968f3b18dd5e9f2c00db2d35\
     file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552\
     file://COPYING.LIB;md5=9f604d8a4f8e74f4f5140845a21b6674\
     file://COPYING3;md5=d32239bcb673463ab874e80d47fae504\
@@ -25,22 +24,7 @@ SRC_URI = "\
      file://binutils-armv5e.patch \
      file://mips64-default-ld-emulation.patch \
      file://binutils-xlp-support.patch \
-     file://fix-pr15815.patch \
-     file://fix-pr2404.patch \
-     file://fix-pr16476.patch \
-     file://fix-pr16428.patch \
-     file://replace_macros_with_static_inline.patch \
-     file://0001-Fix-MMIX-build-breakage-from-bfd_set_section_vma-cha.patch \
-     file://binutils-uninitialised-warning.patch \
-     file://binutils_CVE-2014-8484.patch \
-     file://binutils_CVE-2014-8485.patch \
-     file://binutils_CVE-2014-8501.patch \
-     file://binutils_CVE-2014-8502_1.patch \
-     file://binutils_CVE-2014-8502.patch \
-     file://binutils_CVE-2014-8503.patch \
-     file://binutils_CVE-2014-8504.patch \
-     file://binutils_CVE-2014-8737.patch \
      "
+SRC_URI[md5sum] = "d9f3303f802a5b6b0bb73a335ab89d66"
+SRC_URI[sha256sum] = "22defc65cfa3ef2a3395faaea75d6331c6e62ea5dfacfed3e2ec17b08c882923"
 
-SRC_URI[md5sum] = "e0f71a7b2ddab0f8612336ac81d9636b"
-SRC_URI[sha256sum] = "e5e8c5be9664e7f7f96e0d09919110ab5ad597794f5b1809871177a0f0f14137"
meta/recipes-devtools/binutils/binutils-cross-canadian_2.25.bb renamed from meta/recipes-devtools/binutils/binutils-cross-canadian_2.24.bb +0 -0
similarity index 100%
rename from meta/recipes-devtools/binutils/binutils-cross-canadian_2.24.bb
rename to meta/recipes-devtools/binutils/binutils-cross-canadian_2.25.bb
meta/recipes-devtools/binutils/binutils-cross_2.25.bb renamed from meta/recipes-devtools/binutils/binutils-cross_2.24.bb +0 -0
similarity index 100%
rename from meta/recipes-devtools/binutils/binutils-cross_2.24.bb
rename to meta/recipes-devtools/binutils/binutils-cross_2.25.bb
meta/recipes-devtools/binutils/binutils-crosssdk_2.25.bb renamed from meta/recipes-devtools/binutils/binutils-crosssdk_2.24.bb +0 -0
similarity index 100%
rename from meta/recipes-devtools/binutils/binutils-crosssdk_2.24.bb
rename to meta/recipes-devtools/binutils/binutils-crosssdk_2.25.bb
meta/recipes-devtools/binutils/binutils/binutils-poison.patch +20 -20
index 996c023..eb54076 100644
@@ -106,10 +106,10 @@ Index: binutils-2.24/ld/configure
  
  # Check whether --enable-got was given.
  if test "${enable_got+set}" = set; then :
-Index: binutils-2.24/ld/configure.in
+Index: binutils-2.24/ld/configure.ac
 ===================================================================
---- binutils-2.24.orig/ld/configure.in	2013-12-15 11:46:17.000000000 -0800
-+++ binutils-2.24/ld/configure.in	2013-12-15 11:46:59.810435651 -0800
+--- binutils-2.24.orig/ld/configure.ac	2013-12-15 11:46:17.000000000 -0800
++++ binutils-2.24/ld/configure.ac	2013-12-15 11:46:59.810435651 -0800
 @@ -87,6 +87,16 @@
  AC_SUBST(TARGET_SYSTEM_ROOT)
  AC_SUBST(TARGET_SYSTEM_ROOT_DEFINE)
@@ -214,10 +214,10 @@ Index: binutils-2.24/ld/lexsup.c
 ===================================================================
 --- binutils-2.24.orig/ld/lexsup.c	2013-12-15 11:46:17.000000000 -0800
 +++ binutils-2.24/ld/lexsup.c	2013-12-15 11:49:28.950434490 -0800
-@@ -507,6 +507,14 @@
-     OPTION_IGNORE_UNRESOLVED_SYMBOL},
-     '\0', N_("SYMBOL"),
-     N_("Unresolved SYMBOL will not cause an error or warning"), TWO_DASHES },
+@@ -513,6 +513,14 @@ static const struct ld_option ld_options[] =
+   { {"pop-state", no_argument, NULL, OPTION_POP_STATE},
+     '\0', NULL, N_("Pop state of flags governing input file handling"),
+     TWO_DASHES },
 +  { {"no-poison-system-directories", no_argument, NULL,
 +     OPTION_NO_POISON_SYSTEM_DIRECTORIES},
 +    '\0', NULL, N_("Do not warn for -L options using system directories"),
@@ -229,18 +229,18 @@ Index: binutils-2.24/ld/lexsup.c
  };
  
  #define OPTION_COUNT ARRAY_SIZE (ld_options)
-@@ -1442,6 +1450,14 @@
-               einfo (_("%P%X: --hash-size needs a numeric argument\n"));
-           }
-           break;
+@@ -1474,6 +1482,14 @@ parse_args (unsigned argc, char **argv)
+ 	      free (oldp);
+ 	    }
+ 	  break;
 +
-+   case OPTION_NO_POISON_SYSTEM_DIRECTORIES:
-+     command_line.poison_system_directories = FALSE;
-+     break;
++	case OPTION_NO_POISON_SYSTEM_DIRECTORIES:
++	  command_line.poison_system_directories = FALSE;
++	  break;
 +
-+   case OPTION_ERROR_POISON_SYSTEM_DIRECTORIES:
-+     command_line.error_poison_system_directories = TRUE;
-+     break;
++	case OPTION_ERROR_POISON_SYSTEM_DIRECTORIES:
++	  command_line.error_poison_system_directories = TRUE;
++	  break;
  	}
      }
  
@@ -248,10 +248,10 @@ Index: binutils-2.24/ld/ldlex.h
 ===================================================================
 --- binutils-2.24.orig/ld/ldlex.h	2013-12-15 11:46:17.000000000 -0800
 +++ binutils-2.24/ld/ldlex.h	2013-12-15 11:47:43.230435299 -0800
-@@ -138,6 +138,8 @@
-   OPTION_DEFAULT_SCRIPT,
-   OPTION_PRINT_OUTPUT_FORMAT,
+@@ -140,6 +140,8 @@ enum option_values
    OPTION_IGNORE_UNRESOLVED_SYMBOL,
+   OPTION_PUSH_STATE,
+   OPTION_POP_STATE,
 +  OPTION_NO_POISON_SYSTEM_DIRECTORIES,
 +  OPTION_ERROR_POISON_SYSTEM_DIRECTORIES,
  };
meta/recipes-devtools/binutils/binutils/binutils-xlp-support.patch +148 -148

496 lines not on this page · raw message

meta/recipes-devtools/binutils/binutils/binutils_CVE-2014-8484.patch deleted +0 -67

67 lines not on this page · raw message

meta/recipes-devtools/binutils/binutils/binutils_CVE-2014-8485.patch deleted +0 -102

102 lines not on this page · raw message

meta/recipes-devtools/binutils/binutils/binutils_CVE-2014-8501.patch deleted +0 -60

60 lines not on this page · raw message

meta/recipes-devtools/binutils/binutils/binutils_CVE-2014-8502.patch deleted +0 -89

89 lines not on this page · raw message

meta/recipes-devtools/binutils/binutils/binutils_CVE-2014-8502_1.patch deleted +0 -523

523 lines not on this page · raw message

meta/recipes-devtools/binutils/binutils/binutils_CVE-2014-8503.patch deleted +0 -47

47 lines not on this page · raw message

meta/recipes-devtools/binutils/binutils/binutils_CVE-2014-8504.patch deleted +0 -75

75 lines not on this page · raw message

meta/recipes-devtools/binutils/binutils/binutils_CVE-2014-8737.patch deleted +0 -177

177 lines not on this page · raw message

meta/recipes-devtools/binutils/binutils/fix-pr15815.patch deleted +0 -36
deleted file mode 100644
index 9f53f41..0000000
@@ -1,36 +0,0 @@
-This patch fixes the problem where libiberty is not installed in spite of
-asking it via --enable-install-libiberty, the problem is that target_header_dir
-is reset explicitly which means libiberty.a will never get installed
-
-also check
-
-https://sourceware.org/bugzilla/show_bug.cgi?id=15815
-
-Upstream-Status: Pending
-
-Signed-off-by: Khem Raj <[email protected]>
-
-Index: binutils-2.24/libiberty/configure
-===================================================================
---- binutils-2.24.orig/libiberty/configure	2013-12-16 00:08:09.280103157 -0800
-+++ binutils-2.24/libiberty/configure	2013-12-16 00:08:29.753436339 -0800
-@@ -5507,7 +5507,6 @@
- 
- setobjs=
- CHECK=
--target_header_dir=
- if test -n "${with_target_subdir}"; then
- 
-   # We are being configured as a target library.  AC_REPLACE_FUNCS
-Index: binutils-2.24/libiberty/configure.ac
-===================================================================
---- binutils-2.24.orig/libiberty/configure.ac	2013-11-08 02:13:49.000000000 -0800
-+++ binutils-2.24/libiberty/configure.ac	2013-12-16 00:07:45.133436672 -0800
-@@ -405,7 +405,6 @@
- 
- setobjs=
- CHECK=
--target_header_dir=
- if test -n "${with_target_subdir}"; then
- 
-   # We are being configured as a target library.  AC_REPLACE_FUNCS
meta/recipes-devtools/binutils/binutils/fix-pr16428.patch deleted +0 -123

123 lines not on this page · raw message

meta/recipes-devtools/binutils/binutils/fix-pr16476.patch deleted +0 -220

220 lines not on this page · raw message

meta/recipes-devtools/binutils/binutils/fix-pr2404.patch deleted +0 -76

76 lines not on this page · raw message

meta/recipes-devtools/binutils/binutils/libtool-2.4-update.patch +153 -148

804 lines not on this page · raw message

meta/recipes-devtools/binutils/binutils/mips64-default-ld-emulation.patch +16 -22
index 51eaf0b..e668faa 100644

Lines of this file are not shown. View the raw message.

meta/recipes-devtools/binutils/binutils/replace_macros_with_static_inline.patch deleted +0 -188

188 lines not on this page · raw message

meta/recipes-devtools/binutils/binutils_2.25.bb renamed from meta/recipes-devtools/binutils/binutils_2.24.bb +0 -0
similarity index 100%
rename from meta/recipes-devtools/binutils/binutils_2.24.bb
rename to meta/recipes-devtools/binutils/binutils_2.25.bb

The rest of this diff is not shown. View the raw message.

Signature · 1 line
2.1.4

Part of the diff is not shown here. View the raw message.

#6 lore raw

Re: [PATCH 03/24] binutils: upgrade to 2.25

I ran an older patchset containing this against the autobuilder. We have two problems which I think are 2.25 related:

http://errors.yoctoproject.org/Errors/Search/?items=10&query=56f680b60ab5fd396f2a65431376683ca6707127

libunwind is failing on x86, likely due to:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65248

which is only planned to be fixed in gcc5. Not sure how we can fix this one other than perhaps forcing the use of gold in this case (which seems wrong).

We also have a uboot issue on mpc8315e-rdb which there are fixes around for, we just need someone to find them and patch it. Both failures are in the above error reporting link.

Cheers,

Richard

author
#7 lore raw

Re: [PATCH 03/24] binutils: upgrade to 2.25

Quoted 8 lines · Richard Purdie

I ran an older patchset containing this against the autobuilder. We have two problems which I think are 2.25 related:

http://errors.yoctoproject.org/Errors/Search/?items=10&query=56f680b60ab5fd396f2a65431376683ca6707127

Quoted 7 lines

libunwind is failing on x86, likely due to:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65248

which is only planned to be fixed in gcc5. Not sure how we can fix this one other than perhaps forcing the use of gold in this case (which seems wrong).

your fix to use gold in interim is ok. I am baking gcc5 recipes on my contrib branch already and its looking ok. once gcc5 is released I will propose it for master ( may be end of May)

Quoted 4 lines

We also have a uboot issue on mpc8315e-rdb which there are fixes around for, we just need someone to find them and patch it. Both failures are in the above error reporting link.

This will be fixed by applying
https://lists.yoctoproject.org/pipermail/meta-freescale/2015-February/012827.html

Quoted 5 lines

Cheers,

Richard

author
#8 lore raw

PATCH 4/24 binutils: Fix ICE in gold

In reply to Khem Raj

Found when linking busybox using gold linker

Change-Id I47b89998b9cb3d75ac97113a1b0fba109483b198
---
 meta/recipes-devtools/binutils/binutils-2.25.inc   |  1 +
 ...rnal-error-in-do_print_to_mapfile-seen-wi.patch | 36 ++++++++++++++++++++++
 2 files changed, 37 insertions(+)
 create mode 100644 meta/recipes-devtools/binutils/binutils/0001-Fix-an-internal-error-in-do_print_to_mapfile-seen-wi.patch
meta/recipes-devtools/binutils/binutils-2.25.inc +1 -0
index d69b519..d9075b6 100644
@@ -24,6 +24,7 @@ SRC_URI = "\
      file://binutils-armv5e.patch \
      file://mips64-default-ld-emulation.patch \
      file://binutils-xlp-support.patch \
+     file://0001-Fix-an-internal-error-in-do_print_to_mapfile-seen-wi.patch \
      "
 SRC_URI[md5sum] = "d9f3303f802a5b6b0bb73a335ab89d66"
 SRC_URI[sha256sum] = "22defc65cfa3ef2a3395faaea75d6331c6e62ea5dfacfed3e2ec17b08c882923"
meta/recipes-devtools/binutils/binutils/0001-Fix-an-internal-error-in-do_print_to_mapfile-seen-wi.patch new file +36 -0
new file mode 100644
index 0000000..a47faef
@@ -0,0 +1,36 @@
+From 54583eb23233b5369372ae41768655693d0584ef Mon Sep 17 00:00:00 2001
+From: Khem Raj <[email protected]>
+Date: Fri, 27 Feb 2015 09:05:49 +0000
+Subject: [PATCH] Fix an internal error in do_print_to_mapfile seen with gold
+ on arm
+
+This is due to missing implementation of do_print_to_mapfile for
+atrributea section (ARM.attributes), it started to show up after fix
+for PR gold/16980 was installed
+
+Signed-off-by: Khem Raj <[email protected]>
+
+Upstream-Status: Submitted
+---
+ gold/ChangeLog    | 5 +++++
+ gold/attributes.h | 4 ++++
+ 2 files changed, 9 insertions(+)
+
+diff --git a/gold/attributes.h b/gold/attributes.h
+index c0b171f..6e3ab8c 100644
+--- a/gold/attributes.h
++++ b/gold/attributes.h
+@@ -387,6 +387,10 @@ class Output_attributes_section_data : public Output_section_data
+   { }
+ 
+  protected:
++  // Write to a map file.
++  void
++  do_print_to_mapfile(Mapfile* mapfile) const
++  { mapfile->print_output_data(this, _("** attributes")); }
+   // Write the data to the output file.
+   void
+   do_write(Output_file*);
+-- 
+2.1.4
+
Signature · 1 line
2.1.4
author
#9 lore raw

PATCH 5/24 binuitls: Switch to using binutils stable/2.25 branch

In reply to Khem Raj

We have a lot of patches on top of 2.25 release that we need its easier/cleaner to use the git src instead of tarball and use the latest on the 2.25 branch

Additionally, drop binutils-uclibc-300-006_better_file_error.patch since it has been redone with
https://sourceware.org/ml/binutils/2006-10/msg00337.html upstream

git'ify the patches against upstream repos for better maintainance

Change-Id I572c9bb49f60853e7ade4e8f63ab77b7e41476c5
---
 meta/recipes-devtools/binutils/binutils-2.25.inc   |    40 +-
 .../binutils/binutils-crosssdk_2.25.bb             |     2 +-
 ...ild-breakage-from-bfd_set_section_vma-cha.patch |    31 -
 ....patch => 0001-Generate-relocatable-SDKs.patch} |    45 +-
 ...re-widen-the-regexp-for-SH-architectures.patch} |    42 +-
 .../0003-Point-scripts-location-to-libdir.patch    |    42 +
 ...te-an-RPATH-entry-if-LD_RUN_PATH-is-not-e.patch |    41 +
 ...0005-Explicitly-link-with-libm-on-uclibc.patch} |    38 +-
 ...2.4-update.patch => 0006-Use-libtool-2.4.patch} | 29777 ++++++++++---------
 ...-Add-the-armv5e-architecture-to-binutils.patch} |    34 +-
 ...e-distro-compiler-point-to-the-wrong-ins.patch} |    33 +-
 ...tus-Inappropriate-distribution-codesourc.patch} |   191 +-
 ...rpath-in-libtool-when-sysroot-is-enabled.patch} |    25 +-
 ...hange-default-emulation-for-mips64-linux.patch} |    33 +-
 ...tch => 0012-Add-XLP-instructions-support.patch} |    48 +-
 ...nal-error-in-do_print_to_mapfile-seen-wi.patch} |    11 +-
 ...binutils-uclibc-300-001_ld_makefile_patch.patch |    55 -
 ...binutils-uclibc-300-006_better_file_error.patch |    45 -
 ...ils-uclibc-300-012_check_ldrunpath_length.patch |    49 -
 .../binutils/binutils-uninitialised-warning.patch  |    50 -
 20 files changed, 15333 insertions(+), 15299 deletions(-)
 delete mode 100644 meta/recipes-devtools/binutils/binutils/0001-Fix-MMIX-build-breakage-from-bfd_set_section_vma-cha.patch
 rename meta/recipes-devtools/binutils/binutils/{relocatable_sdk.patch => 0001-Generate-relocatable-SDKs.patch} (56%)
 rename meta/recipes-devtools/binutils/binutils/{binutils-uclibc-100-uclibc-conf.patch => 0002-configure-widen-the-regexp-for-SH-architectures.patch} (41%)
 create mode 100644 meta/recipes-devtools/binutils/binutils/0003-Point-scripts-location-to-libdir.patch
 create mode 100644 meta/recipes-devtools/binutils/binutils/0004-Only-generate-an-RPATH-entry-if-LD_RUN_PATH-is-not-e.patch
 rename meta/recipes-devtools/binutils/binutils/{binutils-uclibc-gas-needs-libm.patch => 0005-Explicitly-link-with-libm-on-uclibc.patch} (49%)
 rename meta/recipes-devtools/binutils/binutils/{libtool-2.4-update.patch => 0006-Use-libtool-2.4.patch} (95%)
 rename meta/recipes-devtools/binutils/binutils/{binutils-armv5e.patch => 0007-Add-the-armv5e-architecture-to-binutils.patch} (43%)
 rename meta/recipes-devtools/binutils/binutils/{libiberty_path_fix.patch => 0008-don-t-let-the-distro-compiler-point-to-the-wrong-ins.patch} (43%)
 rename meta/recipes-devtools/binutils/binutils/{binutils-poison.patch => 0009-Upstream-Status-Inappropriate-distribution-codesourc.patch} (75%)
 rename meta/recipes-devtools/binutils/binutils/{libtool-rpath-fix.patch => 0010-Fix-rpath-in-libtool-when-sysroot-is-enabled.patch} (74%)
 rename meta/recipes-devtools/binutils/binutils/{mips64-default-ld-emulation.patch => 0011-Change-default-emulation-for-mips64-linux.patch} (73%)
 rename meta/recipes-devtools/binutils/binutils/{binutils-xlp-support.patch => 0012-Add-XLP-instructions-support.patch} (93%)
 rename meta/recipes-devtools/binutils/binutils/{0001-Fix-an-internal-error-in-do_print_to_mapfile-seen-wi.patch => 0013-Fix-an-internal-error-in-do_print_to_mapfile-seen-wi.patch} (76%)
 delete mode 100644 meta/recipes-devtools/binutils/binutils/binutils-uclibc-300-001_ld_makefile_patch.patch
 delete mode 100644 meta/recipes-devtools/binutils/binutils/binutils-uclibc-300-006_better_file_error.patch
 delete mode 100644 meta/recipes-devtools/binutils/binutils/binutils-uclibc-300-012_check_ldrunpath_length.patch
 delete mode 100644 meta/recipes-devtools/binutils/binutils/binutils-uninitialised-warning.patch
meta/recipes-devtools/binutils/binutils-2.25.inc +24 -16
index d9075b6..6f76530 100644
@@ -10,22 +10,30 @@ LIC_FILES_CHKSUM="\
     file://bfd/COPYING;md5=d32239bcb673463ab874e80d47fae504\
     "
 
+def binutils_branch_version(d):
+    pvsplit = d.getVar('PV', True).split('.')
+    return pvsplit[0] + "_" + pvsplit[1]
+
+BINUPV = "${@binutils_branch_version(d)}"
+
+SRCREV = "f2df1e49400f9e2d8d63a5d0fec9bf8c5c2b3342"
 SRC_URI = "\
-     ${GNU_MIRROR}/binutils/binutils-${PV}.tar.bz2 \
-     file://binutils-uclibc-100-uclibc-conf.patch \
-     file://binutils-uclibc-300-001_ld_makefile_patch.patch \
-     file://binutils-uclibc-300-006_better_file_error.patch \
-     file://binutils-uclibc-300-012_check_ldrunpath_length.patch \
-     file://binutils-uclibc-gas-needs-libm.patch \
-     file://libtool-2.4-update.patch \
-     file://libiberty_path_fix.patch \
-     file://binutils-poison.patch \
-     file://libtool-rpath-fix.patch \
-     file://binutils-armv5e.patch \
-     file://mips64-default-ld-emulation.patch \
-     file://binutils-xlp-support.patch \
-     file://0001-Fix-an-internal-error-in-do_print_to_mapfile-seen-wi.patch \
+     git://sourceware.org/git/binutils-gdb.git;branch=binutils-${BINUPV}-branch;protocol=git \
+     file://0002-configure-widen-the-regexp-for-SH-architectures.patch \
+     file://0003-Point-scripts-location-to-libdir.patch \
+     file://0004-Only-generate-an-RPATH-entry-if-LD_RUN_PATH-is-not-e.patch \
+     file://0005-Explicitly-link-with-libm-on-uclibc.patch \
+     file://0006-Use-libtool-2.4.patch \
+     file://0007-Add-the-armv5e-architecture-to-binutils.patch \
+     file://0008-don-t-let-the-distro-compiler-point-to-the-wrong-ins.patch \
+     file://0009-Upstream-Status-Inappropriate-distribution-codesourc.patch \
+     file://0010-Fix-rpath-in-libtool-when-sysroot-is-enabled.patch \
+     file://0011-Change-default-emulation-for-mips64-linux.patch \
+     file://0012-Add-XLP-instructions-support.patch \
+     file://0013-Fix-an-internal-error-in-do_print_to_mapfile-seen-wi.patch \
      "
-SRC_URI[md5sum] = "d9f3303f802a5b6b0bb73a335ab89d66"
-SRC_URI[sha256sum] = "22defc65cfa3ef2a3395faaea75d6331c6e62ea5dfacfed3e2ec17b08c882923"
+S  = "${WORKDIR}/git"
 
+do_configure_prepend () {
+        rm -rf ${S}/gdb ${S}/libdecnumber ${S}/readline ${S}/sim
+}
meta/recipes-devtools/binutils/binutils-crosssdk_2.25.bb +1 -1
index b6d9a21..788106f 100644
@@ -6,7 +6,7 @@ PN = "binutils-crosssdk-${TARGET_ARCH}"
 
 PROVIDES = "virtual/${TARGET_PREFIX}binutils-crosssdk"
 
-SRC_URI += "file://relocatable_sdk.patch"
+SRC_URI += "file://0001-Generate-relocatable-SDKs.patch"
 
 do_configure_prepend () {
 	sed -i 's#/usr/local/lib /lib /usr/lib#${SDKPATHNATIVE}/lib ${SDKPATHNATIVE}/usr/lib /usr/local/lib /lib /usr/lib#' ${S}/ld/configure.tgt
meta/recipes-devtools/binutils/binutils/0001-Fix-MMIX-build-breakage-from-bfd_set_section_vma-cha.patch deleted +0 -31
deleted file mode 100644
index f786b17..0000000
@@ -1,31 +0,0 @@
-Upstream-Status: Backport
-
-From 0a09fb4a09e80c36fa3ef763ae276fd13d272a36 Mon Sep 17 00:00:00 2001
-From: Hans-Peter Nilsson <[email protected]>
-Date: Sat, 1 Feb 2014 01:11:28 +0100
-Subject: [PATCH] Fix MMIX build breakage from bfd_set_section_vma change.
-
-	* emultempl/mmix-elfnmmo.em (mmix_after_allocation): Fix typo in
-	call to bfd_set_section_vma exposed by recent bfd_set_section_vma
-	change.
----
- ld/ChangeLog                 |    6 ++++++
- ld/emultempl/mmix-elfnmmo.em |    2 +-
- 2 files changed, 7 insertions(+), 1 deletion(-)
-
-diff --git a/ld/emultempl/mmix-elfnmmo.em b/ld/emultempl/mmix-elfnmmo.em
-index 0059792..5e9781a 100644
---- a/ld/emultempl/mmix-elfnmmo.em
-+++ b/ld/emultempl/mmix-elfnmmo.em
-@@ -102,7 +102,7 @@ mmix_after_allocation (void)
-      This section is only present when there are register symbols.  */
-   sec = bfd_get_section_by_name (link_info.output_bfd, MMIX_REG_SECTION_NAME);
-   if (sec != NULL)
--    bfd_set_section_vma (abfd, sec, 0);
-+    bfd_set_section_vma (sec->owner, sec, 0);
- 
-   if (!_bfd_mmix_after_linker_allocation (link_info.output_bfd, &link_info))
-     {
--- 
-1.7.10.4
-
meta/recipes-devtools/binutils/binutils/0001-Generate-relocatable-SDKs.patch renamed from meta/recipes-devtools/binutils/binutils/relocatable_sdk.patch +29 -16

67 lines not on this page · raw message

meta/recipes-devtools/binutils/binutils/0002-configure-widen-the-regexp-for-SH-architectures.patch renamed from meta/recipes-devtools/binutils/binutils/binutils-uclibc-100-uclibc-conf.patch +29 -13

62 lines not on this page · raw message

meta/recipes-devtools/binutils/binutils/0003-Point-scripts-location-to-libdir.patch new file +42 -0

42 lines not on this page · raw message

meta/recipes-devtools/binutils/binutils/0004-Only-generate-an-RPATH-entry-if-LD_RUN_PATH-is-not-e.patch new file +41 -0

41 lines not on this page · raw message

meta/recipes-devtools/binutils/binutils/0005-Explicitly-link-with-libm-on-uclibc.patch renamed from meta/recipes-devtools/binutils/binutils/binutils-uclibc-gas-needs-libm.patch +26 -12
similarity index 49%
rename from meta/recipes-devtools/binutils/binutils/binutils-uclibc-gas-needs-libm.patch
rename to meta/recipes-devtools/binutils/binutils/0005-Explicitly-link-with-libm-on-uclibc.patch
index 3869faf..9bbd93e 100644
@@ -1,6 +1,7 @@
-Source: Khem Raj <[email protected]>
-Disposition: submit upstream.
-Upstream-Status: Pending
+From f1703bcc7a5c507e471e2630b5a2de129100315a Mon Sep 17 00:00:00 2001
+From: Khem Raj <[email protected]>
+Date: Mon, 2 Mar 2015 01:32:49 +0000
+Subject: [PATCH 05/13] Explicitly link with libm on uclibc
 
 Description:
 
@@ -9,21 +10,31 @@ libtool has been updated upstream it include support for it. However
 for building gas natively on uclibc systems we have to link it with
 -lm so that it picks up missing symbols.
 
-/local/build_area/BUILD/arm_v5t_le_uclibc/binutils-2.17.50/objdir/libiberty/pic/libiberty.a(floatformat.o): In function `floatformat_from_double':
+/local/build_area/BUILD/arm_v5t_le_uclibc/binutils-2.17.50/objdir/libiberty/pic/libiberty.a(floatformat.o):
+In function `floatformat_from_double':
 floatformat.c:(.text+0x1ec): undefined reference to `frexp'
 floatformat.c:(.text+0x2f8): undefined reference to `ldexp'
-/local/build_area/BUILD/arm_v5t_le_uclibc/binutils-2.17.50/objdir/libiberty/pic/libiberty.a(floatformat.o): In function `floatformat_to_double':
+/local/build_area/BUILD/arm_v5t_le_uclibc/binutils-2.17.50/objdir/libiberty/pic/libiberty.a(floatformat.o):
+In function `floatformat_to_double':
 floatformat.c:(.text+0x38a): undefined reference to `ldexp'
 floatformat.c:(.text+0x3d2): undefined reference to `ldexp'
-floatformat.c:(.text+0x43e): undefined reference to `ldexp'                     floatformat.c:(.text+0x4e2): undefined reference to `ldexp'
+floatformat.c:(.text+0x43e): undefined reference to `ldexp'
+floatformat.c:(.text+0x4e2): undefined reference to `ldexp'
 collect2: ld returned 1 exit status
 make[4]: *** [as-new] Error 1
 
-Index: binutils-2.22/gas/configure.tgt
-===================================================================
---- binutils-2.22.orig/gas/configure.tgt
-+++ binutils-2.22/gas/configure.tgt
-@@ -428,6 +428,12 @@ case ${generic_target} in
+Upstream-Status: Pending
+
+Signed-off-by: Khem Raj <[email protected]>
+---
+ gas/configure.tgt | 6 ++++++
+ 1 file changed, 6 insertions(+)
+
+diff --git a/gas/configure.tgt b/gas/configure.tgt
+index 9abc768..1d92f55 100644
+--- a/gas/configure.tgt
++++ b/gas/configure.tgt
+@@ -477,6 +477,12 @@ case ${generic_target} in
    *-*-netware)				fmt=elf em=netware ;;
  esac
  
@@ -34,5 +45,8 @@ Index: binutils-2.22/gas/configure.tgt
 +esac
 +
  case ${cpu_type} in
-   alpha | arm | i386 | ia64 | microblaze | mips | ns32k | pdp11 | ppc | sparc | z80 | z8k)
+   aarch64 | alpha | arm | i386 | ia64 | microblaze | mips | ns32k | or1k | or1knd | pdp11 | ppc | sparc | z80 | z8k)
      bfd_gas=yes
+-- 
+2.1.4
+
meta/recipes-devtools/binutils/binutils/0006-Use-libtool-2.4.patch renamed from meta/recipes-devtools/binutils/binutils/libtool-2.4-update.patch +14908 -14869

2,645 lines not on this page · raw message

meta/recipes-devtools/binutils/binutils/0007-Add-the-armv5e-architecture-to-binutils.patch renamed from meta/recipes-devtools/binutils/binutils/binutils-armv5e.patch +22 -12
similarity index 43%
rename from meta/recipes-devtools/binutils/binutils/binutils-armv5e.patch
rename to meta/recipes-devtools/binutils/binutils/0007-Add-the-armv5e-architecture-to-binutils.patch
index 97ad6df..a037634 100644

Lines of this file are not shown. View the raw message.

meta/recipes-devtools/binutils/binutils/0008-don-t-let-the-distro-compiler-point-to-the-wrong-ins.patch renamed from meta/recipes-devtools/binutils/binutils/libiberty_path_fix.patch +23 -10
similarity index 43%
rename from meta/recipes-devtools/binutils/binutils/libiberty_path_fix.patch
rename to meta/recipes-devtools/binutils/binutils/0008-don-t-let-the-distro-compiler-point-to-the-wrong-ins.patch
index 6e732fb..0ae68fc 100644

Lines of this file are not shown. View the raw message.

meta/recipes-devtools/binutils/binutils/0009-Upstream-Status-Inappropriate-distribution-codesourc.patch renamed from meta/recipes-devtools/binutils/binutils/binutils-poison.patch +105 -86

191 lines not on this page · raw message

meta/recipes-devtools/binutils/binutils/0010-Fix-rpath-in-libtool-when-sysroot-is-enabled.patch renamed from meta/recipes-devtools/binutils/binutils/libtool-rpath-fix.patch +19 -6
similarity index 74%
rename from meta/recipes-devtools/binutils/binutils/libtool-rpath-fix.patch
rename to meta/recipes-devtools/binutils/binutils/0010-Fix-rpath-in-libtool-when-sysroot-is-enabled.patch
index 4fcffa4..5451e74 100644

Lines of this file are not shown. View the raw message.

meta/recipes-devtools/binutils/binutils/0011-Change-default-emulation-for-mips64-linux.patch renamed from meta/recipes-devtools/binutils/binutils/mips64-default-ld-emulation.patch +22 -11
similarity index 73%
rename from meta/recipes-devtools/binutils/binutils/mips64-default-ld-emulation.patch
rename to meta/recipes-devtools/binutils/binutils/0011-Change-default-emulation-for-mips64-linux.patch
index e668faa..d9d57ee 100644

Lines of this file are not shown. View the raw message.

meta/recipes-devtools/binutils/binutils/0012-Add-XLP-instructions-support.patch renamed from meta/recipes-devtools/binutils/binutils/binutils-xlp-support.patch +37 -11

48 lines not on this page · raw message

meta/recipes-devtools/binutils/binutils/0013-Fix-an-internal-error-in-do_print_to_mapfile-seen-wi.patch renamed from meta/recipes-devtools/binutils/binutils/0001-Fix-an-internal-error-in-do_print_to_mapfile-seen-wi.patch +5 -6
similarity index 76%
rename from meta/recipes-devtools/binutils/binutils/0001-Fix-an-internal-error-in-do_print_to_mapfile-seen-wi.patch
rename to meta/recipes-devtools/binutils/binutils/0013-Fix-an-internal-error-in-do_print_to_mapfile-seen-wi.patch
index a47faef..aee01c0 100644

Lines of this file are not shown. View the raw message.

meta/recipes-devtools/binutils/binutils/binutils-uclibc-300-001_ld_makefile_patch.patch deleted +0 -55

55 lines not on this page · raw message

meta/recipes-devtools/binutils/binutils/binutils-uclibc-300-006_better_file_error.patch deleted +0 -45

45 lines not on this page · raw message

meta/recipes-devtools/binutils/binutils/binutils-uclibc-300-012_check_ldrunpath_length.patch deleted +0 -49

49 lines not on this page · raw message

meta/recipes-devtools/binutils/binutils/binutils-uninitialised-warning.patch deleted +0 -50

50 lines not on this page · raw message

The rest of this diff is not shown. View the raw message.

Signature · 1 line
2.1.4

Part of the diff is not shown here. View the raw message.

author
#10 lore raw

PATCH 6/24 gdb: Upgrade 7.8.1 -> 7.9

In reply to Khem Raj

Refresh patches against new baseline

Change-Id I34c5a284c12f669ff3539a363e5eded15eeeeb23
---
 meta/conf/distro/include/tcmode-default.inc        |   2 +-
 .../gdb/{gdb-7.8.1.inc => gdb-7.9.inc}             |   4 +-
 ...canadian_7.8.1.bb => gdb-cross-canadian_7.9.bb} |   0
 meta/recipes-devtools/gdb/gdb-cross_7.8.1.bb       |   4 -
 meta/recipes-devtools/gdb/gdb-cross_7.9.bb         |   4 +
 meta/recipes-devtools/gdb/gdb.inc                  |   5 +-
 ...0001-make-man-install-relative-to-DESTDIR.patch |  28 +
 ...last.diff => 0002-Change-order-of-CFLAGS.patch} |  33 +-
 ...-support-for-Renesas-SH-sh4-architecture.patch} | 854 +++++----------------
 .../gdb/0004-Change-comment-in-gdb-compile.patch   |  48 ++
 .../recipes-devtools/gdb/gdb/sim-install-6.6.patch |  14 -
 meta/recipes-devtools/gdb/gdb/sim-install.patch    |  36 -
 meta/recipes-devtools/gdb/gdb/uclibc.patch         | 196 -----
 .../gdb/{gdb_7.8.1.bb => gdb_7.9.bb}               |   0
 14 files changed, 305 insertions(+), 923 deletions(-)
 rename meta/recipes-devtools/gdb/{gdb-7.8.1.inc => gdb-7.9.inc} (68%)
 rename meta/recipes-devtools/gdb/{gdb-cross-canadian_7.8.1.bb => gdb-cross-canadian_7.9.bb} (100%)
 delete mode 100644 meta/recipes-devtools/gdb/gdb-cross_7.8.1.bb
 create mode 100644 meta/recipes-devtools/gdb/gdb-cross_7.9.bb
 create mode 100644 meta/recipes-devtools/gdb/gdb/0001-make-man-install-relative-to-DESTDIR.patch
 rename meta/recipes-devtools/gdb/gdb/{gdbserver-cflags-last.diff => 0002-Change-order-of-CFLAGS.patch} (42%)
 rename meta/recipes-devtools/gdb/gdb/{renesas-sh-native-support.patch => 0003-Add-support-for-Renesas-SH-sh4-architecture.patch} (57%)
 create mode 100644 meta/recipes-devtools/gdb/gdb/0004-Change-comment-in-gdb-compile.patch
 delete mode 100644 meta/recipes-devtools/gdb/gdb/sim-install-6.6.patch
 delete mode 100644 meta/recipes-devtools/gdb/gdb/sim-install.patch
 delete mode 100644 meta/recipes-devtools/gdb/gdb/uclibc.patch
 rename meta/recipes-devtools/gdb/{gdb_7.8.1.bb => gdb_7.9.bb} (100%)
meta/conf/distro/include/tcmode-default.inc +1 -1
index f69fe9a..e3df934 100644
@@ -25,7 +25,7 @@ PREFERRED_PROVIDER_virtual/gettext ??= "gettext"
 GCCVERSION ?= "4.9%"
 SDKGCCVERSION ?= "${GCCVERSION}"
 BINUVERSION ?= "2.25"
-GDBVERSION ?= "7.8%"
+GDBVERSION ?= "7.9%"
 GLIBCVERSION ?= "2.21"
 UCLIBCVERSION ?= "0.9.33+git%"
 LINUXLIBCVERSION ?= "3.19"
meta/recipes-devtools/gdb/gdb-7.9.inc renamed from meta/recipes-devtools/gdb/gdb-7.8.1.inc +2 -2
similarity index 68%
rename from meta/recipes-devtools/gdb/gdb-7.8.1.inc
rename to meta/recipes-devtools/gdb/gdb-7.9.inc
index 510ea18..6d5eecb 100644
@@ -4,6 +4,6 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552 \
 		    file://COPYING3.LIB;md5=6a6a8e020838b23406c81b19c1d46df6 \
 		    file://COPYING.LIB;md5=9f604d8a4f8e74f4f5140845a21b6674"
 
-SRC_URI[md5sum] = "997492cc3475c96f35ecc8775248c9b1"
-SRC_URI[sha256sum] = "d7a923d876ecfa1cec4c1c79c014c9d8e58783a25855a95cf260275f61990647"
+SRC_URI[md5sum] = "8f8ced422fe462a00e0135a643544f17"
+SRC_URI[sha256sum] = "d282508cb7df0cb8b2cf659032ce1bede7b5725796e3ac90f3cd9d65844a65f2"
 
meta/recipes-devtools/gdb/gdb-cross-canadian_7.9.bb renamed from meta/recipes-devtools/gdb/gdb-cross-canadian_7.8.1.bb +0 -0
similarity index 100%
rename from meta/recipes-devtools/gdb/gdb-cross-canadian_7.8.1.bb
rename to meta/recipes-devtools/gdb/gdb-cross-canadian_7.9.bb
meta/recipes-devtools/gdb/gdb-cross_7.8.1.bb deleted +0 -4
deleted file mode 100644
index f9da486..0000000
@@ -1,4 +0,0 @@
-require gdb-cross.inc
-require gdb-${PV}.inc
-
-SRC_URI += "file://sim-install-6.6.patch"
meta/recipes-devtools/gdb/gdb-cross_7.9.bb new file +4 -0
new file mode 100644
index 0000000..3a95cfb
@@ -0,0 +1,4 @@
+require gdb-cross.inc
+require gdb-${PV}.inc
+
+SRC_URI += "file://0001-make-man-install-relative-to-DESTDIR.patch"
meta/recipes-devtools/gdb/gdb.inc +3 -2
index 2c95e03..e65af4b 100644
@@ -2,8 +2,9 @@ require gdb-common.inc
 
 inherit gettext
 
-SRC_URI += "file://gdbserver-cflags-last.diff;striplevel=0 \
-            file://renesas-sh-native-support.patch \
+SRC_URI += "file://0002-Change-order-of-CFLAGS.patch \
+            file://0003-Add-support-for-Renesas-SH-sh4-architecture.patch \
+            file://0004-Change-comment-in-gdb-compile.patch \
            "
 #LDFLAGS_append = " -s"
 #export CFLAGS_append=" -L${STAGING_LIBDIR}"
meta/recipes-devtools/gdb/gdb/0001-make-man-install-relative-to-DESTDIR.patch new file +28 -0
new file mode 100644
index 0000000..e0221af
@@ -0,0 +1,28 @@
+From d3ec939b82be23e7c9534cdc7502645f6c5856d1 Mon Sep 17 00:00:00 2001
+From: Khem Raj <[email protected]>
+Date: Mon, 2 Mar 2015 02:27:55 +0000
+Subject: [PATCH 1/3] make man install relative to DESTDIR
+
+Upstream-Status: Pending
+
+Signed-off-by: Khem Raj <[email protected]>
+---
+ sim/common/Makefile.in | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/sim/common/Makefile.in b/sim/common/Makefile.in
+index d49a93b..2121c46 100644
+--- a/sim/common/Makefile.in
++++ b/sim/common/Makefile.in
+@@ -35,7 +35,7 @@ tooldir = $(libdir)/$(target_alias)
+ datarootdir = @datarootdir@
+ datadir = @datadir@
+ mandir = @mandir@
+-man1dir = $(mandir)/man1
++man1dir = $(DESTDIR)$(mandir)/man1
+ infodir = @infodir@
+ includedir = @includedir@
+ 
+-- 
+2.1.4
+
meta/recipes-devtools/gdb/gdb/0002-Change-order-of-CFLAGS.patch renamed from meta/recipes-devtools/gdb/gdb/gdbserver-cflags-last.diff +21 -12
similarity index 42%
rename from meta/recipes-devtools/gdb/gdb/gdbserver-cflags-last.diff
rename to meta/recipes-devtools/gdb/gdb/0002-Change-order-of-CFLAGS.patch
index 4dfc419..26a34d3 100644
@@ -1,25 +1,34 @@
-Upstream-Status: Pending
+From 0dcb0a8b139b44ae84e8fd8ff8130cbbb52e444d Mon Sep 17 00:00:00 2001
+From: Khem Raj <[email protected]>
+Date: Mon, 2 Mar 2015 02:29:23 +0000
+Subject: [PATCH 2/3] Change order of CFLAGS
 
+Lets us override Werror if need be
+
+Upstream-Status: Inappropriate
+
+Signed-off-by: Khem Raj <[email protected]>
 ---
- gdb/gdbserver/Makefile.in |    4 ++--
+ gdb/gdbserver/Makefile.in | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
 
---- gdb/gdbserver/Makefile.in.orig
-+++ gdb/gdbserver/Makefile.in
-@@ -118,14 +118,14 @@ WARN_CFLAGS_NO_FORMAT = `echo " $(WARN_C
- # CFLAGS is specifically reserved for setting from the command line
- # when running make.  I.E.  "make CFLAGS=-Wmissing-prototypes".
- CFLAGS = @CFLAGS@
+diff --git a/gdb/gdbserver/Makefile.in b/gdb/gdbserver/Makefile.in
+index 1ed2ec8..0cef95b 100644
+--- a/gdb/gdbserver/Makefile.in
++++ b/gdb/gdbserver/Makefile.in
+@@ -131,10 +131,10 @@ CFLAGS = @CFLAGS@
+ CPPFLAGS = @CPPFLAGS@
  
  # INTERNAL_CFLAGS is the aggregate of all other *CFLAGS macros.
 -INTERNAL_CFLAGS_BASE =  ${CFLAGS} ${GLOBAL_CFLAGS} \
-+INTERNAL_CFLAGS_BASE =  ${GLOBAL_CFLAGS} \
- 	${PROFILE_CFLAGS} ${INCLUDE_CFLAGS}
++INTERNAL_CFLAGS_BASE = ${GLOBAL_CFLAGS} \
+ 	${PROFILE_CFLAGS} ${INCLUDE_CFLAGS} ${CPPFLAGS}
  INTERNAL_WARN_CFLAGS =  ${INTERNAL_CFLAGS_BASE} $(WARN_CFLAGS)
 -INTERNAL_CFLAGS =  ${INTERNAL_WARN_CFLAGS} $(WERROR_CFLAGS) -DGDBSERVER
 +INTERNAL_CFLAGS =  ${INTERNAL_WARN_CFLAGS} $(WERROR_CFLAGS) ${CFLAGS} -DGDBSERVER
  
  # LDFLAGS is specifically reserved for setting from the command line
  # when running make.
- LDFLAGS = @LDFLAGS@
- INTERNAL_LDFLAGS = $(LDFLAGS) @RDYNAMIC@
+-- 
+2.1.4
+
meta/recipes-devtools/gdb/gdb/0003-Add-support-for-Renesas-SH-sh4-architecture.patch renamed from meta/recipes-devtools/gdb/gdb/renesas-sh-native-support.patch +198 -656

983 lines not on this page · raw message

meta/recipes-devtools/gdb/gdb/0004-Change-comment-in-gdb-compile.patch new file +48 -0

48 lines not on this page · raw message

meta/recipes-devtools/gdb/gdb/sim-install-6.6.patch deleted +0 -14
deleted file mode 100644
index f67c25d..0000000
@@ -1,14 +0,0 @@
-Upstream-Status: Inappropriate [embedded specific]
-
---- gdb-6.1/sim/common/Makefile.in~	2004-01-15 21:25:06.000000000 +0000
-+++ gdb-6.1/sim/common/Makefile.in	2004-07-22 17:07:46.237809032 +0100
-@@ -34,7 +34,7 @@
- 
- datadir = @datadir@
- mandir = @mandir@
--man1dir = $(mandir)/man1
-+man1dir = $(DESTDIR)$(mandir)/man1
- infodir = @infodir@
- includedir = @includedir@
- 
-
meta/recipes-devtools/gdb/gdb/sim-install.patch deleted +0 -36
deleted file mode 100644
index a663ba7..0000000
@@ -1,36 +0,0 @@
-Upstream-Status: Inappropriate [embedded specific]
-
---- gdb-6.1/sim/common/Makefile.in~	2004-01-15 21:25:06.000000000 +0000
-+++ gdb-6.1/sim/common/Makefile.in	2004-07-22 17:07:46.237809032 +0100
-@@ -34,7 +34,7 @@
- 
- datadir = @datadir@
- mandir = @mandir@
--man1dir = $(mandir)/man1
-+man1dir = $(DESTDIR)$(mandir)/man1
- infodir = @infodir@
- includedir = @includedir@
- 
-
---- gdb-6.1/sim/common/Make-common.in~sim-install.patch	2003-09-08 18:24:59.000000000 +0100
-+++ gdb-6.1/sim/common/Make-common.in	2004-07-22 17:56:18.947423032 +0100
-@@ -581,14 +581,14 @@
- 
- install-common: installdirs
- 	n=`echo run | sed '$(program_transform_name)'`; \
--	$(INSTALL_PROGRAM) run$(EXEEXT) $(bindir)/$$n$(EXEEXT)
-+	$(INSTALL_PROGRAM) run$(EXEEXT) $(DESTDIR)$(bindir)/$$n$(EXEEXT)
- 	n=`echo libsim.a | sed s/libsim.a/lib$(target_alias)-sim.a/`; \
--	$(INSTALL_DATA) libsim.a $(libdir)/$$n ; \
--	( cd $(libdir) ; $(RANLIB) $$n )
-+	$(INSTALL_DATA) libsim.a $(DESTDIR)$(libdir)/$$n ; \
-+	( cd $(DESTDIR)$(libdir) ; $(RANLIB) $$n )
- 
- installdirs:
--	$(SHELL) $(srcdir)/../../mkinstalldirs $(bindir)
--	$(SHELL) $(srcdir)/../../mkinstalldirs $(libdir)
-+	$(SHELL) $(srcdir)/../../mkinstalldirs $(DESTDIR)$(bindir)
-+	$(SHELL) $(srcdir)/../../mkinstalldirs $(DESTDIR)$(libdir)
- 
- check:
- 	cd ../testsuite && $(MAKE) check RUNTESTFLAGS="$(RUNTESTFLAGS)"
meta/recipes-devtools/gdb/gdb/uclibc.patch deleted +0 -196

196 lines not on this page · raw message

meta/recipes-devtools/gdb/gdb_7.9.bb renamed from meta/recipes-devtools/gdb/gdb_7.8.1.bb +0 -0
similarity index 100%
rename from meta/recipes-devtools/gdb/gdb_7.8.1.bb
rename to meta/recipes-devtools/gdb/gdb_7.9.bb
Signature · 1 line
2.1.4
author
#11 lore raw

PATCH 7/24 binutils: Fix linking issue for R_ARM_REL32 relocs

In reply to Khem Raj

This issue is surfaces with gcc 5.0 but its a real issue in gold errors are like

https://sourceware.org/ml/binutils/2010-12/msg00473.html
is the test case

Change-Id I44806e9fb75a164745e52f0040b7efc9be624ae6
---
 meta/recipes-devtools/binutils/binutils-2.25.inc   |  1 +
 ...1-gold-arm-Skip-pic-check-for-R_ARM_REL32.patch | 25 ++++++++++++++++++++++
 2 files changed, 26 insertions(+)
 create mode 100644 meta/recipes-devtools/binutils/binutils/0001-gold-arm-Skip-pic-check-for-R_ARM_REL32.patch
meta/recipes-devtools/binutils/binutils-2.25.inc +1 -0
index 6f76530..269bcbb 100644
@@ -31,6 +31,7 @@ SRC_URI = "\
      file://0011-Change-default-emulation-for-mips64-linux.patch \
      file://0012-Add-XLP-instructions-support.patch \
      file://0013-Fix-an-internal-error-in-do_print_to_mapfile-seen-wi.patch \
+     file://0001-gold-arm-Skip-pic-check-for-R_ARM_REL32.patch \
      "
 S  = "${WORKDIR}/git"
 
meta/recipes-devtools/binutils/binutils/0001-gold-arm-Skip-pic-check-for-R_ARM_REL32.patch new file +25 -0
new file mode 100644
index 0000000..e024302
@@ -0,0 +1,25 @@
+From ebe26d855452d07e0152bd78d4966475d2de1de8 Mon Sep 17 00:00:00 2001
+From: Khem Raj <[email protected]>
+Date: Thu, 5 Mar 2015 07:30:31 +0000
+Subject: [PATCH] gold/arm: Skip pic check for R_ARM_REL32
+
+Signed-off-by: Khem Raj <[email protected]>
+---
+ gold/arm.cc | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/gold/arm.cc b/gold/arm.cc
+index 6c472bb..fb80435 100644
+--- a/gold/arm.cc
++++ b/gold/arm.cc
+@@ -7829,6 +7829,7 @@ Target_arm<big_endian>::Scan::check_non_pic(Relobj* object,
+     case elfcpp::R_ARM_TLS_DTPMOD32:
+     case elfcpp::R_ARM_TLS_DTPOFF32:
+     case elfcpp::R_ARM_TLS_TPOFF32:
++    case elfcpp::R_ARM_REL32:
+       return;
+ 
+     default:
+-- 
+2.1.4
+
Signature · 1 line
2.1.4
author
#12 lore raw

PATCH 8/24 var/volatile: Mount it if doing ro-rfs

In reply to Khem Raj

- Do not mount /var/volatile to be tmpfs always only when generating readonly rootfs
- Generate var-volatile.mount unit when using system in readonly-rootfs to mount /var/volatile as tmpfs
- for sysvinit, mount /var/volatile to be tmpfs if its not already mounted so
- Use RequiresMountsFor instead of After=, so systemd figures out the needed dependencies for making /var/volatile accessible for journald and not us.

Change-Id I0b176b3e1c1e88e84d2c93154aac04cef565d8ea
---
 meta/classes/image.bbclass                                          | 1 +
 meta/recipes-core/base-files/base-files/fstab                       | 1 -
 .../initscripts/initscripts-1.0/read-only-rootfs-hook.sh            | 2 +-
 meta/recipes-core/systemd/systemd/journald-volatile.conf            | 6 ++++++
 4 files changed, 8 insertions(+), 2 deletions(-)
 create mode 100644 meta/recipes-core/systemd/systemd/journald-volatile.conf
meta/classes/image.bbclass +1 -0
index 03cbbf7..5ace087 100644
@@ -230,6 +230,7 @@ read_only_rootfs_hook () {
 	fi
 
 	if ${@bb.utils.contains("DISTRO_FEATURES", "systemd", "true", "false", d)}; then
+	    sed -e 's#/tmp#/var/volatile#g' ${IMAGE_ROOTFS}/lib/systemd/system/tmp.mount > ${IMAGE_ROOTFS}/lib/systemd/system/var-volatile.mount
 	    # Update user database files so that services don't fail for a read-only systemd system
 	    for conffile in ${IMAGE_ROOTFS}/usr/lib/sysusers.d/systemd.conf ${IMAGE_ROOTFS}/usr/lib/sysusers.d/systemd-remote.conf; do
 		[ -e $conffile ] || continue
meta/recipes-core/base-files/base-files/fstab +0 -1
index 739b844..56b14d7 100644
@@ -5,7 +5,6 @@ proc                 /proc                proc       defaults              0  0
 devpts               /dev/pts             devpts     mode=0620,gid=5       0  0
 usbdevfs             /proc/bus/usb        usbdevfs   noauto                0  0
 tmpfs                /run                 tmpfs      mode=0755,nodev,nosuid,strictatime 0  0
-tmpfs                /var/volatile        tmpfs      defaults              0  0
 
 # uncomment this if your device has a SD/MMC/Transflash slot
 #/dev/mmcblk0p1       /media/card          auto       defaults,sync,noauto  0  0
meta/recipes-core/initscripts/initscripts-1.0/read-only-rootfs-hook.sh +1 -1
index 1a0328d..3ff39f4 100644
@@ -29,7 +29,7 @@ is_on_read_only_partition () {
 
 if [ "$1" = "start" ] ; then
 	if [ `is_on_read_only_partition /var/lib` = "yes" ]; then
-		grep -q "tmpfs /var/volatile" /proc/mounts || mount /var/volatile
+		grep -q "tmpfs /var/volatile" /proc/mounts || mount -t tmpfs -o strictatime tmpfs /var/volatile
 		mkdir -p /var/volatile/lib
 		cp -a /var/lib/* /var/volatile/lib
 		mount --bind /var/volatile/lib /var/lib
meta/recipes-core/systemd/systemd/journald-volatile.conf new file +6 -0
new file mode 100644
index 0000000..9356a4e
@@ -0,0 +1,6 @@
+# If /var/volatile is a mount point then make sure to mount it before
+# the journal starts. This is because base-files creates a symlink
+# /var/log -> /var/volatile/log. And if the journal starts before the mount
+# happens, the journal will appear empty until restarted.
+[Unit]
+RequiresMountsFor=/var/volatile
Signature · 1 line
2.1.4
author
#13 lore raw

PATCH 9/24 gcc-4.8: Upgrade 4.8.2 -> 4.8.4

In reply to Khem Raj

Drop already applied patches
This fixes random ICE seen on mips with large c++ files ( webkit ) Then there are several backports

Change-Id Ie1c3acda2fda1b6cbd356416c860938f6cbd758e
---
 meta/recipes-devtools/gcc/gcc-4.8.inc              |  13 +-
 .../0016-gcc-poison-system-directories.patch       |  95 +++++++--------
 .../gcc/gcc-4.8/0019-64-bit-multilib-hack.patch    |  41 +++----
 ...C_DYNAMIC_LINKER-and-UCLIBC_DYNAMIC_LINKE.patch | 101 ++++++++--------
 .../gcc/gcc-4.8/0038-gcc-4.8-build-args.patch      |  63 ++++++----
 .../gcc/gcc-4.8/0039-gcc-4.8-PR57717.patch         |  23 ----
 .../0045-gcc-4.8-PR57717-PowerPC-E500v2.patch      |  21 ----
 .../0048-PR58854_fix_arm_apcs_epilogue.patch       |  23 ----
 .../gcc/gcc-4.8/0050-PR-target-58595.patch         | 132 ---------------------
 .../gcc-4.8/0052-PR-rtl-optimization-61801.patch   |  36 ------
 10 files changed, 164 insertions(+), 384 deletions(-)
 delete mode 100644 meta/recipes-devtools/gcc/gcc-4.8/0039-gcc-4.8-PR57717.patch
 delete mode 100644 meta/recipes-devtools/gcc/gcc-4.8/0045-gcc-4.8-PR57717-PowerPC-E500v2.patch
 delete mode 100644 meta/recipes-devtools/gcc/gcc-4.8/0048-PR58854_fix_arm_apcs_epilogue.patch
 delete mode 100644 meta/recipes-devtools/gcc/gcc-4.8/0050-PR-target-58595.patch
 delete mode 100644 meta/recipes-devtools/gcc/gcc-4.8/0052-PR-rtl-optimization-61801.patch
meta/recipes-devtools/gcc/gcc-4.8.inc +4 -9
index 06e6982..476aaf9 100644
@@ -2,11 +2,11 @@ require gcc-common.inc
 
 # Third digit in PV should be incremented after a minor release
 
-PV = "4.8.2"
+PV = "4.8.4"
 
 # BINV should be incremented to a revision after a minor gcc release
 
-BINV = "4.8.2"
+BINV = "4.8.4"
 
 FILESEXTRAPATHS =. "${FILE_DIRNAME}/gcc-4.8:"
 
@@ -60,23 +60,18 @@ SRC_URI = "\
     file://0034-Use-the-multilib-config-files-from-B-instead-of-usin.patch \
     file://0035-wcast-qual-PR-55383.patch \
     file://0038-gcc-4.8-build-args.patch \
-    file://0039-gcc-4.8-PR57717.patch \
     file://0040-fix-g++-sysroot.patch \
     file://0041-libtool-avoid-libdir.patch \
     file://0042-pr57748.patch \
     file://0043-cpp.patch \
     file://0044-gengtypes.patch \
-    file://0045-gcc-4.8-PR57717-PowerPC-E500v2.patch \
     file://0046-libatomic-deptracking.patch \
     file://0047-repomembug.patch \
-    file://0048-PR58854_fix_arm_apcs_epilogue.patch \
     file://0049-Enable-SPE-AltiVec-generation-on-powepc-linux-target.patch \
-    file://0050-PR-target-58595.patch \
-    file://0052-PR-rtl-optimization-61801.patch \
     file://target-gcc-includedir.patch \
 "
-SRC_URI[md5sum] = "a3d7d63b9cb6b6ea049469a0c4a43c9d"
-SRC_URI[sha256sum] = "09dc2276c73424bbbfda1dbddc62bbbf900c9f185acf7f3e1d773ce2d7e3cdc8"
+SRC_URI[md5sum] = "5a84a30839b2aca22a2d723de2a626ec"
+SRC_URI[sha256sum] = "4a80aa23798b8e9b5793494b8c976b39b8d9aa2e53cd5ed5534aff662a7f8695"
 
 S = "${TMPDIR}/work-shared/gcc-${PV}-${PR}/gcc-${PV}"
 B = "${WORKDIR}/gcc-${PV}/build.${HOST_SYS}.${TARGET_SYS}"
meta/recipes-devtools/gcc/gcc-4.8/0016-gcc-poison-system-directories.patch +46 -49

182 lines not on this page · raw message

meta/recipes-devtools/gcc/gcc-4.8/0019-64-bit-multilib-hack.patch +19 -22

59 lines not on this page · raw message

meta/recipes-devtools/gcc/gcc-4.8/0029-Define-GLIBC_DYNAMIC_LINKER-and-UCLIBC_DYNAMIC_LINKE.patch +52 -49

188 lines not on this page · raw message

meta/recipes-devtools/gcc/gcc-4.8/0038-gcc-4.8-build-args.patch +43 -20

70 lines not on this page · raw message

meta/recipes-devtools/gcc/gcc-4.8/0039-gcc-4.8-PR57717.patch deleted +0 -23
deleted file mode 100644
index f983f70..0000000
@@ -1,23 +0,0 @@
-This backports fix from http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57717
-
-Upstream-Status: Backport
-Signed-off-by: Khem Raj <[email protected]>
-
-Index: gcc-4.8.1/gcc/config/rs6000/rs6000.c
-===================================================================
---- gcc-4.8.1.orig/gcc/config/rs6000/rs6000.c	2013-05-09 18:54:06.000000000 -0700
-+++ gcc-4.8.1/gcc/config/rs6000/rs6000.c	2013-06-27 08:22:40.459021366 -0700
-@@ -5431,11 +5431,12 @@
- 
-     case TFmode:
-     case TDmode:
--    case TImode:
-       if (TARGET_E500_DOUBLE)
- 	return (SPE_CONST_OFFSET_OK (offset)
- 		&& SPE_CONST_OFFSET_OK (offset + 8));
-+        /* Fall through.  */
- 
-+    case TImode:
-       extra = 8;
-       if (!worst_case)
- 	break;
meta/recipes-devtools/gcc/gcc-4.8/0045-gcc-4.8-PR57717-PowerPC-E500v2.patch deleted +0 -21
deleted file mode 100644
index 96fa1da..0000000
@@ -1,21 +0,0 @@
-This backports fix from http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57717
-
-Upstream-Status: Backport
-Signed-off-by: Julian Brown <[email protected]>
-
-fix for PR57717 (PowerPC E500v2)
-http://gcc.gnu.org/ml/gcc-patches/2013-08/msg00668.html
-
---- a/gcc/config/rs6000/rs6000.c	2013-05-09 20:54:06.000000000 -0500
-+++ b/gcc/config/rs6000/rs6000.c	2013-08-28 01:25:24.865218744 -0500
-@@ -6337,9 +6337,7 @@
-       && GET_CODE (XEXP (x, 1)) == CONST_INT
-       && reg_offset_p
-       && !SPE_VECTOR_MODE (mode)
--      && !(TARGET_E500_DOUBLE && (mode == DFmode || mode == TFmode
--				  || mode == DDmode || mode == TDmode
--				  || mode == DImode))
-+      && !(TARGET_E500_DOUBLE && GET_MODE_SIZE (mode) > UNITS_PER_WORD)
-       && VECTOR_MEM_NONE_P (mode))
-     {
-       HOST_WIDE_INT val = INTVAL (XEXP (x, 1));
meta/recipes-devtools/gcc/gcc-4.8/0048-PR58854_fix_arm_apcs_epilogue.patch deleted +0 -23
deleted file mode 100644
index 0ef245a..0000000
@@ -1,23 +0,0 @@
-Backport fix for PR target/58854
-
-2013-11-11  Ramana Radhakrishnan  <[email protected]>
-
-       Backported from mainline
-        2013-10-30  Ramana Radhakrishnan  <[email protected]>
-
-       PR target/58854
-       * config/arm/arm.c (arm_expand_epilogue_apcs_frame): Emit blockage
-
-
-Upstream-Status: Backport
-
---- gcc-4_8-branch/gcc/config/arm/arm.c	2013/11/11 08:00:45	204664
-+++ gcc-4_8-branch/gcc/config/arm/arm.c	2013/11/11 09:38:14	204665
-@@ -23555,6 +23555,7 @@
-   num_regs = bit_count (saved_regs_mask);
-   if ((offsets->outgoing_args != (1 + num_regs)) || cfun->calls_alloca)
-     {
-+      emit_insn (gen_blockage ());
-       /* Unwind the stack to just below the saved registers.  */
-       emit_insn (gen_addsi3 (stack_pointer_rtx,
-                              hard_frame_pointer_rtx,
meta/recipes-devtools/gcc/gcc-4.8/0050-PR-target-58595.patch deleted +0 -132

132 lines not on this page · raw message

meta/recipes-devtools/gcc/gcc-4.8/0052-PR-rtl-optimization-61801.patch deleted +0 -36
deleted file mode 100644
index 300b204..0000000
@@ -1,36 +0,0 @@
-From 8dfe30973ab03f0480f1e249f320e78f210dc230 Mon Sep 17 00:00:00 2001
-From: rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
-Date: Thu, 17 Jul 2014 07:49:44 +0000
-Subject: [PATCH] 2014-07-17  Richard Biener  <[email protected]>
-
-	PR rtl-optimization/61801
-	* sched-deps.c (sched_analyze_2): For ASM_OPERANDS and
-	ASM_INPUT don't set reg_pending_barrier if it appears in a
-	debug-insn.
-
-
-git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_8-branch@212740 138bc75d-0d04-0410-961f-82ee72b054a4
-
-Upstream-Status: Backport [https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61801]
-Signed-off-by: Peter A. Bigot <[email protected]>
-
----
- gcc/sched-deps.c | 3 ++-
-
-diff --git a/gcc/sched-deps.c b/gcc/sched-deps.c
-index 07857f2..4ac2542 100644
---- a/gcc/sched-deps.c
-+++ b/gcc/sched-deps.c
-@@ -2744,7 +2744,8 @@ sched_analyze_2 (struct deps_desc *deps, rtx x, rtx insn)
- 	   Consider for instance a volatile asm that changes the fpu rounding
- 	   mode.  An insn should not be moved across this even if it only uses
- 	   pseudo-regs because it might give an incorrectly rounded result.  */
--	if (code != ASM_OPERANDS || MEM_VOLATILE_P (x))
-+	if ((code != ASM_OPERANDS || MEM_VOLATILE_P (x))
-+	    && !DEBUG_INSN_P (insn))
- 	  reg_pending_barrier = TRUE_BARRIER;
- 
- 	/* For all ASM_OPERANDS, we must traverse the vector of input operands.
--- 
-1.8.5.5
-
Signature · 1 line
2.1.4
author
#14 lore raw

PATCH 10/24 quota: Upgrade quota_4.01.bb -> quota_4.02.bb

In reply to Khem Raj
Change-Id Idea094dfe4b49eef58b90296c4cd2b3e239eeabb
---
 meta/recipes-extended/quota/{quota_4.01.bb => quota_4.02.bb} | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)
 rename meta/recipes-extended/quota/{quota_4.01.bb => quota_4.02.bb} (86%)
meta/recipes-extended/quota/quota_4.02.bb renamed from meta/recipes-extended/quota/quota_4.01.bb +2 -5
similarity index 86%
rename from meta/recipes-extended/quota/quota_4.01.bb
rename to meta/recipes-extended/quota/quota_4.02.bb
index 82f7899..020ed35 100644
@@ -6,13 +6,10 @@ LICENSE = "BSD & GPLv2+ & LGPLv2.1+"
 LIC_FILES_CHKSUM = "file://quota.c;beginline=1;endline=33;md5=331c7d77744bfe0ad24027f0651028ec \
                     file://rquota_server.c;beginline=1;endline=20;md5=fe7e0d7e11c6f820f8fa62a5af71230f \
                     file://svc_socket.c;beginline=1;endline=17;md5=24d5a8792da45910786eeac750be8ceb"
-PR = "r1"
-
 SRC_URI = "${SOURCEFORGE_MIRROR}/project/linuxquota/quota-tools/${PV}/quota-${PV}.tar.gz \
            file://config-tcpwrappers.patch"
-
-SRC_URI[md5sum] = "5c2c31e321d2e1322ce12d69ae5c66d6"
-SRC_URI[sha256sum] = "a36300bbc126b79b745bf937245092808b4585aa3309ef3335d4ab9d873cd206"
+SRC_URI[md5sum] = "a8a5df262261e659716ccad2a5d6df0d"
+SRC_URI[sha256sum] = "f4c2f48abf94bbdc396df33d276f2e9d19af58c232cb85eef9c174a747c33795"
 
 S = "${WORKDIR}/quota-tools"
 
Signature · 1 line
2.1.4
author
#15 lore raw

PATCH 11/24 util-linux: Upgrade to 2.26

In reply to Khem Raj

Drop backports

Change-Id I94d442edaf37ab8e685670f0e14ed60031a995fa
---
 .../util-linux/util-linux/CVE-2014-9114.patch      | 174 ---------------------
 .../{util-linux_2.25.2.bb => util-linux_2.26.1.bb} |  15 +-
 2 files changed, 7 insertions(+), 182 deletions(-)
 delete mode 100644 meta/recipes-core/util-linux/util-linux/CVE-2014-9114.patch
 rename meta/recipes-core/util-linux/{util-linux_2.25.2.bb => util-linux_2.26.1.bb} (66%)
meta/recipes-core/util-linux/util-linux/CVE-2014-9114.patch deleted +0 -174
deleted file mode 100644
index 5eaa08d..0000000
@@ -1,174 +0,0 @@
-Upstream-Status: Backport
-
-This patch is for CVE-2014-9114.
-This patch should be removed once util-linux is upgraded to 2.26.
-
-Signed-off-by: Chen Qi <[email protected]>
-
-From 89e90ae7b2826110ea28c1c0eb8e7c56c3907bdc Mon Sep 17 00:00:00 2001
-From: Karel Zak <[email protected]>
-Date: Thu, 27 Nov 2014 13:39:35 +0100
-Subject: [PATCH] libblkid: care about unsafe chars in cache
-
-The high-level libblkid API uses /run/blkid/blkid.tab cache to
-store probing results. The cache format is
-
-   <device NAME="value" ...>devname</device>
-
-and unfortunately the cache code does not escape quotation marks:
-
-   # mkfs.ext4 -L 'AAA"BBB'
-
-   # cat /run/blkid/blkid.tab
-   ...
-   <device ... LABEL="AAA"BBB" ...>/dev/sdb1</device>
-
-such string is later incorrectly parsed and blkid(8) returns
-nonsenses. And for use-cases like
-
-   # eval $(blkid -o export /dev/sdb1)
-
-it's also insecure.
-
-Note that mount, udevd and blkid -p are based on low-level libblkid
-API, it bypass the cache and directly read data from the devices.
-
-The current udevd upstream does not depend on blkid(8) output at all,
-it's directly linked with the library and all unsafe chars are encoded by
-\x<hex> notation.
-
-   # mkfs.ext4 -L 'X"`/tmp/foo` "' /dev/sdb1
-   # udevadm info --export-db | grep LABEL
-   ...
-   E: ID_FS_LABEL=X__/tmp/foo___
-   E: ID_FS_LABEL_ENC=X\x22\x60\x2ftmp\x2ffoo\x60\x20\x22
-
-Signed-off-by: Karel Zak <[email protected]>
----
- libblkid/src/read.c | 21 ++++++++++++++++++---
- libblkid/src/save.c | 22 +++++++++++++++++++++-
- misc-utils/blkid.8  |  5 ++++-
- misc-utils/blkid.c  |  4 ++--
- 4 files changed, 45 insertions(+), 7 deletions(-)
-
-diff --git a/libblkid/src/read.c b/libblkid/src/read.c
-index 0e91c9c..81ab0df 100644
---- a/libblkid/src/read.c
-+++ b/libblkid/src/read.c
-@@ -252,15 +252,30 @@ static int parse_token(char **name, char **value, char **cp)
- 	*value = skip_over_blank(*value + 1);
- 
- 	if (**value == '"') {
--		end = strchr(*value + 1, '"');
--		if (!end) {
-+		char *p = end = *value + 1;
-+
-+		/* convert 'foo\"bar'  to 'foo"bar' */
-+		while (*p) {
-+			if (*p == '\\') {
-+				p++;
-+				*end = *p;
-+			} else {
-+				*end = *p;
-+				if (*p == '"')
-+					break;
-+			}
-+			p++;
-+			end++;
-+		}
-+
-+		if (*end != '"') {
- 			DBG(READ, ul_debug("unbalanced quotes at: %s", *value));
- 			*cp = *value;
- 			return -BLKID_ERR_CACHE;
- 		}
- 		(*value)++;
- 		*end = '\0';
--		end++;
-+		end = ++p;
- 	} else {
- 		end = skip_over_word(*value);
- 		if (*end) {
-diff --git a/libblkid/src/save.c b/libblkid/src/save.c
-index 8216f09..5e8bbee 100644
---- a/libblkid/src/save.c
-+++ b/libblkid/src/save.c
-@@ -26,6 +26,21 @@
- 
- #include "blkidP.h"
- 
-+
-+static void save_quoted(const char *data, FILE *file)
-+{
-+	const char *p;
-+
-+	fputc('"', file);
-+	for (p = data; p && *p; p++) {
-+		if ((unsigned char) *p == 0x22 ||		/* " */
-+		    (unsigned char) *p == 0x5c)			/* \ */
-+			fputc('\\', file);
-+
-+		fputc(*p, file);
-+	}
-+	fputc('"', file);
-+}
- static int save_dev(blkid_dev dev, FILE *file)
- {
- 	struct list_head *p;
-@@ -43,9 +58,14 @@ static int save_dev(blkid_dev dev, FILE *file)
- 
- 	if (dev->bid_pri)
- 		fprintf(file, " PRI=\"%d\"", dev->bid_pri);
-+
- 	list_for_each(p, &dev->bid_tags) {
- 		blkid_tag tag = list_entry(p, struct blkid_struct_tag, bit_tags);
--		fprintf(file, " %s=\"%s\"", tag->bit_name,tag->bit_val);
-+
-+		fputc(' ', file);			/* space between tags */
-+		fputs(tag->bit_name, file);		/* tag NAME */
-+		fputc('=', file);			/* separator between NAME and VALUE */
-+		save_quoted(tag->bit_val, file);	/* tag "VALUE" */
- 	}
- 	fprintf(file, ">%s</device>\n", dev->bid_name);
- 
-diff --git a/misc-utils/blkid.8 b/misc-utils/blkid.8
-index 156a14b..c95b833 100644
---- a/misc-utils/blkid.8
-+++ b/misc-utils/blkid.8
-@@ -200,7 +200,10 @@ partitions.  This output format is \fBDEPRECATED\fR.
- .TP
- .B export
- print key=value pairs for easy import into the environment; this output format
--is automatically enabled when I/O Limits (\fB-i\fR option) are requested
-+is automatically enabled when I/O Limits (\fB-i\fR option) are requested.
-+
-+The non-printing characters are encoded by ^ and M- notation and all
-+potentially unsafe characters are escaped.
- .RE
- .TP
- .BI \-O " offset"
-diff --git a/misc-utils/blkid.c b/misc-utils/blkid.c
-index a6ca660..1bd8646 100644
---- a/misc-utils/blkid.c
-+++ b/misc-utils/blkid.c
-@@ -306,7 +306,7 @@ static void print_value(int output, int num, const char *devname,
- 			printf("DEVNAME=%s\n", devname);
- 		fputs(name, stdout);
- 		fputs("=", stdout);
--		safe_print(value, valsz, NULL);
-+		safe_print(value, valsz, " \\\"'$`<>");
- 		fputs("\n", stdout);
- 
- 	} else {
-@@ -315,7 +315,7 @@ static void print_value(int output, int num, const char *devname,
- 		fputs(" ", stdout);
- 		fputs(name, stdout);
- 		fputs("=\"", stdout);
--		safe_print(value, valsz, "\"");
-+		safe_print(value, valsz, "\"\\");
- 		fputs("\"", stdout);
- 	}
- }
--- 
-1.9.1
-
meta/recipes-core/util-linux/util-linux_2.26.1.bb renamed from meta/recipes-core/util-linux/util-linux_2.25.2.bb +7 -8
similarity index 66%
rename from meta/recipes-core/util-linux/util-linux_2.25.2.bb
rename to meta/recipes-core/util-linux/util-linux_2.26.1.bb
index 0ff1e7c..58bc90d 100644
@@ -1,6 +1,5 @@
-MAJOR_VERSION = "2.25"
+MAJOR_VERSION = "2.26"
 require util-linux.inc
-PR = "r1"
 
 # To support older hosts, we need to patch and/or revert
 # some upstream changes.  Only do this for native packages.
@@ -14,18 +13,18 @@ SRC_URI += "file://util-linux-ng-replace-siginterrupt.patch \
             file://uclibc-__progname-conflict.patch \
             file://configure-sbindir.patch \
             file://fix-parallel-build.patch \
-            file://CVE-2014-9114.patch \
             ${OLDHOST} \
 "
-
-SRC_URI[md5sum] = "cab3d7be354000f629bc601238b629b3"
-SRC_URI[sha256sum] = "e0457f715b73f4a349e1acb08cb410bf0edc9a74a3f75c357070f31f70e33cd6"
+SRC_URI[md5sum] = "2308850946766677f3fabe0685e85de8"
+SRC_URI[sha256sum] = "22dc1c957262e2cbdfb4d524a63d5cd4f219d3ac9b5eab570fc771076799bb6e"
 
 CACHED_CONFIGUREVARS += "scanf_cv_alloc_modifier=ms"
 
 EXTRA_OECONF_class-native = "${SHARED_EXTRA_OECONF} \
-                             --disable-fallocate --disable-use-tty-group \
+                             --disable-fallocate \
+			     --disable-use-tty-group \
 "
 EXTRA_OECONF_class-nativesdk = "${SHARED_EXTRA_OECONF} \
-                                --disable-fallocate --disable-use-tty-group \
+                                --disable-fallocate \
+				--disable-use-tty-group \
 "
Signature · 1 line
2.1.4
author
#16 lore raw

PATCH 12/24 libusb-compat: Include sys/types.h in usb.h

In reply to Khem Raj

Fixes compile errors when usb.h is included in
other packages, it expects sys/types.h to be
there, instead it should include it itself

Change-Id Ib49477b7d3f3cd97d65c9578bdc33f2ee33f5a26
---
 .../0001-usb.h-Include-sys-types.h.patch           | 30 ++++++++++++++++++++++
 meta/recipes-support/libusb/libusb-compat_0.1.5.bb |  4 ++-
 2 files changed, 33 insertions(+), 1 deletion(-)
 create mode 100644 meta/recipes-support/libusb/libusb-compat/0001-usb.h-Include-sys-types.h.patch
meta/recipes-support/libusb/libusb-compat/0001-usb.h-Include-sys-types.h.patch new file +30 -0
new file mode 100644
index 0000000..b88440d
@@ -0,0 +1,30 @@
+From 340f911f9e3f4ff6b01682c5341c959060782af2 Mon Sep 17 00:00:00 2001
+From: Khem Raj <[email protected]>
+Date: Thu, 2 Apr 2015 19:18:45 -0700
+Subject: [PATCH] usb.h: Include sys/types.h
+
+We need the definitions for things like u_intX_t
+
+Upstream-Status: Pending
+
+Signed-off-by: Khem Raj <[email protected]>
+---
+ libusb/usb.h | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/libusb/usb.h b/libusb/usb.h
+index 84e730f..caffae2 100644
+--- a/libusb/usb.h
++++ b/libusb/usb.h
+@@ -31,6 +31,8 @@
+ 
+ #include <dirent.h>
+ 
++#include <sys/types.h>
++
+ /*
+  * USB spec information
+  *
+-- 
+2.1.4
+
meta/recipes-support/libusb/libusb-compat_0.1.5.bb +3 -1
index 74761d6..646872c 100644
@@ -18,7 +18,9 @@ BBCLASSEXTEND = "native nativesdk"
 
 PE = "1"
 
-SRC_URI = "${SOURCEFORGE_MIRROR}/libusb/libusb-compat-${PV}.tar.bz2"
+SRC_URI = "${SOURCEFORGE_MIRROR}/libusb/libusb-compat-${PV}.tar.bz2 \
+           file://0001-usb.h-Include-sys-types.h.patch \
+          "
 
 SRC_URI[md5sum] = "2780b6a758a1e2c2943bdbf7faf740e4"
 SRC_URI[sha256sum] = "404ef4b6b324be79ac1bfb3d839eac860fbc929e6acb1ef88793a6ea328bc55a"
Signature · 1 line
2.1.4
author
#17 lore raw

PATCH 13/24 libdaemon: Explicitly include unisttd.h instead of sys/unistd.h

In reply to Khem Raj

Fixes build errors on musl

Change-Id Ia00bdc9c0578c8d5e1249c9d433079d795e83cb2
---
 .../libdaemon/libdaemon/fix-includes.patch           | 20 ++++++++++++++++++++
 meta/recipes-support/libdaemon/libdaemon_0.14.bb     |  4 +++-
 2 files changed, 23 insertions(+), 1 deletion(-)
 create mode 100644 meta/recipes-support/libdaemon/libdaemon/fix-includes.patch
meta/recipes-support/libdaemon/libdaemon/fix-includes.patch new file +20 -0
new file mode 100644
index 0000000..1027ae8
@@ -0,0 +1,20 @@
+musl complains
+fatal error: sys/unistd.h: No such file or directory
+and rightly so
+
+Signed-off-by: Khem Raj <[email protected]>
+Upstream-Status: Pending
+
+--- libdaemon-0.14.orig/examples/testd.c
++++ libdaemon-0.14/examples/testd.c
+@@ -21,9 +21,9 @@
+ #include <signal.h>
+ #include <errno.h>
+ #include <string.h>
++#include <unistd.h>
+ #include <sys/types.h>
+ #include <sys/time.h>
+-#include <sys/unistd.h>
+ #include <sys/select.h>
+ 
+ #include <libdaemon/dfork.h>
meta/recipes-support/libdaemon/libdaemon_0.14.bb +3 -1
index e928781..070ee18 100644
@@ -6,7 +6,9 @@ LICENSE = "LGPLv2.1+"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=2d5025d4aa3495befef8f17206a5b0a1 \
                     file://libdaemon/daemon.h;beginline=9;endline=21;md5=bd9fbe57cd96d1a5848a8ba12d9a6bf4"
 
-SRC_URI = "http://0pointer.de/lennart/projects/libdaemon/libdaemon-${PV}.tar.gz"
+SRC_URI = "http://0pointer.de/lennart/projects/libdaemon/libdaemon-${PV}.tar.gz \
+           file://fix-includes.patch \
+          "
 
 SRC_URI[md5sum] = "509dc27107c21bcd9fbf2f95f5669563"
 SRC_URI[sha256sum] = "fd23eb5f6f986dcc7e708307355ba3289abe03cc381fc47a80bca4a50aa6b834"
Signature · 1 line
2.1.4
author
#18 lore raw

PATCH 14/24 common-licenses: Add BSD-0-Clause

In reply to Khem Raj

Some packages like toybox use it

Change-Id I2ae4fd024e310bce644581e4c63ed2980ee1998f
---
 meta/files/common-licenses/BSD-0-Clause | 12 ++++++++++++
 1 file changed, 12 insertions(+)
 create mode 100644 meta/files/common-licenses/BSD-0-Clause
meta/files/common-licenses/BSD-0-Clause new file +12 -0
new file mode 100644
index 0000000..328bdd6
@@ -0,0 +1,12 @@
+Copyright (C) <YEAR> by <OWNER>
+
+Permission to use, copy, modify, and/or distribute this software for any
+purpose with or without fee is hereby granted.
+
+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
Signature · 1 line
2.1.4
author
#19 lore raw

PATCH 15/24 libffi: Use proper compiler define for linux platform

In reply to Khem Raj
Change-Id I8253249a2e1c5e9ded0d028545f21cfdc093c3cd
---
 ...ps-Use-compiler-internal-define-for-linux.patch | 32 ++++++++++++++++++++++
 meta/recipes-gnome/libffi/libffi_3.2.1.bb          |  4 ++-
 2 files changed, 35 insertions(+), 1 deletion(-)
 create mode 100644 meta/recipes-gnome/libffi/libffi/0001-mips-Use-compiler-internal-define-for-linux.patch
meta/recipes-gnome/libffi/libffi/0001-mips-Use-compiler-internal-define-for-linux.patch new file +32 -0
new file mode 100644
index 0000000..db96e63
@@ -0,0 +1,32 @@
+From a5efaa96fd934eb245c234a5275fcf62698ef986 Mon Sep 17 00:00:00 2001
+From: Khem Raj <[email protected]>
+Date: Thu, 2 Apr 2015 21:38:03 -0700
+Subject: [PATCH] mips: Use compiler internal define for linux
+
+__linux__ is defined by compiler when building for
+linux platforms, lets use it
+
+
+Upstream-Status: Pending
+
+Signed-off-by: Khem Raj <[email protected]>
+---
+ src/mips/ffitarget.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/mips/ffitarget.h b/src/mips/ffitarget.h
+index 717d659..6faa358 100644
+--- a/src/mips/ffitarget.h
++++ b/src/mips/ffitarget.h
+@@ -32,7 +32,7 @@
+ #error "Please do not include ffitarget.h directly into your source.  Use ffi.h instead."
+ #endif
+ 
+-#ifdef linux
++#ifdef __linux__
+ # include <asm/sgidefs.h>
+ #elif defined(__rtems__)
+ /*
+-- 
+2.1.4
+
meta/recipes-gnome/libffi/libffi_3.2.1.bb +3 -1
index 2302810..fd916ca 100644
@@ -10,7 +10,9 @@ LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=3610bb17683a0089ed64055416b2ae1b"
 
 SRC_URI = "ftp://sourceware.org/pub/libffi/${BP}.tar.gz \
-           file://fix-libffi.la-location.patch"
+           file://fix-libffi.la-location.patch \
+	   file://0001-mips-Use-compiler-internal-define-for-linux.patch \
+	   "
 
 SRC_URI[md5sum] = "83b89587607e3eb65c70d361f13bab43"
 SRC_URI[sha256sum] = "d06ebb8e1d9a22d19e38d63fdb83954253f39bedc5d46232a05645685722ca37"
Signature · 1 line
2.1.4
author
#20 lore raw

PATCH 16/24 quota: Fix build with musl

In reply to Khem Raj

add more packageconfigs so we can disable
certain features on demand

Add patches to make it more portable
by making posix compliant and libc agnostic code

Change-Id Ifa1c7f7923322fd22368538310685cd5c440516d
---
 meta/recipes-extended/quota/quota/fcntl.patch      | 113 +++++++++++++
 .../quota/quota/remove_non_posix_types.patch       | 185 +++++++++++++++++++++
 .../quota/quota/replace_getrpcbynumber_r.patch     |  20 +++
 meta/recipes-extended/quota/quota_4.02.bb          |  17 +-
 4 files changed, 333 insertions(+), 2 deletions(-)
 create mode 100644 meta/recipes-extended/quota/quota/fcntl.patch
 create mode 100644 meta/recipes-extended/quota/quota/remove_non_posix_types.patch
 create mode 100644 meta/recipes-extended/quota/quota/replace_getrpcbynumber_r.patch
meta/recipes-extended/quota/quota/fcntl.patch new file +113 -0
new file mode 100644
index 0000000..27e60fd
@@ -0,0 +1,113 @@
+Include fcntl.h to pacify compiler errors on musl
+like
+
+error: unknown type name 'loff_t'
+Cover rpc headers under proper conditional
+Dont use __P its undefined
+
+Upstream-Status: Pending
+
+Signed-off-by: Khem Raj <[email protected]>
+
+ndex: quota-tools/quota.h
+===================================================================
+Index: quota-tools/quota.h
+===================================================================
+--- quota-tools.orig/quota.h
++++ quota-tools/quota.h
+@@ -165,6 +165,6 @@ enum {
+ 	#endif
+ #endif
+ 
+-long quotactl __P((int, const char *, qid_t, caddr_t));
++long quotactl (int, const char *, qid_t, caddr_t);
+ 
+ #endif /* _QUOTA_ */
+Index: quota-tools/quotacheck.c
+===================================================================
+--- quota-tools.orig/quotacheck.c
++++ quota-tools/quotacheck.c
+@@ -19,6 +19,7 @@
+ #include <unistd.h>
+ #include <stdlib.h>
+ #include <errno.h>
++#include <fcntl.h>
+ 
+ #include <sys/stat.h>
+ #include <sys/types.h>
+Index: quota-tools/quotaio.c
+===================================================================
+--- quota-tools.orig/quotaio.c
++++ quota-tools/quotaio.c
+@@ -12,6 +12,7 @@
+ #include <string.h>
+ #include <unistd.h>
+ #include <stdlib.h>
++#include <fcntl.h>
+ #include <sys/types.h>
+ #include <sys/stat.h>
+ #include <sys/file.h>
+Index: quota-tools/dqblk_v2.h
+===================================================================
+--- quota-tools.orig/dqblk_v2.h
++++ quota-tools/dqblk_v2.h
+@@ -7,6 +7,7 @@
+ #ifndef GUARD_DQBLK_V2_H
+ #define GUARD_DQBLK_V2_H
+ 
++#include <fcntl.h>
+ #include <sys/types.h>
+ #include "quota_tree.h"
+ 
+Index: quota-tools/quotaops.c
+===================================================================
+--- quota-tools.orig/quotaops.c
++++ quota-tools/quotaops.c
+@@ -34,7 +34,9 @@
+ 
+ #include "config.h"
+ 
++#if defined(RPC)
+ #include <rpc/rpc.h>
++#endif
+ #include <sys/types.h>
+ #include <sys/stat.h>
+ #include <sys/file.h>
+Index: quota-tools/rquota_client.c
+===================================================================
+--- quota-tools.orig/rquota_client.c
++++ quota-tools/rquota_client.c
+@@ -19,7 +19,9 @@
+ 
+ #include "config.h"
+ 
++#if defined(RPC)
+ #include <rpc/rpc.h>
++#endif
+ #include <sys/types.h>
+ #include <sys/param.h>
+ #include <sys/stat.h>
+@@ -35,7 +37,9 @@
+ #include <stdint.h>
+ 
+ #include "mntopt.h"
++#if defined(RPC)
+ #include "rquota.h"
++#endif
+ #include "common.h"
+ #include "quotaio.h"
+ #include "quotasys.h"
+Index: quota-tools/setquota.c
+===================================================================
+--- quota-tools.orig/setquota.c
++++ quota-tools/setquota.c
+@@ -7,7 +7,9 @@
+ 
+ #include "config.h"
+ 
++#if defined(RPC)
+ #include <rpc/rpc.h>
++#endif
+ #include <sys/types.h>
+ #include <errno.h>
+ #include <stdio.h>
meta/recipes-extended/quota/quota/remove_non_posix_types.patch new file +185 -0

185 lines not on this page · raw message

meta/recipes-extended/quota/quota/replace_getrpcbynumber_r.patch new file +20 -0
new file mode 100644
index 0000000..9ca2ffc
@@ -0,0 +1,20 @@
+Replace getrpcbynumber_r with getrpcbynumber
+musl and uclibc dont implement it
+
+Upstream-Status: Pending
+
+Signed-off-by: Khem Raj <[email protected]>
+Index: quota-tools/svc_socket.c
+===================================================================
+--- quota-tools.orig/svc_socket.c
++++ quota-tools/svc_socket.c
+@@ -55,7 +55,8 @@ static int svc_socket (u_long number, in
+ 	addr.sin_family = AF_INET;
+ 
+ 	if (!port) {
+-		ret = getrpcbynumber_r(number, &rpcbuf, rpcdata, sizeof(rpcdata), &rpcp);
++		rpcp = getrpcbynumber(number);
++		ret = 0;
+ 		if (ret == 0 && rpcp != NULL) {
+ 			/* First try name */
+ 			ret = getservbyname_r(rpcp->r_name, proto, &servbuf, servdata,
meta/recipes-extended/quota/quota_4.02.bb +15 -2
index 020ed35..96ff4b5 100644
@@ -6,8 +6,14 @@ LICENSE = "BSD & GPLv2+ & LGPLv2.1+"
 LIC_FILES_CHKSUM = "file://quota.c;beginline=1;endline=33;md5=331c7d77744bfe0ad24027f0651028ec \
                     file://rquota_server.c;beginline=1;endline=20;md5=fe7e0d7e11c6f820f8fa62a5af71230f \
                     file://svc_socket.c;beginline=1;endline=17;md5=24d5a8792da45910786eeac750be8ceb"
+
 SRC_URI = "${SOURCEFORGE_MIRROR}/project/linuxquota/quota-tools/${PV}/quota-${PV}.tar.gz \
-           file://config-tcpwrappers.patch"
+           file://config-tcpwrappers.patch \
+           file://fcntl.patch \
+           file://remove_non_posix_types.patch \
+	   "
+SRC_URI_append_libc-musl = " file://replace_getrpcbynumber_r.patch"
+
 SRC_URI[md5sum] = "a8a5df262261e659716ccad2a5d6df0d"
 SRC_URI[sha256sum] = "f4c2f48abf94bbdc396df33d276f2e9d19af58c232cb85eef9c174a747c33795"
 
@@ -17,10 +23,17 @@ DEPENDS = "gettext-native e2fsprogs"
 
 inherit autotools-brokensep gettext pkgconfig
 
+CFLAGS += "-I=${includedir}/tirpc"
+LDFLAGS += "-ltirpc"
+ASNEEDED = ""
 EXTRA_OEMAKE += 'STRIP=""'
 
-PACKAGECONFIG ??= "tcp-wrappers"
+PACKAGECONFIG ??= "tcp-wrappers rpc bsd"
+PACKAGECONFIG_libc-musl = "tcp-wrappers rpc"
+
 PACKAGECONFIG[tcp-wrappers] = "--with-tcpwrappers,--without-tcpwrappers,tcp-wrappers"
+PACKAGECONFIG[rpc] = "--enable-rpc=yes,--enable-rpc=no,libtirpc"
+PACKAGECONFIG[bsd] = "--enable-bsd_behaviour=yes,--enable-bsd_behaviour=no,"
 
 do_install() {
 	oe_runmake prefix=${D}${prefix} install
Signature · 1 line
2.1.4
author
#21 lore raw

PATCH 17/24 bluez4: Fix encrypt symbol namespace collision

In reply to Khem Raj
| Makefile:3352: recipe for target 'test/l2test.o' failed
| make[1]: *** [test/l2test.o] Error 1
| make[1]: *** Waiting for unfinished jobs....
| test/rctest.c:82:12: error: 'encrypt' redeclared as different kind of
symbol
|  static int encrypt = 0;
|             ^
| In file included from test/rctest.c:33:0:
Change-Id Iaf2f644ef3cef6f96c6e4bc421c9e78a0e23e674
---
 .../bluez/bluez4-4.101/fix_encrypt_collision.patch | 110 +++++++++++++++++++++
 meta/recipes-connectivity/bluez/bluez4_4.101.bb    |   1 +
 2 files changed, 111 insertions(+)
 create mode 100644 meta/recipes-connectivity/bluez/bluez4-4.101/fix_encrypt_collision.patch
meta/recipes-connectivity/bluez/bluez4-4.101/fix_encrypt_collision.patch new file +110 -0
new file mode 100644
index 0000000..1bc390f
@@ -0,0 +1,110 @@
+Avoid namepspace collision with encrypt function from libc
+
+Upstream-Status: Pending
+
+Signed-off-by: Khem Raj <[email protected]>
+Index: bluez-4.101/test/l2test.c
+===================================================================
+--- bluez-4.101.orig/test/l2test.c
++++ bluez-4.101/test/l2test.c
+@@ -107,7 +107,7 @@ static char *filename = NULL;
+ static int rfcmode = 0;
+ static int master = 0;
+ static int auth = 0;
+-static int encrypt = 0;
++static int encryption_request = 0;
+ static int secure = 0;
+ static int socktype = SOCK_SEQPACKET;
+ static int linger = 0;
+@@ -340,7 +340,7 @@ static int do_connect(char *svr)
+ 		opt |= L2CAP_LM_MASTER;
+ 	if (auth)
+ 		opt |= L2CAP_LM_AUTH;
+-	if (encrypt)
++	if (encryption_request)
+ 		opt |= L2CAP_LM_ENCRYPT;
+ 	if (secure)
+ 		opt |= L2CAP_LM_SECURE;
+@@ -475,7 +475,7 @@ static void do_listen(void (*handler)(in
+ 		opt |= L2CAP_LM_MASTER;
+ 	if (auth)
+ 		opt |= L2CAP_LM_AUTH;
+-	if (encrypt)
++	if (encryption_request)
+ 		opt |= L2CAP_LM_ENCRYPT;
+ 	if (secure)
+ 		opt |= L2CAP_LM_SECURE;
+@@ -1407,7 +1407,7 @@ int main(int argc, char *argv[])
+ 			break;
+ 
+ 		case 'E':
+-			encrypt = 1;
++			encryption_request = 1;
+ 			break;
+ 
+ 		case 'S':
+Index: bluez-4.101/test/rctest.c
+===================================================================
+--- bluez-4.101.orig/test/rctest.c
++++ bluez-4.101/test/rctest.c
+@@ -79,7 +79,7 @@ static char *filename = NULL;
+ 
+ static int master = 0;
+ static int auth = 0;
+-static int encrypt = 0;
++static int encryption_request = 0;
+ static int secure = 0;
+ static int socktype = SOCK_STREAM;
+ static int linger = 0;
+@@ -200,7 +200,7 @@ static int do_connect(const char *svr)
+ 		opt |= RFCOMM_LM_MASTER;
+ 	if (auth)
+ 		opt |= RFCOMM_LM_AUTH;
+-	if (encrypt)
++	if (encryption_request)
+ 		opt |= RFCOMM_LM_ENCRYPT;
+ 	if (secure)
+ 		opt |= RFCOMM_LM_SECURE;
+@@ -291,7 +291,7 @@ static void do_listen(void (*handler)(in
+ 		opt |= RFCOMM_LM_MASTER;
+ 	if (auth)
+ 		opt |= RFCOMM_LM_AUTH;
+-	if (encrypt)
++	if (encryption_request)
+ 		opt |= RFCOMM_LM_ENCRYPT;
+ 	if (secure)
+ 		opt |= RFCOMM_LM_SECURE;
+@@ -701,7 +701,7 @@ int main(int argc, char *argv[])
+ 			break;
+ 
+ 		case 'E':
+-			encrypt = 1;
++			encryption_request = 1;
+ 			break;
+ 
+ 		case 'S':
+Index: bluez-4.101/src/textfile.h
+===================================================================
+--- bluez-4.101.orig/src/textfile.h
++++ bluez-4.101/src/textfile.h
+@@ -24,6 +24,8 @@
+ #ifndef __TEXTFILE_H
+ #define __TEXTFILE_H
+ 
++#include <sys/types.h>
++
+ int create_dirs(const char *filename, const mode_t mode);
+ int create_file(const char *filename, const mode_t mode);
+ int create_name(char *buf, size_t size, const char *path,
+Index: bluez-4.101/test/attest.c
+===================================================================
+--- bluez-4.101.orig/test/attest.c
++++ bluez-4.101/test/attest.c
+@@ -34,6 +34,7 @@
+ #include <termios.h>
+ #include <sys/ioctl.h>
+ #include <sys/socket.h>
++#include <sys/select.h>
+ 
+ #include <bluetooth/bluetooth.h>
+ #include <bluetooth/rfcomm.h>
meta/recipes-connectivity/bluez/bluez4_4.101.bb +1 -0
index 28a94ed..f900c7c 100644
@@ -9,6 +9,7 @@ SRC_URI += "file://bluetooth.conf \
             file://network-fix-network-Connect-method-parameters.patch \
             file://install-test-script.patch \
             file://use-legacy-pygobject-instead-ofgobject-introspection.patch \
+            file://fix_encrypt_collision.patch \
 "
 
 SRC_URI[md5sum] = "fb42cb7038c380eb0e2fa208987c96ad"
Signature · 1 line
2.1.4
author
#22 lore raw

PATCH 18/24 mesa: Fix building with musl

In reply to Khem Raj

backport needed patches
add a patch to use _NP macros only on glibc
based linux and not on all linux

Change-Id Ib43bec9d222856f8e7acb9f0143b406517f049c8
---
 ...D_MUTEX_RECURSIVE_NP-is-specific-to-glibc.patch | 29 ++++++++++++
 ...002-mesa-simplify-detection-of-fpclassify.patch | 53 ++++++++++++++++++++++
 meta/recipes-graphics/mesa/mesa_10.4.4.bb          |  5 +-
 3 files changed, 86 insertions(+), 1 deletion(-)
 create mode 100644 meta/recipes-graphics/mesa/mesa/0001-PTHREAD_MUTEX_RECURSIVE_NP-is-specific-to-glibc.patch
 create mode 100644 meta/recipes-graphics/mesa/mesa/0002-mesa-simplify-detection-of-fpclassify.patch
meta/recipes-graphics/mesa/mesa/0001-PTHREAD_MUTEX_RECURSIVE_NP-is-specific-to-glibc.patch new file +29 -0
new file mode 100644
index 0000000..52443d8
@@ -0,0 +1,29 @@
+From 46cdd464efbada13478f5e39a50aef85599ff91b Mon Sep 17 00:00:00 2001
+From: Khem Raj <[email protected]>
+Date: Sat, 4 Apr 2015 15:50:53 -0700
+Subject: [PATCH 1/2] PTHREAD_MUTEX_RECURSIVE_NP is specific to glibc
+
+use glibc guard around it
+
+Signed-off-by: Khem Raj <[email protected]>
+Upstream-Status: Pending
+---
+ include/c11/threads_posix.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/include/c11/threads_posix.h b/include/c11/threads_posix.h
+index f9c165d..c641de4 100644
+--- a/include/c11/threads_posix.h
++++ b/include/c11/threads_posix.h
+@@ -178,7 +178,7 @@ mtx_init(mtx_t *mtx, int type)
+         return thrd_error;
+     pthread_mutexattr_init(&attr);
+     if ((type & mtx_recursive) != 0) {
+-#if defined(__linux__) || defined(__linux)
++#if defined __GLIBC__ && (defined(__linux__) || defined(__linux))
+         pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
+ #else
+         pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
+-- 
+2.1.4
+
meta/recipes-graphics/mesa/mesa/0002-mesa-simplify-detection-of-fpclassify.patch new file +53 -0

53 lines not on this page · raw message

meta/recipes-graphics/mesa/mesa_10.4.4.bb +4 -1
index 8140411..8472408 100644
@@ -1,6 +1,9 @@
 require ${BPN}.inc
 
-SRC_URI = "ftp://ftp.freedesktop.org/pub/mesa/${PV}/MesaLib-${PV}.tar.bz2"
+SRC_URI = "ftp://ftp.freedesktop.org/pub/mesa/${PV}/MesaLib-${PV}.tar.bz2 \
+           file://0001-PTHREAD_MUTEX_RECURSIVE_NP-is-specific-to-glibc.patch \
+	   file://0002-mesa-simplify-detection-of-fpclassify.patch \
+          "
 
 SRC_URI[md5sum] = "62faf98ac79c5587f8e917e187419e6c"
 SRC_URI[sha256sum] = "f18a967e9c4d80e054b2fdff8c130ce6e6d1f8eecfc42c9f354f8628d8b4df1c"
Signature · 1 line
2.1.4
author
#23 lore raw

PATCH 19/24 at-spi2-core: Add nls.m4 from gettext

In reply to Khem Raj

This is needed for building it with musl, since
we disable NLS, I think it will fails in same
way with glibc if NLS was disabled there too

Change-Id I95c6858adfb33361cab466999e0bacb47c1e1fde
---
 .../0001-nls.m4-Take-it-from-gettext-0.15.patch    | 54 ++++++++++++++++++++++
 meta/recipes-support/atk/at-spi2-core_2.14.1.bb    |  4 +-
 2 files changed, 57 insertions(+), 1 deletion(-)
 create mode 100644 meta/recipes-support/atk/at-spi2-core/0001-nls.m4-Take-it-from-gettext-0.15.patch
meta/recipes-support/atk/at-spi2-core/0001-nls.m4-Take-it-from-gettext-0.15.patch new file +54 -0
new file mode 100644
index 0000000..69a51d5
@@ -0,0 +1,54 @@
+From c320799c941d42a9b7e351805359694ea3b36d2d Mon Sep 17 00:00:00 2001
+From: Khem Raj <[email protected]>
+Date: Sun, 5 Apr 2015 09:08:38 -0700
+Subject: [PATCH] nls.m4: Take it from gettext-0.15
+
+It otherwise expects gettext to provide it. Lets go independent
+
+Signed-off-by: Khem Raj <[email protected]>
+
+Upstream-Status: Pending
+---
+ m4/nls.m4 | 30 ++++++++++++++++++++++++++++++
+ 1 file changed, 30 insertions(+)
+ create mode 100644 m4/nls.m4
+
+diff --git a/m4/nls.m4 b/m4/nls.m4
+new file mode 100644
+index 0000000..2c8fe69
+--- /dev/null
++++ b/m4/nls.m4
+@@ -0,0 +1,30 @@
++dnl Copyright (C) 1995-2003, 2005-2006 Free Software Foundation, Inc.
++dnl This file is free software; the Free Software Foundation
++dnl gives unlimited permission to copy and/or distribute it,
++dnl with or without modifications, as long as this notice is preserved.
++dnl
++dnl This file can can be used in projects which are not available under
++dnl the GNU General Public License or the GNU Library General Public
++dnl License but which still want to provide support for the GNU gettext
++dnl functionality.
++dnl Please note that the actual code of the GNU gettext library is covered
++dnl by the GNU Library General Public License, and the rest of the GNU
++dnl gettext package package is covered by the GNU General Public License.
++dnl They are not in the public domain.
++
++dnl Authors:
++dnl Ulrich Drepper [email protected], 1995-2000.
++dnl Bruno Haible [email protected], 2000-2003.
++
++AC_PREREQ(2.50)
++
++AC_DEFUN([AM_NLS],
++[
++AC_MSG_CHECKING([whether NLS is requested])
++dnl Default is enabled NLS
++AC_ARG_ENABLE(nls,
++[ --disable-nls do not use Native Language Support],
++USE_NLS=$enableval, USE_NLS=yes)
++AC_MSG_RESULT($USE_NLS)
++AC_SUBST(USE_NLS)
++])
+-- 
+2.1.4
+
meta/recipes-support/atk/at-spi2-core_2.14.1.bb +3 -1
index 1a1ce6c..a4d2b3a 100644
@@ -4,7 +4,9 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=e9f288ba982d60518f375b5898283886"
 
 MAJ_VER = "${@oe.utils.trim_version("${PV}", 2)}"
 
-SRC_URI = "${GNOME_MIRROR}/${BPN}/${MAJ_VER}/${BPN}-${PV}.tar.xz"
+SRC_URI = "${GNOME_MIRROR}/${BPN}/${MAJ_VER}/${BPN}-${PV}.tar.xz \
+           file://0001-nls.m4-Take-it-from-gettext-0.15.patch \
+          "
 
 SRC_URI[md5sum] = "a37993cc50d90465c9aeed95e2ac439a"
 SRC_URI[sha256sum] = "eef9660b14fdf0fb1f30d1be7c72d591fa7cbb87b00ca3a444425712f46ce657"
Signature · 1 line
2.1.4
author
#24 lore raw

PATCH 20/24 ofono: Disable backtrace for non-glibc libraries

In reply to Khem Raj

It uses glibc backtrace() API which is not implemented everywhere e.g. musl

Change-Id I96380b994c27968542dba6dae220adfecaeda556
---
 ...cktrace-Disable-for-non-glibc-C-libraries.patch | 40 ++++++++++++++++++++++
 meta/recipes-connectivity/ofono/ofono_1.16.bb      |  1 +
 2 files changed, 41 insertions(+)
 create mode 100644 meta/recipes-connectivity/ofono/ofono/0001-backtrace-Disable-for-non-glibc-C-libraries.patch
meta/recipes-connectivity/ofono/ofono/0001-backtrace-Disable-for-non-glibc-C-libraries.patch new file +40 -0
new file mode 100644
index 0000000..306b6da
@@ -0,0 +1,40 @@
+From 2d729af0897d7d72b83d111876febf9e0eec1a68 Mon Sep 17 00:00:00 2001
+From: Khem Raj <[email protected]>
+Date: Fri, 3 Apr 2015 20:50:56 -0700
+Subject: [PATCH] backtrace: Disable for non-glibc C libraries
+
+Signed-off-by: Khem Raj <[email protected]>
+Upstream-Status: Pending
+
+---
+ src/log.c | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+diff --git a/src/log.c b/src/log.c
+index febc874..9db4ae7 100644
+--- a/src/log.c
++++ b/src/log.c
+@@ -30,7 +30,9 @@
+ #include <stdlib.h>
+ #include <string.h>
+ #include <syslog.h>
++#ifdef __GLIBC__
+ #include <execinfo.h>
++#endif
+ #include <dlfcn.h>
+ 
+ #include "ofono.h"
+@@ -219,8 +221,9 @@ static void signal_handler(int signo)
+ {
+ 	ofono_error("Aborting (signal %d) [%s]", signo, program_exec);
+ 
++#ifdef __GLIBC__
+ 	print_backtrace(2);
+-
++#endif
+ 	exit(EXIT_FAILURE);
+ }
+ 
+-- 
+2.1.4
+
meta/recipes-connectivity/ofono/ofono_1.16.bb +1 -0
index 712fc5c..fbf13e5 100644
@@ -4,6 +4,7 @@ SRC_URI  = "\
   ${KERNELORG_MIRROR}/linux/network/${BPN}/${BP}.tar.xz \
   file://ofono \
   file://Revert-test-Convert-to-Python-3.patch \
+  file://0001-backtrace-Disable-for-non-glibc-C-libraries.patch \
 "
 SRC_URI[md5sum] = "c31b5b55a1d68354bff771d3edf02829"
 SRC_URI[sha256sum] = "403b98dadece8bc804c0bd16b96d3db5a3bb0f84af64b3d67924da2d1a754b07"
Signature · 1 line
2.1.4
author
#25 lore raw

PATCH 21/24 pixman,libpciaccess: Fix build on musl

In reply to Khem Raj

The fixes are not specific to musl, however they came to surface due to musl, these are generic problems which should be fixed in components

Change-Id If9aa95968d9dec9c16e3e5819955befcaa38937c
---
 .../xorg-lib/libpciaccess/limits.patch             | 17 +++++++++++++
 .../xorg-lib/libpciaccess_0.13.3.bb                |  2 ++
 .../xorg-lib/pixman/asm_include.patch              | 29 ++++++++++++++++++++++
 meta/recipes-graphics/xorg-lib/pixman_0.32.6.bb    |  1 +
 4 files changed, 49 insertions(+)
 create mode 100644 meta/recipes-graphics/xorg-lib/libpciaccess/limits.patch
 create mode 100644 meta/recipes-graphics/xorg-lib/pixman/asm_include.patch
meta/recipes-graphics/xorg-lib/libpciaccess/limits.patch new file +17 -0
new file mode 100644
index 0000000..498020e
@@ -0,0 +1,17 @@
+Add missing include file to get definition of PATH_MAX
+
+Signed-off-by: Khem Raj <[email protected]>
+Upstream-Status: Pending
+
+Index: libpciaccess-0.13.3/src/linux_sysfs.c
+===================================================================
+--- libpciaccess-0.13.3.orig/src/linux_sysfs.c
++++ libpciaccess-0.13.3/src/linux_sysfs.c
+@@ -44,6 +44,7 @@
+ #include <sys/mman.h>
+ #include <dirent.h>
+ #include <errno.h>
++#include <limits.h>
+ 
+ #if defined(__i386__) || defined(__x86_64__) || defined(__arm__)
+ #include <sys/io.h>
meta/recipes-graphics/xorg-lib/libpciaccess_0.13.3.bb +2 -0
index bbba24e..4a832e8 100644
@@ -5,6 +5,8 @@ PCI bus and devices in a platform-independent way."
 
 require xorg-lib-common.inc
 
+SRC_URI += "file://limits.patch"
+
 LICENSE = "MIT & MIT-style"
 LIC_FILES_CHKSUM = "file://COPYING;md5=277aada5222b9a22fbf3471ff3687068"
 
meta/recipes-graphics/xorg-lib/pixman/asm_include.patch new file +29 -0
new file mode 100644
index 0000000..b52a570
@@ -0,0 +1,29 @@
+Fixes errors like
+
+Assembler messages:
+Fatal error: can't create .libs/pixman-mips-dspr2-asm.o: No such file or directory
+
+it works with glibc because it uses gcc fixed-headers but thats not right.
+
+We move the include under C block
+
+Signed-off-by: Khem Raj <[email protected]>
+Upstream-Status: Pending
+Index: pixman-0.32.6/pixman/pixman-private.h
+===================================================================
+--- pixman-0.32.6.orig/pixman/pixman-private.h
++++ pixman-0.32.6/pixman/pixman-private.h
+@@ -1,4 +1,3 @@
+-#include <float.h>
+ 
+ #ifndef PIXMAN_PRIVATE_H
+ #define PIXMAN_PRIVATE_H
+@@ -17,6 +16,8 @@
+ 
+ #ifndef __ASSEMBLER__
+ 
++#include <float.h>
++
+ #ifndef PACKAGE
+ #  error config.h must be included before pixman-private.h
+ #endif
meta/recipes-graphics/xorg-lib/pixman_0.32.6.bb +1 -0
index 467ba50..eae59b6 100644
@@ -30,6 +30,7 @@ EXTRA_OECONF_class-native = "--disable-gtk"
 SRC_URI += "\
             file://0001-ARM-qemu-related-workarounds-in-cpu-features-detecti.patch \
             file://mips-export-revert.patch \
+	    file://asm_include.patch \
 "
 
 SRC_URI[md5sum] = "8a9e8f14743a39cf303803f369c1f344"
Signature · 1 line
2.1.4
author
#26 lore raw

PATCH 22/24 wpa-supplicant: Replace non-standard base defines with c99 compliant ones

In reply to Khem Raj

Makes it more portable

Change-Id I033787934cd91243ce8f8ce3a974a157aa5cfd6a
---
 .../wpa-supplicant/wpa-supplicant.inc              |  1 +
 .../0001-linux_wext-Fix-types-for-musl.patch       | 38 ++++++++++++++++++++++
 2 files changed, 39 insertions(+)
 create mode 100644 meta/recipes-connectivity/wpa-supplicant/wpa-supplicant/0001-linux_wext-Fix-types-for-musl.patch
meta/recipes-connectivity/wpa-supplicant/wpa-supplicant.inc +1 -0
index f95e91c..dae0606 100644
@@ -25,6 +25,7 @@ SRC_URI = "http://hostap.epitest.fi/releases/wpa_supplicant-${PV}.tar.gz \
            file://wpa_supplicant.conf-sane \
            file://99_wpa_supplicant \
            file://fix-libnl3-host-contamination.patch \
+           file://0001-linux_wext-Fix-types-for-musl.patch \
           "
 SRC_URI[md5sum] = "f2ed8fef72cf63d8d446a2d0a6da630a"
 SRC_URI[sha256sum] = "eaaa5bf3055270e521b2dff64f2d203ec8040f71958b8588269a82c00c9d7b6a"
meta/recipes-connectivity/wpa-supplicant/wpa-supplicant/0001-linux_wext-Fix-types-for-musl.patch new file +38 -0
new file mode 100644
index 0000000..49a988b
@@ -0,0 +1,38 @@
+From 159db445dc4cb0af5f6ad85f3a146ad137db5057 Mon Sep 17 00:00:00 2001
+From: Khem Raj <[email protected]>
+Date: Fri, 3 Apr 2015 20:38:21 -0700
+Subject: [PATCH] linux_wext: Fix types for musl
+
+| ../src/drivers/linux_wext.h:24:9: error: unknown type name '__uint32_t'
+|  typedef __uint32_t __u32;
+
+Signed-off-by: Khem Raj <[email protected]>
+Upstream-Status: Pending
+---
+ src/drivers/linux_wext.h | 10 +++++-----
+ 1 file changed, 5 insertions(+), 5 deletions(-)
+
+diff --git a/src/drivers/linux_wext.h b/src/drivers/linux_wext.h
+index 55cf955..e66df91 100644
+--- a/src/drivers/linux_wext.h
++++ b/src/drivers/linux_wext.h
+@@ -21,11 +21,11 @@
+ 
+ #include <sys/types.h>
+ #include <net/if.h>
+-typedef __uint32_t __u32;
+-typedef __int32_t __s32;
+-typedef __uint16_t __u16;
+-typedef __int16_t __s16;
+-typedef __uint8_t __u8;
++typedef u_int32_t __u32;
++typedef int32_t __s32;
++typedef u_int16_t __u16;
++typedef int16_t __s16;
++typedef u_int8_t __u8;
+ #ifndef __user
+ #define __user
+ #endif /* __user */
+-- 
+2.1.4
+
Signature · 1 line
2.1.4
author
#27 lore raw

PATCH 23/24 libxml2: Contain glibc-extentions under __GLIBC__

In reply to Khem Raj

Makes it more portable

Change-Id I7bbc4cc0ebc26d54248b8433dab94db207615445
---
 ...ine-pthread-definitions-for-glibc-complia.patch | 32 ++++++++++++++++++++++
 meta/recipes-core/libxml/libxml2_2.9.2.bb          |  4 ++-
 2 files changed, 35 insertions(+), 1 deletion(-)
 create mode 100644 meta/recipes-core/libxml/libxml2/0001-threads-Define-pthread-definitions-for-glibc-complia.patch
meta/recipes-core/libxml/libxml2/0001-threads-Define-pthread-definitions-for-glibc-complia.patch new file +32 -0
new file mode 100644
index 0000000..c653a81
@@ -0,0 +1,32 @@
+From 6750cc564a17c812555cca587660240ccffaaed3 Mon Sep 17 00:00:00 2001
+From: Khem Raj <[email protected]>
+Date: Sat, 4 Apr 2015 08:50:40 -0700
+Subject: [PATCH] threads: Define pthread* definitions for glibc compliant libs
+
+This code is assuming glibc but not explicitly saying it
+so lets make it so. Fixes following on musl
+
+threads.c:80:27: error: macro "pthread_equal" requires 2 arguments, but
+only 1 given
+|  extern int pthread_equal ()
+
+Signed-off-by: Khem Raj <[email protected]>
+
+Upstream-Status: Pending
+---
+ threads.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+Index: libxml2-2.9.2/threads.c
+===================================================================
+--- libxml2-2.9.2.orig/threads.c
++++ libxml2-2.9.2/threads.c
+@@ -47,7 +47,7 @@
+ #ifdef HAVE_PTHREAD_H
+ 
+ static int libxml_is_threaded = -1;
+-#ifdef __GNUC__
++#if defined(__GNUC__) && defined(__GLIBC__)
+ #ifdef linux
+ #if (__GNUC__ == 3 && __GNUC_MINOR__ >= 3) || (__GNUC__ > 3)
+ extern int pthread_once (pthread_once_t *__once_control,
meta/recipes-core/libxml/libxml2_2.9.2.bb +3 -1
index 1affff1..79a395c 100644
@@ -1,7 +1,9 @@
 require libxml2.inc
 
 SRC_URI += "http://www.w3.org/XML/Test/xmlts20080827.tar.gz;name=testtar \
-            file://72a46a519ce7326d9a00f0b6a7f2a8e958cd1675.patch"
+            file://72a46a519ce7326d9a00f0b6a7f2a8e958cd1675.patch \
+	    file://0001-threads-Define-pthread-definitions-for-glibc-complia.patch \
+	   "
 
 SRC_URI[libtar.md5sum] = "9e6a9aca9d155737868b3dc5fd82f788"
 SRC_URI[libtar.sha256sum] = "5178c30b151d044aefb1b08bf54c3003a0ac55c59c866763997529d60770d5bc"
Signature · 1 line
2.1.4
author
#28 lore raw

PATCH 24/24 rpcbind: Fix build with musl

In reply to Khem Raj

most patches are just removing glibc'ism e.g. using sys/queue.h of cdefs.h the one patch which is specific to musl
is housed with overrides

Change-Id Ia15bf6c9c4b562c9392a704ef92e9090aa5f6381
---
 ...001-Avoid-use-of-glibc-sys-cdefs.h-header.patch | 224 +++++++++++++++++++++
 .../rpcbind/0002-uclibc-rpcsvc-defines.patch       |   6 +-
 .../rpcbind/rpcbind/musl-sunrpc.patch              |  29 +++
 .../rpcbind/rpcbind/remove-sys-queue.patch         |  22 ++
 meta/recipes-extended/rpcbind/rpcbind_0.2.2.bb     |   6 +
 5 files changed, 284 insertions(+), 3 deletions(-)
 create mode 100644 meta/recipes-extended/rpcbind/rpcbind/0001-Avoid-use-of-glibc-sys-cdefs.h-header.patch
 create mode 100644 meta/recipes-extended/rpcbind/rpcbind/musl-sunrpc.patch
 create mode 100644 meta/recipes-extended/rpcbind/rpcbind/remove-sys-queue.patch
meta/recipes-extended/rpcbind/rpcbind/0001-Avoid-use-of-glibc-sys-cdefs.h-header.patch new file +224 -0
new file mode 100644
index 0000000..6f5f5dd
@@ -0,0 +1,224 @@
+From 2a44d862233f2126581e290d568e1c8b8f2eb9f5 Mon Sep 17 00:00:00 2001
+From: Carlo Landmeter <[email protected]>
+Date: Thu, 19 Feb 2015 15:28:45 +0000
+Subject: [PATCH] Avoid use of glibc sys/cdefs.h header
+
+Upstream-Status: Pending
+---
+ src/check_bound.c  |  2 +-
+ src/pmap_svc.c     | 10 +++++-----
+ src/rpcb_svc.c     | 10 +++++-----
+ src/rpcb_svc_4.c   | 14 +++++++-------
+ src/rpcb_svc_com.c | 46 +++++++++++++++++++++++-----------------------
+ src/rpcbind.c      | 12 ++++++------
+ src/util.c         |  2 +-
+ src/warmstart.c    |  4 ++--
+ 8 files changed, 50 insertions(+), 50 deletions(-)
+
+Index: rpcbind-0.2.2/src/check_bound.c
+===================================================================
+--- rpcbind-0.2.2.orig/src/check_bound.c
++++ rpcbind-0.2.2/src/check_bound.c
+@@ -70,7 +70,7 @@ static struct fdlist *fdhead;	/* Link li
+ static struct fdlist *fdtail;
+ static char *nullstring = "";
+ 
+-static bool_t check_bound __P((struct fdlist *, char *uaddr));
++static bool_t check_bound (struct fdlist *, char *uaddr);
+ 
+ /*
+  * Returns 1 if the given address is bound for the given addr & transport
+Index: rpcbind-0.2.2/src/pmap_svc.c
+===================================================================
+--- rpcbind-0.2.2.orig/src/pmap_svc.c
++++ rpcbind-0.2.2/src/pmap_svc.c
+@@ -58,11 +58,11 @@ static	char sccsid[] = "@(#)pmap_svc.c 1
+ #endif
+ #include "rpcbind.h"
+ #include <rpc/svc_soc.h> /* svc_getcaller routine definition */
+-static struct pmaplist *find_service_pmap __P((rpcprog_t, rpcvers_t,
+-					       rpcprot_t));
+-static bool_t pmapproc_change __P((struct svc_req *, SVCXPRT *, u_long));
+-static bool_t pmapproc_getport __P((struct svc_req *, SVCXPRT *));
+-static bool_t pmapproc_dump __P((struct svc_req *, SVCXPRT *));
++static struct pmaplist *find_service_pmap (rpcprog_t, rpcvers_t,
++					       rpcprot_t);
++static bool_t pmapproc_change (struct svc_req *, SVCXPRT *, u_long);
++static bool_t pmapproc_getport (struct svc_req *, SVCXPRT *);
++static bool_t pmapproc_dump (struct svc_req *, SVCXPRT *);
+ 
+ /*
+  * Called for all the version 2 inquiries.
+Index: rpcbind-0.2.2/src/rpcb_svc.c
+===================================================================
+--- rpcbind-0.2.2.orig/src/rpcb_svc.c
++++ rpcbind-0.2.2/src/rpcb_svc.c
+@@ -52,10 +52,10 @@
+ 
+ #include "rpcbind.h"
+ 
+-static void *rpcbproc_getaddr_3_local __P((void *, struct svc_req *, SVCXPRT *,
+-					   rpcvers_t));
+-static void *rpcbproc_dump_3_local __P((void *, struct svc_req *, SVCXPRT *,
+-					rpcvers_t));
++static void *rpcbproc_getaddr_3_local (void *, struct svc_req *, SVCXPRT *,
++					   rpcvers_t);
++static void *rpcbproc_dump_3_local (void *, struct svc_req *, SVCXPRT *,
++					rpcvers_t);
+ 
+ /*
+  * Called by svc_getreqset. There is a separate server handle for
+@@ -74,7 +74,7 @@ rpcb_service_3(struct svc_req *rqstp, SV
+ 	} argument;
+ 	char *result;
+ 	xdrproc_t xdr_argument, xdr_result;
+-	void *(*local) __P((void *, struct svc_req *, SVCXPRT *, rpcvers_t));
++	void *(*local) (void *, struct svc_req *, SVCXPRT *, rpcvers_t);
+ 	rpcprog_t setprog = 0;
+ 
+ 	rpcbs_procinfo(RPCBVERS_3_STAT, rqstp->rq_proc);
+Index: rpcbind-0.2.2/src/rpcb_svc_4.c
+===================================================================
+--- rpcbind-0.2.2.orig/src/rpcb_svc_4.c
++++ rpcbind-0.2.2/src/rpcb_svc_4.c
+@@ -53,13 +53,13 @@
+ #include <stdlib.h>
+ #include "rpcbind.h"
+ 
+-static void *rpcbproc_getaddr_4_local __P((void *, struct svc_req *, SVCXPRT *,
+-				      rpcvers_t));
+-static void *rpcbproc_getversaddr_4_local __P((void *, struct svc_req *, SVCXPRT *, rpcvers_t));
++static void *rpcbproc_getaddr_4_local (void *, struct svc_req *, SVCXPRT *,
++				      rpcvers_t);
++static void *rpcbproc_getversaddr_4_local (void *, struct svc_req *, SVCXPRT *, rpcvers_t);
+ static void *rpcbproc_getaddrlist_4_local
+-	__P((void *, struct svc_req *, SVCXPRT *, rpcvers_t));
+-static void free_rpcb_entry_list __P((rpcb_entry_list_ptr *));
+-static void *rpcbproc_dump_4_local __P((void *, struct svc_req *, SVCXPRT *, rpcvers_t));
++	(void *, struct svc_req *, SVCXPRT *, rpcvers_t);
++static void free_rpcb_entry_list (rpcb_entry_list_ptr *);
++static void *rpcbproc_dump_4_local (void *, struct svc_req *, SVCXPRT *, rpcvers_t);
+ 
+ /*
+  * Called by svc_getreqset. There is a separate server handle for
+@@ -77,7 +77,7 @@ rpcb_service_4(struct svc_req *rqstp, SV
+ 	} argument;
+ 	char *result;
+ 	xdrproc_t xdr_argument, xdr_result;
+-	void *(*local) __P((void *, struct svc_req *, SVCXPRT *, rpcvers_t));
++	void *(*local) (void *, struct svc_req *, SVCXPRT *, rpcvers_t);
+ 	rpcprog_t setprog = 0;
+ 
+ 	rpcbs_procinfo(RPCBVERS_4_STAT, rqstp->rq_proc);
+Index: rpcbind-0.2.2/src/rpcb_svc_com.c
+===================================================================
+--- rpcbind-0.2.2.orig/src/rpcb_svc_com.c
++++ rpcbind-0.2.2/src/rpcb_svc_com.c
+@@ -99,29 +99,29 @@ struct finfo {
+ static struct finfo     FINFO[NFORWARD];
+ 
+ 
+-static bool_t xdr_encap_parms __P((XDR *, struct encap_parms *));
+-static bool_t xdr_rmtcall_args __P((XDR *, struct r_rmtcall_args *));
+-static bool_t xdr_rmtcall_result __P((XDR *, struct r_rmtcall_args *));
+-static bool_t xdr_opaque_parms __P((XDR *, struct r_rmtcall_args *));
+-static int find_rmtcallfd_by_netid __P((char *));
+-static SVCXPRT *find_rmtcallxprt_by_fd __P((int));
+-static int forward_register __P((u_int32_t, struct netbuf *, int, char *,
+-    rpcproc_t, rpcvers_t, u_int32_t *));
+-static struct finfo *forward_find __P((u_int32_t));
+-static int free_slot_by_xid __P((u_int32_t));
+-static int free_slot_by_index __P((int));
+-static int netbufcmp __P((struct netbuf *, struct netbuf *));
+-static struct netbuf *netbufdup __P((struct netbuf *));
+-static void netbuffree __P((struct netbuf *));
+-static int check_rmtcalls __P((struct pollfd *, int));
+-static void xprt_set_caller __P((SVCXPRT *, struct finfo *));
+-static void send_svcsyserr __P((SVCXPRT *, struct finfo *));
+-static void handle_reply __P((int, SVCXPRT *));
+-static void find_versions __P((rpcprog_t, char *, rpcvers_t *, rpcvers_t *));
+-static rpcblist_ptr find_service __P((rpcprog_t, rpcvers_t, char *));
+-static char *getowner __P((SVCXPRT *, char *, size_t));
+-static int add_pmaplist __P((RPCB *));
+-static int del_pmaplist __P((RPCB *));
++static bool_t xdr_encap_parms (XDR *, struct encap_parms *);
++static bool_t xdr_rmtcall_args (XDR *, struct r_rmtcall_args *);
++static bool_t xdr_rmtcall_result (XDR *, struct r_rmtcall_args *);
++static bool_t xdr_opaque_parms (XDR *, struct r_rmtcall_args *);
++static int find_rmtcallfd_by_netid (char *);
++static SVCXPRT *find_rmtcallxprt_by_fd (int);
++static int forward_register (u_int32_t, struct netbuf *, int, char *,
++    rpcproc_t, rpcvers_t, u_int32_t *);
++static struct finfo *forward_find (u_int32_t);
++static int free_slot_by_xid (u_int32_t);
++static int free_slot_by_index (int);
++static int netbufcmp (struct netbuf *, struct netbuf *);
++static struct netbuf *netbufdup (struct netbuf *);
++static void netbuffree (struct netbuf *);
++static int check_rmtcalls (struct pollfd *, int);
++static void xprt_set_caller (SVCXPRT *, struct finfo *);
++static void send_svcsyserr (SVCXPRT *, struct finfo *);
++static void handle_reply (int, SVCXPRT *);
++static void find_versions (rpcprog_t, char *, rpcvers_t *, rpcvers_t *);
++static rpcblist_ptr find_service (rpcprog_t, rpcvers_t, char *);
++static char *getowner (SVCXPRT *, char *, size_t);
++static int add_pmaplist (RPCB *);
++static int del_pmaplist (RPCB *);
+ 
+ /*
+  * Set a mapping of program, version, netid
+Index: rpcbind-0.2.2/src/rpcbind.c
+===================================================================
+--- rpcbind-0.2.2.orig/src/rpcbind.c
++++ rpcbind-0.2.2/src/rpcbind.c
+@@ -130,13 +130,13 @@ char *tcp_uaddr;	/* Universal TCP addres
+ static char servname[] = "rpcbind";
+ static char superuser[] = "superuser";
+ 
+-int main __P((int, char *[]));
++int main (int, char *[]);
+ 
+-static int init_transport __P((struct netconfig *));
+-static void rbllist_add __P((rpcprog_t, rpcvers_t, struct netconfig *,
+-			     struct netbuf *));
+-static void terminate __P((int));
+-static void parseargs __P((int, char *[]));
++static int init_transport (struct netconfig *);
++static void rbllist_add (rpcprog_t, rpcvers_t, struct netconfig *,
++			     struct netbuf *);
++static void terminate (int);
++static void parseargs (int, char *[]);
+ 
+ int
+ main(int argc, char *argv[])
+Index: rpcbind-0.2.2/src/util.c
+===================================================================
+--- rpcbind-0.2.2.orig/src/util.c
++++ rpcbind-0.2.2/src/util.c
+@@ -70,9 +70,9 @@ static struct sockaddr_in *local_in4;
+ static struct sockaddr_in6 *local_in6;
+ #endif
+ 
+-static int bitmaskcmp __P((void *, void *, void *, int));
++static int bitmaskcmp (void *, void *, void *, int);
+ #ifdef INET6
+-static void in6_fillscopeid __P((struct sockaddr_in6 *));
++static void in6_fillscopeid (struct sockaddr_in6 *);
+ #endif
+ 
+ /*
+Index: rpcbind-0.2.2/src/warmstart.c
+===================================================================
+--- rpcbind-0.2.2.orig/src/warmstart.c
++++ rpcbind-0.2.2/src/warmstart.c
+@@ -58,8 +58,8 @@
+ #define	PMAPFILE	RPCBIND_STATEDIR "/portmap.xdr"
+ #endif
+ 
+-static bool_t write_struct __P((char *, xdrproc_t, void *));
+-static bool_t read_struct __P((char *, xdrproc_t, void *));
++static bool_t write_struct (char *, xdrproc_t, void *);
++static bool_t read_struct (char *, xdrproc_t, void *);
+ 
+ static bool_t
+ write_struct(char *filename, xdrproc_t structproc, void *list)
meta/recipes-extended/rpcbind/rpcbind/0002-uclibc-rpcsvc-defines.patch +3 -3
index c54fc96..6b11316 100644
@@ -1,10 +1,10 @@
-Upstream-Status: Pending
-
 From 077add040c2e30d3ac507362f4afe350f47be027 Mon Sep 17 00:00:00 2001
 From: Natanael Copa <[email protected]>
 Date: Tue, 2 Feb 2010 09:47:57 +0000
 Subject: [PATCH 2/2] uclibc-rpcsvc-defines
 
+Upstream-Status: Pending
+
 ---
  src/security.c |   28 ++++++++++++++++++++++++++++
  1 files changed, 28 insertions(+), 0 deletions(-)
@@ -17,7 +17,7 @@ index 0edeac6..e9fed55 100644
  /*
   * XXX for special case checks in check_callit.
   */
-+#if defined(__UCLIBC__)
++#if defined(__UCLIBC__) || !defined(__GLIBC__)
 +
 +#define MOUNTPROC_MNT 1
 +#define MOUNTPROC_UMNT 3
meta/recipes-extended/rpcbind/rpcbind/musl-sunrpc.patch new file +29 -0
new file mode 100644
index 0000000..9c72a1b
@@ -0,0 +1,29 @@
+The musl implementation of getaddrinfo and getservbyname does not
+aliases. As a workaround we use "sunprc" instead of "portmapper"
+
+ported from alpine linux
+
+Signed-off-by: Khem Raj <[email protected]>
+
+Index: rpcbind-0.2.2/src/rpcbind.c
+===================================================================
+--- rpcbind-0.2.2.orig/src/rpcbind.c
++++ rpcbind-0.2.2/src/rpcbind.c
+@@ -491,7 +491,7 @@ init_transport(struct netconfig *nconf)
+ 			if ((aicode = getaddrinfo(hosts[nhostsbak],
+ 			    servname, &hints, &res)) != 0) {
+ 			  if ((aicode = getaddrinfo(hosts[nhostsbak],
+-						    "portmapper", &hints, &res)) != 0) {
++						    "sunrpc", &hints, &res)) != 0) {
+ 				syslog(LOG_ERR,
+ 				    "cannot get local address for %s: %s",
+ 				    nconf->nc_netid, gai_strerror(aicode));
+@@ -564,7 +564,7 @@ init_transport(struct netconfig *nconf)
+ 		if ((strcmp(nconf->nc_netid, "local") != 0) &&
+ 		    (strcmp(nconf->nc_netid, "unix") != 0)) {
+ 			if ((aicode = getaddrinfo(NULL, servname, &hints, &res))!= 0) {
+-			  if ((aicode = getaddrinfo(NULL, "portmapper", &hints, &res))!= 0) {
++			  if ((aicode = getaddrinfo(NULL, "sunrpc", &hints, &res))!= 0) {
+ 			  printf("cannot get local address for %s: %s",  nconf->nc_netid, gai_strerror(aicode));
+ 			  syslog(LOG_ERR,
+ 				    "cannot get local address for %s: %s",
meta/recipes-extended/rpcbind/rpcbind/remove-sys-queue.patch new file +22 -0
new file mode 100644
index 0000000..84fc974
@@ -0,0 +1,22 @@
+musl does not provide this header and here is reasoning
+http://wiki.musl-libc.org/wiki/FAQ#Q:_why_is_sys.2Fqueue.h_not_included_.3F
+
+So include it only when __GLIBC__ is defined which is true for uclibc and glibc
+
+Signed-off-by: Khem Raj <[email protected]>
+Upstream-Status: Pending
+
+Index: rpcbind-0.2.2/src/util.c
+===================================================================
+--- rpcbind-0.2.2.orig/src/util.c
++++ rpcbind-0.2.2/src/util.c
+@@ -41,7 +41,9 @@
+ 
+ #include <sys/types.h>
+ #include <sys/socket.h>
++#ifdef __GLIBC__
+ #include <sys/queue.h>
++#endif
+ #include <net/if.h>
+ #include <netinet/in.h>
+ #include <ifaddrs.h>
meta/recipes-extended/rpcbind/rpcbind_0.2.2.bb +6 -0
index 1952b2a..51e456e 100644
@@ -12,16 +12,22 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=b46486e4c4a416602693a711bb5bfa39 \
 
 SRC_URI = "${SOURCEFORGE_MIRROR}/rpcbind/rpcbind-${PV}.tar.bz2 \
            file://init.d \
+	   file://0001-Avoid-use-of-glibc-sys-cdefs.h-header.patch \
+	   file://0002-uclibc-rpcsvc-defines.patch \
+	   file://remove-sys-queue.patch \
            ${UCLIBCPATCHES} \
+           ${MUSLPATCHES} \
            file://rpcbind.conf \
            file://rpcbind.socket \
            file://rpcbind.service \
           "
+MUSLPATCHES_libc-musl = "file://musl-sunrpc.patch"
 
 UCLIBCPATCHES_libc-uclibc = "file://0001-uclibc-nss.patch \
                              file://0002-uclibc-rpcsvc-defines.patch \
                             "
 UCLIBCPATCHES ?= ""
+MUSLPATCHES ?= ""
 
 SRC_URI[md5sum] = "8acf839bfef2364a05fbd6be5f8edf9a"
 SRC_URI[sha256sum] = "13dbc8c796dbe0ce8df873007bea0490c8460b56202d918c9eb6fa0358a08f29"
Signature · 1 line
2.1.4