Skip to contentSkip to conversation

dnf: update to 2.6.3

PATCH In review Alexander Kanavin 3 participants 15 messages Aug 7, 2017 – Aug 11, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/7 dnf: update to 2.6.3

---
 ...ever-check-after-the-etc-dnf-vars-substit.patch | 37 ----------------------
 .../dnf/0030-Run-python-scripts-using-env.patch    | 13 +-------
 .../dnf/{dnf_2.5.1.bb => dnf_2.6.3.bb}             |  3 +-
 3 files changed, 2 insertions(+), 51 deletions(-)
 delete mode 100644 meta/recipes-devtools/dnf/dnf/0001-Move-releasever-check-after-the-etc-dnf-vars-substit.patch
 rename meta/recipes-devtools/dnf/{dnf_2.5.1.bb => dnf_2.6.3.bb} (94%)
meta/recipes-devtools/dnf/dnf/0001-Move-releasever-check-after-the-etc-dnf-vars-substit.patch deleted +0 -37
deleted file mode 100644
index daf058bbae7..00000000000
@@ -1,37 +0,0 @@
-From 3d0cdd8af1b415712eeb00e377c307001684ad06 Mon Sep 17 00:00:00 2001
-From: Alexander Kanavin <[email protected]>
-Date: Wed, 21 Jun 2017 15:35:20 +0300
-Subject: [PATCH] Move releasever check after the etc/dnf/vars substitutions.
-
-The substitutions may actually set the releasever correctly,
-and so the check is premature.
-
-Upstream-Status: Submitted [https://github.com/rpm-software-management/dnf/pull/868]
-Signed-off-by: Alexander Kanavin <[email protected]>
----
- dnf/cli/cli.py | 6 +++---
- 1 file changed, 3 insertions(+), 3 deletions(-)
-
-diff --git a/dnf/cli/cli.py b/dnf/cli/cli.py
-index c53c2a52..f9f2c13a 100644
---- a/dnf/cli/cli.py
-+++ b/dnf/cli/cli.py
-@@ -882,12 +882,12 @@ class Cli(object):
-             releasever = dnf.rpm.detect_releasever(conf.installroot)
-         elif releasever == '/':
-             releasever = dnf.rpm.detect_releasever(releasever)
--        if releasever is None:
--            logger.warning(_("Unable to detect release version (use '--releasever' to specify "
--                             "release version)"))
-         conf.releasever = releasever
-         subst = conf.substitutions
-         subst.update_from_etc(conf.installroot)
-+        if releasever is None:
-+            logger.warning(_("Unable to detect release version (use '--releasever' to specify "
-+                             "release version)"))
- 
-         for opt in ('cachedir', 'logdir', 'persistdir'):
-             conf.prepend_installroot(opt)
--- 
-2.11.0
-
meta/recipes-devtools/dnf/dnf/0030-Run-python-scripts-using-env.patch +1 -12
index 61328e6ec5b..1abd880da9b 100644
@@ -10,8 +10,7 @@ Signed-off-by: Alexander Kanavin <[email protected]>
 ---
  bin/dnf-automatic.in | 2 +-
  bin/dnf.in           | 2 +-
- bin/yum.in           | 2 +-
- 3 files changed, 3 insertions(+), 3 deletions(-)
+ 2 files changed, 2 insertions(+), 2 deletions(-)
 
 diff --git a/bin/dnf-automatic.in b/bin/dnf-automatic.in
 index 5b06aa26..9f6f703e 100755
@@ -33,16 +32,6 @@ index 645d0f06..ab141abd 100755
  # The dnf executable script.
  #
  # Copyright (C) 2012-2016 Red Hat, Inc.
-diff --git a/bin/yum.in b/bin/yum.in
-index f1fee071..013dc8c5 100755
---- a/bin/yum.in
-+++ b/bin/yum.in
-@@ -1,4 +1,4 @@
--#!@PYTHON_EXECUTABLE@
-+#!/usr/bin/env python3
- # The dnf executable script.
- #
- # Copyright (C) 2016 Red Hat, Inc.
 -- 
 2.11.0
 
meta/recipes-devtools/dnf/dnf_2.6.3.bb renamed from meta/recipes-devtools/dnf/dnf_2.5.1.bb +1 -2
similarity index 94%
rename from meta/recipes-devtools/dnf/dnf_2.5.1.bb
rename to meta/recipes-devtools/dnf/dnf_2.6.3.bb
index cdc2a8549fb..ade55ea0a80 100644
@@ -5,7 +5,6 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
                    "
 
 SRC_URI = "git://github.com/rpm-software-management/dnf.git \
-           file://0001-Move-releasever-check-after-the-etc-dnf-vars-substit.patch \
            file://0029-Do-not-set-PYTHON_INSTALL_DIR-by-running-python.patch \
            file://0030-Run-python-scripts-using-env.patch \
            file://0001-Do-not-prepend-installroot-to-logdir.patch \
@@ -13,7 +12,7 @@ SRC_URI = "git://github.com/rpm-software-management/dnf.git \
            file://0001-Corretly-install-tmpfiles.d-configuration.patch \
            "
 
-SRCREV = "32e6ffdc8902b868cd8f98f9c399c98c9de0c7b8"
+SRCREV = "be2585183ec4485ee4d5e121f242d8669296f065"
 UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>\d+(\.\d+)+)"
 
 S = "${WORKDIR}/git"
