Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 200367 | Differences between
and this patch

Collapse All | Expand All

(-)busybox-1.7.3.ebuild (-32 / +29 lines)
Lines 58-64 fi Link Here
58
LICENSE="GPL-2"
58
LICENSE="GPL-2"
59
SLOT="0"
59
SLOT="0"
60
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
60
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
61
IUSE="debug pam static make-symlinks selinux"
61
IUSE="debug pam static make-symlinks selinux uclibc"
62
RESTRICT="test"
62
RESTRICT="test"
63
63
64
DEPEND="selinux? ( sys-libs/libselinux )
64
DEPEND="selinux? ( sys-libs/libselinux )
Lines 90-105 src_unpack() { Link Here
90
90
91
	# work around broken ass powerpc compilers
91
	# work around broken ass powerpc compilers
92
	use ppc64 && append-flags -mminimal-toc
92
	use ppc64 && append-flags -mminimal-toc
93
	# flag cleanup
93
	if ! use uclibc; then
94
	sed -i \
94
		epatch "${FILESDIR}/${P}-flags-strip.patch"
95
		-e 's:,-Werror,:,,:' \
95
		sed -i 's:-Wl,--gc-sections::' scripts/trylink
96
		-e 's:-Os -falign-functions=1 -falign-jumps=1 -falign-loops=1::' \
96
		sed -i '/^#error Aborting compilation./d' applets/applets.c
97
		-e 's:-fomit-frame-pointer::' \
97
	fi
98
		Makefile.flags
98
	echo "CROSS_COMPILE := ${CHOST}-" >> Makefile.local
99
	sed -i 's:-Wl,--gc-sections::' Makefile
100
	sed -i '/^#error Aborting compilation./d' applets/applets.c
101
	sed -i "/^CFLAGS.*:=/s:$: ${CFLAGS}:" Makefile
102
	echo "CROSS_COMPILE := ${CHOST}-" >> Makefile.flags
103
99
104
	# check for a busybox config before making one of our own.
100
	# check for a busybox config before making one of our own.
105
	# if one exist lets return and use it.
101
	# if one exist lets return and use it.
Lines 110-128 src_unpack() { Link Here
110
		return 0
106
		return 0
111
	else
107
	else
112
		ewarn "Could not locate user configfile, so we will save a default one"
108
		ewarn "Could not locate user configfile, so we will save a default one"
113
	fi
114
109
115
	# setup the config file
110
		# setup the config file
116
	make allyesconfig > /dev/null
111
		make allyesconfig > /dev/null
117
	busybox_config_option n DMALLOC
112
		busybox_config_option n DMALLOC
118
	busybox_config_option n FEATURE_SUID_CONFIG
113
		busybox_config_option n FEATURE_SUID_CONFIG
119
	busybox_config_option n BUILD_AT_ONCE
114
		busybox_config_option n BUILD_AT_ONCE
120
	busybox_config_option n BUILD_LIBBUSYBOX
115
		busybox_config_option n BUILD_LIBBUSYBOX
121
116
122
	# If these are not set and we are using a uclibc/busybox setup
117
		# If these are not set and we are using a uclibc/busybox setup
123
	# all calls to system() will fail.
118
		# all calls to system() will fail.
124
	busybox_config_option y FEATURE_SH_IS_ASH
119
		busybox_config_option y FEATURE_SH_IS_ASH
125
	busybox_config_option n FEATURE_SH_IS_NONE
120
		busybox_config_option n FEATURE_SH_IS_NONE
121
122
		# default a bunch of uncommon options to off
123
		for opt in LOCALE_SUPPORT TFTP FTP{GET,PUT} IPCALC TFTP HUSH \
124
			LASH MSH INETD DPKG RPM2CPIO RPM FOLD LOGNAME OD CRONTAB \
125
			UUDECODE UUENCODE SULOGIN DC DEBUG_INIT \
126
			DEBUG_CROND_OPTION FEATURE_UDHCP_DEBUG TASKSET \
127
			WERROR
128
		do
129
			busybox_config_option n ${opt}
130
		done
131
	fi
126
132
127
	if use static && use pam ; then
133
	if use static && use pam ; then
128
		ewarn "You cannot have USE='static pam'.  Assuming static is more important."
134
		ewarn "You cannot have USE='static pam'.  Assuming static is more important."
Lines 139-153 src_unpack() { Link Here
139
145
140
	busybox_config_option selinux SELINUX
146
	busybox_config_option selinux SELINUX
141
147
142
	# default a bunch of uncommon options to off
143
	for opt in LOCALE_SUPPORT TFTP FTP{GET,PUT} IPCALC TFTP HUSH \
144
		LASH MSH INETD DPKG RPM2CPIO RPM FOLD LOGNAME OD CRONTAB \
145
		UUDECODE UUENCODE SULOGIN DC DEBUG_YANK_SUSv2 DEBUG_INIT \
146
		DEBUG_CROND_OPTION FEATURE_UDHCP_DEBUG TASKSET
147
	do
148
		busybox_config_option n ${opt}
149
	done
150
151
	make oldconfig > /dev/null
148
	make oldconfig > /dev/null
152
}
149
}
153
150

Return to bug 200367