SHA256
1
0
forked from pool/prctl

Accepting request 1172888 from utilities

- fix build with gcc14
- use %autosetup macro
- modified patches
  % prctl-1.5-warnings.patch (refreshed)
- added patches
  work with gcc14
  + prctl-gcc14.patch

OBS-URL: https://build.opensuse.org/request/show/1172888
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/prctl?expand=0&rev=23
This commit is contained in:
Dominique Leuenberger 2024-05-11 16:18:51 +00:00 committed by Git OBS Bridge
commit 72aec73f98
4 changed files with 42 additions and 5 deletions

View File

@ -1,7 +1,7 @@
Index: prctl.c
===================================================================
--- prctl.c.orig 2006-05-25 00:06:24.000000000 +0200
+++ prctl.c 2010-11-19 10:03:03.821629772 +0100
--- a/prctl.c 2006-05-25 00:06:24.000000000 +0200
+++ b/prctl.c 2010-11-19 10:03:03.821629772 +0100
@@ -48,12 +48,12 @@
/* Verbose mode */
int verbose=0;

26
prctl-gcc14.patch Normal file
View File

@ -0,0 +1,26 @@
Index: prctl-1.6/configure
===================================================================
--- prctl-1.6.orig/configure
+++ prctl-1.6/configure
@@ -673,7 +673,7 @@ cat > conftest.$ac_ext << EOF
#line 674 "configure"
#include "confdefs.h"
-main(){return(0);}
+int main(){return(0);}
EOF
if { (eval echo configure:679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ac_cv_prog_cc_works=yes
Index: prctl-1.6/prctl.c
===================================================================
--- prctl-1.6.orig/prctl.c
+++ prctl-1.6/prctl.c
@@ -26,7 +26,7 @@
#include <getopt.h>
#include <errno.h>
#include <pwd.h>
-#include <linux/prctl.h>
+#include <sys/prctl.h>
#include <string.h>
/* Version */

View File

@ -1,3 +1,14 @@
-------------------------------------------------------------------
Thu May 9 07:41:50 UTC 2024 - pgajdos@suse.com
- fix build with gcc14
- use %autosetup macro
- modified patches
% prctl-1.5-warnings.patch (refreshed)
- added patches
work with gcc14
+ prctl-gcc14.patch
-------------------------------------------------------------------
Wed Feb 21 15:10:54 UTC 2024 - Michael Vetter <mvetter@suse.com>

View File

@ -27,6 +27,8 @@ Source0: http://downloads.sourceforge.net/project/prctl/prctl/%{version}/
Source1: COPYING
Patch0: prctl-1.5-Makefile.patch
Patch1: prctl-1.5-warnings.patch
# work with gcc14
Patch2: prctl-gcc14.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
@ -34,10 +36,8 @@ The prctl utility allows a user to control certain process behaviors in
the runtime environment.
%prep
%setup -q
%autosetup -p1
cp %{SOURCE1} .
%patch -P 0 -p1 -b .makefile
%patch -P 1 -b .warnings
%build
%configure