Print this page
Some packages need to specify -std=gnu89 to compile, and gcc51 defaults to
gnu11 now.
Also, updated mozilla-nss-nspr to 3.19 and 4.10.8, respectively.
| Split |
Close |
| Expand all |
| Collapse all |
--- old/build/dbus/build.sh
+++ new/build/dbus/build.sh
1 1 #!/usr/bin/bash
2 2 #
3 3 # CDDL HEADER START
4 4 #
5 5 # The contents of this file are subject to the terms of the
6 6 # Common Development and Distribution License, Version 1.0 only
7 7 # (the "License"). You may not use this file except in compliance
8 8 # with the License.
9 9 #
10 10 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
11 11 # or http://www.opensolaris.org/os/licensing.
12 12 # See the License for the specific language governing permissions
13 13 # and limitations under the License.
14 14 #
15 15 # When distributing Covered Code, include this CDDL HEADER in each
16 16 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
17 17 # If applicable, add the following below this CDDL HEADER, with the
18 18 # fields enclosed by brackets "[]" replaced with your own identifying
19 19 # information: Portions Copyright [yyyy] [name of copyright owner]
20 20 #
21 21 # CDDL HEADER END
22 22 #
23 23 #
24 24 # Copyright 2011-2012 OmniTI Computer Consulting, Inc. All rights reserved.
25 25 # Use is subject to license terms.
26 26 #
27 27 # Load support functions
|
↓ open down ↓ |
27 lines elided |
↑ open up ↑ |
28 28 . ../../lib/functions.sh
29 29
30 30 PROG=dbus
31 31 VER=1.6.8
32 32 PKG=dbus ##IGNORE##
33 33 SUMMARY="$PROG - IPC-based message notifications"
34 34 DESC="$SUMMARY"
35 35
36 36 DEPENDS_IPS="SUNWcs"
37 37
38 +# Use old gcc4 standards level for this.
39 +CFLAGS="$CFLAGS -std=gnu89"
38 40 CPPFLAGS="$CPPFLAGS -D__EXTENSIONS__ -D_REENTRANT"
39 41 CONFIGURE_OPTS="--with-x=no --with-dbus-user=root --disable-static --with-dbus-daemondir=/usr/lib
40 42 --bindir=/usr/bin --localstatedir=/var --libexecdir=/usr/libexec"
41 43
42 44 # We build backwards here on purpose so that 32bit binaries win (for install collisions).
43 45 build() {
44 46 if [[ $BUILDARCH == "64" || $BUILDARCH == "both" ]]; then
45 47 build64
46 48 fi
47 49 if [[ $BUILDARCH == "32" || $BUILDARCH == "both" ]]; then
48 50 build32
49 51 fi
50 52 }
51 53
52 54 make_prog64() {
53 55 logcmd perl -pi -e 's#(\$CC.*\$compiler_flags)#$1 -nostdlib#g;' libtool ||
54 56 logerr "libtool patch failed"
55 57 logcmd gmake || logerr "Make failed"
56 58 }
57 59
58 60 make_prog32() {
59 61 logcmd perl -pi -e 's#(\$CC.*\$compiler_flags)#$1 -nostdlib#g;' libtool ||
60 62 logerr "libtool patch failed"
61 63 logcmd gmake || logerr "Make failed"
62 64 }
63 65
64 66 post_install() {
65 67 mkdir -p $DESTDIR/var/svc/manifest/system
66 68 cp files/dbus.xml $DESTDIR/var/svc/manifest/system/dbus.xml
67 69 chmod 444 $DESTDIR/var/svc/manifest/system/dbus.xml
68 70 mkdir -p $DESTDIR/lib/svc/method
69 71 cp files/svc-dbus $DESTDIR/lib/svc/method/svc-dbus
70 72 chmod 555 $DESTDIR/lib/svc/method/svc-dbus
71 73 mkdir -p $DESTDIR/etc/security/auth_attr.d
72 74 mkdir -p $DESTDIR/etc/security/prof_attr.d
73 75 cp files/auth-system%2Flibrary%2Fdbus $DESTDIR/etc/security/auth_attr.d/system%2Flibrary%2Fdbus
74 76 cp files/prof-system%2Flibrary%2Fdbus $DESTDIR/etc/security/prof_attr.d/system%2Flibrary%2Fdbus
75 77 }
76 78
77 79 init
78 80 download_source $PROG $PROG $VER
79 81 patch_source
80 82 prep_build
81 83 build
82 84 make_isa_stub
83 85 post_install
84 86
85 87 PKG=system/library/dbus
86 88 SUMMARY="Simple IPC library based on messages"
87 89 DESC="Simple IPC library based on messages"
88 90 make_package dbus.mog
89 91
90 92 PKG=system/library/libdbus
91 93 SUMMARY="Simple IPC library based on messages - client libraries"
92 94 DESC="Simple IPC library based on messages - client libraries"
93 95 make_package libdbus.mog
94 96
95 97 #clean_up
|
↓ open down ↓ |
48 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX