commit 2c8969f891900734120e83711e42b5750ebb357b6d3af63ab00c9ae21d3ae889 Author: OBS User unknown Date: Mon Jan 15 23:33:22 2007 +0000 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/prctl?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/prctl-1.3.dif b/prctl-1.3.dif new file mode 100644 index 0000000..2c29841 --- /dev/null +++ b/prctl-1.3.dif @@ -0,0 +1,90 @@ +--- Makefile.in ++++ Makefile.in 2001/12/29 21:42:27 +@@ -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)/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,23 +75,23 @@ + install: installdirs installbin installman + + installdirs: +- -if test ! -d $(prefix)/man; then \ +- mkdir $(prefix)/man; fi ++ -if test ! -d $(mandir); then \ ++ mkdir -p $(mandir); fi + -for dir in $(alldirs) ; do \ + if test ! -d $${dir}; then \ +- mkdir $${dir}; fi; \ ++ mkdir -p $${dir}; fi; \ + done + + installbin: all + $(INSTALL_PROGRAM) prctl $(bindir)/prctl +- ++ + installman: prctl.1 +- rm -f $(mandir)/prctl.$(manext) +- $(INSTALL_DATA) prctl.1 $(mandir)/prctl.$(manext) ++ rm -f $(man1dir)/prctl.$(manext) ++ $(INSTALL_DATA) prctl.1 $(man1dir)/prctl.$(manext) + + uninstall: + rm -f $(bindir)/prctl +- rm -f $(mandir)/prctl.$(manext) ++ rm -f $(man1dir)/prctl.$(manext) + + Makefile: Makefile.in ./config.status + ./config.status +--- prctl.c ++++ prctl.c 2001/12/29 21:32:38 +@@ -25,9 +25,17 @@ + #include + #include + #include +-#include ++#include + #include + ++#ifndef PR_GET_FPEMU ++/* Get/set floating-point emulation control bits (if meaningful) */ ++#define PR_GET_FPEMU 9 ++#define PR_SET_FPEMU 10 ++# define PR_FPEMU_NOPRINT 1 /* silently emulate fp operations accesses */ ++# define PR_FPEMU_SIGFPE 2 /* don't emulate fp operations, send SIGFPE instead */ ++#endif ++ + /* Version */ + #define VERSION "1.3" + diff --git a/prctl-1.3.tar.gz b/prctl-1.3.tar.gz new file mode 100644 index 0000000..76cf0f7 --- /dev/null +++ b/prctl-1.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b0a9a8f3fbe60da64ac1b0d4beaf3e74872a6c137e15c09625d176f8889aff63 +size 17607 diff --git a/prctl.changes b/prctl.changes new file mode 100644 index 0000000..26cb02b --- /dev/null +++ b/prctl.changes @@ -0,0 +1,20 @@ +------------------------------------------------------------------- +Wed Jan 25 21:40:37 CET 2006 - mls@suse.de + +- converted neededforbuild to BuildRequires + +------------------------------------------------------------------- +Sun Apr 18 20:15:43 CEST 2004 - schwab@suse.de + +- Pacify autobuild. + +------------------------------------------------------------------- +Sun Jan 11 13:25:57 CET 2004 - adrian@suse.de + +- build as user + +------------------------------------------------------------------- +Sat Dec 29 22:49:34 CET 2001 - schwab@suse.de + +- Initial version 1.3. + diff --git a/prctl.spec b/prctl.spec new file mode 100644 index 0000000..cb9235f --- /dev/null +++ b/prctl.spec @@ -0,0 +1,64 @@ +# +# spec file for package prctl (Version 1.3) +# +# Copyright (c) 2004 SUSE LINUX AG, Nuernberg, Germany. +# This file and all modifications and additions to the pristine +# package are under the same license as the package itself. +# +# Please submit bugfixes or comments via http://www.suse.de/feedback/ +# + +# norootforbuild + +Name: prctl +Summary: A utility to perform process operations +Version: 1.3 +Release: 354 +Group: System/Monitoring +License: GPL +Source: ftp://ftp.hp.com/pub/linux/prctl/prctl-%{version}.tar.gz +Patch: prctl-%{version}.dif +Patch1: warn.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%description +The prctl utility allows a user to control certain process behaviors in +the runtime environment. + + + +Authors: +-------- + Khalid Aziz + +%prep +%setup +%patch +%patch1 + +%build +CFLAGS=$RPM_OPT_FLAGS \ + ./configure --prefix=/usr --infodir=%{_infodir} --mandir=%{_mandir} +make + +%install +make install prefix=$RPM_BUILD_ROOT/usr infodir=$RPM_BUILD_ROOT%{_infodir} \ + mandir=$RPM_BUILD_ROOT%{_mandir} + +%clean +rm -fr $RPM_BUILD_ROOT + +%files +%defattr(-, root, root) +/usr/bin/prctl +%doc %{_mandir}/man1/prctl.1.gz + +%changelog -n prctl +* Wed Jan 25 2006 - mls@suse.de +- converted neededforbuild to BuildRequires +* Sun Apr 18 2004 - schwab@suse.de +- Pacify autobuild. +* Sun Jan 11 2004 - adrian@suse.de +- build as user +* Sat Dec 29 2001 - schwab@suse.de +- Initial version 1.3. diff --git a/ready b/ready new file mode 100644 index 0000000..473a0f4 diff --git a/warn.patch b/warn.patch new file mode 100644 index 0000000..dd50149 --- /dev/null +++ b/warn.patch @@ -0,0 +1,23 @@ +--- prctl.c ++++ prctl.c +@@ -55,12 +55,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); +@@ -355,4 +355,5 @@ + exit(1); + } + } ++ abort(); + }