Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
'usbutils-007' patch failed.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
ShadowOne333
n00b
n00b


Joined: 16 Oct 2014
Posts: 58

PostPosted: Mon Oct 27, 2014 3:56 pm    Post subject: 'usbutils-007' patch failed. Reply with quote

I was trying to emerge to the latest USBUtils package (version 007) and I keep getting the notification that the patch failed, even though I downloaded the latest revision of the .patch from Gentoo's repository.

Here's the output of the emerge:
Code:
emerge usbutils
!!! Repository 'x-portage' is missing masters attribute in '/usr/local/portage/metadata/layout.conf'
!!! Set 'masters = gentoo' in this file for future compatibility

 * IMPORTANT: 5 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.

 * Last emerge --sync was 2y 50d 13h 1m 43s ago.
Calculating dependencies... done!

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) sys-apps/usbutils-007
 * usbutils-007.tar.xz SHA256 SHA512 WHIRLPOOL size ;-) ...              [ ok ]
>>> Unpacking source...
>>> Unpacking usbutils-007.tar.xz to /var/tmp/portage/sys-apps/usbutils-007/work
 * Applying usbutils-006-stdint.patch ...                                [ ok ]
>>> Source unpacked in /var/tmp/portage/sys-apps/usbutils-007/work
>>> Preparing source in /var/tmp/portage/sys-apps/usbutils-007/work/usbutils-007 ...
 * Applying usbutils-006-stdint.patch ...

 * Failed Patch: usbutils-006-stdint.patch !
 *  ( /usr/portage/sys-apps/usbutils/files/usbutils-006-stdint.patch )
 *
 * Include in your bugreport the contents of:
 *
 *   /var/tmp/portage/sys-apps/usbutils-007/temp/usbutils-006-stdint.patch.out

 * ERROR: sys-apps/usbutils-007::gentoo failed (prepare phase):
 *   Failed Patch: usbutils-006-stdint.patch!
 *
 * Call stack:
 *     ebuild.sh, line   93:  Called src_prepare
 *   environment, line 2577:  Called base_src_prepare
 *   environment, line  428:  Called epatch '/usr/portage/sys-apps/usbutils/files/usbutils-006-stdint.patch'
 *   environment, line  850:  Called die
 * The specific snippet of code:
 *               die "Failed Patch: ${patchname}!";
 *
 * If you need support, post the output of `emerge --info '=sys-apps/usbutils-007::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-apps/usbutils-007::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sys-apps/usbutils-007/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-apps/usbutils-007/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-apps/usbutils-007/work/usbutils-007'
 * S: '/var/tmp/portage/sys-apps/usbutils-007/work/usbutils-007'

>>> Failed to emerge sys-apps/usbutils-007, Log file:

>>>  '/var/tmp/portage/sys-apps/usbutils-007/temp/build.log'

 * Messages for package sys-apps/usbutils-007:

 * Failed Patch: usbutils-006-stdint.patch !
 *  ( /usr/portage/sys-apps/usbutils/files/usbutils-006-stdint.patch )
 *
 * Include in your bugreport the contents of:
 *
 *   /var/tmp/portage/sys-apps/usbutils-007/temp/usbutils-006-stdint.patch.out
 * ERROR: sys-apps/usbutils-007::gentoo failed (prepare phase):
 *   Failed Patch: usbutils-006-stdint.patch!
 *
 * Call stack:
 *     ebuild.sh, line   93:  Called src_prepare
 *   environment, line 2577:  Called base_src_prepare
 *   environment, line  428:  Called epatch '/usr/portage/sys-apps/usbutils/files/usbutils-006-stdint.patch'
 *   environment, line  850:  Called die
 * The specific snippet of code:
 *               die "Failed Patch: ${patchname}!";
 *
 * If you need support, post the output of `emerge --info '=sys-apps/usbutils-007::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-apps/usbutils-007::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sys-apps/usbutils-007/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-apps/usbutils-007/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-apps/usbutils-007/work/usbutils-007'
 * S: '/var/tmp/portage/sys-apps/usbutils-007/work/usbutils-007

Any ideas as to why the patch is failing?
Does it have something to do with "Failed Patch: ${patchname}!"?
Back to top
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10315
Location: Córdoba (Spain)

PostPosted: Tue Oct 28, 2014 12:51 pm    Post subject: Reply with quote

This file should contain more info about what happened:

Code:
/var/tmp/portage/sys-apps/usbutils-007/temp/usbutils-006-stdint.patch.out


But other than portage corruption I see no way the patch could fail to apply. So, I suggest removing any custom mirrors in your make.conf, trying emerge --sync and then emerging that package again.
Back to top
View user's profile Send private message
ShadowOne333
n00b
n00b


Joined: 16 Oct 2014
Posts: 58

