Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 546558
Collapse All | Expand All

(-)dev-lang/python/python-3.3.3.ebuild (-2 / +9 lines)
Lines 63-69 Link Here
63
src_prepare() {
63
src_prepare() {
64
	# Ensure that internal copies of expat, libffi and zlib are not used.
64
	# Ensure that internal copies of expat, libffi and zlib are not used.
65
	rm -fr Modules/expat
65
	rm -fr Modules/expat
66
	rm -fr Modules/_ctypes/libffi*
66
#	rm -fr Modules/_ctypes/libffi*
67
	rm -fr Modules/zlib
67
	rm -fr Modules/zlib
68
68
69
	if tc-is-cross-compiler; then
69
	if tc-is-cross-compiler; then
Lines 157-162 Link Here
157
157
158
	[[ "${ARCH}" == "alpha" ]] && append-flags -fPIC
158
	[[ "${ARCH}" == "alpha" ]] && append-flags -fPIC
159
159
160
161
   if [[ ${CHOST} == *-solaris* ]]; then
162
        append-ldflags -L/lib -R/lib /lib/libz.so
163
        append-libs -lsocket -lnsl 
164
    fi
165
160
	# https://bugs.gentoo.org/show_bug.cgi?id=50309
166
	# https://bugs.gentoo.org/show_bug.cgi?id=50309
161
	if is-flagq -O3; then
167
	if is-flagq -O3; then
162
		is-flagq -fstack-protector-all && replace-flags -O3 -O2
168
		is-flagq -fstack-protector-all && replace-flags -O3 -O2
Lines 202-207 Link Here
202
		--with-fpectl \
208
		--with-fpectl \
203
		--enable-shared \
209
		--enable-shared \
204
		$(use_enable ipv6) \
210
		$(use_enable ipv6) \
211
        --disable-ipv6 \
205
		$(use_with threads) \
212
		$(use_with threads) \
206
		--infodir='${prefix}/share/info' \
213
		--infodir='${prefix}/share/info' \
207
		--mandir='${prefix}/share/man' \
214
		--mandir='${prefix}/share/man' \
Lines 211-217 Link Here
211
		--enable-loadable-sqlite-extensions \
218
		--enable-loadable-sqlite-extensions \
212
		--with-system-expat \
219
		--with-system-expat \
213
		--with-system-ffi \
220
		--with-system-ffi \
214
		--without-pymalloc
221
		--without-pymalloc \
215
222
216
	if use threads && grep -q "#define POSIX_SEMAPHORES_NOT_ENABLED 1" pyconfig.h; then
223
	if use threads && grep -q "#define POSIX_SEMAPHORES_NOT_ENABLED 1" pyconfig.h; then
217
		eerror "configure has detected that the sem_open function is broken."
224
		eerror "configure has detected that the sem_open function is broken."
(-)dev-lang/python/python-2.7.8.ebuild (-1 / +7 lines)
Lines 212-217 Link Here
212
		replace-flags -Os -O3  # comment #14
212
		replace-flags -Os -O3  # comment #14
213
	fi
213
	fi
214
214
215
    if [[ ${CHOST} == *-solaris* ]]; then
216
        append-ldflags -L/lib -R/lib /lib/libz.so
217
        append-libs -lsocket -lnsl
218
    fi
219
215
	if use prefix ; then
220
	if use prefix ; then
216
		# for Python's setup.py not to do false assumptions (only looking in
221
		# for Python's setup.py not to do false assumptions (only looking in
217
		# host paths) we need to make explicit where Prefix stuff is
222
		# host paths) we need to make explicit where Prefix stuff is
Lines 219-225 Link Here
219
		append-ldflags -L"${EPREFIX}"/$(get_libdir)
224
		append-ldflags -L"${EPREFIX}"/$(get_libdir)
220
		append-ldflags -L"${EPREFIX}"/usr/$(get_libdir)
225
		append-ldflags -L"${EPREFIX}"/usr/$(get_libdir)
221
		# fix compilation on some 64-bits Linux hosts, #381163, #473520
226
		# fix compilation on some 64-bits Linux hosts, #381163, #473520
222
		for hostlibdir in /usr/lib32 /usr/lib64 /usr/lib /lib32 /lib64; do
227
		for hostlibdir in /usr/lib32 /usr/lib64 /usr/lib /lib32 /lib64 /lib; do
223
			[[ -d ${hostlibdir} ]] || continue
228
			[[ -d ${hostlibdir} ]] || continue
224
			append-ldflags -L${hostlibdir}
229
			append-ldflags -L${hostlibdir}
225
		done
230
		done
Lines 274-279 Link Here
274
	econf \
279
	econf \
275
		--with-fpectl \
280
		--with-fpectl \
276
		$(use_enable ipv6) \
281
		$(use_enable ipv6) \
282
        --disable-ipv6 \
277
		$(use_with threads) \
283
		$(use_with threads) \
278
		$( (use wide-unicode && use !aqua) && echo "--enable-unicode=ucs4" || echo "--enable-unicode=ucs2") \
284
		$( (use wide-unicode && use !aqua) && echo "--enable-unicode=ucs4" || echo "--enable-unicode=ucs2") \
279
		--infodir='${prefix}/share/info' \
285
		--infodir='${prefix}/share/info' \
(-)sys-devel/binutils/binutils-2.24-r2.ebuild (+5 lines)
Lines 27-32 Link Here
27
	*-interix*) EXTRA_ECONF="${EXTRA_ECONF} --without-gnu-ld --without-gnu-as" ;;
27
	*-interix*) EXTRA_ECONF="${EXTRA_ECONF} --without-gnu-ld --without-gnu-as" ;;