Signature · 1 line
2.13.2
#1 lore raw

PATCH 2/7 libdnf: update to 0.9.3

---
 meta/recipes-devtools/libdnf/{libdnf_0.9.1.bb => libdnf_0.9.3.bb} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta/recipes-devtools/libdnf/{libdnf_0.9.1.bb => libdnf_0.9.3.bb} (95%)
meta/recipes-devtools/libdnf/libdnf_0.9.3.bb renamed from meta/recipes-devtools/libdnf/libdnf_0.9.1.bb +1 -1
similarity index 95%
rename from meta/recipes-devtools/libdnf/libdnf_0.9.1.bb
rename to meta/recipes-devtools/libdnf/libdnf_0.9.3.bb
index e5c47bf8dbe..01d9346d9ad 100644
@@ -10,7 +10,7 @@ SRC_URI = "git://github.com/rpm-software-management/libdnf \
            file://0001-Get-parameters-for-both-libsolv-and-libsolvext-libdn.patch \
            "
 
-SRCREV = "d5ecb17c0fde4f99c6a80e6f162510465b8d28f9"
+SRCREV = "1b19950e82d88eec28d01b4e7c1da712c941201d"
 
 S = "${WORKDIR}/git"
 
Signature · 1 line
2.13.2
#2 lore raw

PATCH 3/7 btrfs-tools: update to 4.12

In reply to Alexander Kanavin

Add a patch to force a native build for a helper binary (which is not installed or used outside of the build process).

---
 ...-Makefile-build-mktables-using-native-gcc.patch | 30 ++++++++++++++++++++++
 .../{btrfs-tools_4.11.1.bb => btrfs-tools_4.12.bb} |  6 +++--
 2 files changed, 34 insertions(+), 2 deletions(-)
 create mode 100644 meta/recipes-devtools/btrfs-tools/btrfs-tools/0001-Makefile-build-mktables-using-native-gcc.patch
 rename meta/recipes-devtools/btrfs-tools/{btrfs-tools_4.11.1.bb => btrfs-tools_4.12.bb} (88%)
