public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Mike Gilbert" <floppym@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-shells/ksh/, app-shells/ksh/files/
Date: Sun, 29 Nov 2015 20:04:29 +0000 (UTC)	[thread overview]
Message-ID: <1448827463.c7dc706efaceb4816df5eedb45cd7c79ef1c3ef4.floppym@gentoo> (raw)

commit:     c7dc706efaceb4816df5eedb45cd7c79ef1c3ef4
Author:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Sun Nov 29 20:03:23 2015 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Sun Nov 29 20:04:23 2015 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c7dc706e

app-shells/ksh: Fix build with GCC 5

Bug: https://bugs.gentoo.org/555670

Package-Manager: portage-2.2.26_p3

 app-shells/ksh/files/cpp.patch        | 24 ++++++++++++++++++++++++
 app-shells/ksh/ksh-93.20140625.ebuild |  3 ++-
 2 files changed, 26 insertions(+), 1 deletion(-)

diff --git a/app-shells/ksh/files/cpp.patch b/app-shells/ksh/files/cpp.patch
new file mode 100644
index 0000000..7075bcf
--- /dev/null
+++ b/app-shells/ksh/files/cpp.patch
@@ -0,0 +1,24 @@
+iffe depends on cc -E not inserting newlines between tokens
+
+https://build.opensuse.org/package/view_file/home:Andreas_Schwab:Factory/ksh/cpp.patch?expand=1
+
+--- a/src/cmd/INIT/iffe.sh
++++ b/src/cmd/INIT/iffe.sh
+@@ -3427,7 +3427,7 @@
+ 						(eval "$src") <&$nullin || e=1
+ 						;;
+ 					mac*|nomac*)
+-						if	compile $cc -E $tmp.c <&$nullin >$tmp.i
++						if	compile $cc -E -P $tmp.c <&$nullin >$tmp.i
+ 						then	sed -e '/<<[ 	]*".*"[ 	]*>>/!d' -e 's/<<[ 	]*"//g' -e 's/"[ 	]*>>//g' $tmp.i
+ 						else	e=1
+ 						fi
+@@ -3718,7 +3718,7 @@
+ <<\"#define $v\">>	$v	<<\"/* native $v */\">>
+ <<\"#endif\">>
+ #endif" > $tmp.c
+-					if	compile $cc -E $tmp.c <&$nullin >$tmp.i
++					if	compile $cc -E -P $tmp.c <&$nullin >$tmp.i
+ 					then	sed -e '/<<[ 	]*".*"[ 	]*>>/!d' -e 's/<<[ 	]*"//g' -e 's/"[ 	]*>>//g' $tmp.i > $tmp.t
+ 						if	test -s $tmp.t
+ 						then	success

diff --git a/app-shells/ksh/ksh-93.20140625.ebuild b/app-shells/ksh/ksh-93.20140625.ebuild
index 5276f82..020d6b9 100644
--- a/app-shells/ksh/ksh-93.20140625.ebuild
+++ b/app-shells/ksh/ksh-93.20140625.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2015 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -29,6 +29,7 @@ src_prepare() {
 		bin/package src/cmd/INIT/package.sh || die
 
 	epatch "${FILESDIR}"/${PN}-prefix.patch
+	epatch "${FILESDIR}"/cpp.patch
 	eprefixify src/cmd/ksh93/data/msg.c
 }
 


             reply	other threads:[~2015-11-29 20:04 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-29 20:04 Mike Gilbert [this message]
  -- strict thread matches above, loose matches on Subject: below --
2018-01-28 21:25 [gentoo-commits] repo/gentoo:master commit in: app-shells/ksh/, app-shells/ksh/files/ Mike Gilbert
2020-02-07 16:08 Mike Gilbert
2022-05-15 11:11 Stephan Hartmann
2022-05-15 11:13 Stephan Hartmann
2022-09-19  6:31 Georgy Yakovlev

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=1448827463.c7dc706efaceb4816df5eedb45cd7c79ef1c3ef4.floppym@gentoo \
    --to=floppym@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