<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-GB link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>Hi Roger,<br><br>Thanks for your help, but when I run the command I get the following error:<br><br>user@localhost:~/Downloads$ cd /usr/bin/ && patch --dry-run < ~/Downloads/0005-Embed-album-art-in-Flac-and-Ogg.patch <br>patching file abcde<br>Hunk #1 FAILED at 984.<br>Hunk #2 succeeded at 888 (offset -173 lines).<br>Hunk #3 succeeded at 919 (offset -173 lines).<br>Hunk #4 succeeded at 946 (offset -173 lines).<br>Hunk #5 FAILED at 3251.<br>2 out of 5 hunks FAILED -- saving rejects to file abcde.rej<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>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?<br><br>contents of abcde.rej <br><br>--- abcde<br>+++ abcde<br>@@ -1003,6 +1009,7 @@<br> ${ENCODING:+--set-encoding="$ENCODING"} \<br> ${TPE2:+--set-text-frame=TPE2:"$TPE2"} \<br> ${TCMP:+--set-text-frame=TCMP:"$TCMP"} \<br>+ ${APIC:+--add-image="$APIC"} \<br> "$ABCDETEMPDIR/track$1.$OUTPUT"<br> ;;<br> # FIXME # Still not activated...<br><br>This was run on 2.5.4. <br><br>Edward.<br><br><br><br><b>On Sun 29/09/13 13:24 , Roger <a href="mailto:rogerx.oss@gmail.com">rogerx.oss@gmail.com</a> sent:</b><o:p></o:p></p><p class=MsoNormal style='margin-bottom:12.0pt'><br><br><span style='color:#666666'>> On Sat, Sep 28, 2013 at 07:44:46PM +0100, Edward Petrie-Smith wrote:</span><br><span style='color:#666666'>> All,</span><br><span style='color:#666666'>></span><br><span style='color:#666666'>> I have just installed version 2.5.4 from source on my Ubuntu platform.</span><br><span style='color:#666666'>></span><br><span style='color:#666666'>> I remember coming across a patch that included the ability to embed album</span><br><span style='color:#666666'>> art into the mp3 being created by abcde, and managed to find it available</span><br><span style='color:#666666'>> from [1]<a href="%3ca%20href=" target="_blank">http://code.google.com/p/abcde/issues/detail%3Fid%3D33</a>"></span><span style='color:red'>http://code.google.com/p/abcde/issues/detail?id=33</span><span style='color:#666666'>.</span><br><span style='color:#666666'>></span><br><span style='color:#666666'>> I've used patch in the past to patch binaries etc.</span><br><span style='color:#666666'>> ([2]<a href="%3ca%20href=" target="_blank">http://www.cyberciti.biz/faq/appy-patch-file-using-patch-command/%29</a>"></span><span style='color:red'>http://www.cyberciti.biz/faq/appy-patch-file-using-patch-command/)</span><span style='color:#666666'> but</span><br><span style='color:#666666'>> struggling with how I go about installing the patch here.</span><br><span style='color:#666666'>></span><br><span style='color:#666666'>> Could somebody please help me here by explaining what I need to patch</span><br><span style='color:#666666'>> abcde here? Can I just apply the patch in isolation, or do I need to</span><br><span style='color:#666666'>> install patches 0001-0004 before I can apply this patch.</span><br><span style='color:#666666'>></span><br><span style='color:#666666'>> Edward.</span><br><br>You likely manually patched the installed bin (script) file by hand as root.<br><br>(The installed /usr/bin/abcde file is a simple bash script file. ;-)<br><br>ie. cd /usr/bin/ && patch --dry-run < /home/edward/my_mp3.patch<br><br><br>-- <br>Roger<br><a href="%3ca%20href=" target="_blank">http://rogerx.freeshell.org/</a>"><span style='color:red'>http://rogerx.freeshell.org/</span><br><br>_______________________________________________<br>Abcde-users mailing list<br><a href="mailto:Abcde-users@lists.einval.com">Abcde-users@lists.einval.com</a><br><a href="%3ca%20href=" target="_blank">http://lists.einval.com/cgi-bin/mailman/listinfo/abcde-users</a>"><span style='color:red'>http://lists.einval.com/cgi-bin/mailman/listinfo/abcde-users</span><o:p></o:p></p></div></body></html>