meta/recipes-devtools/btrfs-tools/btrfs-tools/0001-Makefile-build-mktables-using-native-gcc.patch new file +30 -0
new file mode 100644
index 00000000000..0a3b5fd7102
@@ -0,0 +1,30 @@
+From e58369f6d36bc51eb59d6afa34c1cae3ff0810ef Mon Sep 17 00:00:00 2001
+From: Alexander Kanavin <[email protected]>
+Date: Mon, 7 Aug 2017 14:10:38 +0300
+Subject: [PATCH] Makefile: build mktables using native gcc
+
+It's a throwaway helper binary used during build, and so it needs to
+be native.
+
+Upstream-Status: Inappropriate [oe specific]
+Signed-off-by: Alexander Kanavin <[email protected]>
+---
+ Makefile | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/Makefile b/Makefile
+index b3e2b63..347aaf1 100644
+--- a/Makefile
++++ b/Makefile
+@@ -323,7 +323,7 @@ version.h: version.sh version.h.in configure.ac
+ 
+ mktables: kernel-lib/mktables.c
+ 	@echo "    [CC]     $@"
+-	$(Q)$(CC) $(CFLAGS) $< -o $@
++	$(Q)$(BUILD_CC) $(CFLAGS) $< -o $@
+ 
+ kernel-lib/tables.c: mktables
+ 	@echo "    [TABLE]  $@"
+-- 
+2.13.2
+
meta/recipes-devtools/btrfs-tools/btrfs-tools_4.12.bb renamed from meta/recipes-devtools/btrfs-tools/btrfs-tools_4.11.1.bb +4 -2
similarity index 88%
rename from meta/recipes-devtools/btrfs-tools/btrfs-tools_4.11.1.bb
rename to meta/recipes-devtools/btrfs-tools/btrfs-tools_4.12.bb
index a7b42e9546b..c3cc89c2b0f 100644
@@ -14,8 +14,10 @@ DEPENDS = "util-linux attr e2fsprogs lzo acl"
 DEPENDS_append_class-target = " udev"
 RDEPENDS_${PN} = "libgcc"
 
-SRCREV = "88221fc081a7a0979a012f243b66cf097382cc8f"
-SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/kdave/btrfs-progs.git"
+SRCREV = "0607132c3200bcead1426e6dc685432008de95de"
+SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/kdave/btrfs-progs.git \
+           file://0001-Makefile-build-mktables-using-native-gcc.patch \
+           "
 
 inherit autotools-brokensep pkgconfig manpages
 
Signature · 1 line
2.13.2
#9 lore raw

PATCH 4/7 ffmpeg: update to 3.3.3

In reply to Alexander Kanavin
---
 meta/recipes-multimedia/ffmpeg/{ffmpeg_3.3.2.bb => ffmpeg_3.3.3.bb} | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 rename meta/recipes-multimedia/ffmpeg/{ffmpeg_3.3.2.bb => ffmpeg_3.3.3.bb} (97%)
meta/recipes-multimedia/ffmpeg/ffmpeg_3.3.3.bb renamed from meta/recipes-multimedia/ffmpeg/ffmpeg_3.3.2.bb +2 -2
similarity index 97%
rename from meta/recipes-multimedia/ffmpeg/ffmpeg_3.3.2.bb
rename to meta/recipes-multimedia/ffmpeg/ffmpeg_3.3.3.bb
index 3c183674118..b4de97300d2 100644
@@ -27,8 +27,8 @@ SRC_URI = "https://www.ffmpeg.org/releases/${BP}.tar.xz \
            file://mips64_cpu_detection.patch \
            file://0001-build-fix-for-mips.patch \
           "
-SRC_URI[md5sum] = "d6c09c84e3d0d9ca8a51f481da660603"
-SRC_URI[sha256sum] = "1998de1ab32616cbf2ff86efc3f1f26e76805ec5dc51e24c041c79edd8262785"
+SRC_URI[md5sum] = "743dc66ebe67180283b92d029f690d0f"
+SRC_URI[sha256sum] = "d2a9002cdc6b533b59728827186c044ad02ba64841f1b7cd6c21779875453a1e"
 
 # Build fails when thumb is enabled: https://bugzilla.yoctoproject.org/show_bug.cgi?id=7717
 ARM_INSTRUCTION_SET = "arm"
Signature · 1 line
2.13.2
#10 lore raw

PATCH 5/7 babeltrace: update to 1.5.3

In reply to Alexander Kanavin
---
 .../recipes-kernel/lttng/{babeltrace_1.5.2.bb => babeltrace_1.5.3.bb} | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 rename meta/recipes-kernel/lttng/{babeltrace_1.5.2.bb => babeltrace_1.5.3.bb} (82%)
