public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Patrice Clement" <monsieurp@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-irc/inspircd/, net-irc/inspircd/files/
Date: Mon, 25 Jan 2016 09:00:19 +0000 (UTC)	[thread overview]
Message-ID: <1453453337.e2931d12fcebf38f2f2e9f60e53603949f016b37.monsieurp@gentoo> (raw)

commit:     e2931d12fcebf38f2f2e9f60e53603949f016b37
Author:     Andrew Wilcox <AWilcox <AT> Wilcox-Tech <DOT> com>
AuthorDate: Fri Jan 22 09:02:17 2016 +0000
Commit:     Patrice Clement <monsieurp <AT> gentoo <DOT> org>
CommitDate: Fri Jan 22 09:02:17 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e2931d12

net-irc/inspircd: patch tmpnam call (bug #560362)

POSIX::tmpnam() was deprecated in Perl 5.22 which causes a failure in
./configure with various combinations of USE flags enabled on systems
with 5.22 installed.

 .../inspircd-2.0.20-deprecated-tmpnam-560362.patch | 33 ++++++++++++++++++++++
 net-irc/inspircd/inspircd-2.0.20.ebuild            |  7 +++--
 2 files changed, 38 insertions(+), 2 deletions(-)

diff --git a/net-irc/inspircd/files/inspircd-2.0.20-deprecated-tmpnam-560362.patch b/net-irc/inspircd/files/inspircd-2.0.20-deprecated-tmpnam-560362.patch
new file mode 100644
index 0000000..9212841
--- /dev/null
+++ b/net-irc/inspircd/files/inspircd-2.0.20-deprecated-tmpnam-560362.patch
@@ -0,0 +1,33 @@
+From 79d1a436bb5c7ab40e43130495c455ffc8c682a2 Mon Sep 17 00:00:00 2001
+From: Richard Bradfield <bradfirj@fstab.me>
+Date: Wed, 22 Jul 2015 01:18:03 +0100
+Subject: [PATCH] Replace deprecated tmpnam() call
+
+From Perl 5.22 onwards, POSIX::tmpnam() has been deprecated (without the
+usual 2 year deprecation cycle), using the File::Temp module instead
+preserves compatibility while allowing compilation on 5.22 and later.
+---
+ make/utilities.pm | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/make/utilities.pm b/make/utilities.pm
+index ae16ce3..baba584 100644
+--- a/make/utilities.pm
++++ b/make/utilities.pm
+@@ -29,6 +29,7 @@ use warnings FATAL => qw(all);
+ 
+ use Exporter 'import';
+ use POSIX;
++use File::Temp;
+ use Getopt::Long;
+ use Fcntl;
+ our @EXPORT = qw(make_rpath pkgconfig_get_include_dirs pkgconfig_get_lib_dirs pkgconfig_check_version translate_functions promptstring);
+@@ -404,7 +405,7 @@ sub translate_functions($$)
+ 			my $tmpfile;
+ 			do
+ 			{
+-				$tmpfile = tmpnam();
++				$tmpfile = File::Temp::tmpnam();
+ 			} until sysopen(TF, $tmpfile, O_RDWR|O_CREAT|O_EXCL|O_NOFOLLOW, 0700);
+ 			print "(Created and executed \e[1;32m$tmpfile\e[0m)\n";
+ 			print TF $1;

diff --git a/net-irc/inspircd/inspircd-2.0.20.ebuild b/net-irc/inspircd/inspircd-2.0.20.ebuild
index d2ea27a..4ae0ac3 100644
--- a/net-irc/inspircd/inspircd-2.0.20.ebuild
+++ b/net-irc/inspircd/inspircd-2.0.20.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -37,7 +37,10 @@ src_prepare() {
 	# Patch the inspircd launcher with the inspircd user
 	sed -i -e "s/@UID@/${PN}/" "${S}/make/template/${PN}" || die
 
-	epatch "${FILESDIR}/${P}-fix-path-builds.patch"
+	epatch "${FILESDIR}"/${P}-fix-path-builds.patch
+	epatch "${FILESDIR}"/${P}-deprecated-tmpnam-560362.patch
+
+	epatch_user
 }
 
 src_configure() {


             reply	other threads:[~2016-01-25  9:00 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-25  9:00 Patrice Clement [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-05-28  3:47 [gentoo-commits] repo/gentoo:master commit in: net-irc/inspircd/, net-irc/inspircd/files/ Sam James
2021-05-28  3:14 Sam James
2020-08-12 22:20 Thomas Deutschmann
2020-08-12 22:20 Thomas Deutschmann
2019-05-26 10:26 Michał Górny
2018-12-16 23:53 Andreas Sturmlechner
2017-11-29 23:19 Andreas Sturmlechner
2017-10-04  9:45 Patrice Clement
2017-06-11  8:01 Michael Palimaka
2017-03-04  6:00 Michael Palimaka
2017-02-25 23:54 Thomas Deutschmann
2016-03-26  4:52 Ian Delaney
2015-09-24  2:06 Ian Delaney
2015-09-18  3:40 Ian Delaney

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1453453337.e2931d12fcebf38f2f2e9f60e53603949f016b37.monsieurp@gentoo \
    --to=monsieurp@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox