docbook-xsl,
docbook-xml,
m4,
- meson (>= 0.44),
+ meson (>= 0.49),
gettext,
gperf,
gnu-efi [amd64 i386 arm64],
4 files changed, 2 insertions(+), 9 deletions(-)
diff --git a/meson.build b/meson.build
-index 6c74ada..65296dc 100644
+index a87bb57..8072f52 100644
--- a/meson.build
+++ b/meson.build
-@@ -815,7 +815,6 @@ conf.set10('ENABLE_WHEEL_GROUP', get_option('wheel-group'))
+@@ -808,7 +808,6 @@ conf.set10('ENABLE_WHEEL_GROUP', get_option('wheel-group'))
dev_kvm_mode = get_option('dev-kvm-mode')
substs.set('DEV_KVM_MODE', dev_kvm_mode)
conf.set10('DEV_KVM_UACCESS', dev_kvm_mode != '0666')
kill_user_processes = get_option('default-kill-user-processes')
conf.set10('KILL_USER_PROCESSES', kill_user_processes)
-@@ -3094,7 +3093,6 @@ status = [
+@@ -3087,7 +3086,6 @@ status = [
'minimum container UID base: @0@'.format(container_uid_base_min),
'maximum container UID base: @0@'.format(container_uid_base_max),
'/dev/kvm access mode: @0@'.format(get_option('dev-kvm-mode')),
+
+</refentry>
diff --git a/meson.build b/meson.build
-index b338886..6c74ada 100644
+index e6b28e1..a87bb57 100644
--- a/meson.build
+++ b/meson.build
-@@ -2379,6 +2379,14 @@ executable('systemd-makefs',
+@@ -2372,6 +2372,14 @@ executable('systemd-makefs',
install : true,
install_dir : rootlibexecdir)
--- /dev/null
+From: Michael Biebl <biebl@debian.org>
+Date: Thu, 10 Jan 2019 12:58:27 +0100
+Subject: meson: stop setting -fPIE globally
+
+Setting -fPIE globally can lead to miscompilations on certain
+architectures.
+This is caused by both -fPIE and -fPIC options being added to various
+compilation commands. Only -fPIC is being recorded in the LTO options
+section of the object. The gcc-8 LTO plugin merges -fPIC + -fPIE to
+nothing. So, the compilations done by the plugin are not
+position-independent and fail to link with -pie.
+
+The simplest solution is to stop setting -fPIE globally and instead
+using meson's b_pie=true option. This requires meson 0.49 or later.
+
+Since we don't set this option in meson.build but leave it up to the
+distro maintainer to set this option, do not bump the meson version
+requirement.
+
+Fixes: #10548
+(cherry picked from commit 4e4bbc439eb7f16a608f457d3eaac08c60633212)
+---
+ meson.build | 7 -------
+ 1 file changed, 7 deletions(-)
+
+diff --git a/meson.build b/meson.build
+index b338886..e6b28e1 100644
+--- a/meson.build
++++ b/meson.build
+@@ -362,13 +362,6 @@ possible_link_flags = [
+ '-Wl,-z,now',
+ ]
+
+-# the oss-fuzz fuzzers are not built with -fPIE, so don't
+-# enable it when we are linking against them
+-if not fuzzer_build
+- possible_cc_flags += '-fPIE'
+- possible_link_flags += '-pie'
+-endif
+-
+ if cc.get_id() == 'clang'
+ possible_cc_flags += [
+ '-Wno-typedef-redefinition',
network-set-_configured-flags-to-false-before-requesting-.patch
man-update-color-of-journal-logs-in-DEBUG-level.patch
sd-device-monitor-fix-ordering-of-setting-buffer-size.patch
+meson-stop-setting-fPIE-globally.patch
debian/Use-Debian-specific-config-files.patch
debian/Bring-tmpfiles.d-tmp.conf-in-line-with-Debian-defaul.patch
debian/Make-run-lock-tmpfs-an-API-fs.patch
CONFFLAGS = \
-Db_lto=true \
+ -Db_pie=true \
-Drootlibdir=/lib/$(DEB_HOST_MULTIARCH) \
-Dsplit-usr=true \
-Dquotaon-path=/sbin/quotaon \