meta/recipes-kernel/lttng/babeltrace_1.5.3.bb renamed from meta/recipes-kernel/lttng/babeltrace_1.5.2.bb +2 -2
similarity index 82%
rename from meta/recipes-kernel/lttng/babeltrace_1.5.2.bb
rename to meta/recipes-kernel/lttng/babeltrace_1.5.3.bb
index c7ea5c1ba41..4d81da0160d 100644
@@ -15,5 +15,5 @@ SRC_URI = "http://www.efficios.com/files/babeltrace/babeltrace-${PV}.tar.bz2 \
 
 EXTRA_OECONF = "--disable-debug-info"
 
-SRC_URI[md5sum] = "1176e7f69e128112d5f29fefec39c6ce"
-SRC_URI[sha256sum] = "696ee46e5750ab57a258663e73915d2901b7cd4fc53b06eb3f7a0d7b1012fa56"
+SRC_URI[md5sum] = "0cec2745ac316649791c43f416d71ea1"
+SRC_URI[sha256sum] = "2249fee5beba657731f5d6a84c5296c6517f544bfbe7571bd1fd7af23726137c"
Signature · 1 line
2.13.2
#11 lore raw

PATCH 6/7 oprofile: update to 1.2.0

In reply to Alexander Kanavin

Drop upstreamed 0001-Fix-FTBFS-problem-with-GCC-6.patch

---
 meta/recipes-kernel/oprofile/oprofile.inc          |  1 -
 .../0001-Fix-FTBFS-problem-with-GCC-6.patch        | 51 ----------------------
 meta/recipes-kernel/oprofile/oprofile_1.1.0.bb     | 10 -----
 meta/recipes-kernel/oprofile/oprofile_1.2.0.bb     | 10 +++++
 4 files changed, 10 insertions(+), 62 deletions(-)
 delete mode 100644 meta/recipes-kernel/oprofile/oprofile/0001-Fix-FTBFS-problem-with-GCC-6.patch
 delete mode 100644 meta/recipes-kernel/oprofile/oprofile_1.1.0.bb
 create mode 100644 meta/recipes-kernel/oprofile/oprofile_1.2.0.bb
meta/recipes-kernel/oprofile/oprofile.inc +0 -1
index 4b01654fa3e..83fc8435cbd 100644
@@ -25,7 +25,6 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BPN}-${PV}.tar.gz \
            file://run-ptest \
            file://root-home-dir.patch \
            file://0001-Add-rmb-definition-for-NIOS2-architecture.patch \
-           file://0001-Fix-FTBFS-problem-with-GCC-6.patch \
 "
 UPSTREAM_CHECK_REGEX = "oprofile-(?P<pver>\d+(\.\d+)+)/"
 UPSTREAM_CHECK_URI = "https://sourceforge.net/projects/oprofile/files/oprofile/"
meta/recipes-kernel/oprofile/oprofile/0001-Fix-FTBFS-problem-with-GCC-6.patch deleted +0 -51

51 lines not on this page · raw message

meta/recipes-kernel/oprofile/oprofile_1.1.0.bb deleted +0 -10
deleted file mode 100644
index 92a94ad0d4d..00000000000
@@ -1,10 +0,0 @@
-require oprofile.inc
-
-DEPENDS += "virtual/kernel"
-DEPENDS_append_powerpc64 = " libpfm4"
-
-SRC_URI[md5sum] = "248c4c069f9476f427fa7195563f9867"
-SRC_URI[sha256sum] = "cf759a6de1a6033d5dfc93bda129a9f2e128aecc4238cc657feb0801d1b0366c"
-
-S = "${WORKDIR}/oprofile-${PV}"
-
meta/recipes-kernel/oprofile/oprofile_1.2.0.bb new file +10 -0
new file mode 100644
index 00000000000..e85e805c37c
@@ -0,0 +1,10 @@
+require oprofile.inc
+
+DEPENDS += "virtual/kernel"
+DEPENDS_append_powerpc64 = " libpfm4"
+
+SRC_URI[md5sum] = "4fcd3920984dcb607314b2e225086c3a"
+SRC_URI[sha256sum] = "eb95f98c40b7d0ee29b45fba3565d9f8381747528aa6b6159e37d4fa0c8ca57d"
+
+S = "${WORKDIR}/oprofile-${PV}"
+
Signature · 1 line
2.13.2
#14 lore raw

