Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 321265 - app-misc/lirc-0.8.6-r3 Failed Patch: lirc-0.8.6-i2c.patch
Summary: app-misc/lirc-0.8.6-r3 Failed Patch: lirc-0.8.6-i2c.patch
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Television related Applications in Gentoo's Portage
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-24 03:35 UTC by Keith Harrison
Modified: 2012-04-29 13:04 UTC (History)
2 users (show)

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


Attachments
Recreated patch file (lirc-0.8.6-i2c.patch,2.07 KB, text/plain)
2010-05-30 08:28 UTC, Spooky Ghost
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Keith Harrison 2010-05-24 03:35:41 UTC
Lirc 0.8.7_pre1 wasn't working for me so I masked it and now lirc-0.8.6-r3 dies when trying to apply the lirc-0.8.6-i2c.patch

Reproducible: Always

Steps to Reproduce:
1. emerge =app-misc/lirc-0.8.6-r3
2.
3.

Actual Results:  
>>> Emerging (1 of 1) app-misc/lirc-0.8.6-r3
 * lirc-0.8.6.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                                                                                                                                                                                 [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                                                                                                                  [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                                                                                                                 [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                                                                                                                [ ok ]
 * CPV:  app-misc/lirc-0.8.6-r3
 * REPO: gentoo
 * USE:  X amd64 elibc_glibc kernel_linux lirc_devices_imon_lcd multilib userland_GNU
 * QA Notice: USE Flag 'lirc_devices_mceusb2' not in IUSE for app-misc/lirc-0.8.6-r3
 * If your LIRC device requires modules, you'll need MODULE_UNLOAD
 * support in your kernel.
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found kernel object directory:
 *     /lib/modules/2.6.32-gentoo-r9/build
 * Found sources for kernel version:
 *     2.6.32-gentoo-r9
 * Compiling support for device imon_lcd
 *
 * lirc-configure-opts:  --with-driver=imon_lcd
 * Setting default lirc-device to /dev/lirc0
>>> Unpacking source...
>>> Unpacking lirc-0.8.6.tar.bz2 to /var/tmp/portage/app-misc/lirc-0.8.6-r3/work
 * Applying lirc-0.8.4-portaudio_check.patch ...                                                                                                                                                                                       [ ok ]
 * Applying lirc-0.8.6-send-evsyn.diff ...                                                                                                                                                                                             [ ok ]
 * Applying lirc-0.8.6-i2c.patch ...

 * Failed Patch: lirc-0.8.6-i2c.patch !
 *  ( /usr/portage/app-misc/lirc/files/lirc-0.8.6-i2c.patch )
 *
 * Include in your bugreport the contents of:
 *
 *   /var/tmp/portage/app-misc/lirc-0.8.6-r3/temp/lirc-0.8.6-i2c.patch.out

 * ERROR: app-misc/lirc-0.8.6-r3 failed:
 *   Failed Patch: lirc-0.8.6-i2c.patch!
 *
 * Call stack:
 *     ebuild.sh, line   48:  Called src_unpack
 *   environment, line 4685:  Called epatch '/usr/portage/app-misc/lirc/files/lirc-0.8.6-i2c.patch'
 *   environment, line 2341:  Called die
 * The specific snippet of code:
 *               die "Failed Patch: ${patchname}!";
 *
 * If you need support, post the output of 'emerge --info =app-misc/lirc-0.8.6-r3',
 * the complete build log and the output of 'emerge -pqv =app-misc/lirc-0.8.6-r3'.
 * The complete build log is located at '/var/tmp/portage/app-misc/lirc-0.8.6-r3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-misc/lirc-0.8.6-r3/temp/environment'.
 * S: '/var/tmp/portage/app-misc/lirc-0.8.6-r3/work/lirc-0.8.6'


Expected Results:  
Great Success!

be2400 linux # cat /var/tmp/portage/app-misc/lirc-0.8.6-r3/temp/lirc-0.8.6-i2c.patch.out
***** lirc-0.8.6-i2c.patch *****

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

PATCH COMMAND:  patch -p0 -g0 -E --no-backup-if-mismatch < '/usr/portage/app-misc/lirc/files/lirc-0.8.6-i2c.patch'

================================
patching file drivers/lirc_i2c/lirc_i2c.c
Hunk #1 FAILED at 1.
1 out of 4 hunks FAILED -- saving rejects to file drivers/lirc_i2c/lirc_i2c.c.rej
================================

PATCH COMMAND:  patch -p1 -g0 -E --no-backup-if-mismatch < '/usr/portage/app-misc/lirc/files/lirc-0.8.6-i2c.patch'

================================
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- drivers/lirc_i2c/lirc_i2c.c        2009/08/30 16:59:53     1.70
|+++ drivers/lirc_i2c/lirc_i2c.c        2009/12/28 15:29:03     1.72
--------------------------
No file to patch.  Skipping patch.
4 out of 4 hunks ignored
================================

PATCH COMMAND:  patch -p2 -g0 -E --no-backup-if-mismatch < '/usr/portage/app-misc/lirc/files/lirc-0.8.6-i2c.patch'

================================
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- drivers/lirc_i2c/lirc_i2c.c        2009/08/30 16:59:53     1.70
|+++ drivers/lirc_i2c/lirc_i2c.c        2009/12/28 15:29:03     1.72
--------------------------
No file to patch.  Skipping patch.
4 out of 4 hunks ignored
================================

PATCH COMMAND:  patch -p3 -g0 -E --no-backup-if-mismatch < '/usr/portage/app-misc/lirc/files/lirc-0.8.6-i2c.patch'

================================
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- drivers/lirc_i2c/lirc_i2c.c        2009/08/30 16:59:53     1.70
|+++ drivers/lirc_i2c/lirc_i2c.c        2009/12/28 15:29:03     1.72
--------------------------
No file to patch.  Skipping patch.
4 out of 4 hunks ignored
================================

PATCH COMMAND:  patch -p4 -g0 -E --no-backup-if-mismatch < '/usr/portage/app-misc/lirc/files/lirc-0.8.6-i2c.patch'

================================
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- drivers/lirc_i2c/lirc_i2c.c        2009/08/30 16:59:53     1.70
|+++ drivers/lirc_i2c/lirc_i2c.c        2009/12/28 15:29:03     1.72
--------------------------
No file to patch.  Skipping patch.
4 out of 4 hunks ignored

be2400 linux # emerge --info
Portage 2.2_rc67 (default/linux/amd64/10.0, gcc-4.4.3, glibc-2.11.1-r0, 2.6.32-gentoo-r8 x86_64)
=================================================================
System uname: Linux-2.6.32-gentoo-r8-x86_64-AMD_Athlon-tm-_X2_Dual_Core_Processor_BE-2400-with-gentoo-2.0.1
Timestamp of tree: Mon, 24 May 2010 02:45:01 +0000
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r2, 3.1.2-r3
dev-util/cmake:      2.8.1-r1
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.1-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.3.4, 4.4.3-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.32
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=k8 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=k8 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://www.cyberuse.com/gentoo/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://gentoo.netnitco.net http://gentoo.wetzlmayr.com/ http://gentoo.mirrors.tds.net/gentoo"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1"
LINGUAS="en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--progress"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext 64bit X a52 aac acl acpi alsa amd64 apache2 artworkextra asf audiofile automount avahi berkdb bindist branding bzip2 cairo caps cdda cddb cdio cdparanoia cdr cli consolekit cracklib crypt cups curl cxx dbus dri dvd dvdr dvi encode escreen fbcondecor ffmpeg firefox flac foomaticdb fortran fuse gdbm gif gimp glib glibc-omitfp gmp gnome gnomecd gnutls google-gadgets gphoto2 gpm gstreamer gtk hal iconv id3tag ieee1394 ifp imagemagick imlib inotify ipv6 ithreads java java5 java6 jpeg jpeg2k json kde lame laptop latex lcd libnotify libwww lirc lm_sensors logrotate lua lzma mad md5sum mdnsresponder-compat mmap mmx mmxext mng modules mp2 mp3 mp4 mpeg mplayer mtp mudflap multilib musicbrainz mysql nautilus ncurses nls nptl nptlonly nsplugin offensive ogg openal openexr opengl openmp pam pcre pdf perl php plotutils png posix ppds pppd python qt3support qt4 quicktime rar readline reflection rtc ruby samba sdl session sift skins smbclient sndfile spell spl sqlite sse sse2 ssl startup-notification svg sysfs tcpd theora threads tiff transcode truetype twolame unicode usb vcd vhosts vim-with-x vnc vorbis webkit wmf wxwidgets wxwindows x264 xcomposite xine xinerama xml xorg xpm xscreensaver xulrunner xv xvid xvmc zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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 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 auth_digest" CAMERAS="canon" ELIBC="glibc" INPUT_DEVICES="mouse keyboard evdev" KERNEL="linux" LCD_DEVICES="imonlcd" LINGUAS="en" LIRC_DEVICES="imon_lcd" RUBY_TARGETS="ruby18" SANE_BACKENDS="genesys" USERLAND="GNU" VIDEO_CARDS="vesa radeon" 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, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Comment 1 Keith Harrison 2010-05-25 06:37:35 UTC
See Bug 301321

Is this a duplicate?
Comment 2 Spooky Ghost 2010-05-30 08:28:27 UTC
Created attachment 233481 [details]
Recreated patch file

Recreated patch
Comment 3 Spooky Ghost 2010-05-30 08:42:35 UTC
(In reply to comment #2)
> Created an attachment (id=233481) [details]

There seems to be some issue with the lirc-0.8.6-lirc.patch diff in the files directory.  I applied the changes manually then recreated the diff.  Using this instead results in a successful install.

(0.8.6-r3 still doesn't build against recent kernel 2.6.3x releases so have to link /usr/src/linux to older kernel sources.)
Comment 4 Wormo (RETIRED) gentoo-dev 2010-06-04 06:51:47 UTC
Thanks for submitting your updated patch, assigning to lirc maintainers
Comment 5 Pacho Ramos gentoo-dev 2012-04-29 13:04:37 UTC
0.8.7 is now in stable