trying tp patch mediatomb for lastfm capabilities with mediatomb.patch and I receive HUNK Offset errors.
Closed this issue · 2 comments
GoogleCodeExporter commented
What steps will reproduce the problem?
1) wget -c http://lastfmlib.googlecode.com/files/lastfmlib-0.4.0.tar.gz
2) tar zxvf lastfmlib-0.4.0.tar.gz
3) cd lastfmlib-0.4.0
4) ./configure --prefix=/usr/local --enable-logging
5) make
6) make install
All is fine through here...
7) wget -c http://lastfmlib.googlecode.com/svn/trunk/mediatomb.patch
8) svn co https://svn.mediatomb.cc/svnroot/mediatomb/trunk/mediatomb mediatomb
9) cd mediatomb
10) patch -p0 < ../mediatomb.patch
The output is:
user@host:~/mediatomb-0.12.1$ patch -p0 < ../mediatomb.patch
patching file src/config_manager.cc
Hunk #1 FAILED at 628.
Hunk #2 succeeded at 2217 (offset 210 lines).
1 out of 2 hunks FAILED -- saving rejects to file src/config_manager.cc.rej
patching file src/server.cc
Hunk #1 succeeded at 41 with fuzz 1 (offset 4 lines).
Hunk #2 succeeded at 112 with fuzz 2 (offset 8 lines).
Hunk #3 succeeded at 350 (offset 8 lines).
patching file src/lastfm.h
patching file src/common.h
Hunk #1 succeeded at 375 with fuzz 2 (offset 23 lines).
patching file src/config_manager.h
Hunk #1 succeeded at 195 (offset 8 lines).
patching file src/file_request_handler.cc
Hunk #2 succeeded at 460 (offset 4 lines).
patching file src/lastfm.cc
patching file build/libmediatomb_src
Hunk #1 succeeded at 71 (offset 4 lines).
patching file build/Makefile.am
Hunk #1 FAILED at 27.
Hunk #2 FAILED at 54.
Hunk #3 FAILED at 93.
3 out of 3 hunks FAILED -- saving rejects to file build/Makefile.am.rej
patching file configure.ac
Hunk #1 succeeded at 1610 with fuzz 2 (offset 41 lines).
Hunk #2 FAILED at 1946.
1 out of 2 hunks FAILED -- saving rejects to file configure.ac.rej
11) autoreconf -i
12) ./configure --prefix=/usr/local --with-liblastfmlib-h=/usr/local/include
--with-liblastfmlib-libs=/usr/local
13) make
The Make ends in the following way:
../src/server.cc: In member function ‘virtual void Server::init()’:
../src/server.cc:117: error: ‘class LastFm’ has no member named
‘initialize’
../src/server.cc: In member function ‘virtual void Server::shutdown()’:
../src/server.cc:354: error: ‘class LastFm’ has no member named
‘destroy’
make[2]: *** [libmediatomb_a-server.o] Error 1
make[2]: Leaving directory `/home/tom/mediatomb-0.12.1/build'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/tom/mediatomb-0.12.1'
make: *** [all] Error 2
Attached Files:
src/config_manager.cc.rej has:
build/Makefile.am.rej
configure.ac.rej
What is the expected output? What do you see instead?
All HUNKs Successful
What version of the product are you using? On what operating system?
I have used mediatomb 0.12.0 and 0.12.1 all latest builds from svn to slightly
older builds.
ubuntu 9.10 & 10.04
Please provide any additional information below.
I have been reluctant to post here as I assumed this issue is on my end. I
have been unsuccessful to find this solution and anyone with the same issue.
Since I am new to the realm of patching/compiling, I could very well be missing
something. I have followed the following instructions:
http://wiki.flexion.org/InstallingMediaTomb012.html#1.0
Any guidance/direction is greatly appreciated.
Original issue reported on code.google.com by thomas.j...@gmail.com
on 16 Jun 2010 at 2:48
Attachments:
GoogleCodeExporter commented
I think the patch has been applied upstream by the mediatomb developers. So it
shouldn't be necessary anymore.
Original comment by dirk.vdb
on 16 Jun 2010 at 4:30
GoogleCodeExporter commented
Original comment by dirk.vdb
on 26 Oct 2011 at 6:35
- Changed state: Invalid