Skip to content

Commit c1e8923

Browse files
committed
OS-2032 bind should find nm in /usr/bin
OS-2033 illumos-extra install.subr should not reference /usr/ccs for strip OS-2034 libm should find ld, mcs, and strip in /usr
1 parent 795d4b4 commit c1e8923

File tree

6 files changed

+46
-11
lines changed

6 files changed

+46
-11
lines changed

bind/Makefile

+5-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#
1919
# CDDL HEADER END
2020
#
21-
# Copyright (c) 2012 Joyent, Inc. All rights reserved.
21+
# Copyright (c) 2013 Joyent, Inc. All rights reserved.
2222
#
2323

2424
VER = bind-9.8.0
@@ -32,8 +32,11 @@ AUTOCONF_OPTS += \
3232
CFLAGS += -g $(CPPFLAGS)
3333
PARALLEL =
3434

35+
PATCHES += \
36+
nm-loc.patch
37+
3538
AUTOCONF_ENV += \
36-
INSTALL="/usr/ucb/install -c"
39+
INSTALL="/usr/ucb/install -c" \
3740

3841
OVERRIDES += \
3942
INSTALL="/usr/ucb/install -c"

bind/nm-loc.patch

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
From f7bd7bb5122a69fae3cdd7bf9cdbb45e7183313f Mon Sep 17 00:00:00 2001
2+
From: Robert Mustacchi <[email protected]>
3+
Date: Sat, 16 Mar 2013 00:56:04 +0000
4+
Subject: [PATCH] Fix nm location
5+
6+
---
7+
util/mksymtbl.pl | 6 +++++-
8+
1 files changed, 5 insertions(+), 1 deletions(-)
9+
10+
diff --git a/util/mksymtbl.pl b/util/mksymtbl.pl
11+
index 9908a53..31351f4 100755
12+
--- a/util/mksymtbl.pl
13+
+++ b/util/mksymtbl.pl
14+
@@ -44,10 +44,14 @@ if ($options{'o'}) {
15+
$nm_prog = "nm";
16+
$ostype = `uname -s`;
17+
chop($ostype);
18+
-if ($ostype eq "SunOS" || $ostype eq "HP-UX") {
19+
+if ($ostype eq "HP-UX") {
20+
$nm_prog = "/usr/ccs/bin/nm -x"
21+
}
22+
23+
+if ($ostype eq "SunOS") {
24+
+ $nm_prog = "/usr/bin/nm -x"
25+
+}
26+
+
27+
if ($options{'i'}) {
28+
open(SYMBOLS, $options{'i'}) || die "failed to open $options{'i'}";
29+
} else {
30+
--
31+
1.7.7.2
32+

install.subr

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ _install()
5656
rm -f $_targ
5757
cp $_src $_targ
5858
chmod u+w $_targ
59-
/usr/ccs/bin/strip $_targ
59+
/usr/bin/strip $_targ
6060
chmod $_perm $_targ
6161
;;
6262

libm/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ DESTDIR=$(BASE)/../proto
2626

2727
all:
2828
(cd usr/src/harness; env - \
29-
make -f Makefile-os)
29+
make -f Makefile-os STRIP=/usr/bin/strip MCS=/usr/bin/mcs LD=/usr/bin/ld)
3030

3131
install: all
3232
BASE=$(DESTDIR) ksh93 ./install-extra

libm/usr/src/libm/wos/Makefile

+3-3
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,10 @@ CPP_CMD = $(CC) -E -Xs
5757
INSTALL = /usr/sbin/install
5858
INST_CMD = $(INSTALL) $(OWNED_BY) -m 644 -f $(@D) $<
5959
INST_EXEC_CMD = $(INSTALL) $(OWNED_BY) -m 755 -f $(@D) $<
60-
LD = /usr/ccs/bin/ld
60+
LD = /usr/bin/ld
6161
M4 = /usr/ccs/bin/m4
62-
MCS = /usr/ccs/bin/mcs
63-
STRIP = /usr/ccs/bin/strip
62+
MCS = /usr/bin/mcs
63+
STRIP = /usr/bin/strip
6464
TR = /usr/bin/tr
6565

6666
#

libm/usr/src/libm/wos64/Makefile

+4-4
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,15 @@ ISA_DIRS = $(ISA_DIRS_$(MCPU))
5454
# system commands
5555
#
5656

57-
AR = /usr/ccs/bin/ar
57+
AR = /usr/bin/ar
5858
CPP_CMD = $(CC) -E -Xs
5959
INSTALL = /usr/sbin/install
6060
INST_CMD = $(INSTALL) $(OWNED_BY) -m 644 -f $(@D) $<
6161
INST_EXEC_CMD = $(INSTALL) $(OWNED_BY) -m 755 -f $(@D) $<
62-
LD = /usr/ccs/bin/ld
62+
LD = /usr/bin/ld
6363
M4 = /usr/ccs/bin/m4
64-
MCS = /usr/ccs/bin/mcs
65-
STRIP = /usr/ccs/bin/strip
64+
MCS = /usr/bin/mcs
65+
STRIP = /usr/bin/strip
6666
TR = /usr/bin/tr
6767

6868
#

0 commit comments

Comments
 (0)