Accepting request 1199987 from utilities
- version update to 1.7 * Added missing defines to Makefile.in * Replace pre-generated configure with configure.ac * Added missing function types in prctl.c - deleted patches - prctl-1.5-Makefile.patch (partially, upstreamed, the rest in) - prctl-1.5-warnings.patch (upstreamed) - prctl-gcc14.patch (upstreamed) - added patches + prctl-destdir.patch OBS-URL: https://build.opensuse.org/request/show/1199987 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/prctl?expand=0&rev=24
This commit is contained in:
commit
bb6147e6cd
@ -1,19 +0,0 @@
|
||||
Index: prctl.c
|
||||
===================================================================
|
||||
--- 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;
|
||||
|
||||
-print_version(char *progname)
|
||||
+void print_version(char *progname)
|
||||
{
|
||||
printf("%s version %s\n", progname, VERSION);
|
||||
}
|
||||
|
||||
-usage(char *progname)
|
||||
+void usage(char *progname)
|
||||
{
|
||||
print_version(progname);
|
||||
printf("Usage: %s [-v] [-h|--help] [--version]\n", progname);
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:62cf7b519774dd5b655c9718fc9b16cc5f9feff199c6cd81f563c4da09fc8727
|
||||
size 18876
|
3
prctl-1.7.tar.gz
Normal file
3
prctl-1.7.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:87a2a2a6d2b0d3a697fcaf0902ff944c87cd3c10b9cd2f120db79fcc19e90173
|
||||
size 7219
|
@ -2,47 +2,11 @@
|
||||
Makefile.in | 41 +++++++++++++++++++++--------------------
|
||||
1 file changed, 21 insertions(+), 20 deletions(-)
|
||||
|
||||
Index: prctl-1.5/Makefile.in
|
||||
Index: prctl-1.7/Makefile.in
|
||||
===================================================================
|
||||
--- prctl-1.5.orig/Makefile.in 2006-05-18 17:51:16.000000000 +0200
|
||||
+++ prctl-1.5/Makefile.in 2010-11-19 10:14:09.785941511 +0100
|
||||
@@ -30,26 +30,27 @@
|
||||
LIBS = @LIBS@
|
||||
CFLAGS = @CFLAGS@
|
||||
# If you want debug on by default, use: CFLAGS="-g" ./configure
|
||||
-LDFLAGS = $(CFLAGS)
|
||||
+LDFLAGS = @LDFLAGS@
|
||||
|
||||
prefix = @prefix@
|
||||
-exec_prefix = $(prefix)
|
||||
+exec_prefix = @exec_prefix@
|
||||
|
||||
-bindir = $(exec_prefix)/bin
|
||||
+bindir = @bindir@
|
||||
scriptdir = $(bindir)
|
||||
# scriptdir is the directory in which shell scripts should be installed
|
||||
-#datadir = $(prefix)/lib
|
||||
-#libdir = $(prefix)/lib
|
||||
-#infodir = $(prefix)/info
|
||||
+datadir = @datadir@
|
||||
+libdir = @libdir@
|
||||
+infodir = @infodir@
|
||||
|
||||
# Extension (not including `.') for the installed manual page filenames.
|
||||
manext = 1
|
||||
# Where to install the manual pages.
|
||||
-mandir = $(prefix)/share/man/man$(manext)
|
||||
+mandir = @mandir@
|
||||
+man1dir = $(mandir)/man$(manext)
|
||||
# Use manlinks=so to use the .so method instead of hard links
|
||||
manlinks = ln
|
||||
|
||||
-alldirs = $(bindir) $(scriptdir) $(datadir) $(libdir) $(infodir) $(mandir)
|
||||
+alldirs = $(bindir) $(scriptdir) $(datadir) $(libdir) $(infodir) $(man1dir)
|
||||
|
||||
#### End of system configuration section. ####
|
||||
|
||||
@@ -74,25 +75,25 @@
|
||||
--- prctl-1.7.orig/Makefile.in
|
||||
+++ prctl-1.7/Makefile.in
|
||||
@@ -76,25 +76,25 @@ all: prctl
|
||||
install: installdirs installbin installman
|
||||
|
||||
installdirs:
|
@ -1,26 +0,0 @@
|
||||
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 */
|
@ -1,3 +1,17 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Sep 11 07:18:57 UTC 2024 - pgajdos@suse.com
|
||||
|
||||
- version update to 1.7
|
||||
* Added missing defines to Makefile.in
|
||||
* Replace pre-generated configure with configure.ac
|
||||
* Added missing function types in prctl.c
|
||||
- deleted patches
|
||||
- prctl-1.5-Makefile.patch (partially, upstreamed, the rest in)
|
||||
- prctl-1.5-warnings.patch (upstreamed)
|
||||
- prctl-gcc14.patch (upstreamed)
|
||||
- added patches
|
||||
+ prctl-destdir.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu May 9 07:41:50 UTC 2024 - pgajdos@suse.com
|
||||
|
||||
|
16
prctl.spec
16
prctl.spec
@ -17,18 +17,16 @@
|
||||
|
||||
|
||||
Name: prctl
|
||||
Version: 1.6
|
||||
Version: 1.7
|
||||
Release: 0
|
||||
Summary: A utility to perform process operations
|
||||
License: GPL-2.0-or-later
|
||||
Group: System/Monitoring
|
||||
URL: http://sourceforge.net/projects/prctl
|
||||
Source0: http://downloads.sourceforge.net/project/prctl/prctl/%{version}/prctl-%{version}.tar.gz
|
||||
URL: https://github.com/hikerockies/prctl/
|
||||
Source0: https://github.com/hikerockies/prctl/archive/refs/tags/v%{version}.tar.gz#/prctl-%{version}.tar.gz
|
||||
Source1: COPYING
|
||||
Patch0: prctl-1.5-Makefile.patch
|
||||
Patch1: prctl-1.5-warnings.patch
|
||||
# work with gcc14
|
||||
Patch2: prctl-gcc14.patch
|
||||
BuildRequires: automake
|
||||
Patch0: prctl-destdir.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%description
|
||||
@ -40,11 +38,13 @@ the runtime environment.
|
||||
cp %{SOURCE1} .
|
||||
|
||||
%build
|
||||
autoreconf -fiv
|
||||
%configure
|
||||
make
|
||||
|
||||
%install
|
||||
make DESTDIR=%{buildroot} install
|
||||
export man1dir="%{_mandir}/man1"
|
||||
%make_install
|
||||
|
||||
%files
|
||||
%defattr(-, root, root)
|
||||
|
Loading…
Reference in New Issue
Block a user