PATCH 7/7 gptfdisk: update to 1.0.3

In reply to Alexander Kanavin
---
 meta/recipes-devtools/fdisk/{gptfdisk_1.0.1.bb => gptfdisk_1.0.3.bb} | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 rename meta/recipes-devtools/fdisk/{gptfdisk_1.0.1.bb => gptfdisk_1.0.3.bb} (86%)
meta/recipes-devtools/fdisk/gptfdisk_1.0.3.bb renamed from meta/recipes-devtools/fdisk/gptfdisk_1.0.1.bb +2 -2
similarity index 86%
rename from meta/recipes-devtools/fdisk/gptfdisk_1.0.1.bb
rename to meta/recipes-devtools/fdisk/gptfdisk_1.0.3.bb
index d62a903a709..4d617e3e46f 100644
@@ -7,8 +7,8 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552"
 DEPENDS = "util-linux popt ncurses"
 
 SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${PV}/${BP}.tar.gz"
-SRC_URI[md5sum] = "d7f3d306b083123bcc6f5941efade586"
-SRC_URI[sha256sum] = "864c8aee2efdda50346804d7e6230407d5f42a8ae754df70404dd8b2fdfaeac7"
+SRC_URI[md5sum] = "07b625a583b66c8c5840be5923f3e3fe"
+SRC_URI[sha256sum] = "89fd5aec35c409d610a36cb49c65b442058565ed84042f767bba614b8fc91b5c"
 
 UPSTREAM_CHECK_URI = "http://sourceforge.net/projects/gptfdisk/files/gptfdisk/"
 UPSTREAM_CHECK_REGEX = "/gptfdisk/(?P<pver>(\d+[\.\-_]*)+)/"
Signature · 1 line
2.13.2
#3 lore raw

Re: [PATCH 3/7] btrfs-tools: update to 4.12

In reply to Alexander Kanavin
Quoted 3 lines · Alexander Kanavin
+-      $(Q)$(CC) $(CFLAGS) $< -o $@
++      $(Q)$(BUILD_CC) $(CFLAGS) $< -o $@

This won't work when CFLAGS contains arguments that the host compiler doesn't recognise, or are inappropriate.

Ross

#4 lore raw

Re: [PATCH 3/7] btrfs-tools: update to 4.12

Quoted 5 lines · Ross
    +-      $(Q)$(CC) $(CFLAGS) $< -o $@
    ++      $(Q)$(BUILD_CC) $(CFLAGS) $< -o $@

This won't work when CFLAGS contains arguments that the host compiler doesn't recognise, or are inappropriate.

Right, should've been BUILD_CFLAGS? Can you amend the patch in-place?

Alex

#5 lore raw

Re: [PATCH 3/7] btrfs-tools: update to 4.12

Can you send a v2 instead?

Presumably they don't already use CC_FOR_BUILD and so on?

Ross

Quoted 14 lines · Alexander Kanavin

On 08/07/2017 03:59 PM, Burton, Ross wrote:

    +-      $(Q)$(CC) $(CFLAGS) $< -o $@
>     ++      $(Q)$(BUILD_CC) $(CFLAGS) $< -o $@
Quoted 5 lines

This won't work when CFLAGS contains arguments that the host compiler doesn't recognise, or are inappropriate.

Right, should've been BUILD_CFLAGS? Can you amend the patch in-place?

Alex

#6 lore raw

Re: [PATCH 3/7] btrfs-tools: update to 4.12

In reply to Alexander Kanavin
Quoted 17 lines · Alexander Kanavin

Add a patch to force a native build for a helper binary (which is not installed or used outside of the build process).

