after emerged sys-devel/patch, all emerge which using patch will failed, such as: * Applying flex-2.5.31-include.patch ... * Failed Patch: flex-2.5.31-include.patch ! * ( /export/home/hej/gentoo/usr/portage/sys-devel/flex/files/flex-2.5.31-include.patch ) $ cat /export/home/hej/gentoo/var/tmp/portage/sys-devel/flex-2.5.33-r3/temp/flex-2.5.31-include.patch-1660.out ***** flex-2.5.31-include.patch ***** ===================================== PATCH COMMAND: patch -p0 -g0 -E --no-backup-if-mismatch < /export/home/hej/gentoo/usr/portage/sys-devel/flex/files/flex-2.5.31-include.patch ===================================== patch: **** fseek : Invalid argument ... $ emerge --info Portage 2.2.00.7595-prefix (default-prefix/sunos/solaris/5.10/x86, gcc-4.0.3, unavailable, 5.11 i86pc) ================================================================= System uname: 5.11 i86pc i386 Unknown Host Operating System Timestamp of tree: Unknown sys-devel/gcc-config: 1.3.16 ACCEPT_KEYWORDS="x86-solaris ~x86-solaris" AUTOCLEAN="yes" CBUILD="i386-pc-solaris2.10" CHOST="i386-pc-solaris2.10" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo" DISTDIR="/export/home/hej/gentoo/usr/portage/distfiles" EPREFIX="/export/home/hej/gentoo" FEATURES="collision-protect distlocks metadata-transfer sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" PKGDIR="/export/home/hej/gentoo/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/export/home/hej/gentoo/var/tmp" PORTDIR="/export/home/hej/gentoo/usr/portage" SYNC="svn+http://overlays.gentoo.org/svn/proj/alt/trunk/prefix-overlay" USE="cracklib midi ncurses prefix readline ssl x86-solaris zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="SunOS" INPUT_DEVICES="keyboard mouse" KERNEL="SunOS" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" Unset: CFLAGS, CTARGET, CXXFLAGS, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY Only after "emerge -C patch" can continue emerge other packages.
what patch did you install?
it's sys-devel/patch-2.5.9-r1
are you still bootstrapping, or did you just upgrade patch?
Yes I am still bootstrapping... This patch package is installed when I emerge -e system. After got this issue, I have to doing these commands to continue emerge -e system: 1. emerge -C patch 2. emerge --resume And the solaris os is Nexenta (elatte_alpha7_i386)
ah... that's not solaris, but an opensolaris variant ;) The problem looks like what Solaris/Sparc has with patch. Can you try emerging patch-2.5.4* and see if the problem resists?
patch-2.5.4-r5 dos not has this issue, it works great.
I have to make a nexenta profile before I can mask it for nexenta users then.
Now I am using profile sunos/solaris/5.10/x86. And I think we need a sunos/solaris/5.11/x86, not a sunos/nexenta/5.11/x86, because the future solaris will based on nexenta just like redhat based on fedora, and the original file names for cpp/g++/gcc in nexenta's /bin are: i386-pc-solaris2.11-cpp/i386-pc-solaris2.11-g++/i386-pc/solaris2.11-gcc Ignore this if I am wrong.
isn't nexenta some Debian/Ubuntu crippled version of OpenSolaris? I don't know why, but these GNU/Solaris variants manage to break many compilations for a not yet clear reason.
I can't fix this, as I don't have the hardware/access.