Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 101124 - libsdl-1.2.8 will not compile, libcaca patch doesn't work
Summary: libsdl-1.2.8 will not compile, libcaca patch doesn't work
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-02 12:08 UTC by Andy Kissner
Modified: 2005-08-04 19:28 UTC (History)
0 users

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


Attachments
Error message (libsdl-error.log,1.98 KB, text/plain)
2005-08-02 15:00 UTC, Andy Kissner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andy Kissner 2005-08-02 12:08:15 UTC
When I merge libsdl-1.2.8-r1, it fails during the patching stage, with:

 * Applying 1.2.8-libcaca.patch ...

 * Failed Patch: 1.2.8-libcaca.patch !
 *  ( /usr/portage/media-libs/libsdl/files/1.2.8-libcaca.patch )
 *
 * Include in your bugreport the contents of:
 *
 *   /var/tmp/portage/libsdl-1.2.8-r1/temp/1.2.8-libcaca.patch-25275.out


Reproducible: Always
Steps to Reproduce:
1.merge libsdl-1.2.8-r1
2.
3.

Actual Results:  
***** 1.2.8-libcaca.patch *****

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

PATCH COMMAND:  patch -p0 -g0 --no-backup-if-mismatch <
/usr/portage/media-libs/libsdl/files/1.2.8-libcaca.patch

===============================
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -r -P -c -C 4 SDL-1.2.6/configure.in SDL-1.2.6.patched/configure.in
|*** SDL-1.2.6.orig/configure.in	Sat Aug 30 15:13:18 2003
|--- SDL-1.2.6/configure.in	Mon Feb  2 16:05:08 2004
--------------------------
No file to patch.  Skipping patch.
13 out of 13 hunks ignored
can't find file to patch at input line 188
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -r -P -c -C 4 SDL-1.2.6/src/video/Makefile.am
SDL-1.2.6.patched/src/video/Makefile.am
|*** SDL-1.2.6.orig/src/video/Makefile.am	Sat Aug 30 15:13:06 2003
|--- SDL-1.2.6/src/video/Makefile.am	Mon Feb  2 16:05:32 2004
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 212
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -r -P -c -C 4 SDL-1.2.6/src/video/SDL_sysvideo.h
SDL-1.2.6.patched/src/video/SDL_sysvideo.h
|*** SDL-1.2.6.orig/src/video/SDL_sysvideo.h	Sat Aug 30 15:13:07 2003
|--- SDL-1.2.6/src/video/SDL_sysvideo.h	Mon Feb  2 16:07:24 2004
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 229
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -r -P -c -C 4 SDL-1.2.6/src/video/SDL_video.c
SDL-1.2.6.patched/src/video/SDL_video.c
|*** SDL-1.2.6.orig/src/video/SDL_video.c	Sat Aug 30 15:13:07 2003
|--- SDL-1.2.6/src/video/SDL_video.c	Mon Feb  2 16:08:14 2004
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
patching file SDL-1.2.6/src/video/caca/Makefile.am
patching file SDL-1.2.6/src/video/caca/SDL_cacaevents.c
patching file SDL-1.2.6/src/video/caca/SDL_cacaevents_c.h
patching file SDL-1.2.6/src/video/caca/SDL_cacavideo.c
patching file SDL-1.2.6/src/video/caca/SDL_cacavideo.h
===============================

PATCH COMMAND:  patch -p1 -g0 --no-backup-if-mismatch <
/usr/portage/media-libs/libsdl/files/1.2.8-libcaca.patch

===============================
patching file configure.in
Hunk #1 succeeded at 1003 (offset 52 lines).
Hunk #2 succeeded at 1855 (offset 98 lines).
Hunk #3 succeeded at 1890 with fuzz 2 (offset 79 lines).
Hunk #4 succeeded at 1910 with fuzz 2 (offset 52 lines).
Hunk #5 succeeded at 2020 with fuzz 2 (offset 123 lines).
Hunk #6 succeeded at 1950 with fuzz 2 (offset 10 lines).
Hunk #7 succeeded at 2064 with fuzz 2 (offset 80 lines).
Hunk #8 succeeded at 2036 with fuzz 2 (offset 8 lines).
Hunk #9 succeeded at 2109 with fuzz 2 (offset 40 lines).
Hunk #10 succeeded at 2252 with fuzz 2 (offset 130 lines).
Hunk #11 succeeded at 2203 with fuzz 2 (offset 39 lines).
misordered hunks! output would be garbled
Hunk #12 FAILED at 2255.
Hunk #13 succeeded at 2853 (offset 142 lines).
1 out of 13 hunks FAILED -- saving rejects to file configure.in.rej
patching file src/video/Makefile.am
patching file src/video/SDL_sysvideo.h
patching file src/video/SDL_video.c
patching file src/video/caca/Makefile.am
patching file src/video/caca/SDL_cacaevents.c
patching file src/video/caca/SDL_cacaevents_c.h
patching file src/video/caca/SDL_cacavideo.c
patching file src/video/caca/SDL_cacavideo.h
===============================