PostPosted: Tue Oct 28, 2014 3:50 pm    Post subject: Reply with quote

i92guboj wrote:
This file should contain more info about what happened:

Code:
/var/tmp/portage/sys-apps/usbutils-007/temp/usbutils-006-stdint.patch.out


But other than portage corruption I see no way the patch could fail to apply. So, I suggest removing any custom mirrors in your make.conf, trying emerge --sync and then emerging that package again.

This is the output of the .patch.out file:
Code:
***** usbutils-006-stdint.patch *****
PWD: /var/tmp/portage/sys-apps/usbutils-007/work/usbutils-007

=====================================

PATCH COMMAND:  patch -p0 -g0 -E --no-backup-if-mismatch  < '/usr/portage/sys-apps/usbutils/files/usbutils-006-stdint.patch'

=====================================
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|https://sourceforge.net/p/digimend/bugs/41/
|
|--- a/usbhid-dump/lib/iface.c
|+++ b/usbhid-dump/lib/iface.c
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 15
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- a/usbhid-dump/lib/iface_list.c
|+++ b/usbhid-dump/lib/iface_list.c
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 25
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- a/usbhid-dump/src/usbhid-dump.c
|+++ b/usbhid-dump/src/usbhid-dump.c
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored

patch program exited with status 1
=====================================

PATCH COMMAND:  patch -p1 -g0 -E --no-backup-if-mismatch  < '/usr/portage/sys-apps/usbutils/files/usbutils-006-stdint.patch'

=====================================
patching file usbhid-dump/lib/iface.c
Hunk #1 FAILED at 30.
1 out of 1 hunk FAILED -- saving rejects to file usbhid-dump/lib/iface.c.rej
patching file usbhid-dump/lib/iface_list.c
Hunk #1 FAILED at 30.
1 out of 1 hunk FAILED -- saving rejects to file usbhid-dump/lib/iface_list.c.rej
patching file usbhid-dump/src/usbhid-dump.c
Hunk #1 FAILED at 40.
1 out of 1 hunk FAILED -- saving rejects to file usbhid-dump/src/usbhid-dump.c.rej

patch program exited with status 1
=====================================

PATCH COMMAND:  patch -p2 -g0 -E --no-backup-if-mismatch  < '/usr/portage/sys-apps/usbutils/files/usbutils-006-stdint.patch'

=====================================
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|https://sourceforge.net/p/digimend/bugs/41/
|
|--- a/usbhid-dump/lib/iface.c
|+++ b/usbhid-dump/lib/iface.c
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 15
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- a/usbhid-dump/lib/iface_list.c
|+++ b/usbhid-dump/lib/iface_list.c
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 25
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- a/usbhid-dump/src/usbhid-dump.c
|+++ b/usbhid-dump/src/usbhid-dump.c
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored

patch program exited with status 1
=====================================

PATCH COMMAND:  patch -p3 -g0 -E --no-backup-if-mismatch  < '/usr/portage/sys-apps/usbutils/files/usbutils-006-stdint.patch'

=====================================
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|https://sourceforge.net/p/digimend/bugs/41/
|
|--- a/usbhid-dump/lib/iface.c
|+++ b/usbhid-dump/lib/iface.c
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 15
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- a/usbhid-dump/lib/iface_list.c
|+++ b/usbhid-dump/lib/iface_list.c
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 25
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- a/usbhid-dump/src/usbhid-dump.c
|+++ b/usbhid-dump/src/usbhid-dump.c
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored

patch program exited with status 1
=====================================

PATCH COMMAND:  patch -p4 -g0 -E --no-backup-if-mismatch  < '/usr/portage/sys-apps/usbutils/files/usbutils-006-stdint.patch'

=====================================
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|https://sourceforge.net/p/digimend/bugs/41/
|
|--- a/usbhid-dump/lib/iface.c
|+++ b/usbhid-dump/lib/iface.c
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 15
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- a/usbhid-dump/lib/iface_list.c
|+++ b/usbhid-dump/lib/iface_list.c
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 25
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- a/usbhid-dump/src/usbhid-dump.c
|+++ b/usbhid-dump/src/usbhid-dump.c
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored

patch program exited with status 1

As for the make.conf, this is what I have:
Code:
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.

# Uncomment the line for the correct configuration according to processor

# Intel(R) Atom(TM) CPU 330 @ 1.60GHz (for Astroboy, Doraemon, Frankie, Hercules and Popeye)
#CFLAGS="-march=atom -O2 -fomit-frame-pointer -pipe"

# Intel(R) Celeron(R) CPU 220 @ 1.20GHz (for Apolo and Orion)
CFLAGS="-march=prescott -O2 -fomit-frame-pointer -pipe"

