Created attachment 381432 [details, diff] fix ebuild for libsigrok-9999 This file was moved in current git version, and the patch (sed) is no longer needed. Just remove line: sed -i '1i#include <unistd.h>' hardware/asix-sigma/asix-sigma.c || die fixes this problem.
>>> Unpacked to /home/jer/portage/sci-libs/libsigrok-9999/work/libsigrok-9999 >>> Source unpacked in /home/jer/portage/sci-libs/libsigrok-9999/work >>> Preparing source in /home/jer/portage/sci-libs/libsigrok-9999/work/libsigrok-9999 ... * Running eautoreconf in '/home/jer/portage/sci-libs/libsigrok-9999/work/libsigrok-9999' ... * Running libtoolize --install --copy --force --automake ... [ ok ] * Running aclocal -I autostuff ... [ ok ] * Running autoconf ... [ ok ] * Running autoheader ... [ ok ] * Running automake --add-missing --copy --foreign --force-missing ... [ ok ] * Running elibtoolize in: libsigrok-9999/ * Applying target-nm/2.4.2 patch ... * Running elibtoolize in: libsigrok-9999/autostuff/ * Applying portage/1.2.0 patch ... * Applying sed/1.5.6 patch ... * Applying as-needed/2.4.2 patch ... /bin/sed: -e expression #2, char 1: unknown command: `<' * ERROR: sci-libs/libsigrok-9999::gentoo failed (prepare phase): * (no error message) * * Call stack: * ebuild.sh, line 93: Called src_prepare * environment, line 3722: Called die * The specific snippet of code: * sed -i '1i#include <unistd.h>' hardware/asix-sigma/asix-sigma.c || die * * If you need support, post the output of `emerge --info '=sci-libs/libsigrok-9999::gentoo'`, * the complete build log and the output of `emerge -pqv '=sci-libs/libsigrok-9999::gentoo'`. * The complete build log is located at '/keeps/gentoo/emergelogs/wim/sci-libs:libsigrok-9999:20140723-123246.log'. * For convenience, a symlink to the build log is located at '/home/jer/portage/sci-libs/libsigrok-9999/temp/build.log'. * The ebuild environment file is located at '/home/jer/portage/sci-libs/libsigrok-9999/temp/environment'. * Working directory: '/home/jer/portage/sci-libs/libsigrok-9999/work/libsigrok-9999' * S: '/home/jer/portage/sci-libs/libsigrok-9999/work/libsigrok-9999'
they merged my patches, so the sed hacks aren't needed anymore http://sources.gentoo.org/sci-libs/libsigrok/libsigrok-9999.ebuild?r1=1.2&r2=1.3