Gentoo Archives: gentoo-commits

From: "Anthony G. Basile" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/hardened-dev:uclibc commit in: sys-libs/uclibc/, sys-libs/uclibc/files/
Date: Sun, 01 Apr 2012 21:39:05
Message-Id: 1333316254.97e1b6650e31f5497e8dc17b8a38d9a8c7306695.blueness@gentoo
1 commit: 97e1b6650e31f5497e8dc17b8a38d9a8c7306695
2 Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
3 AuthorDate: Sun Apr 1 21:37:34 2012 +0000
4 Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
5 CommitDate: Sun Apr 1 21:37:34 2012 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-dev.git;a=commit;h=97e1b665
7
8 sys-libs/uclibc: bump to 0.9.33 for x86
9
10 (Portage version: 2.1.10.49/git/Linux x86_64, signed Manifest commit with key 0xD0455535)
11
12 ---
13 sys-libs/uclibc/files/uclibc-i686.33.config | 271 +++++++++++++++++++++++++++
14 sys-libs/uclibc/uclibc-0.9.33.ebuild | 64 +++++++
15 2 files changed, 335 insertions(+), 0 deletions(-)
16
17 diff --git a/sys-libs/uclibc/files/uclibc-i686.33.config b/sys-libs/uclibc/files/uclibc-i686.33.config
18 new file mode 100644
19 index 0000000..58d8af6
20 --- /dev/null
21 +++ b/sys-libs/uclibc/files/uclibc-i686.33.config
22 @@ -0,0 +1,271 @@
23 +#
24 +# Automatically generated make config: don't edit
25 +# Version: 0.9.33
26 +# Sun Apr 1 13:30:30 2012
27 +#
28 +# TARGET_alpha is not set
29 +# TARGET_arm is not set
30 +# TARGET_avr32 is not set
31 +# TARGET_bfin is not set
32 +# TARGET_cris is not set
33 +# TARGET_e1 is not set
34 +# TARGET_frv is not set
35 +# TARGET_h8300 is not set
36 +# TARGET_hppa is not set
37 +TARGET_i386=y
38 +# TARGET_i960 is not set
39 +# TARGET_ia64 is not set
40 +# TARGET_m68k is not set
41 +# TARGET_microblaze is not set
42 +# TARGET_mips is not set
43 +# TARGET_nios is not set
44 +# TARGET_nios2 is not set
45 +# TARGET_powerpc is not set
46 +# TARGET_sh is not set
47 +# TARGET_sh64 is not set
48 +# TARGET_sparc is not set
49 +# TARGET_v850 is not set
50 +# TARGET_vax is not set
51 +# TARGET_x86_64 is not set
52 +# TARGET_xtensa is not set
53 +# TARGET_c6x is not set
54 +
55 +#
56 +# Target Architecture Features and Options
57 +#
58 +TARGET_ARCH="i386"
59 +FORCE_OPTIONS_FOR_ARCH=y
60 +# CONFIG_GENERIC_386 is not set
61 +# CONFIG_386 is not set
62 +# CONFIG_486 is not set
63 +# CONFIG_586 is not set
64 +# CONFIG_586MMX is not set
65 +CONFIG_686=y
66 +# CONFIG_PENTIUMII is not set
67 +# CONFIG_PENTIUMIII is not set
68 +# CONFIG_PENTIUM4 is not set
69 +# CONFIG_K6 is not set
70 +# CONFIG_K7 is not set
71 +# CONFIG_ELAN is not set
72 +# CONFIG_CRUSOE is not set
73 +# CONFIG_WINCHIPC6 is not set
74 +# CONFIG_WINCHIP2 is not set
75 +# CONFIG_CYRIXIII is not set
76 +# CONFIG_NEHEMIAH is not set
77 +TARGET_SUBARCH="i686"
78 +
79 +#
80 +# Using ELF file format
81 +#
82 +ARCH_LITTLE_ENDIAN=y
83 +
84 +#
85 +# Using Little Endian
86 +#
87 +ARCH_HAS_MMU=y
88 +ARCH_USE_MMU=y
89 +UCLIBC_HAS_FLOATS=y
90 +UCLIBC_HAS_FPU=y
91 +DO_C99_MATH=y
92 +DO_XSI_MATH=y
93 +UCLIBC_HAS_FENV=y
94 +UCLIBC_HAS_LONG_DOUBLE_MATH=y
95 +KERNEL_HEADERS="/usr/include"
96 +HAVE_DOT_CONFIG=y
97 +
98 +#
99 +# General Library Settings
100 +#
101 +DOPIC=y
102 +HAVE_SHARED=y
103 +FORCE_SHAREABLE_TEXT_SEGMENTS=y
104 +LDSO_LDD_SUPPORT=y
105 +LDSO_CACHE_SUPPORT=y
106 +LDSO_PRELOAD_ENV_SUPPORT=y
107 +LDSO_PRELOAD_FILE_SUPPORT=y
108 +LDSO_BASE_FILENAME="ld.so"
109 +LDSO_STANDALONE_SUPPORT=y
110 +LDSO_PRELINK_SUPPORT=y
111 +UCLIBC_STATIC_LDCONFIG=y
112 +LDSO_RUNPATH=y
113 +LDSO_SEARCH_INTERP_PATH=y
114 +LDSO_LD_LIBRARY_PATH=y
115 +# LDSO_NO_CLEANUP is not set
116 +UCLIBC_CTOR_DTOR=y
117 +LDSO_GNU_HASH_SUPPORT=y
118 +# HAS_NO_THREADS is not set
119 +# LINUXTHREADS_OLD is not set
120 +# LINUXTHREADS_NEW is not set
121 +UCLIBC_HAS_THREADS_NATIVE=y
122 +UCLIBC_HAS_THREADS=y
123 +UCLIBC_HAS_TLS=y
124 +PTHREADS_DEBUG_SUPPORT=y
125 +UCLIBC_HAS_SYSLOG=y
126 +UCLIBC_HAS_LFS=y
127 +# MALLOC is not set
128 +# MALLOC_SIMPLE is not set
129 +MALLOC_STANDARD=y
130 +MALLOC_GLIBC_COMPAT=y
131 +UCLIBC_DYNAMIC_ATEXIT=y
132 +COMPAT_ATEXIT=y
133 +UCLIBC_SUSV3_LEGACY=y
134 +UCLIBC_SUSV3_LEGACY_MACROS=y
135 +UCLIBC_SUSV4_LEGACY=y
136 +# UCLIBC_STRICT_HEADERS is not set
137 +UCLIBC_HAS_STUBS=y
138 +UCLIBC_HAS_SHADOW=y
139 +UCLIBC_HAS_PROGRAM_INVOCATION_NAME=y
140 +UCLIBC_HAS___PROGNAME=y
141 +UCLIBC_HAS_PTY=y
142 +ASSUME_DEVPTS=y
143 +UNIX98PTY_ONLY=y
144 +UCLIBC_HAS_GETPT=y
145 +UCLIBC_HAS_LIBUTIL=y
146 +UCLIBC_HAS_TM_EXTENSIONS=y
147 +UCLIBC_HAS_TZ_CACHING=y
148 +UCLIBC_HAS_TZ_FILE=y
149 +UCLIBC_HAS_TZ_FILE_READ_MANY=y
150 +UCLIBC_TZ_FILE_PATH="/etc/TZ"
151 +UCLIBC_FALLBACK_TO_ETC_LOCALTIME=y
152 +
153 +#
154 +# Advanced Library Settings
155 +#
156 +UCLIBC_PWD_BUFFER_SIZE=256
157 +UCLIBC_GRP_BUFFER_SIZE=256
158 +
159 +#
160 +# Support various families of functions
161 +#
162 +UCLIBC_LINUX_MODULE_26=y
163 +UCLIBC_LINUX_MODULE_24=y
164 +UCLIBC_LINUX_SPECIFIC=y
165 +UCLIBC_HAS_GNU_ERROR=y
166 +UCLIBC_BSD_SPECIFIC=y
167 +UCLIBC_HAS_BSD_ERR=y
168 +# UCLIBC_HAS_OBSOLETE_BSD_SIGNAL is not set
169 +# UCLIBC_HAS_OBSOLETE_SYSV_SIGNAL is not set
170 +# UCLIBC_NTP_LEGACY is not set
171 +# UCLIBC_SV4_DEPRECATED is not set
172 +UCLIBC_HAS_REALTIME=y
173 +UCLIBC_HAS_ADVANCED_REALTIME=y
174 +UCLIBC_HAS_EPOLL=y
175 +UCLIBC_HAS_XATTR=y
176 +# UCLIBC_HAS_PROFILING is not set
177 +UCLIBC_HAS_CRYPT_IMPL=y
178 +UCLIBC_HAS_SHA256_CRYPT_IMPL=y
179 +UCLIBC_HAS_SHA512_CRYPT_IMPL=y
180 +UCLIBC_HAS_CRYPT=y
181 +UCLIBC_HAS_NETWORK_SUPPORT=y
182 +UCLIBC_HAS_SOCKET=y
183 +UCLIBC_HAS_IPV4=y
184 +UCLIBC_HAS_IPV6=y
185 +UCLIBC_HAS_RPC=y
186 +UCLIBC_HAS_FULL_RPC=y
187 +UCLIBC_HAS_REENTRANT_RPC=y
188 +UCLIBC_USE_NETLINK=y
189 +UCLIBC_SUPPORT_AI_ADDRCONFIG=y
190 +UCLIBC_HAS_BSD_RES_CLOSE=y
191 +UCLIBC_HAS_COMPAT_RES_STATE=y
192 +UCLIBC_HAS_EXTRA_COMPAT_RES_STATE=y
193 +UCLIBC_HAS_RESOLVER_SUPPORT=y
194 +UCLIBC_HAS_LIBRESOLV_STUB=y
195 +UCLIBC_HAS_LIBNSL_STUB=y
196 +
197 +#
198 +# String and Stdio Support
199 +#
200 +UCLIBC_HAS_STRING_GENERIC_OPT=y
201 +UCLIBC_HAS_STRING_ARCH_OPT=y
202 +UCLIBC_HAS_CTYPE_TABLES=y
203 +UCLIBC_HAS_CTYPE_SIGNED=y
204 +# UCLIBC_HAS_CTYPE_UNSAFE is not set
205 +UCLIBC_HAS_CTYPE_CHECKED=y
206 +# UCLIBC_HAS_CTYPE_ENFORCED is not set
207 +UCLIBC_HAS_WCHAR=y
208 +# UCLIBC_HAS_LOCALE is not set
209 +UCLIBC_HAS_HEXADECIMAL_FLOATS=y
210 +UCLIBC_HAS_GLIBC_CUSTOM_PRINTF=y
211 +UCLIBC_PRINTF_SCANF_POSITIONAL_ARGS=9
212 +UCLIBC_HAS_SCANF_GLIBC_A_FLAG=y
213 +# UCLIBC_HAS_STDIO_BUFSIZ_NONE is not set
214 +# UCLIBC_HAS_STDIO_BUFSIZ_256 is not set
215 +# UCLIBC_HAS_STDIO_BUFSIZ_512 is not set
216 +# UCLIBC_HAS_STDIO_BUFSIZ_1024 is not set
217 +# UCLIBC_HAS_STDIO_BUFSIZ_2048 is not set
218 +UCLIBC_HAS_STDIO_BUFSIZ_4096=y
219 +# UCLIBC_HAS_STDIO_BUFSIZ_8192 is not set
220 +UCLIBC_HAS_STDIO_BUILTIN_BUFFER_NONE=y
221 +# UCLIBC_HAS_STDIO_BUILTIN_BUFFER_4 is not set
222 +# UCLIBC_HAS_STDIO_BUILTIN_BUFFER_8 is not set
223 +# UCLIBC_HAS_STDIO_SHUTDOWN_ON_ABORT is not set
224 +UCLIBC_HAS_STDIO_GETC_MACRO=y
225 +UCLIBC_HAS_STDIO_PUTC_MACRO=y
226 +UCLIBC_HAS_STDIO_AUTO_RW_TRANSITION=y
227 +UCLIBC_HAS_FOPEN_LARGEFILE_MODE=y
228 +UCLIBC_HAS_FOPEN_EXCLUSIVE_MODE=y
229 +UCLIBC_HAS_FOPEN_CLOSEEXEC_MODE=y
230 +UCLIBC_HAS_GLIBC_CUSTOM_STREAMS=y
231 +UCLIBC_HAS_PRINTF_M_SPEC=y
232 +UCLIBC_HAS_ERRNO_MESSAGES=y
233 +UCLIBC_HAS_SYS_ERRLIST=y
234 +UCLIBC_HAS_SIGNUM_MESSAGES=y
235 +UCLIBC_HAS_SYS_SIGLIST=y
236 +UCLIBC_HAS_GNU_GETOPT=y
237 +UCLIBC_HAS_STDIO_FUTEXES=y
238 +UCLIBC_HAS_GNU_GETSUBOPT=y
239 +
240 +#
241 +# Big and Tall
242 +#
243 +UCLIBC_HAS_REGEX=y
244 +UCLIBC_HAS_REGEX_OLD=y
245 +UCLIBC_HAS_FNMATCH=y
246 +UCLIBC_HAS_FNMATCH_OLD=y
247 +UCLIBC_HAS_WORDEXP=y
248 +UCLIBC_HAS_NFTW=y
249 +UCLIBC_HAS_FTW=y
250 +UCLIBC_HAS_FTS=y
251 +UCLIBC_HAS_GLOB=y
252 +UCLIBC_HAS_GNU_GLOB=y
253 +UCLIBC_HAS_UTMPX=y
254 +
255 +#
256 +# Library Installation Options
257 +#
258 +RUNTIME_PREFIX="/"
259 +DEVEL_PREFIX="/usr"
260 +MULTILIB_DIR="lib"
261 +HARDWIRED_ABSPATH=y
262 +
263 +#
264 +# Security options
265 +#
266 +UCLIBC_BUILD_PIE=y
267 +UCLIBC_HAS_ARC4RANDOM=y
268 +UCLIBC_HAS_SSP=y
269 +# UCLIBC_HAS_SSP_COMPAT is not set
270 +# SSP_QUICK_CANARY is not set
271 +# PROPOLICE_BLOCK_ABRT is not set
272 +PROPOLICE_BLOCK_SEGV=y
273 +UCLIBC_BUILD_SSP=y
274 +UCLIBC_BUILD_RELRO=y
275 +UCLIBC_BUILD_NOW=y
276 +UCLIBC_BUILD_NOEXECSTACK=y
277 +
278 +#
279 +# Development/debugging options
280 +#
281 +CROSS_COMPILER_PREFIX="i686-gentoo-linux-uclibc-"
282 +UCLIBC_EXTRA_CFLAGS=""
283 +# DODEBUG is not set
284 +DOSTRIP=y
285 +# DOASSERTS is not set
286 +# SUPPORT_LD_DEBUG is not set
287 +# SUPPORT_LD_DEBUG_EARLY is not set
288 +# UCLIBC_MALLOC_DEBUGGING is not set
289 +# UCLIBC_HAS_BACKTRACE is not set
290 +WARNINGS="-Wall"
291 +# EXTRA_WARNINGS is not set
292 +# DOMULTI is not set
293 +# UCLIBC_MJN3_ONLY is not set
294
295 diff --git a/sys-libs/uclibc/uclibc-0.9.33.ebuild b/sys-libs/uclibc/uclibc-0.9.33.ebuild
296 new file mode 100644
297 index 0000000..840391a
298 --- /dev/null
299 +++ b/sys-libs/uclibc/uclibc-0.9.33.ebuild
300 @@ -0,0 +1,64 @@
301 +# Copyright 1999-2011 Gentoo Foundation
302 +# Distributed under the terms of the GNU General Public License v2
303 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/uclibc/uclibc-0.9.30.1-r1.ebuild,v 1.9 2011/04/20 18:10:38 ulm Exp $
304 +
305 +EAPI="4"
306 +
307 +MY_P=uClibc-0.9.33
308 +DESCRIPTION="C library for developing embedded Linux systems"
309 +HOMEPAGE="http://www.uclibc.org/"
310 +SRC_URI="http://uclibc.org/downloads/${MY_P}.tar.bz2"
311 +
312 +LICENSE="LGPL-2"
313 +SLOT="0"
314 +KEYWORDS="-* ~amd64 ~x86 ~mips ~ppc"
315 +IUSE=""
316 +RESTRICT="strip"
317 +
318 +RDEPEND=""
319 +DEPEND=""
320 +
321 +S=${WORKDIR}/${MY_P}
322 +
323 +src_configure() {
324 + case ${ARCH} in
325 + x86)
326 + cp "${FILESDIR}"/uclibc-i686.33.config .config || die "could not copy config file"
327 + ;;
328 + amd64)
329 + cp "${FILESDIR}"/uclibc-amd64.33.config .config || die "could not copy config file"
330 + ;;
331 + mips)
332 + cp "${FILESDIR}"/uclibc-mips.33.config .config || die "could not copy config file"
333 + ;;
334 + ppc)
335 + cp "${FILESDIR}"/uclibc-ppc.33.config .config || die "could not copy config file"
336 + ;;
337 + *)
338 + eerror "${ARCH} is not supported"
339 + esac
340 + yes "" 2> /dev/null | make -s oldconfig > /dev/null || die "could not make oldconfig"
341 +}
342 +
343 +src_compile() {
344 + emake headers
345 + emake
346 + emake utils
347 +}
348 +
349 +src_install() {
350 + emake DESTDIR="${D}" install
351 +
352 + # remove files coming from kernel-headers
353 + rm -rf "${D}"/usr/include/{linux,asm*}
354 +
355 + emake DESTDIR="${D}" install_utils
356 + dobin extra/scripts/getent
357 + dodoc Changelog* README TODO docs/*.txt DEDICATION.mjn3
358 +}
359 +
360 +pkg_postinst() {
361 + echo "UTC" > "${ROOT}"/etc/TZ
362 + /sbin/ldconfig
363 + [[ -x /sbin/telinit ]] && /sbin/telinit U &> /dev/null
364 +}