From f95745b06fa45f8d6ca34844a25f999b6a07a9a2 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Mon, 24 Mar 2014 13:49:12 +0000 Subject: [PATCH] Disable execstack on aarch64. It comes from prelink which does not exist on aarch64. --- supermin.spec | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/supermin.spec b/supermin.spec index f658cf2..fccc86a 100644 --- a/supermin.spec +++ b/supermin.spec @@ -1,7 +1,7 @@ Summary: Tool for creating supermin appliances Name: supermin Version: 5.1.5 -Release: 1%{?dist} +Release: 2%{?dist} License: GPLv2+ %if 0%{?rhel} >= 7 @@ -18,7 +18,9 @@ BuildRequires: /usr/sbin/mke2fs BuildRequires: e2fsprogs-devel BuildRequires: glibc-static, zlib-static BuildRequires: ocaml, ocaml-findlib-devel +%ifnarch aarch64 BuildRequires: /usr/bin/execstack +%endif Requires: rpm Requires: yum-utils @@ -59,7 +61,9 @@ make DESTDIR=$RPM_BUILD_ROOT install # from a data file. The program does not in fact require an # executable stack. The easiest way to fix this is to clear the flag # here. +%ifnarch aarch64 execstack -c $RPM_BUILD_ROOT%{_bindir}/supermin +%endif %check @@ -73,6 +77,10 @@ make check %changelog +* Mon Mar 24 2014 Richard W.M. Jones - 5.1.5-2 +- Disable execstack on aarch64. + It comes from prelink which does not exist on aarch64. + * Thu Mar 13 2014 Richard W.M. Jones - 5.1.5-1 - New upstream version 5.1.5.