---
 ...-Makefile-build-mktables-using-native-gcc.patch | 30 ++++++++++++++++++++++
 .../{btrfs-tools_4.11.1.bb => btrfs-tools_4.12.bb} |  6 +++--
 2 files changed, 34 insertions(+), 2 deletions(-)
 create mode 100644 meta/recipes-devtools/btrfs-tools/btrfs-tools/0001-Makefile-build-mktables-using-native-gcc.patch
 rename meta/recipes-devtools/btrfs-tools/{btrfs-tools_4.11.1.bb => btrfs-tools_4.12.bb} (88%)
meta/recipes-devtools/btrfs-tools/btrfs-tools/0001-Makefile-build-mktables-using-native-gcc.patch new file +0 -0
new file mode 100644
index 00000000000..0a3b5fd7102

meta/recipes-devtools/btrfs-tools/btrfs-tools/0001-Makefile-build-mktables-using-native-gcc.patch line 9

Quoted 9 lines
meta/recipes-devtools/btrfs-tools/btrfs-tools/0001-Makefile-build-mktables-using-native-gcc.patch new file +9 -0
@@ -0,0 +1,30 @@
+From e58369f6d36bc51eb59d6afa34c1cae3ff0810ef Mon Sep 17 00:00:00 2001
+From: Alexander Kanavin <[email protected]>
+Date: Mon, 7 Aug 2017 14:10:38 +0300
+Subject: [PATCH] Makefile: build mktables using native gcc
+
+It's a throwaway helper binary used during build, and so it needs to
+be native.
+
+Upstream-Status: Inappropriate [oe specific]

I think such a patch would be good upstream too. There are many packages making distinction between
build host and target host and help cross compilation.

Quoted 49 lines
meta/recipes-devtools/btrfs-tools/btrfs-tools/0001-Makefile-build-mktables-using-native-gcc.patch new file +21 -0
+Signed-off-by: Alexander Kanavin <[email protected]>
+---
+ Makefile | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/Makefile b/Makefile
+index b3e2b63..347aaf1 100644
+--- a/Makefile
++++ b/Makefile
+@@ -323,7 +323,7 @@ version.h: version.sh version.h.in configure.ac
+
+ mktables: kernel-lib/mktables.c
+       @echo "    [CC]     $@"
+-      $(Q)$(CC) $(CFLAGS) $< -o $@
++      $(Q)$(BUILD_CC) $(CFLAGS) $< -o $@
+
+ kernel-lib/tables.c: mktables
+       @echo "    [TABLE]  $@"
+--
+2.13.2
+
meta/recipes-devtools/btrfs-tools/btrfs-tools_4.12.bb renamed from meta/recipes-devtools/btrfs-tools/btrfs-tools_4.11.1.bb +4 -3
similarity index 88%
rename from meta/recipes-devtools/btrfs-tools/btrfs-tools_4.11.1.bb
rename to meta/recipes-devtools/btrfs-tools/btrfs-tools_4.12.bb
index a7b42e9546b..c3cc89c2b0f 100644
@@ -14,8 +14,10 @@ DEPENDS = "util-linux attr e2fsprogs lzo acl"
 DEPENDS_append_class-target = " udev"
 RDEPENDS_${PN} = "libgcc"
 
-SRCREV = "88221fc081a7a0979a012f243b66cf097382cc8f"
-SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/kdave/btrfs-progs.git"
+SRCREV = "0607132c3200bcead1426e6dc685432008de95de"
+SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/kdave/btrfs-progs.git \
+           file://0001-Makefile-build-mktables-using-native-gcc.patch \
+           "
 
 inherit autotools-brokensep pkgconfig manpages
 
--

2.13.2

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

#7 lore raw

Re: [PATCH 3/7] btrfs-tools: update to 4.12

Quoted 3 lines · Khem Raj

I think such a patch would be good upstream too. There are many packages making distinction between
build host and target host and help cross compilation.

btrfs-tools does not support this distinction. The host compiler is enforced in the patch through an openembedded-specific variable.

Alex

#8 lore raw

Re: [PATCH 3/7] btrfs-tools: update to 4.12

Quoted 9 lines · Alexander Kanavin
Quoted 4 lines · Khem Raj

