[Abcde-users] Newbie asking for help - Patching abcde

Edward Petrie-Smith edward at petrie-smith.net
Mon Sep 30 21:42:09 BST 2013


Hi Roger,

Thanks for your help, but when I run the command I get the following error:

user at localhost:~/Downloads$ cd /usr/bin/ && patch --dry-run < ~/Downloads/0005-Embed-album-art-in-Flac-and-Ogg.patch 
patching file abcde
Hunk #1 FAILED at 984.
Hunk #2 succeeded at 888 (offset -173 lines).
Hunk #3 succeeded at 919 (offset -173 lines).
Hunk #4 succeeded at 946 (offset -173 lines).
Hunk #5 FAILED at 3251.
2 out of 5 hunks FAILED -- saving rejects to file abcde.rej

 

I’ve never had a failure before, so not sure how to resolve this. Is it a case of manually patching the hunks that have failed?

contents of abcde.rej 

--- abcde
+++ abcde
@@ -1003,6 +1009,7 @@
                         ${ENCODING:+--set-encoding="$ENCODING"} \
                         ${TPE2:+--set-text-frame=TPE2:"$TPE2"} \
                         ${TCMP:+--set-text-frame=TCMP:"$TCMP"} \
+                        ${APIC:+--add-image="$APIC"} \
                         "$ABCDETEMPDIR/track$1.$OUTPUT"
                     ;;
                 # FIXME # Still not activated...

This was run on 2.5.4. 

Edward.



On Sun 29/09/13 13:24 , Roger rogerx.oss at gmail.com sent:



> On Sat, Sep 28, 2013 at 07:44:46PM +0100, Edward Petrie-Smith wrote:
> All,
>
> I have just installed version 2.5.4 from source on my Ubuntu platform.
>
> I remember coming across a patch that included the ability to embed album
> art into the mp3 being created by abcde, and managed to find it available
> from [1]http://code.google.com/p/abcde/issues/detail%3Fid%3D33">http://code.google.com/p/abcde/issues/detail?id=33.
>
> I've used patch in the past to patch binaries etc.
> ([2]http://www.cyberciti.biz/faq/appy-patch-file-using-patch-command/%29">http://www.cyberciti.biz/faq/appy-patch-file-using-patch-command/) but
> struggling with how I go about installing the patch here.
>
> Could somebody please help me here by explaining what I need to patch
> abcde here? Can I just apply the patch in isolation, or do I need to
> install patches 0001-0004 before I can apply this patch.
>
> Edward.

You likely manually patched the installed bin (script) file by hand as root.

(The installed /usr/bin/abcde file is a simple bash script file. ;-)

ie. cd /usr/bin/ && patch --dry-run < /home/edward/my_mp3.patch


-- 
Roger
http://rogerx.freeshell.org/">http://rogerx.freeshell.org/

_______________________________________________
Abcde-users mailing list
Abcde-users at lists.einval.com
http://lists.einval.com/cgi-bin/mailman/listinfo/abcde-users">http://lists.einval.com/cgi-bin/mailman/listinfo/abcde-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.einval.com/pipermail/abcde-users/attachments/20130930/f6b0c48b/attachment.html>


More information about the Abcde-users mailing list