Hello community,

here is the log from the commit of package execstack for openSUSE:Factory 
checked in at 2015-12-24 12:15:57
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/execstack (Old)
 and      /work/SRC/openSUSE:Factory/.execstack.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "execstack"

Changes:
--------
New Changes file:

--- /dev/null   2015-11-02 12:10:47.524024255 +0100
+++ /work/SRC/openSUSE:Factory/.execstack.new/execstack.changes 2015-12-24 
12:15:58.000000000 +0100
@@ -0,0 +1,25 @@
+-------------------------------------------------------------------
+Tue Dec  8 08:48:00 UTC 2015 - [email protected]
+
+- add Conflicts with prelink package
+  and fix rpmlint warnings need commented macros with double %%
+
+-------------------------------------------------------------------
+Tue Dec  1 08:47:54 UTC 2015 - [email protected]
+
+- remove autosetup in spec as source_validator reporting error
+
+-------------------------------------------------------------------
+Fri Nov 27 17:41:42 UTC 2015 - [email protected]
+
+- new prelink_add_no_execstack_for_ppc64.patch
+  to bypass for ppc64 archi the gcc linker that do not set
+  a GNU_STACK header in generated elf file.
+
+-------------------------------------------------------------------
+Thu Nov 26 16:11:08 UTC 2015 - [email protected]
+
+- Init new execstack package: (similar to fedora)
+  This package is built from prelink sources but contains just the
+  execstack binary. It can be used manipulate ELF binaries to run
+  with or without executable stack.

New:
----
  Add-PL_ARCH-for-AArch64.patch
  execstack.changes
  execstack.spec
  prelink-4c79120.tar.gz
  prelink_add_no_execstack_for_ppc64.patch
  prelink_update_fsf_address.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ execstack.spec ++++++
#
# spec file for package execstack
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#               2014 Wolfgang Rosenauer
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

Name:           execstack
Version:        0.5.0
Release:        0%{?dist}
Summary:        Utility to set/clear/query executable stack bit

%global commit 4c79120bcdbde0616f592458ccde7035e92ca3d8
%global shortcommit 4c79120
#global shortcommit %%(c=%%{commit}; echo ${c:0:7})
# do not use dynamic shortcommit, Source0 with git format and autosetup
# because "osc service localrun source_validator" would report error

License: GPL-2.0+
Url:     https://github.com/keszybz/prelink/archive
Source0: prelink-%{shortcommit}.tar.gz
#ource0: 
https://github.com/keszybz/prelink/archive/%%{commit}.tar.gz#/prelink-%%{shortcommit}.tar.gz

Patch0:  Add-PL_ARCH-for-AArch64.patch
Patch1:  prelink_update_fsf_address.patch
# bypass where gcc linker do not add the GNU_STACK default header in elf file
Patch2:  prelink_add_no_execstack_for_ppc64.patch

BuildRequires: libelf-devel
BuildRequires: libselinux-devel, selinux-tools
BuildRequires: git
Requires: glibc >= 2.2.4-18, coreutils, findutils
Requires: util-linux, gawk, grep
Conflicts: prelink <= %{version}

%description
This package is built from prelink sources but contains just the
execstack binary. It can be used manipulate ELF binaries to run
with or without executable stack.

%prep
#autosetup -n prelink-%%{commit} -p1 -Sgit
%setup -q -n prelink-%{commit}
%patch0 -p1
%patch1 -p1
%ifarch ppc64
%patch2 -p1
%endif

%build
sed -i -e '/^prelink_LDADD/s/$/ -lpthread/' src/Makefile.{am,in}
%configure
make %{?_smp_mflags} -C gelf
make %{?_smp_mflags} -C gelfx
make %{?_smp_mflags} -C gelfx32
make %{?_smp_mflags} -C src execstack

%check
cp src/execstack test
src/execstack -q test | grep '^-'
src/execstack -s test
src/execstack -q test | grep '^X'
src/execstack -c test
src/execstack -q test | grep '^-'

%install
install -D src/execstack %{buildroot}%{_bindir}/execstack
install -Dm0644 doc/execstack.8 %{buildroot}%{_mandir}/man8/execstack.8

%files
%defattr(-,root,root,-)
%{_bindir}/execstack
%{_mandir}/man8/execstack.8.*
%doc ChangeLog NEWS README TODO THANKS COPYING

%changelog

++++++ Add-PL_ARCH-for-AArch64.patch ++++++
>From a33b23b9ec5c0733a0ff85dafc46b3df2a6d2249 Mon Sep 17 00:00:00 2001
From: Mark Salter <[email protected]>
Date: Fri, 21 Aug 2015 12:03:30 -0400
Subject: [PATCH] Add PL_ARCH for AArch64

