pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/shells/etsh shells/etsh: Fix build on SunOS.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2086986bffe8
branches:  trunk
changeset: 390422:2086986bffe8
user:      vins <vins%pkgsrc.org@localhost>
date:      Mon Dec 19 09:54:07 2022 +0000

description:
shells/etsh: Fix build on SunOS.

Prevent the `mkconfig' script from overwiriting CC and INSTALL
environment on SunOS. The script assumed OpenIndiana to be the
target SunOS platform, but this is isn't necessarily the case.
Package tested on Solaris 11.4 with Solaris Studio 12.6.

diffstat:

 shells/etsh/distinfo               |   3 ++-
 shells/etsh/patches/patch-mkconfig |  16 ++++++++++++++++
 2 files changed, 18 insertions(+), 1 deletions(-)

diffs (31 lines):

diff -r d5523ec5968e -r 2086986bffe8 shells/etsh/distinfo
--- a/shells/etsh/distinfo      Mon Dec 19 09:37:13 2022 +0000
+++ b/shells/etsh/distinfo      Mon Dec 19 09:54:07 2022 +0000
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.1 2022/07/04 08:31:43 pin Exp $
+$NetBSD: distinfo,v 1.2 2022/12/19 09:54:07 vins Exp $
 
 BLAKE2s (etsh-5.4.0.tar.xz) = 7aeb84e45ec79f2850c93fcd87078959a887f26d6e94f36716106e73db384f70
 SHA512 (etsh-5.4.0.tar.xz) = 7360da1e9bc6a7ed8c38e95eb1e2159bd2803ffa1a032235380d5901a1a6e0399d418b532917e8578bdab53fb43f99d35affc7753da0ec5612bbb8d47715970a
 Size (etsh-5.4.0.tar.xz) = 92388 bytes
+SHA1 (patch-mkconfig) = 63321044510964c52aee4f2c1afb2fab4d2d7499
diff -r d5523ec5968e -r 2086986bffe8 shells/etsh/patches/patch-mkconfig
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/shells/etsh/patches/patch-mkconfig        Mon Dec 19 09:54:07 2022 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-mkconfig,v 1.1 2022/12/19 09:54:07 vins Exp $
+
+Do not force compiler path on SunOS.
+
+--- mkconfig.orig      2018-12-16 16:40:44.000000000 +0000
++++ mkconfig
+@@ -220,8 +220,7 @@ SunOS)
+       ( echo '#define CONFIG_SUNOS' ; echo ) >>$CONFIG_H
+       echo '#define   _XOPEN_SOURCE   700'   >>$CONFIG_H
+       echo '#define   _XOPEN_SOURCE   700'   >>$BSDSTYLE_H
+-      CC=/usr/bin/gcc
+-      ( echo CC=$CC ; echo INSTALL=/usr/bin/ginstall ) >>mkconfig.tmp
++      ( echo CC=${CC} ; echo INSTALL=${INSTALL} ) >>mkconfig.tmp
+       ;;
+ *)
+       #



Home | Main Index | Thread Index | Old Index