PATCH COMMAND:  patch -p2 -g0 --no-backup-if-mismatch <
/usr/portage/media-libs/libsdl/files/1.2.8-libcaca.patch

===============================
missing header for context diff at line 4 of patch
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -r -P -c -C 4 SDL-1.2.6/configure.in SDL-1.2.6.patched/configure.in
|*** SDL-1.2.6.orig/configure.in	Sat Aug 30 15:13:18 2003
|--- SDL-1.2.6/configure.in	Mon Feb  2 16:05:08 2004
--------------------------
No file to patch.  Skipping patch.
13 out of 13 hunks ignored
can't find file to patch at input line 188
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -r -P -c -C 4 SDL-1.2.6/src/video/Makefile.am
SDL-1.2.6.patched/src/video/Makefile.am
|*** SDL-1.2.6.orig/src/video/Makefile.am	Sat Aug 30 15:13:06 2003
|--- SDL-1.2.6/src/video/Makefile.am	Mon Feb  2 16:05:32 2004
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 212
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -r -P -c -C 4 SDL-1.2.6/src/video/SDL_sysvideo.h
SDL-1.2.6.patched/src/video/SDL_sysvideo.h
|*** SDL-1.2.6.orig/src/video/SDL_sysvideo.h	Sat Aug 30 15:13:07 2003
|--- SDL-1.2.6/src/video/SDL_sysvideo.h	Mon Feb  2 16:07:24 2004
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 229
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -r -P -c -C 4 SDL-1.2.6/src/video/SDL_video.c
SDL-1.2.6.patched/src/video/SDL_video.c
|*** SDL-1.2.6.orig/src/video/SDL_video.c	Sat Aug 30 15:13:07 2003
|--- SDL-1.2.6/src/video/SDL_video.c	Mon Feb  2 16:08:14 2004
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
patching file video/caca/Makefile.am
patching file video/caca/SDL_cacaevents.c
patching file video/caca/SDL_cacaevents_c.h
patching file video/caca/SDL_cacavideo.c
patching file video/caca/SDL_cacavideo.h
===============================

PATCH COMMAND:  patch -p3 -g0 --no-backup-if-mismatch <
/usr/portage/media-libs/libsdl/files/1.2.8-libcaca.patch

===============================
missing header for context diff at line 4 of patch
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -r -P -c -C 4 SDL-1.2.6/configure.in SDL-1.2.6.patched/configure.in
|*** SDL-1.2.6.orig/configure.in	Sat Aug 30 15:13:18 2003
|--- SDL-1.2.6/configure.in	Mon Feb  2 16:05:08 2004
--------------------------
No file to patch.  Skipping patch.
13 out of 13 hunks ignored
patching file Makefile.am
Hunk #1 FAILED at 4.
1 out of 1 hunk FAILED -- saving rejects to file Makefile.am.rej
can't find file to patch at input line 212
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -r -P -c -C 4 SDL-1.2.6/src/video/SDL_sysvideo.h
SDL-1.2.6.patched/src/video/SDL_sysvideo.h
|*** SDL-1.2.6.orig/src/video/SDL_sysvideo.h	Sat Aug 30 15:13:07 2003
|--- SDL-1.2.6/src/video/SDL_sysvideo.h	Mon Feb  2 16:07:24 2004
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 229
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -r -P -c -C 4 SDL-1.2.6/src/video/SDL_video.c
SDL-1.2.6.patched/src/video/SDL_video.c
|*** SDL-1.2.6.orig/src/video/SDL_video.c	Sat Aug 30 15:13:07 2003
|--- SDL-1.2.6/src/video/SDL_video.c	Mon Feb  2 16:08:14 2004
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
patching file caca/Makefile.am
patching file caca/SDL_cacaevents.c
patching file caca/SDL_cacaevents_c.h
patching file caca/SDL_cacavideo.c
patching file caca/SDL_cacavideo.h
===============================

PATCH COMMAND:  patch -p4 -g0 --no-backup-if-mismatch <
/usr/portage/media-libs/libsdl/files/1.2.8-libcaca.patch