Add a skeleton PL_ARCH for AArch64. Just enough to support
execstack.

Signed-off-by: Mark Salter <[email protected]>
---
 src/Makefile.am    |  3 ++-
 src/Makefile.in    |  9 ++++++---
 src/arch-aarch64.c | 38 ++++++++++++++++++++++++++++++++++++++
 3 files changed, 46 insertions(+), 4 deletions(-)
 create mode 100644 src/arch-aarch64.c

diff --git a/src/Makefile.am b/src/Makefile.am
index d2265aa9c0..a4c65f2e65 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -12,7 +12,8 @@ bin_PROGRAMS = execstack
 
 arch_SOURCES = arch-i386.c arch-alpha.c arch-ppc.c arch-ppc64.c \
               arch-sparc.c arch-sparc64.c arch-x86_64.c arch-mips.c \
-              arch-s390.c arch-s390x.c arch-arm.c arch-sh.c arch-ia64.c
+              arch-s390.c arch-s390x.c arch-arm.c arch-sh.c arch-ia64.c \
+              arch-aarch64.c
 common_SOURCES = checksum.c data.c dso.c dwarf2.c dwarf2.h fptr.c fptr.h     \
                 hashtab.c hashtab.h mdebug.c prelink.h stabs.c crc32.c
 prelink_SOURCES = cache.c conflict.c cxx.c doit.c exec.c execle_open.c get.c \
diff --git a/src/Makefile.in b/src/Makefile.in
index 85cf84577f..863dc835a0 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -107,7 +107,8 @@ bin_PROGRAMS = execstack
 
 arch_SOURCES = arch-i386.c arch-alpha.c arch-ppc.c arch-ppc64.c \
               arch-sparc.c arch-sparc64.c arch-x86_64.c arch-mips.c \
-              arch-s390.c arch-s390x.c arch-arm.c arch-sh.c arch-ia64.c
+              arch-s390.c arch-s390x.c arch-arm.c arch-sh.c arch-ia64.c \
+              arch-aarch64.c
 
 common_SOURCES = checksum.c data.c dso.c dwarf2.c dwarf2.h fptr.c fptr.h     \
                 hashtab.c hashtab.h mdebug.c prelink.h stabs.c crc32.c
@@ -139,7 +140,8 @@ am__objects_2 = arch-i386.$(OBJEXT) arch-alpha.$(OBJEXT) \
        arch-ppc.$(OBJEXT) arch-ppc64.$(OBJEXT) arch-sparc.$(OBJEXT) \
        arch-sparc64.$(OBJEXT) arch-x86_64.$(OBJEXT) \
        arch-mips.$(OBJEXT) arch-s390.$(OBJEXT) arch-s390x.$(OBJEXT) \
-       arch-arm.$(OBJEXT) arch-sh.$(OBJEXT) arch-ia64.$(OBJEXT)
+       arch-arm.$(OBJEXT) arch-sh.$(OBJEXT) arch-ia64.$(OBJEXT) \
+       arch-aarch64.$(OBJEXT)
 am_execstack_OBJECTS = execstack.$(OBJEXT) $(am__objects_1) \
        $(am__objects_2)
 execstack_OBJECTS = $(am_execstack_OBJECTS)
@@ -162,7 +164,7 @@ LIBS = @LIBS@
 depcomp = $(SHELL) $(top_srcdir)/depcomp
 am__depfiles_maybe = depfiles
 @AMDEP_TRUE@DEP_FILES = ./$(DEPDIR)/arch-alpha.Po \
-@AMDEP_TRUE@   ./$(DEPDIR)/arch-arm.Po ./$(DEPDIR)/arch-i386.Po \
+@AMDEP_TRUE@   ./$(DEPDIR)/arch-arm.Po ./$(DEPDIR)/arch-aarch64.Po 
./$(DEPDIR)/arch-i386.Po \
 @AMDEP_TRUE@   ./$(DEPDIR)/arch-ia64.Po ./$(DEPDIR)/arch-mips.Po \
 @AMDEP_TRUE@   ./$(DEPDIR)/arch-ppc.Po ./$(DEPDIR)/arch-ppc64.Po \
 @AMDEP_TRUE@   ./$(DEPDIR)/arch-s390.Po ./$(DEPDIR)/arch-s390x.Po \
