OBS User unknown 2007-01-14 23:48:10 +00:00 committed by Git OBS Bridge
parent d65cb866d8
commit f508a4f783
3 changed files with 33 additions and 3 deletions

15
gmp-noexec.diff Normal file
View File

@ -0,0 +1,15 @@
--- mpn/m4-ccas.xx 2007-01-13 19:33:32.000000000 +0100
+++ mpn/m4-ccas 2007-01-13 19:34:19.000000000 +0100
@@ -88,8 +88,11 @@
CC="$CC -o $BASENAME.o"
fi
+echo '.section .note.GNU-stack,"",@progbits' > $TMP
+echo '.previous' >> $TMP
+
echo "$M4 $DEFS $ASM >$TMP"
-$M4 $DEFS $ASM >$TMP || exit
+$M4 $DEFS $ASM >>$TMP || exit
echo "$CC"
$CC || exit

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Sat Jan 13 20:11:14 CET 2007 - meissner@suse.de
- Mark assembler code as not needing exec stack/heap by hacking
the m4 -> assembler wrapper script.
- Run "make check", as mandated by our packaging guidelines.
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Oct 13 21:24:30 CEST 2006 - aj@suse.de Fri Oct 13 21:24:30 CEST 2006 - aj@suse.de

View File

@ -1,7 +1,7 @@
# #
# spec file for package gmp (Version 4.2.1) # spec file for package gmp (Version 4.2.1)
# #
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine # This file and all modifications and additions to the pristine
# package are under the same license as the package itself. # package are under the same license as the package itself.
# #
@ -12,11 +12,11 @@
Name: gmp Name: gmp
BuildRequires: gcc-c++ BuildRequires: gcc-c++
License: GPL, LGPL License: GNU General Public License (GPL), GNU Library General Public License v. 2.0 and 2.1 (LGPL)
Group: System/Libraries Group: System/Libraries
Autoreqprov: on Autoreqprov: on
Version: 4.2.1 Version: 4.2.1
Release: 2 Release: 17
Summary: The GNU MP Library Summary: The GNU MP Library
URL: http://www.swox.com/gmp/ URL: http://www.swox.com/gmp/
Source: ftp://prep.ai.mit.edu/pub/gnu/gmp/gmp-%{version}.tar.bz2 Source: ftp://prep.ai.mit.edu/pub/gnu/gmp/gmp-%{version}.tar.bz2
@ -27,6 +27,7 @@ Patch3: %{name}-%{version}-configure.arm-double.diff
Patch4: %{name}-%{version}-configure-ppc.diff Patch4: %{name}-%{version}-configure-ppc.diff
Patch5: %{name}-%{version}-mpz_set_d.diff Patch5: %{name}-%{version}-mpz_set_d.diff
Patch6: %{name}-%{version}-x86-fat.diff Patch6: %{name}-%{version}-x86-fat.diff
Patch7: %{name}-noexec.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description %description
@ -64,6 +65,7 @@ Authors:
%patch4 %patch4
%patch5 %patch5
%patch6 %patch6
%patch7
%build %build
export HOME=/tmp/ export HOME=/tmp/
@ -97,6 +99,8 @@ make CFLAGS="$RPM_OPT_FLAGS -Wall" CC=gcc %{?jobs:-j%jobs}
%ifnarch alpha %ifnarch alpha
make CFLAGS="$RPM_OPT_FLAGS -Wall" CC=gcc check %{?jobs:-j%jobs} make CFLAGS="$RPM_OPT_FLAGS -Wall" CC=gcc check %{?jobs:-j%jobs}
%endif %endif
# do not disable "make check", FIX THE BUGS!
make check
%install %install
make install DESTDIR=${RPM_BUILD_ROOT} make install DESTDIR=${RPM_BUILD_ROOT}
@ -129,6 +133,10 @@ rm -rf $RPM_BUILD_ROOT
/usr/include/* /usr/include/*
%changelog -n gmp %changelog -n gmp
* Sat Jan 13 2007 - meissner@suse.de
- Mark assembler code as not needing exec stack/heap by hacking
the m4 -> assembler wrapper script.
- Run "make check", as mandated by our packaging guidelines.
* Fri Oct 13 2006 - aj@suse.de * Fri Oct 13 2006 - aj@suse.de
- Fix build on x86-64. - Fix build on x86-64.
* Fri Oct 13 2006 - mjancar@suse.cz * Fri Oct 13 2006 - mjancar@suse.cz