Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 517872 - sci-libs/libsigrok-9999 - src_prepare(): /bin/sed: -e expression #2, char 1: unknown command: `<'
Summary: sci-libs/libsigrok-9999 - src_prepare(): /bin/sed: -e expression #2, char 1: ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Embedded Team (OBSOLETE)
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2014-07-23 12:21 UTC by Pinky
Modified: 2014-08-04 02:36 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
fix ebuild for libsigrok-9999 (libsigrok-rm_asix-sigma_fix.patch,508 bytes, patch)
2014-07-23 12:21 UTC, Pinky
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Pinky 2014-07-23 12:21:41 UTC
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.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2014-07-23 12:33:53 UTC
>>> 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'
Comment 2 SpanKY gentoo-dev 2014-08-04 02:36:50 UTC
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