28
	esac
28
	esac
29
29
30
    if [[ ${CHOST} == *-solaris* ]]; then
31
        append-ldflags -L/lib -R/lib
32
        append-libs -lsocket -lnsl 
33
    fi
34
30
	toolchain-binutils_src_compile
35
	toolchain-binutils_src_compile
31
}
36
}
32
37
(-)dev-util/pkgconfig/pkgconfig-0.28-r2.ebuild (+6 lines)
Lines 68-73 Link Here
68
		fi
68
		fi
69
	fi
69
	fi
70
70
71
    if [[ ${CHOST} == *-solaris* ]]; then
72
        append-libs -lresolv -lsocket -lnsl -lz
73
        append-ldflags -L/lib -R/lib /lib/libz.so
74
    fi
75
76
71
	use ppc64 && use hardened && replace-flags -O[2-3] -O1
77
	use ppc64 && use hardened && replace-flags -O[2-3] -O1
72
78
73
	# Force using all the requirements when linking, so that needed -pthread
79
	# Force using all the requirements when linking, so that needed -pthread
(-)app-arch/tar/tar-1.28.ebuild (+6 lines)
Lines 33-38 Link Here
33
33
34
src_configure() {
34
src_configure() {
35
	use static && append-ldflags -static
35
	use static && append-ldflags -static
36
37
    if [[ ${CHOST} == *-solaris* ]]; then
38
        append-ldflags -L/lib -R/lib
39
        append-libs -lsocket -lnsl
40
    fi
41
36
	FORCE_UNSAFE_CONFIGURE=1 \
42
	FORCE_UNSAFE_CONFIGURE=1 \
37
	econf \
43
	econf \
38
		--enable-backup-scripts \
44
		--enable-backup-scripts \
(-)x11-misc/shared-mime-info/shared-mime-info-1.4.ebuild (+4 lines)
Lines 25-30 Link Here
25
25
26
src_configure() {
26
src_configure() {
27
	export ac_cv_func_fdatasync=no #487504
27
	export ac_cv_func_fdatasync=no #487504
28
    
29
    if [[ ${CHOST} == *-solaris* ]]; then
30
        append-ldflags -R/lib /lib/libz.so
31
    fi
28
32
29
	econf \
33
	econf \
30
		$(use_enable test default-make-check)
34
		$(use_enable test default-make-check)
(-)dev-libs/openssl/openssl-1.0.2a.ebuild (+5 lines)
Lines 176-181 Link Here
176
		;;
176
		;;
177
	esac
177
	esac
178
178
179
    if [[ ${CHOST} == *-solaris* ]]; then
180
        append-ldflags -R/lib /lib/libz.so
181
    fi
182
183
179
	# See if our toolchain supports __uint128_t.  If so, it's 64bit
184
	# See if our toolchain supports __uint128_t.  If so, it's 64bit
180
	# friendly and can use the nicely optimized code paths. #460790
185
	# friendly and can use the nicely optimized code paths. #460790
181
	local ec_nistp_64_gcc_128
186
	local ec_nistp_64_gcc_128
(-)dev-libs/glib/glib-2.42.1.ebuild (-1 / +6 lines)
Lines 241-246 Link Here
241
	local mythreads=posix
241
	local mythreads=posix
242
	[[ ${CHOST} == *-winnt* ]] && mythreads=win32
242
	[[ ${CHOST} == *-winnt* ]] && mythreads=win32
243
243
244
    if [[ ${CHOST} == *-solaris* ]]; then
245
        append-libs -lresolv -lsocket -lnsl -lz
246
        append-ldflags -L/lib
247
    fi
248
244
	# Only used by the gresource bin
249
	# Only used by the gresource bin
245
	multilib_is_native_abi || myconf="${myconf} --disable-libelf"
250
	multilib_is_native_abi || myconf="${myconf} --disable-libelf"
246
251
Lines 253-259 Link Here
253
		$(use_enable systemtap dtrace) \
258
		$(use_enable systemtap dtrace) \
254
		$(use_enable systemtap systemtap) \
259
		$(use_enable systemtap systemtap) \
255
		--disable-compile-warnings \
260
		--disable-compile-warnings \
256
		--enable-man \
261
		--disable-man \
257
		--with-pcre=internal \
262
		--with-pcre=internal \
258
		--with-threads=${mythreads} \
263
		--with-threads=${mythreads} \
259
		--with-xml-catalog="${EPREFIX}/etc/xml/catalog"
264
		--with-xml-catalog="${EPREFIX}/etc/xml/catalog"
(-)dev-libs/libffi/libffi-3.2.1.ebuild (+5 lines)
Lines 47-52 Link Here
47
47
48
multilib_src_configure() {
48
multilib_src_configure() {
49
	use userland_BSD && export HOST="${CHOST}"
49
	use userland_BSD && export HOST="${CHOST}"
50
51
    if [[ ${CHOST} == *-solaris* ]]; then
52
        append-ldflags -R/lib /lib/libz.so
53
    fi
54
50
	econf \
55
	econf \
51
		$(use_enable static-libs static) \
56
		$(use_enable static-libs static) \
52
		$(use_enable pax_kernel pax_emutramp) \
57
		$(use_enable pax_kernel pax_emutramp) \
(-)dev-libs/libxml2/libxml2-2.9.2.ebuild (+6 lines)
Lines 105-110 Link Here
105
	# switch (enabling the libxml2 debug module). See bug #100898.
105
	# switch (enabling the libxml2 debug module). See bug #100898.
106
106
107
	# --with-mem-debug causes unusual segmentation faults (bug #105120).
107
	# --with-mem-debug causes unusual segmentation faults (bug #105120).
108
    
109
    if [[ ${CHOST} == *-solaris* ]]; then
110
        append-cppflags -DNO_LARGEFILE_SOURCE
111
        append-ldflags /lib/libz.so -L/lib -R/lib
112
        append-libs -lsocket -lnsl
113
    fi
108
114
109
	libxml2_configure() {
115
	libxml2_configure() {
110
		ECONF_SOURCE="${S}" econf \
116
		ECONF_SOURCE="${S}" econf \
(-)dev-libs/libxslt/libxslt-1.1.28-r4.ebuild (-2 / +7 lines)
Lines 7-13 Link Here
7
PYTHON_COMPAT=( python2_7 )
7
PYTHON_COMPAT=( python2_7 )
8
PYTHON_REQ_USE="xml"
8
PYTHON_REQ_USE="xml"
9
9
10
inherit autotools eutils python-r1 toolchain-funcs multilib-minimal
10
inherit autotools eutils python-r1 toolchain-funcs multilib-minimal flag-o-matic
11
11
12
DESCRIPTION="XSLT libraries and tools"
12
DESCRIPTION="XSLT libraries and tools"
13
HOMEPAGE="http://www.xmlsoft.org/"
13
HOMEPAGE="http://www.xmlsoft.org/"
Lines 59-65 Link Here
59
#	elibtoolize
59
#	elibtoolize
60
}
60
}
61
61
62
multilib_src_configure() {
62
multilib_src_configure() { 
63
    
64
    if [[ ${CHOST} == *-solaris* ]]; then
65
        append-ldflags -R/lib /lib/libz.so
66
    fi    
67
63
	libxslt_configure() {
68
	libxslt_configure() {
64
		ECONF_SOURCE=${S} econf \
69
		ECONF_SOURCE=${S} econf \
65
			$(use_enable static-libs static) \
70
			$(use_enable static-libs static) \
(-)sys-apps/coreutils/coreutils-8.23-r00.1.ebuild (+5 lines)
Lines 94-99 Link Here
94
		myconf="${myconf} --enable-no-install-program=groups,hostname,kill,su,uptime"
94
		myconf="${myconf} --enable-no-install-program=groups,hostname,kill,su,uptime"
95
	fi
95
	fi
96
96
97
    if [[ ${CHOST} == *-solaris* ]]; then
98
        append-ldflags -L/lib -R/lib
99
        append-libs -lsocket -lnsl
100
    fi
101
97
	econf \
102
	econf \
98
		--with-packager="Gentoo" \
103
		--with-packager="Gentoo" \
99
		--with-packager-version="${PVR} (p${PATCH_VER:-0})" \
104
		--with-packager-version="${PVR} (p${PATCH_VER:-0})" \
(-)sys-apps/coreutils/coreutils-8.23.ebuild (+5 lines)
Lines 93-98 Link Here
93
		myconf="${myconf} --enable-no-install-program=groups,hostname,kill,su,uptime"
93
		myconf="${myconf} --enable-no-install-program=groups,hostname,kill,su,uptime"
94
	fi
94
	fi
95
95
96
    if [[ ${CHOST} == *-solaris* ]]; then
97
        append-ldflags -L/lib -R/lib
98
        append-libs -lsocket -lnsl 
99
    fi
100
96
	econf \
101
	econf \
97
		--with-packager="Gentoo" \
102
		--with-packager="Gentoo" \
98
		--with-packager-version="${PVR} (p${PATCH_VER:-0})" \
103
		--with-packager-version="${PVR} (p${PATCH_VER:-0})" \
(-)sys-apps/gawk/gawk-4.1.1-r1.ebuild (+1 lines)
Lines 24-29 Link Here
24
	EPATCH_OPTS="-Z" \
24
	EPATCH_OPTS="-Z" \
25
	epatch "${FILESDIR}"/${P}-sandbox_issue.patch
25
	epatch "${FILESDIR}"/${P}-sandbox_issue.patch
26
	epatch "${FILESDIR}"/${P}-sigpipe.patch #507340
26
	epatch "${FILESDIR}"/${P}-sigpipe.patch #507340
27
    epatch "${FILESDIR}"/${P}-build-without-socket.patch
27
28
28
	# use symlinks rather than hardlinks, and disable version links
29
	# use symlinks rather than hardlinks, and disable version links
29
	sed -i \
30
	sed -i \
(-)/rpool/g/usr/portage/sys-apps/gawk/files/gawk-4.1.1-build-without-socket.patch (+16 lines)
Line 0 Link Here
1
--- gawk-4.1.1/io.c.orig        2014-03-05 04:00:36.000000000 +0000
2
+++ gawk-4.1.1/io.c     2014-04-09 14:40:40.000000000 +0100
3
@@ -166,6 +166,12 @@
4
 # define SOCKET                        int
5
 #endif
6
 
7
+#else /* HAVE_SOCKETS */
8
+
9
+#ifndef closemaybesocket
10
+# define closemaybesocket(fd)  close(fd)
11
+#endif
12
+
13
 #endif /* HAVE_SOCKETS */
14
 
15
 #ifndef HAVE_SETSID
16
(-)net-misc/wget/wget-1.16.ebuild (+7 lines)
Lines 62-67 Link Here
62
	# the included gnutls -- force ioctl.h to include this header
62
	# the included gnutls -- force ioctl.h to include this header
63
	[[ ${CHOST} == *-solaris* ]] && append-flags -DBSD_COMP=1
63
	[[ ${CHOST} == *-solaris* ]] && append-flags -DBSD_COMP=1
64
64
65
        
66
    if [[ ${CHOST} == *-solaris* ]]; then
67
        append-ldflags -L/lib -R/lib
68
        append-libs -lsocket -lnsl
69
    fi  
70
71
65
	if use static ; then
72
	if use static ; then
66
		append-ldflags -static
73
		append-ldflags -static
67
		tc-export PKG_CONFIG
74
		tc-export PKG_CONFIG
(-)net-misc/wget/wget-1.16.3.ebuild (+7 lines)
Lines 56-61 Link Here
56
		tc-export PKG_CONFIG
56
		tc-export PKG_CONFIG
57
		PKG_CONFIG+=" --static"
57
		PKG_CONFIG+=" --static"
58
	fi
58
	fi
59
60
    if [[ ${CHOST} == *-solaris* ]]; then
61
        append-ldflags -R/lib /lib/libz.so
62
        append-libs -lsocket -lnsl
63
    fi
64
65
59
	econf \
66
	econf \
60
		--disable-assert \
67
		--disable-assert \
61
		--disable-rpath \
68
		--disable-rpath \
(-)net-misc/rsync/rsync-3.1.1.ebuild (+5 lines)
Lines 30-35 Link Here
30
}
35
}
31
36
32
src_configure() {
37
src_configure() {
38
    if [[ ${CHOST} == *-solaris* ]]; then
39
        append-ldflags -R/lib /lib/libz.so 
40
        append-libs -lsocket -lnsl
41
    fi
42
33
	use static && append-ldflags -static
43
	use static && append-ldflags -static
34
	econf \
44
	econf \
35
		--without-included-popt \
45
		--without-included-popt \
(-)net-misc/openssh/openssh-6.8_p1-r1.ebuild (+6 lines)
Lines 213-218 Link Here
213
		append-ldflags -lutil
213
		append-ldflags -lutil
214
	fi
214
	fi
215
215
216
    if [[ ${CHOST} == *-solaris* ]]; then
217
        myconf+=( --without-openssl-header-check )
218
        append-ldflags -L/lib -R/lib
219
    fi
220
221
216
	econf "${myconf[@]}"
222
	econf "${myconf[@]}"
217
}
223
}
218
224
(-)app-editors/nano/nano-2.4.0.ebuild (+1 lines)
Lines 31-36 Link Here
31
31
32
src_prepare() {
32
src_prepare() {
33
	epatch "${FILESDIR}"/${P}-no-speller.patch #544296
33
	epatch "${FILESDIR}"/${P}-no-speller.patch #544296
34
    epatch "${FILESDIR}"/${P}-time_t.patch
34
	epatch_user
35
	epatch_user
35
}
36
}
36
37
(-)media-libs/jbig2enc/jbig2enc-0.28-r1.ebuild (+3 lines)
Line 0 Link Here
1
--- a/src/text.c	2015-04-10 12:45:47.406423123 +0200
Lines 27-32 Link Here
27
	sed -i -e '/AM_INIT_AUTOMAKE/s/-Werror//' configure.ac || die 'sed on configure.ac failed'
27
	sed -i -e '/AM_INIT_AUTOMAKE/s/-Werror//' configure.ac || die 'sed on configure.ac failed'
28
	# prevent static linking and QA notice about insecure RUNPATHs
28
	# prevent static linking and QA notice about insecure RUNPATHs
29
	sed -i -e '/jbig2_LDFLAGS/d' src/Makefile.am || die 'sed on src/Makefile.am failed'
29
	sed -i -e '/jbig2_LDFLAGS/d' src/Makefile.am || die 'sed on src/Makefile.am failed'
30
    # pdf.py is wrtitten in python2
31
    sed -i 's/#!\/usr\/bin\/python/#!\/usr\/bin\/python2/' pdf.py || die 'sed on pdf.py failed'
30
32
31
	autotools-utils_src_prepare
33
	autotools-utils_src_prepare
32
}
34
}
(-)media-libs/leptonica/leptonica-1.71-r1.ebuild (-1 / +5 lines)
Lines 5-11 Link Here
5
EAPI=5
5
EAPI=5
6
6
7
AUTOTOOLS_AUTORECONF="1"
7
AUTOTOOLS_AUTORECONF="1"
8
inherit eutils autotools-utils
8
inherit eutils autotools-utils flag-o-matic
9
9
10
DESCRIPTION="C library for image processing and analysis"
10
DESCRIPTION="C library for image processing and analysis"
11
HOMEPAGE="http://code.google.com/p/leptonica/"
11
HOMEPAGE="http://code.google.com/p/leptonica/"
Lines 49-54 Link Here
49
}
49
}
50
50
51
src_configure() {
51
src_configure() {
52
    if [[ ${CHOST} == *-solaris* ]]; then
53
        append-cppflags -D__SOLARIS__ 
54
    fi
55
52
	# $(use_with webp libwebp) -> unknown
56
	# $(use_with webp libwebp) -> unknown
53
	# so use-flag just for pulling dependencies
57
	# so use-flag just for pulling dependencies
54
	# zlib handling see bug 454890
58
	# zlib handling see bug 454890

Return to bug 546558