@@ -277,6 +279,7 @@ distclean-compile:
 
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/arch-alpha.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/arch-arm.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/arch-arch64.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/arch-i386.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/arch-ia64.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/arch-mips.Po@am__quote@
diff --git a/src/arch-aarch64.c b/src/arch-aarch64.c
new file mode 100644
index 0000000000..42eb2ececb
--- /dev/null
+++ b/src/arch-aarch64.c
@@ -0,0 +1,38 @@
+/* Copyright (C) 2015 Red Hat, Inc.
+   Written by Mark Salter <[email protected]>, 2015.
+
+   This program is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; either version 2, or (at your option)
+   any later version.
+
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this program; if not, write to the Free Software Foundation,
+   Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
+
+#include <config.h>
+#include <assert.h>
+#include <errno.h>
+#include <fcntl.h>
+#include <stdio.h>
+#include <string.h>
+#include <locale.h>
+#include <error.h>
+#include <argp.h>
+#include <stdlib.h>
+
+#include "prelink.h"
+
+PL_ARCH = {
+  .name = "AArch64",
+  .class = ELFCLASS64,
+  .machine = EM_AARCH64,
+  .alternate_machine = { EM_NONE },
+  .max_page_size = 0x10000,
+  .page_size = 0x1000
+};
-- 
2.1.0

++++++ prelink_add_no_execstack_for_ppc64.patch ++++++
From: Michel Normand <[email protected]>
Subject: prelink add no execstack for ppc64
Date: Fri, 27 Nov 2015 18:37:37 +0100

prelink add no execstack for ppc64

Signed-off-by: Michel Normand <[email protected]>
---
 src/Makefile.am |    1 +
 src/Makefile.in |    2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

Index: prelink-4c79120bcdbde0616f592458ccde7035e92ca3d8/src/Makefile.am
===================================================================
--- prelink-4c79120bcdbde0616f592458ccde7035e92ca3d8.orig/src/Makefile.am
+++ prelink-4c79120bcdbde0616f592458ccde7035e92ca3d8/src/Makefile.am
@@ -25,5 +25,6 @@ prelink_LDADD = @LIBGELF@
 prelink_LDFLAGS = -all-static
 
 execstack_SOURCES = execstack.c $(common_SOURCES) $(arch_SOURCES)
+execstack_LDFLAGS = -z noexecstack
 
 extra_DIST = makecrc.c
Index: prelink-4c79120bcdbde0616f592458ccde7035e92ca3d8/src/Makefile.in
===================================================================
--- prelink-4c79120bcdbde0616f592458ccde7035e92ca3d8.orig/src/Makefile.in
+++ prelink-4c79120bcdbde0616f592458ccde7035e92ca3d8/src/Makefile.in
@@ -123,6 +123,7 @@ prelink_LDADD = @LIBGELF@
 prelink_LDFLAGS = -all-static
 
 execstack_SOURCES = execstack.c $(common_SOURCES) $(arch_SOURCES)
+execstack_LDFLAGS = -z noexecstack
 
 extra_DIST = makecrc.c
 subdir = src
@@ -147,7 +148,6 @@ am_execstack_OBJECTS = execstack.$(OBJEX
 execstack_OBJECTS = $(am_execstack_OBJECTS)
 execstack_LDADD = $(LDADD)
 execstack_DEPENDENCIES =
-execstack_LDFLAGS =
 am_prelink_OBJECTS = cache.$(OBJEXT) conflict.$(OBJEXT) cxx.$(OBJEXT) \
        doit.$(OBJEXT) exec.$(OBJEXT) execle_open.$(OBJEXT) \
        get.$(OBJEXT) gather.$(OBJEXT) layout.$(OBJEXT) main.$(OBJEXT) \
++++++ prelink_update_fsf_address.patch ++++++
From: Michel Normand <[email protected]>
Subject: prelink update fsf address
Date: Thu, 26 Nov 2015 17:07:22 +0100

prelink update fsf address

Signed-off-by: Michel Normand <[email protected]>
---
 COPYING |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: prelink-4c79120bcdbde0616f592458ccde7035e92ca3d8/COPYING
===================================================================
--- prelink-4c79120bcdbde0616f592458ccde7035e92ca3d8.orig/COPYING
+++ prelink-4c79120bcdbde0616f592458ccde7035e92ca3d8/COPYING
@@ -2,7 +2,7 @@
                       Version 2, June 1991
 
  Copyright (C) 1989, 1991 Free Software Foundation, Inc.
-     59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+     51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  Everyone is permitted to copy and distribute verbatim copies
  of this license document, but changing it is not allowed.
 

Reply via email to