Skip to contentSkip to conversation

security_flags.inc: enable PIE for a few recipes

PATCH In review Alexander Kanavin 2 participants 9 messages Jul 11, 2016 – Jul 14, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/8 security_flags.inc: enable PIE for a few recipes

They used to fail with PIE enabled, but no longer do.

---
 meta/conf/distro/include/security_flags.inc | 13 -------------
 1 file changed, 13 deletions(-)
meta/conf/distro/include/security_flags.inc +0 -13
index a7be185..67a7959 100644
@@ -29,7 +29,6 @@ SECURITY_CFLAGS_pn-libmatchbox_powerpc = ""
 SECURITY_CFLAGS_pn-lttng-tools_arm = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-aspell = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-beecrypt = "${SECURITY_NO_PIE_CFLAGS}"
-SECURITY_CFLAGS_pn-blktrace = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-coreutils = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-cups = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-db = "${SECURITY_NO_PIE_CFLAGS}"
@@ -40,7 +39,6 @@ SECURITY_CFLAGS_pn-elfutils = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-enchant = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-expect = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-flac = "${SECURITY_NO_PIE_CFLAGS}"
-SECURITY_CFLAGS_pn-flex = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-gcc = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-gcc-runtime = ""
 SECURITY_CFLAGS_pn-gcc-sanitizers = "${SECURITY_NO_PIE_CFLAGS}"
@@ -53,8 +51,6 @@ SECURITY_CFLAGS_pn-grub-efi-native = ""
 SECURITY_CFLAGS_pn-grub-efi-x86-native = ""
 SECURITY_CFLAGS_pn-grub-efi-i586-native = ""
 SECURITY_CFLAGS_pn-grub-efi-x86-64-native = ""
-SECURITY_CFLAGS_pn-gst-plugins-bad = "${SECURITY_NO_PIE_CFLAGS}"
-SECURITY_CFLAGS_pn-gst-plugins-gl = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-gstreamer1.0-plugins-bad = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-gstreamer1.0-plugins-good = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-harfbuzz = "${SECURITY_NO_PIE_CFLAGS}"
@@ -64,19 +60,15 @@ SECURITY_CFLAGS_pn-libaio = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-libcap = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-libgcc = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-libid3tag = "${SECURITY_NO_PIE_CFLAGS}"
-SECURITY_CFLAGS_pn-libnewt = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-libnewt-python = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-libglu = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-libpcap = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-libpcre = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-libproxy = "${SECURITY_NO_PIE_CFLAGS}"
-SECURITY_CFLAGS_pn-lttng-ust = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-mesa = "${SECURITY_NO_PIE_CFLAGS}"
-SECURITY_CFLAGS_pn-mesa-gl = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-openssl = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-opensp = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-ppp = "${SECURITY_NO_PIE_CFLAGS}"
-SECURITY_CFLAGS_pn-python = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-python-pycurl = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-python-smartpm = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-python-numpy = "${SECURITY_NO_PIE_CFLAGS}"
@@ -85,7 +77,6 @@ SECURITY_CFLAGS_pn-python3-pycairo = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-python3 = "${SECURITY_NO_PIE_CFLAGS}"
 # Revert RPM to using internally supported values
 SECURITY_CFLAGS_pn-rpm = "${lcl_maybe_fortify} -fstack-protector"
-SECURITY_CFLAGS_pn-syslinux = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-tcl = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-tiff = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-uclibc = ""
@@ -93,10 +84,6 @@ SECURITY_CFLAGS_pn-uclibc-initial = ""
 SECURITY_CFLAGS_pn-valgrind = ""
 SECURITY_CFLAGS_pn-zlib = "${SECURITY_NO_PIE_CFLAGS}"
 
-# These 2 have text relco errors with the pie options enabled
-SECURITY_CFLAGS_pn-ltp = "${SECURITY_NO_PIE_CFLAGS}"
-SECURITY_CFLAGS_pn-pulseaudio = "${SECURITY_NO_PIE_CFLAGS}"
-
 # Recipes which fail to compile when elevating -Wformat-security to an error
 SECURITY_STRINGFORMAT_pn-busybox = ""
 SECURITY_STRINGFORMAT_pn-console-tools = ""
Signature · 1 line
2.8.1
#1 lore raw

PATCH 2/8 bash-completion: update to 2.3

Drop files that are no longer present upstream.
Package cmake modules.

---
 .../{bash-completion_2.1.bb => bash-completion_2.3.bb}      | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)
 rename meta/recipes-support/bash-completion/{bash-completion_2.1.bb => bash-completion_2.3.bb} (71%)
meta/recipes-support/bash-completion/bash-completion_2.3.bb renamed from meta/recipes-support/bash-completion/bash-completion_2.1.bb +6 -7
similarity index 71%
rename from meta/recipes-support/bash-completion/bash-completion_2.1.bb
rename to meta/recipes-support/bash-completion/bash-completion_2.3.bb
index 4126262..5e6c1d8 100644
@@ -7,10 +7,10 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
 
 SECTION = "console/utils"
 
-SRC_URI="http://bash-completion.alioth.debian.org/files/${BPN}-${PV}.tar.bz2"
+SRC_URI = "https://github.com/scop/bash-completion/releases/download/${PV}/${BPN}-${PV}.tar.xz"
 
-SRC_URI[md5sum] = "4e2a9f11a4042a38ee79ddcd048e8b9e"
-SRC_URI[sha256sum] = "2b606804a7d5f823380a882e0f7b6c8a37b0e768e72c3d4107c51fbe8a46ae4f"
+SRC_URI[md5sum] = "6697dc47adfe70cab5023b7b8186ad57"
+SRC_URI[sha256sum] = "b2e081af317f3da4fff3a332bfdbebeb5514ebc6c2d2a9cf781180acab15e8e9"
 UPSTREAM_CHECK_REGEX = "bash-completion-(?P<pver>(?!2008).+)\.tar"
 UPSTREAM_CHECK_URI = "https://github.com/scop/bash-completion/releases"
 
@@ -25,12 +25,9 @@ do_install_append() {
 
 	# Delete files already provided by util-linux
 	local i
-	for i in cal dmesg eject hexdump hwclock ionice look renice rtcwake su mount umount; do
+	for i in mount umount; do
 		rm ${D}${datadir}/${BPN}/completions/$i
 	done
-
-	# Delete files for networkmanager
-	rm ${D}${datadir}/${BPN}/completions/nmcli
 }
 
 RDEPENDS_${PN} = "bash"
@@ -40,4 +37,6 @@ PACKAGES =+ "${PN}-extra"
 FILES_${PN}-extra = "${datadir}/${BPN}/completions/ \
     ${datadir}/${BPN}/helpers/"
 
+FILES_${PN}-dev += "${datadir}/cmake"
+
 BBCLASSEXTEND = "nativesdk"
Signature · 1 line
2.8.1
#2 lore raw

PATCH 3/8 desktop-file-utils-native: update to 0.23

In reply to Alexander Kanavin
---
 ...op-file-utils-native_0.22.bb => desktop-file-utils-native_0.23.bb} | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 rename meta/recipes-devtools/desktop-file-utils/{desktop-file-utils-native_0.22.bb => desktop-file-utils-native_0.23.bb} (78%)
meta/recipes-devtools/desktop-file-utils/desktop-file-utils-native_0.23.bb renamed from meta/recipes-devtools/desktop-file-utils/desktop-file-utils-native_0.22.bb +2 -2
similarity index 78%
rename from meta/recipes-devtools/desktop-file-utils/desktop-file-utils-native_0.22.bb
rename to meta/recipes-devtools/desktop-file-utils/desktop-file-utils-native_0.23.bb
index f899cd2..54daabe 100644
@@ -8,8 +8,8 @@ DEPENDS = "glib-2.0-native"
 
 SRC_URI = "http://freedesktop.org/software/desktop-file-utils/releases/desktop-file-utils-${PV}.tar.xz"
 
-SRC_URI[md5sum] = "c6b9f9aac1ea143091178c23437e6cd0"
-SRC_URI[sha256sum] = "843532672692f98e9b2d6ae6cc8658da562dfde1606c7f33d9d227a344de56c5"
+SRC_URI[md5sum] = "599133d51cc9a41bfec186414906b6f1"
+SRC_URI[sha256sum] = "6c094031bdec46c9f621708f919084e1cb5294e2c5b1e4c883b3e70cb8903385"
 
 inherit autotools native
 
Signature · 1 line
2.8.1
#3 lore raw

PATCH 4/8 libwnck3: upgrade to 3.20.1

In reply to Alexander Kanavin
---
 meta/recipes-gnome/libwnck/{libwnck3_3.14.1.bb => libwnck3_3.20.1.bb} | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 rename meta/recipes-gnome/libwnck/{libwnck3_3.14.1.bb => libwnck3_3.20.1.bb} (77%)