I think such a patch would be good upstream too. There are many packages making distinction between
build host and target host and help cross compilation.

btrfs-tools does not support this distinction. The host compiler is enforced in the patch through an openembedded-specific variable.

yes, however there are packages which define *_FOR_BUILD variables for such distinctions, this
could do the same and upstream would most likely be happy to get this improvement.

Quoted 2 lines

Alex

#12 lore raw

Re: [PATCH 6/7] oprofile: update to 1.2.0

In reply to Alexander Kanavin

Breaks with musl:

http://errors.yoctoproject.org/Errors/Details/150200/

Ross

Quoted 144 lines · Alexander Kanavin

Drop upstreamed 0001-Fix-FTBFS-problem-with-GCC-6.patch

---
 meta/recipes-kernel/oprofile/oprofile.inc          |  1 -
 .../0001-Fix-FTBFS-problem-with-GCC-6.patch        | 51
----------------------
 meta/recipes-kernel/oprofile/oprofile_1.1.0.bb     | 10 -----
 meta/recipes-kernel/oprofile/oprofile_1.2.0.bb     | 10 +++++
 4 files changed, 10 insertions(+), 62 deletions(-)
 delete mode 100644 meta/recipes-kernel/oprofile/oprofile/0001-Fix-FTBFS-
problem-with-GCC-6.patch
 delete mode 100644 meta/recipes-kernel/oprofile/oprofile_1.1.0.bb
 create mode 100644 meta/recipes-kernel/oprofile/oprofile_1.2.0.bb
meta/recipes-kernel/oprofile/oprofile.inc +0 -1
index 4b01654fa3e..83fc8435cbd 100644
@@ -25,7 +25,6 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BPN}-${PV}.tar.gz
 \
            file://run-ptest \
            file://root-home-dir.patch \
            file://0001-Add-rmb-definition-for-NIOS2-architecture.patch \
-           file://0001-Fix-FTBFS-problem-with-GCC-6.patch \
 "
 UPSTREAM_CHECK_REGEX = "oprofile-(?P<pver>\d+(\.\d+)+)/"

UPSTREAM_CHECK_URI = "https://sourceforge.net/projects/oprofile/files/
oprofile/"

meta/recipes-kernel/oprofile/oprofile/0001-Fix- renamed from meta/recipes-kernel/oprofile/oprofile/0001-Fix-FTBFS-problem-with-GCC-6.patch +0 -0

FTBFS-problem-with-GCC-6.patch
deleted file mode 100644
index d372fd527ba..00000000000
--- a/meta/recipes-kernel/oprofile/oprofile/0001-Fix- FTBFS-problem-with-GCC-6.patch
+++ /dev/null

meta/recipes-kernel/oprofile/oprofile/0001-Fix- renamed from meta/recipes-kernel/oprofile/oprofile/0001-Fix-FTBFS-problem-with-GCC-6.patch +0 -9
@@ -1,51 +0,0 @@
-From 39d4d46a0bd504ac708ffe72df87bf74cd12ad30 Mon Sep 17 00:00:00 2001
-From: William Cohen <[email protected]>
-Date: Fri, 5 Feb 2016 17:30:19 -0500
-Subject: [PATCH] Fix FTBFS problem with GCC-6
-
-GCC-6 is pickier about some of the type conversions causing the Fedora
-24 mass rebuild the build of oprofile failed with:
-
-make[3]: Entering directory '/builddir/build/BUILD/

oprofile-1.1.0/libutil++'

meta/recipes-kernel/oprofile/oprofile/0001-Fix- renamed from meta/recipes-kernel/oprofile/oprofile/0001-Fix-FTBFS-problem-with-GCC-6.patch +0 -7
-g++ -DHAVE_CONFIG_H -I. -I..  -I ../libutil -I ../libop -I ../libpp   -W
-Wall -fno-common -ftemplate-depth-50 -O2 -g -pipe -Wall
-Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches
-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m32 -march=i686
-mtune=atom -fasynchronous-unwind-tables -c -o op_bfd.o op_bfd.cpp
-op_bfd.cpp: In member function 'void op_bfd::get_symbol_range(symbol_index_t,

