On Sat, 2005-11-26 at 02:54 +0100, Marius Mauch wrote: [snip]
> > * VDB prevention of single byte NULL entries being created. ( .54 ) > > Not sure what this means. Just prevention of empty files in vdb? yeah exactly. I'm thinking something like the untested attached patch from the ebuild.sh side of things and then ferreting out any cases where doing this could cause problems and fixing those. My motivation for wanting this is mainly that I don't want to take up space in the vdb with RR/LDEPEND without adding some inode savings for us as well. -- Ned Ludd <[EMAIL PROTECTED]> Gentoo Linux
diff -Nrup work.orig/portage-2.0.53_rc7/bin/ebuild.sh work/portage-2.0.53_rc7/bin/ebuild.sh --- work.orig/portage-2.0.53_rc7/bin/ebuild.sh 2005-10-30 02:25:14.000000000 -0500 +++ work/portage-2.0.53_rc7/bin/ebuild.sh 2005-11-25 21:24:40.000000000 -0500 @@ -909,35 +909,16 @@ dyn_compile() { touch .compiled cd build-info - echo "$ASFLAGS" > ASFLAGS - echo "$CATEGORY" > CATEGORY - echo "$CBUILD" > CBUILD - echo "$CC" > CC - echo "$CDEPEND" > CDEPEND - echo "$CFLAGS" > CFLAGS - echo "$CHOST" > CHOST - echo "$CTARGET" > CTARGET - echo "$CXX" > CXX - echo "$CXXFLAGS" > CXXFLAGS - echo "$DEPEND" > DEPEND - echo "$EXTRA_ECONF" > EXTRA_ECONF - echo "$EXTRA_EINSTALL" > EXTRA_EINSTALL - echo "$EXTRA_EMAKE" > EXTRA_MAKE - echo "$FEATURES" > FEATURES - echo "$INHERITED" > INHERITED - echo "$IUSE" > IUSE - echo "$PKGUSE" > PKGUSE - echo "$LDFLAGS" > LDFLAGS - echo "$LIBCFLAGS" > LIBCFLAGS - echo "$LIBCXXFLAGS" > LIBCXXFLAGS - echo "$LICENSE" > LICENSE - echo "$PDEPEND" > PDEPEND - echo "$PF" > PF - echo "$PROVIDE" > PROVIDE - echo "$RDEPEND" > RDEPEND - echo "$RESTRICT" > RESTRICT - echo "$SLOT" > SLOT - echo "$USE" > USE + for f in ASFLAGS CATEGORY CC CDEPEND CFLAGS CHOST CTARGET \ + CXX CXXFLAGS DEPEND EXTRA_ECONF EXTRA_EINSTALL EXTRA_MAKE \ + FEATURES INHERITED EXTRA_EINSTALL EXTRA_MAKE FEATURES \ + INHERITED IUSE PKGUSE LDFLAGS LIBCFLAGS LIBCXXFLAGS \ + LICENSE PDEPEND PF PROVIDE RDEPEND RESTRICT SLOT USE; do + + local entry=$(eval echo -n \$$f) + [[ $entry != "" ]] && echo $entry > $f + + done echo "${EAPI:-0}" > EAPI set > environment