meta/recipes-gnome/libwnck/libwnck3_3.20.1.bb renamed from meta/recipes-gnome/libwnck/libwnck3_3.14.1.bb +2 -2
similarity index 77%
rename from meta/recipes-gnome/libwnck/libwnck3_3.14.1.bb
rename to meta/recipes-gnome/libwnck/libwnck3_3.20.1.bb
index 6f09533..d3c3a86 100644
@@ -11,8 +11,8 @@ PACKAGECONFIG ??= "startup-notification"
 PACKAGECONFIG[startup-notification] = "--enable-startup-notification,--disable-startup-notification,startup-notification"
 
 inherit gnomebase gobject-introspection
-SRC_URI[archive.md5sum] = "d96c0b74c4dc5fdae758964098603c90"
-SRC_URI[archive.sha256sum] = "bb643c9c423c8aa79c59973ce27ce91d3b180d1e9907902278fb79391f52befa"
+SRC_URI[archive.md5sum] = "487938d65d4bfae1f2501052b1bd7492"
+SRC_URI[archive.sha256sum] = "1cb03716bc477058dfdf3ebfa4f534de3b13b1aa067fcd064d0b7813291cba72"
 
 inherit distro_features_check
 # libxres means x11 only
Signature · 1 line
2.8.1
#4 lore raw

PATCH 5/8 epiphany: update to 3.20.3

In reply to Alexander Kanavin
---
 .../recipes-gnome/epiphany/{epiphany_3.18.4.bb => epiphany_3.20.3.bb} | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 rename meta/recipes-gnome/epiphany/{epiphany_3.18.4.bb => epiphany_3.20.3.bb} (84%)
meta/recipes-gnome/epiphany/epiphany_3.20.3.bb renamed from meta/recipes-gnome/epiphany/epiphany_3.18.4.bb +2 -2
similarity index 84%
rename from meta/recipes-gnome/epiphany/epiphany_3.18.4.bb
rename to meta/recipes-gnome/epiphany/epiphany_3.20.3.bb
index f0582ac..eba480b 100644
@@ -10,8 +10,8 @@ inherit gnomebase gsettings distro_features_check upstream-version-is-even
 REQUIRED_DISTRO_FEATURES = "x11"
 
 SRC_URI += "file://0001-yelp.m4-drop-the-check-for-itstool.patch"
-SRC_URI[archive.md5sum] = "172b78256100e8d3c629764abd0e1495"
-SRC_URI[archive.sha256sum] = "be699d484371111abae754e669187215df73e21533f461e513b79537d7a1c1c1"
+SRC_URI[archive.md5sum] = "31822b6b199f724f212ae9200bc055f1"
+SRC_URI[archive.sha256sum] = "4d9de1bdb44c14adf25aa6dc02ea3de60925cff5eb01fe89545e6032c9b424a2"
 
 EXTRA_OECONF += " --disable-nss --with-distributor-name=${DISTRO}"
 
Signature · 1 line
2.8.1
#5 lore raw

PATCH 6/8 python-scons: fix upstream version check

In reply to Alexander Kanavin
---
 meta/recipes-devtools/python/python-scons_2.5.0.bb | 1 -
 1 file changed, 1 deletion(-)
meta/recipes-devtools/python/python-scons_2.5.0.bb +0 -1
index c0a1cd4..8543c41 100644
@@ -10,7 +10,6 @@ SRC_URI[md5sum] = "bda5530a70a41a7831d83c8b191c021e"
 SRC_URI[sha256sum] = "01f1b3d6023516a8e1b5e77799e5a82a23b32953b1102d339059ffeca8600493"
 
 UPSTREAM_CHECK_URI = "https://pypi.python.org/pypi/SCons/"
-UPSTREAM_CHECK_REGEX = "/scons/(?P<pver>(\d+[\.\-_]*)+)/"
 
 S = "${WORKDIR}/${SRCNAME}-${PV}"
 
Signature · 1 line
2.8.1
#6 lore raw

PATCH 7/8 python-numpy: fix upstream version check

In reply to Alexander Kanavin
---
 meta/recipes-devtools/python-numpy/python-numpy_1.11.0.bb  | 1 +
 meta/recipes-devtools/python-numpy/python3-numpy_1.11.0.bb | 1 +
 2 files changed, 2 insertions(+)
meta/recipes-devtools/python-numpy/python-numpy_1.11.0.bb +1 -0
index 51ef171..7c70a10 100644
@@ -10,6 +10,7 @@ SRC_URI = "https://files.pythonhosted.org/packages/source/n/${SRCNAME}/${SRCNAME
            file://remove-build-path-in-comments.patch \
            file://fix_shebang_f2py.patch \
            ${CONFIGFILESURI} "