long long unsigned int&, long long unsigned int&) const':
-op_bfd.cpp:538:47: error: cannot convert 'std::ostream {aka std::basic_ostream<char>}' to 'const bool' in initialization

meta/recipes-kernel/oprofile/oprofile/0001-Fix- renamed from meta/recipes-kernel/oprofile/oprofile/0001-Fix-FTBFS-problem-with-GCC-6.patch +0 -20
-  bool const verbose = cverb << (vbfd & vlevel1);
-                                               ^
-op_bfd.cpp:546:7: error: in argument to unary !
-  if (!verbose)
-       ^~~~~~~
-
-Avoid the intermediate bool type to make GCC-6 happy.
-
-Signed-off-by: William Cohen <[email protected]>
----
-Upstream-Status: Backport
-
- libutil++/op_bfd.cpp | 4 +---
- 1 file changed, 1 insertion(+), 3 deletions(-)
-
-diff --git a/libutil++/op_bfd.cpp b/libutil++/op_bfd.cpp
-index 389c920..f2eb42b 100644
---- a/libutil++/op_bfd.cpp
-+++ b/libutil++/op_bfd.cpp
-@@ -535,15 +535,13 @@ void op_bfd::get_symbol_range(symbol_index_t

sym_idx,
- {

meta/recipes-kernel/oprofile/oprofile/0001-Fix- renamed from meta/recipes-kernel/oprofile/oprofile/0001-Fix-FTBFS-problem-with-GCC-6.patch +0 -18
-       op_bfd_symbol const & sym = syms[sym_idx];
-
--      bool const verbose = cverb << (vbfd & vlevel1);
--
-       if (anon_obj)
-               start = sym.vma();
-       else
-               start = sym.filepos();
-       end = start + sym.size();
-
--      if (!verbose)
-+      if (!(cverb << (vbfd & vlevel1)))
-               return;
-
-       io_state state(cverb << (vbfd & vlevel1));
---
-1.9.1
-
meta/recipes-kernel/oprofile/oprofile_1.1.0.bb deleted +0 -7
deleted file mode 100644
index 92a94ad0d4d..00000000000
@@ -1,10 +0,0 @@
-require oprofile.inc
-
-DEPENDS += "virtual/kernel"
-DEPENDS_append_powerpc64 = " libpfm4"
-
-SRC_URI[md5sum] = "248c4c069f9476f427fa7195563f9867"
-SRC_URI[sha256sum] = "cf759a6de1a6033d5dfc93bda129a9

f2e128aecc4238cc657feb0801d1b0366c"

meta/recipes-kernel/oprofile/oprofile_1.1.0.bb deleted +0 -3
-
-S = "${WORKDIR}/oprofile-${PV}"
-
meta/recipes-kernel/oprofile/oprofile_1.2.0.bb new file +7 -0
new file mode 100644
index 00000000000..e85e805c37c
@@ -0,0 +1,10 @@
+require oprofile.inc
+
+DEPENDS += "virtual/kernel"
+DEPENDS_append_powerpc64 = " libpfm4"
+
+SRC_URI[md5sum] = "4fcd3920984dcb607314b2e225086c3a"
+SRC_URI[sha256sum] = "eb95f98c40b7d0ee29b45fba3565d9

f8381747528aa6b6159e37d4fa0c8ca57d"

meta/recipes-kernel/oprofile/oprofile_1.2.0.bb new file +3 -1
+
+S = "${WORKDIR}/oprofile-${PV}"
+
--

2.13.2

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

#13 lore raw

Re: [PATCH 6/7] oprofile: update to 1.2.0

Quoted 3 lines · Ross

Breaks with musl:

http://errors.yoctoproject.org/Errors/Details/150200/

Should we just remove oprofile? From git log I understood that it has been deprecated in favour of perf, and this musl failure is non-trivial to fix (necessary version of basename() is not provided by musl on purpose, and so needs to be manually reimplemented).

I'll send the patches :)

Alex