Gentoo Archives: gentoo-embedded

From: Daniel <dragonheart@×××××××.au>
To: "Peter S. Mazinger" <ps.m@×××.net>, gentoo-embedded@g.o
Subject: Re: [gentoo-embedded] Re: uclibc buildroot/ toolchain
Date: Sat, 13 Dec 2003 19:54:46
Message-Id: 200312141114.49396.dragonheart@tpg.com.au
In Reply to: [gentoo-embedded] Re: uclibc buildroot/ toolchain by "Peter S. Mazinger"
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


> Some proposals for uclibc.ebuild 20031206 (reading it only, not tested): > > 1. do not activate SYS_SIGLIST (and SYS_ERRLIST), they are obsoleted and > no SuSv3 requirement, probably will be removed, and they are easy to > replace (using sed if you like), there are not so many packages until now > where I needed it to patch. > > sys_siglist[sig] = strsignal(sig) /* util-linux */ > sys_errlist[err] = strerror(err) /* iputils, tcp_wrappers */
The only reason I put these is was because the busybox 0.60.5 used one of them.
> 2. use busybox and tinylogin cvs snapshots (or at least 1.0.0-pre4 for > busybox), the changes from 0.60.5 are massive.
Sounds good - that will fix #1.
> 3. I do not understand why WGET has to be set to true, if you have all > the needed files in sources/dl (DL_DIR), nothing will be downloaded.
Its basically to remove the dependancy that wget exists. Someone may have removed this and I did want to put it as a dependancy since it realy didn't get used. The portage system will downloads the files from the SRC_URI.
> 4. check uclibc.config and -locale, they are not always in sync (as > of this writing UNIX98PTY_ONLY is different). My build procedure runs make > defconfig (getting defaults for arch), after that I add echo > "CONFIG_<option>=y/n" >> .config and rerun make oldconfig (look in > uclibc.spec). Easier though is to have only the locale config, copy to > .config ,echo "CONFIG_LOCALE=n" >> .config, make oldconfig to get > nonlocal.
This is great. I was looking for the way to remove interactivity ;-).
> 5. No comment on src_install, do not know gentoo requirements,
Gentoo creates a image before the install at ${D} /var/tmp/portage/uclibc-buildroot-0.9.23/image and this is forced to be empty at the start of src_install. I've sort of got to copy from staging_dir to ${D} which is a bit of a waste of space and time. More makefile hacking to fix this.
> but check > the files in $ROOT/usr/lib/gcc-lib/*/version/include, I had here a > "fixed" zutil.h and linux/nls.h, there could be others too (my build > system was minimal at that moment)
I've got that as a symlink like: /usr/lib/gcc-lib/i386-uclibc/0.9.23 -> /usr/i386-uclibc/lib The gcc-config (gentoo wrapper gcc/g++ that maps to specific compilers) looked for something in /usr/lib/... so I just symlinked an that seems to work. I need to verify this later. The linux/nls.h and the zutil.h are the standard kernel headers. I found a zutil.h in toolchain_build_$(ARCH)/gcc-3.3.2/zlib/zutil.h have you modified this one?
> and it looks like all these get higher > priority as those installed in $ROOT/usr/include subdir (and you'll end up > building against different version of headers and libs)
If you're cross compiling isn't this the desired behaviour? Yes I do need to somehow handle different kernel versions somehow - will think about later. I'm not sure totaly what you're refering to here but I will look into it a bit. I'm intested in incorportating your fixed files along the etdyn and propolice(?) patches ones that Ned is also trying to get off you.
> 6. My changes to (non-locale) config are: > - CONFIG_PROFILING=n (for "use etdyn" it should be a requirement due to > TEXTREL in libc.so, checked up to cvs) > - PTHREADS_DEBUG_SUPPORT=n if non-debugging > - MALLOC_GLIBC_COMPAT=n > - UNIX98PTY_ONLY=y > - UCLIBC_HAS_SCANF_GLIBC_GLIBC_A_FLAG=n /* not really implemented */ > - UCLIBC_HAS_TZ_FILE_READ_MANY=n /* we change only once /etc/TZ */
Ok will incorporate this. A locale config would be the same right? or is there some other weird dependancy.
> Best regards, Peter
Thankyou kindly - -- Daniel Black - -- Proudly a Gentoo Linux User. GnuPG/PGP signed and encrypted email preferred http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x32A64DC8 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) iD8DBQE/28CPTDSbtjKmTcgRAqWFAJwPJg3VRQi9EkWB+Cgc2tnsq236QACgrFCV olp/Y5nUroeOcl1mxcCkwyw= =JskN -----END PGP SIGNATURE----- -- gentoo-embedded@g.o mailing list

Replies

Subject Author
[gentoo-embedded] Re: uclibc buildroot/ toolchain "Peter S. Mazinger" <ps.m@×××.net>
[gentoo-embedded] Re: uclibc buildroot/ toolchain "Peter S. Mazinger" <ps.m@×××.net>