+UPSTREAM_CHECK_URI = "https://sourceforge.net/projects/numpy/files/"
 
 CONFIGFILESURI ?= ""
 
meta/recipes-devtools/python-numpy/python3-numpy_1.11.0.bb +1 -0
index 218909b..3cca223 100644
@@ -10,6 +10,7 @@ SRC_URI = "https://files.pythonhosted.org/packages/source/n/${SRCNAME}/${SRCNAME
            file://remove-build-path-in-comments.patch \
            file://fix_shebang_f2py.patch \
            ${CONFIGFILESURI} "
+UPSTREAM_CHECK_URI = "https://sourceforge.net/projects/numpy/files/"
 
 CONFIGFILESURI ?= ""
 
Signature · 1 line
2.8.1
#7 lore raw

PATCH 8/8 recipes-sato: fix upstream version check

In reply to Alexander Kanavin
---
 meta/recipes-sato/matchbox-config-gtk/matchbox-config-gtk_0.2.bb | 1 +
 meta/recipes-sato/matchbox-terminal/matchbox-terminal_0.1.bb     | 1 +
 meta/recipes-sato/matchbox-theme-sato/matchbox-theme-sato_0.2.bb | 1 +
 meta/recipes-sato/sato-screenshot/sato-screenshot_0.2.bb         | 1 +
 meta/recipes-sato/settings-daemon/settings-daemon_0.0.2.bb       | 1 +
 5 files changed, 5 insertions(+)
meta/recipes-sato/matchbox-config-gtk/matchbox-config-gtk_0.2.bb +1 -0
index 3ca5989..b993a94 100644
@@ -13,6 +13,7 @@ RDEPENDS_${PN} = "settings-daemon"
 SRCREV = "ef2192ce98d9374ffdad5f78544c3f8f353c16aa"
 SRC_URI = "git://git.yoctoproject.org/${BPN} \
            file://no-handed.patch"
+UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>(\d+(\.\d+)+))"
 
 S = "${WORKDIR}/git"
 
meta/recipes-sato/matchbox-terminal/matchbox-terminal_0.1.bb +1 -0
index e0a899c..4488191 100644
@@ -12,6 +12,7 @@ SECTION = "x11/utils"
 #SRCREV tagged 0.1
 SRCREV = "3ad357db2302760b8a8817b5f4478dd87479442f"
 SRC_URI = "git://git.yoctoproject.org/${BPN}"
+UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>(\d+(\.\d+)+))"
 
 S = "${WORKDIR}/git"
 
meta/recipes-sato/matchbox-theme-sato/matchbox-theme-sato_0.2.bb +1 -0
index 8fc6bb3..7a043d3 100644
@@ -3,5 +3,6 @@ require matchbox-theme-sato.inc
 # SRCREV tagged 0.2
 SRCREV = "df085ba9cdaeaf2956890b0e29d7ea1779bf6c78"
 SRC_URI = "git://git.yoctoproject.org/matchbox-sato"
+UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>(\d+(\.\d+)+))"
 
 S = "${WORKDIR}/git"
meta/recipes-sato/sato-screenshot/sato-screenshot_0.2.bb +1 -0
index 92f0ee1..ff91746 100644
@@ -12,6 +12,7 @@ DEPENDS = "matchbox-panel-2 gtk+3"
 # SRCREV tagged 0.2
 SRCREV = "5db2672fb857b2c80b949d8fce92e0f0029cc947"
 SRC_URI = "git://git.yoctoproject.org/screenshot"
+UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>(\d+(\.\d+)+))"
 
 S = "${WORKDIR}/git"
 
meta/recipes-sato/settings-daemon/settings-daemon_0.0.2.bb +1 -0
index 56eb656..ceaecca 100644
@@ -13,6 +13,7 @@ SRC_URI = "git://git.yoctoproject.org/xsettings-daemon \
            file://addsoundkeys.patch;apply=yes \
            file://70settings-daemon.sh \
            "
+UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>(\d+(\.\d+)+))"
 
 S = "${WORKDIR}/git"
 
Signature · 1 line
2.8.1
#8 lore raw
In reply to Alexander Kanavin
Quoted 2 lines · Alexander Kanavin

-SECURITY_CFLAGS_pn-python = "${SECURITY_NO_PIE_CFLAGS}"

This was fun: python with PIE flags silently fails to build various modules, including the zlib support.

-SECURITY_CFLAGS_pn-syslinux = "${SECURITY_NO_PIE_CFLAGS}"

Quoted 1 line

This failed to link although I can't find the log on the AB right now...

I've ripped these out of the patch for now.

Ross