[libbsd-arc4random-perl] 01/11: Imported Debian patch 1.50-5

Damyan Ivanov dmn at moszumanska.debian.org
Wed Feb 12 10:29:55 UTC 2014


This is an automated email from the git hooks/post-receive script.

dmn pushed a commit to branch master
in repository libbsd-arc4random-perl.

commit 2a497b30dbfd817e8903f031c2f2fec3c3b899bb
Author: Thorsten Glaser <tg at mirbsd.de>
Date:   Sun Mar 11 23:27:10 2012 +0000

    Imported Debian patch 1.50-5
---
 debian/changelog              | 91 +++++++++++++++++++++++++++++++++++++++++++
 debian/compat                 |  1 +
 debian/control                | 27 +++++++++++++
 debian/copyright              | 35 +++++++++++++++++
 debian/patches/debian-changes | 82 ++++++++++++++++++++++++++++++++++++++
 debian/patches/series         |  1 +
 debian/rules                  | 69 ++++++++++++++++++++++++++++++++
 debian/source/format          |  1 +
 debian/watch                  |  4 ++
 9 files changed, 311 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..85322da
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,91 @@
+libbsd-arc4random-perl (1.50-5) unstable; urgency=low
+
+  * d/source/ has local-options and local-patch-header, 10x rra
+  * Enable dpkg/buildflags; idea from #662666, but CFLAGS must
+    also be added at link time; enable all hardening but PIE
+  * Policy 3.9.3 with no relevant changes
+  * Drop note about not using ExtUtils::MakeMaker since it works now
+
+ -- Thorsten Glaser <tg at mirbsd.de>  Sun, 11 Mar 2012 23:27:10 +0000
+
+libbsd-arc4random-perl (1.50-4) unstable; urgency=low
+
+  * Switch to source format 3.0 (quilt), single debian patch;
+    patched source in SCM, patches not in SCM
+  * Fix build log check and lintian warnings and tidy up
+
+ -- Thorsten Glaser <tg at mirbsd.de>  Sat, 28 Jan 2012 17:18:49 +0000
+
+libbsd-arc4random-perl (1.50-3) unstable; urgency=low
+
+  * Add build-{arch,indep} targets as alias for build
+  * Switch to current packaging style
+  * debian/rules: cleanup (remove install/check, dh_installdirs)
+  * Please lintian
+  * Help the Perl 5.14 transition along by uploading
+
+ -- Thorsten Glaser <tg at mirbsd.de>  Mon, 14 Nov 2011 23:14:46 +0000
+
+libbsd-arc4random-perl (1.50-2) unstable; urgency=low
+
+  * Update to CVS snapshot for fixes to the included
+    function prototypes
+  * Use included protos instead of (broken) libbsd headers
+
+ -- Thorsten Glaser <tg at mirbsd.de>  Mon, 06 Jun 2011 12:26:10 +0000
+
+libbsd-arc4random-perl (1.50-1) unstable; urgency=low
+
+  * Bump Standards-Version, no relevant changes
+  * debian/source/format: Enforce "1.0" manually, for now
+  * debian/control: Remove DMUA, I'm a DD now
+  * New upstream release (thanks to Vutral for prodding)
+    - Work with use64bitint
+    - Use contributed arc4random.c file on MSWin32, irix
+      (works only with gcc on win32; unknown if IRIX works…)
+    - Improve test coverage
+  * Correct how patches are applied
+  * Update debian/copyright
+
+ -- Thorsten Glaser <tg at mirbsd.de>  Sun, 05 Jun 2011 23:52:33 +0000
+
+libbsd-arc4random-perl (1.43-1) unstable; urgency=low
+
+  * Remove lintian overrides no longer necessary
+  * debian/watch: CPAN is not upstream but only mirror
+  * New upstream release (mostly warning/portability fixes)
+  * debian/control: add Homepage, ${misc:Depends}
+  * Upgrade Standards-Version from 3.8.2 to 3.8.3
+    - debian/control: un-version perl dependency
+  * debian/copyright: fix mis-notion that this were a native package
+
+ -- Thorsten Glaser <tg at mirbsd.de>  Sat, 12 Dec 2009 20:28:04 +0000
+
+libbsd-arc4random-perl (1.41-1) unstable; urgency=low
+
+  * Add VCS-CVS and VCS-Browser fields to debian/control
+  * Allow Debian Maintainer uploads
+  * New upstream version with improved support for non-Debian-relevant
+    OSes, an improved testsuite, more documentation and comments, comes
+    without CVS/ directories in the upstream tarball; fixes gcc warnings
+    and an incompatibility with newer libbsd versions; Closes: #534019
+  * Fix version number (1.3 was supposed to be 1.30; CPAN does not
+    document this particular issue)
+  * Add a TODO file with plans for future releases
+  * Use a patch system
+  * Sync the copyright file (also mention arc4random.c is not used)
+  * Enhance description in debian/control
+  * Fix pod2man errors
+  * Apply some lintian cleanup
+  * Install additional documentation files
+  * Bump Standards-Version
+  * Run the regression tests if nocheck is not set
+  * Switch to debhelper 5, by suggestion of Patrick "aptituz" Schoenfeld
+
+ -- Thorsten Glaser <tg at mirbsd.de>  Thu, 16 Jul 2009 14:19:48 +0000
+
+libbsd-arc4random-perl (1.3-1) unstable; urgency=low
+
+  * Initial Release, Closes: #491634
+
+ -- Thorsten Glaser <tg at mirbsd.de>  Mon, 21 Jul 2008 00:28:10 +0000
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..7ed6ff8
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+5
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..c4b3f20
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,27 @@
+# $MirOS: contrib/hosted/tg/deb/libbsd-arc4random-perl/debian/control,v 1.11 2012/03/11 23:27:27 tg Exp $
+#-
+Source: libbsd-arc4random-perl
+Section: perl
+Priority: optional
+Maintainer: Thorsten Glaser <tg at mirbsd.de>
+Homepage: https://www.mirbsd.org/a4rp5bsd.htm
+Build-Depends: debhelper (>= 5), libbsd-dev, perl
+Standards-Version: 3.9.3
+Vcs-CVS: :ext:_anoncvs at anoncvs.mirbsd.org:/cvs contrib/hosted/tg/deb/libbsd-arc4random-perl
+Vcs-Browser: http://cvs.mirbsd.de/contrib/hosted/tg/deb/libbsd-arc4random-perl/
+
+Package: libbsd-arc4random-perl
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, ${perl:Depends}
+Description: CPAN's BSD::arc4random -- Perl bindings for arc4random
+ The BSD::arc4random module provides a Perl API for the arc4random(3)
+ suite of functions and a few natively implemented functions.
+ .
+ Exposed functions are: have_kintf (ability to push entropy back to
+ the kernel); arc4random, arc4random_bytes, arc4random_uniform, the
+ RANDOM variable (get entropy); arc4random_stir (next time used, some
+ entropy from the kernel is first requested); arc4random_addrandom
+ (add user data to SRNG state); arc4random_push[bk] (push user data
+ to kernel RNG if supported; add kernel data or, if not supported,
+ user data to SRNG); the ability to "tie" variables to this module
+ for retrieving and storing entropy (e.g. in $RANDOM).
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..820383e
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,35 @@
+This package was debianised by Thorsten Glaser <tg at mirbsd.de> on
+Tue, 15 Jul 2008 21:23:05 +0000.
+
+p5-BSD-arc4random is available under the MirOS Licence, as repro-
+duced below. The contributed arc4random.c file is not used in the
+binary package.
+
+Copyright (c) 2008, 2009, 2010, 2011
+	Thorsten "mirabilos" Glaser, MirOS Project
+Copyright (c) 2009
+	Benny Siegert, MirOS Project
+Uploaded to CPAN by: Sebastian "Vutral" Schwarz (PAUSE ID: SJSZ)
+Credits to him for input, ideas and a lot of help.
+The arc4random(9) PRNG has been invented by the OpenBSD Project.
+The arc4random_uniform algorithm is derived from the code in the
+OpenBSD kernel, published by Damien Miller under the ISC licence
+(although no code was copied, acknowledgement is granted).
+
+Provided that these terms and disclaimer and all copyright notices
+are retained or reproduced in an accompanying document, permission
+is granted to deal in this work without restriction, including un-
+limited rights to use, publicly perform, distribute, sell, modify,
+merge, give away, or sublicence.
+
+This work is provided "AS IS" and WITHOUT WARRANTY of any kind, to
+the utmost extent permitted by applicable law, neither express nor
+implied; without malicious intent or gross negligence. In no event
+may a licensor, author or contributor be held liable for indirect,
+direct, other damage, loss, or other issues arising in any way out
+of dealing in the work, even if advised of the possibility of such
+damage or existence of a defect, except proven that it results out
+of said person's immediate fault when using the work as intended.
+
+________________________________________________________________________________________________________
+$MirOS: contrib/hosted/tg/deb/libbsd-arc4random-perl/debian/copyright,v 1.5 2011/06/05 23:45:30 tg Exp $
diff --git a/debian/patches/debian-changes b/debian/patches/debian-changes
new file mode 100644
index 0000000..7162641
--- /dev/null
+++ b/debian/patches/debian-changes
@@ -0,0 +1,82 @@
+Please review changes against upstream code using SCM,
+see the Vcs-* tags in debian/control for its location.
+
+--- libbsd-arc4random-perl-1.50.orig/Makefile.PL
++++ libbsd-arc4random-perl-1.50/Makefile.PL
+@@ -1,4 +1,4 @@
+-# $MirOS: contrib/hosted/tg/code/BSD::arc4random/Makefile.PL,v 1.6 2011/06/05 22:59:04 tg Exp $
++# $MirOS: contrib/hosted/tg/code/BSD::arc4random/Makefile.PL,v 1.7 2011/06/06 12:20:25 tg Exp $
+ #-
+ # Copyright (c) 2008, 2009, 2011
+ #	Thorsten Glaser <tg at mirbsd.org>
+@@ -22,10 +22,10 @@ use 5.000;
+ use ExtUtils::MakeMaker;
+ 
+ # configuration, set to auto or manual
+-my $cfg = 'auto';
++my $cfg = 'manual';
+ # override these values if manual mode
+-my $libs = '';
+-my $defs = '-DHAVE_ARC4RANDOM_PUSHB=1';
++my $libs = '-lbsd';
++my $defs = '-DHAVE_ARC4RANDOM_PUSHB=0 -DNEED_ARC4RANDOM_DECL';
+ my $incs = '';
+ my $objs = '';
+ # do not override below for auto mode
+@@ -40,14 +40,16 @@ if ($cfg eq 'auto') {
+ 	if (($^O eq 'gnu') ||
+ 	    ($^O eq 'gnukfreebsd') ||
+ 	    ($^O eq 'linux')) {
++		# libbsd has no consistent header
++		# containing the needed prototypes
++		# so we always use our own protos
++		$defs .= ' -DNEED_ARC4RANDOM_DECL';
+ 		# Debian GNU/HURD, GNU/kFreeBSD, GNU/Linux
+ 		# either use libbsd (lenny and up):
+-		#$incs = '-include /usr/include/bsd/bsd.h';
+ 		#$libs = '-lbsd';
+ 		# or use the contributed arc4random.c file
+ 		$objs = 'arc4random.o';
+ 		$defs .= ' -DHAVE_SYS_SYSCTL_H=0 -DHAVE_STDINT_H=1';
+-		$defs .= ' -DNEED_ARC4RANDOM_DECL';
+ 	}
+ 	if (($^O eq 'cygwin') || ($^O eq 'MSWin32') ||
+ 	    ($^O eq 'irix') ||
+--- libbsd-arc4random-perl-1.50.orig/arc4rnd_xs.c
++++ libbsd-arc4random-perl-1.50/arc4rnd_xs.c
+@@ -1,5 +1,5 @@
+ /*-
+- * Copyright (c) 2008, 2009
++ * Copyright (c) 2008, 2009, 2011
+  *	Thorsten Glaser <tg at mirbsd.org>
+  *
+  * Provided that these terms and disclaimer and all copyright notices
+@@ -48,7 +48,7 @@
+ #define __RCSID(x)			__IDSTRING(rcsid,x)
+ #endif
+ 
+-__RCSID("$MirOS: contrib/hosted/tg/code/BSD::arc4random/arc4rnd_xs.c,v 1.5 2009/10/10 22:43:53 tg Exp $");
++__RCSID("$MirOS: contrib/hosted/tg/code/BSD::arc4random/arc4rnd_xs.c,v 1.6 2011/06/06 12:20:26 tg Exp $");
+ 
+ #ifdef REDEF_USCORETYPES
+ #define u_int32_t	uint32_t
+@@ -57,6 +57,7 @@ __RCSID("$MirOS: contrib/hosted/tg/code/
+ #ifdef NEED_ARC4RANDOM_DECL
+ u_int32_t arc4random(void);
+ void arc4random_addrandom(u_char *, int);
++void arc4random_stir(void);
+ #endif
+ 
+ XS(XS_BSD__arc4random_arc4random_xs);
+@@ -109,6 +110,11 @@ XS(XS_BSD__arc4random_arc4random_addrand
+ #endif
+ 
+ #if HAVE_ARC4RANDOM_PUSHB
++
++#ifdef NEED_ARC4RANDOM_DECL
++uint32_t arc4random_pushb(const void *, size_t);
++#endif
++
+ XS(XS_BSD__arc4random_arc4random_pushb_xs);
+ XS(XS_BSD__arc4random_arc4random_pushb_xs)
+ {
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..7bb8252
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+debian-changes
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..ad44300
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,69 @@
+#!/usr/bin/make -f
+# $MirOS: contrib/hosted/tg/deb/libbsd-arc4random-perl/debian/rules,v 1.16 2012/03/11 23:21:55 tg Exp $
+
+EXTRA_CFLAGS=		-Wall -Wextra -Wformat -Wno-unused-variable
+#EXTRA_CPPFLAGS=
+#EXTRA_LDFLAGS=
+ifeq (,$(wildcard /usr/share/dpkg/buildflags.mk))
+CFLAGS=			-O$(if $(findstring noopt,${DEB_BUILD_OPTIONS}),0,2) -g
+CFLAGS+=		${EXTRA_CFLAGS}
+#CPPFLAGS+=		${EXTRA_CPPFLAGS}
+#LDFLAGS+=		${EXTRA_LDFLAGS}
+else
+DEB_CFLAGS_MAINT_APPEND=${EXTRA_CFLAGS}
+#DEB_CPPFLAGS_MAINT_APPEND=${EXTRA_CPPFLAGS}
+#DEB_LDFLAGS_MAINT_APPEND=${EXTRA_LDFLAGS}
+# drop PIE as this builds a shared library
+DEB_BUILD_MAINT_OPTIONS=hardening=+all,-pie
+include /usr/share/dpkg/buildflags.mk
+endif
+
+build build-arch: builddir/.build-stamp
+build-indep:
+
+builddir/.build-stamp:
+	dh_testdir
+	-rm -rf builddir
+	mkdir builddir
+	tar -cf - $$(cat MANIFEST) | (cd builddir; tar -xf -)
+	CFLAGS='${CFLAGS}'; CPPFLAGS='${CPPFLAGS}'; LDFLAGS='${LDFLAGS}'; \
+	    cd builddir && exec perl Makefile.PL verbose INSTALLDIRS=vendor \
+	    OPTIMIZE="$$CFLAGS $$CPPFLAGS" \
+	    LD="$$(perl -V::ld:) $$CFLAGS $$LDFLAGS"
+	cd builddir && exec ${MAKE}
+ifeq (,$(filter nocheck,${DEB_BUILD_OPTIONS}))
+	cd builddir && exec ${MAKE} test
+endif
+	@:>$@
+
+clean:
+	dh_testdir
+	dh_testroot
+	-rm -rf builddir
+	dh_clean
+
+binary: binary-indep binary-arch
+binary-indep:
+
+binary-arch: builddir/.build-stamp
+	dh_testdir
+	dh_testroot
+	if test -x "$$(which dh_prep)"; then dh_prep; else dh_clean -k; fi
+	cd builddir && exec ${MAKE} install \
+	    DESTDIR=${CURDIR}/debian/libbsd-arc4random-perl
+	dh_installchangelogs
+	dh_installdocs README TODO
+	dh_install
+	dh_installman
+	dh_link
+	dh_strip
+	dh_compress
+	dh_fixperms
+	dh_perl
+	dh_installdeb
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+.PHONY: binary binary-arch binary-indep build build-arch build-indep clean
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..ea54500
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,4 @@
+# $MirOS: contrib/hosted/tg/deb/libbsd-arc4random-perl/debian/watch,v 1.2 2009/12/12 20:30:58 tg Exp $
+
+version=3
+http://www.mirbsd.org/MirOS/dist/hosted/p5/ BSD-arc4random-([0-9.]+)\.tar.gz

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libbsd-arc4random-perl.git



More information about the Pkg-perl-cvs-commits mailing list