# Pentium III Coppermine
#CFLAGS="-march=pentium3 -O2 -fomit-frame-pointer -pipe"

CXXFLAGS="${CFLAGS}"
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
CHOST="i686-pc-linux-gnu"
MAKEOPTS="-j2"

USE="v4l v4l2 cxx jpeg ieee1394 usb png cdr dvd dvdr -qt4 -kde"
PORTDIR_OVERLAY="/usr/local/portage"

INPUT_DEVICES="evdev"
VIDEO_CARDS="intel"

# Set PORTDIR for backward compatibility with various tools:
#   gentoo-bashcomp - bug #478444
#   euse - bug #474574
#   euses and ufed - bug #478318
PORTDIR="/usr/portage"

Oh and I cannot emerge --sync.
I get the following message when I try to do so:
Code:
emerge --sync
>>> Synchronization of repository 'gentoo' located in '/usr/portage'...
!!! /usr/portage appears to be under revision control (contains .svn).
!!! Aborting rsync sync.
Back to top
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10315
Location: Córdoba (Spain)

PostPosted: Wed Oct 29, 2014 7:19 am    Post subject: Reply with quote

Are you using Calculate, Sabayon or some other Gentoo derivative? If your portage tree has been modified in some creative way we can't possibly know how to help you. Your /usr/portage dir seems to be under an RCS (SVN more concretely) which makes me think that you are not using standard Gentoo, and in that case you should just follow the standard procedure to update it according to your distro's manual.

If you are using the same sources that Gentoo portage provides the patch should not fail. I just tested that package, and the patch applies without any problem. It may or may not compile depending on various factors, but the patch should work, so I can only conclude that either your portage tree is picking a modified libusb package or it is applying some other patch in any other way that's interfering.


Last edited by i92guboj on Wed Oct 29, 2014 7:45 am; edited 1 time in total
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3846
Location: Austro Bavaria

PostPosted: Wed Oct 29, 2014 7:27 am    Post subject: Reply with quote

emerge --info please.
Back to top
View user's profile Send private message
ShadowOne333
n00b
n00b


Joined: 16 Oct 2014
Posts: 58

PostPosted: Wed Oct 29, 2014 2:11 pm    Post subject: Reply with quote

Here's the emerge --info:
Code:
emerge --info
!!! Repository 'x-portage' is missing masters attribute in '/usr/local/portage/metadata/layout.conf'
!!! Set 'masters = gentoo' in this file for future compatibility
Portage 2.2.8-r2 (default/linux/x86/10.0/desktop/gnome, gcc-4.5.3, glibc-2.14.1-r3, 3.3.8-samurai-r2+ i686)
=================================================================
System uname: Linux-3.3.8-samurai-r2+-i686-Intel-R-_Core-TM-2_Duo_CPU_T5670_@_1.80GHz-with-gentoo-2.1
KiB Mem:     3100600 total,    237600 free
KiB Swap:     499708 total,    493256 free
Timestamp of tree: Fri, 07 Sep 2012 00:45:01 +0000
ld GNU ld (GNU Binutils) 2.21.1
app-shells/bash:          4.2_p37
dev-lang/python:          2.7.7, 3.2.5-r6, 3.4.2::x-portage
dev-util/cmake:           2.8.8-r3::x-portage
dev-util/pkgconfig:       9999
sys-apps/baselayout:      2.1-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.12.6, 1.14.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.3-r2, 4.7.1
sys-devel/gcc-config:     1.6
sys-devel/libtool:        2.4-r1::x-portage
sys-devel/make:           4.1-r1
sys-kernel/linux-headers: 3.13 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r3
Repositories: gentoo x-portage
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=prescott -O2 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=prescott -O2 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="C"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
USE="X a52 aac acl acpi alsa berkdb bluetooth branding bzip2 cairo cdda cdr cli colord consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr eds emboss encode evo exif fam firefox flac fortran gdbm gif gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk iconv ieee1394 ipv6 jpeg lcms ldap libnotify mad mng modules mp3 mp4 mpeg mudflap nautilus ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pppd pulseaudio qt3support readline sdl session socialweb spell ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb v4l v4l2 vorbis wxwidgets x264 x86 xcb xml xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON

It is indeed a Gentoo derivative, although it is a custom created one made by a Ph.D where I work.
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3846
Location: Austro Bavaria

PostPosted: Wed Oct 29, 2014 2:26 pm    Post subject: Reply with quote

Quote:
Timestamp of tree: Fri, 07 Sep 2012 00:45:01 +0000

OMG

WEll it seems to be not gentoo related, and belongs to off topc / unsupported.

could be anything regarding, outdated tree, whatever ...

Well you need to check each step the package manager does by hand and see where the error arise and fix it there. as it is not gentoo related at all it is just guessing where the problem occurs. You sure have your reason to run something different
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum