diff --git a/add-pie-and-bind_now-flags.patch b/add-pie-and-bind_now-flags.patch new file mode 100644 index 0000000..ea33815 --- /dev/null +++ b/add-pie-and-bind_now-flags.patch @@ -0,0 +1,25 @@ +From 678155eaeafa82ebdbebeed7567d54558c22538e Mon Sep 17 00:00:00 2001 +From: wang_yue111 <648774160@qq.com> +Date: Wed, 8 Sep 2021 16:05:12 +0800 +Subject: [PATCH] Add pie and bind_now flags + +--- + src/Makefile.in | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Makefile.in b/Makefile.in +index 09e1d08..5f8b34a 100644 +--- a/src/Makefile.in ++++ b/src/Makefile.in +@@ -1077,7 +1077,7 @@ supermin_LDADD = ../lib/libgnu.a + supermin_LINK = \ + ./supermin-link.sh \ + $(OCAMLFIND) $(BEST) $(OCAMLFLAGS) $(OCAMLPACKAGES) \ +- $(OBJECTS) -o $@ ++ $(OBJECTS) -cclib "-pie -Wl,-z,now" -o $@ + + BUILT_SOURCES = format-ext2-init-bin.h + SUFFIXES = .cmo .cmi .cmx .ml .mli .mll .mly +-- +2.23.0 + diff --git a/supermin.spec b/supermin.spec index 5fc2eab..8356922 100644 --- a/supermin.spec +++ b/supermin.spec @@ -1,6 +1,6 @@ Name: supermin Version: 5.1.19 -Release: 11 +Release: 12 Summary: A tool for building supermin appliances, required by libguestfs License: GPLv2+ URL: http://libguestfs.org/ @@ -10,6 +10,7 @@ Source2: supermin-find-requires Patch0001: 0001-Fix-Bytes-String-for-OCaml-4.06.patch Patch0002: 0002-use-installed-packages-instead-of-dnf-downloading.patch Patch9000: 9000-fix-cannot-detect-package-manager-on-openeuler.patch +Patch9001: add-pie-and-bind_now-flags.patch BuildRequires: augeas dietlibc-devel dnf dnf-plugins-core e2fsprogs-devel BuildRequires: findutils gnupg2 grubby hivex kernel ocaml ocaml-findlib-devel BuildRequires: rpm rpm-devel systemd-udev tar @@ -67,6 +68,9 @@ install -m 0755 %{SOURCE2} $RPM_BUILD_ROOT%{_rpmconfigdir}/ %{_mandir}/man1/* %changelog +* Wed Sep 08 2021 wangyue - 5.1.19-12 +- Add pie and bind_now flags + * Wed Dec 16 2020 maminjie - 5.1.19-11 - Use installed packages instead of dnf downloading