===============================
missing header for context diff at line 4 of patch
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -r -P -c -C 4 SDL-1.2.6/configure.in SDL-1.2.6.patched/configure.in
|*** SDL-1.2.6.orig/configure.in	Sat Aug 30 15:13:18 2003
|--- SDL-1.2.6/configure.in	Mon Feb  2 16:05:08 2004
--------------------------
No file to patch.  Skipping patch.
13 out of 13 hunks ignored
missing header for context diff at line 188 of patch
can't find file to patch at input line 188
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -r -P -c -C 4 SDL-1.2.6/src/video/Makefile.am
SDL-1.2.6.patched/src/video/Makefile.am
|*** SDL-1.2.6.orig/src/video/Makefile.am	Sat Aug 30 15:13:06 2003
|--- SDL-1.2.6/src/video/Makefile.am	Mon Feb  2 16:05:32 2004
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
missing header for context diff at line 212 of patch
can't find file to patch at input line 212
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -r -P -c -C 4 SDL-1.2.6/src/video/SDL_sysvideo.h
SDL-1.2.6.patched/src/video/SDL_sysvideo.h
|*** SDL-1.2.6.orig/src/video/SDL_sysvideo.h	Sat Aug 30 15:13:07 2003
|--- SDL-1.2.6/src/video/SDL_sysvideo.h	Mon Feb  2 16:07:24 2004
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
missing header for context diff at line 229 of patch
can't find file to patch at input line 229
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -r -P -c -C 4 SDL-1.2.6/src/video/SDL_video.c
SDL-1.2.6.patched/src/video/SDL_video.c
|*** SDL-1.2.6.orig/src/video/SDL_video.c	Sat Aug 30 15:13:07 2003
|--- SDL-1.2.6/src/video/SDL_video.c	Mon Feb  2 16:08:14 2004
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
The next patch would create the file Makefile.am,
which already exists!  Applying it anyway.
patching file Makefile.am
Patch attempted to create file Makefile.am, which already exists.
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- saving rejects to file Makefile.am.rej
patching file SDL_cacaevents.c
patching file SDL_cacaevents_c.h
patching file SDL_cacavideo.c
patching file SDL_cacavideo.h


Expected Results:  
Compile

Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.3.5-20050130,
glibc-2.3.5-r0, 2.6.7-gentoo-r11 i686)
=================================================================
System uname: 2.6.7-gentoo-r11 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz
Gentoo Base System version 1.6.13
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.11
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.4.3-r4, 1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i386-pc-linux-gnu"
CFLAGS="-O5 -mcpu=i686 -fomit-frame-pointer -pipe"
CHOST="i386-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O5 -mcpu=i686 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig clean distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X acl adns aim apache2 apm bash-completion berkdb bidi bitmap-fonts
bzlib cdparanoia cdr crypt cups curl curlwrappers cvsgraph eds emboss encode esd
fam foomaticdb fortran gdbm gif gpm gstreamer gtk gtk2 imagemagick imlib ipv6
java jpeg libg++ libwww mad mikmod motif mozilla mp3 mpeg mysql ncurses nls ogg
oggvorbis opengl pam pdflib perl png python qt quicktime readline samba sdl
spell ssl svga tcpd tetex tiff truetype truetype-fonts type1-fonts vorbis xfce
xml xml2 xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 1 Mr. Bones. (RETIRED) gentoo-dev 2005-08-02 12:32:19 UTC
Let's see the output from "emerge -vp libsdl" please.
Comment 2 Andy Kissner 2005-08-02 12:36:23 UTC
(In reply to comment #1)
> Let's see the output from "emerge -vp libsdl" please.
Sure. And sorry for the inline cut and paste of the patch :/

akissner@localhost i386 $ emerge -vp libsdl

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild     U ] media-libs/libsdl-1.2.8-r1 [1.2.7-r3] +X -aalib -alsa -arts*
-dga -directfb +esd -fbcon -ggi -libcaca -nas -noaudio -noflagstrip -nojoystick
-novideo +opengl -oss -pic +svga -xinerama +xv 0 kB

Total size of downloads: 0 kB
Comment 3 Mr. Bones. (RETIRED) gentoo-dev 2005-08-02 12:42:47 UTC
run "emerge --newuse world"
run "revdep-rebuild"

then try it again.  it unpacks just fine here.

if it still doesn't work, do this:

"emerge -v libsdl &> /tmp/out" and attach the /tmp/out file as text/plain.
Comment 4 Andy Kissner 2005-08-02 15:00:31 UTC
Created attachment 64956 [details]
Error message
Comment 5 Andy Kissner 2005-08-02 15:00:57 UTC
Same thing...
Comment 6 Andy Kissner 2005-08-03 17:58:11 UTC
I just commented the patch line, and rebuilt the digest, and it works. I'd still
love to know what it was.
Comment 7 Mr. Bones. (RETIRED) gentoo-dev 2005-08-03 18:03:28 UTC
We change the status on this end.
Comment 8 Andy Kissner 2005-08-03 18:06:21 UTC
(In reply to comment #7)
> We change the status on this end.

sorry, habit carried over from a buglist I used to have "ops" on, if you will.
Comment 9 SpanKY gentoo-dev 2005-08-03 20:59:37 UTC
i rebuilt the patch ... sync up and try again
Comment 10 Andy Kissner 2005-08-04 03:03:36 UTC
(In reply to comment #9)
> i rebuilt the patch ... sync up and try again

okay
Comment 11 Andy Kissner 2005-08-04 12:07:35 UTC
Thanks a lot. It works now.
Cheers,
Andy
Comment 12 SpanKY gentoo-dev 2005-08-04 19:28:13 UTC
good enough for me :)