Fvwm-patched - fix to compile with the new libpng

Hi.
fvwm-patched in AUR does not compile since ligpng14 hit the repos.
I created the small patch below which works for me.
19-Fix-build-with-new-libpng.patch
--- libs/PictureImageLoader.c.orig 2010-02-25 18:35:41.725546806 +0100
+++ libs/PictureImageLoader.c 2010-02-25 18:37:46.812721435 +0100
@@ -417,7 +417,7 @@ Bool PImageLoadPng(FIMAGE_CMD_ARGS)
return False;
fread(buf, 1, FPNG_BYTES_TO_CHECK, f);
- if (!Fpng_check_sig(buf, FPNG_BYTES_TO_CHECK))
+ if (Fpng_sig_cmp(buf, 0, FPNG_BYTES_TO_CHECK))
fclose(f);
return False;
@@ -503,7 +503,7 @@ Bool PImageLoadPng(FIMAGE_CMD_ARGS)
Fpng_set_gray_to_rgb(Fpng_ptr);
if (Fpng_get_bit_depth(Fpng_ptr, Finfo_ptr) < 8)
- Fpng_set_gray_1_2_4_to_8(Fpng_ptr);
+ Fpng_set_expand_gray_1_2_4_to_8(Fpng_ptr);
for (i = 0; i < h; i++)
--- libs/Fpng.h.orig 2010-02-25 19:01:13.342068664 +0100
+++ libs/Fpng.h 2010-02-25 19:02:26.108727772 +0100
@@ -429,7 +429,7 @@ typedef Fpng_struct **Fpng_structpp;
#define FPNG_FILLER_AFTER PNG_FILLER_AFTER
#define FPNG_INFO_tRNS PNG_INFO_tRNS
-#define Fpng_check_sig(a,b) png_check_sig(a,b)
+#define Fpng_sig_cmp(a,b,c) png_sig_cmp(a,b,c)
#define Fpng_create_read_struct(a,b,c,d) png_create_read_struct(a,b,c,d)
#define Fpng_create_info_struct(a) png_create_info_struct(a)
#define Fpng_destroy_read_struct(a,b,c) png_destroy_read_struct(a,b,c)
@@ -444,7 +444,7 @@ typedef Fpng_struct **Fpng_structpp;
#define Fpng_set_packing(a) png_set_packing(a)
#define Fpng_set_gray_to_rgb(a) png_set_gray_to_rgb(a)
#define Fpng_get_bit_depth(a,b) png_get_bit_depth(a,b)
-#define Fpng_set_gray_1_2_4_to_8(a) png_set_gray_1_2_4_to_8(a)
+#define Fpng_set_expand_gray_1_2_4_to_8(a) png_set_expand_gray_1_2_4_to_8(a)
#define Fpng_get_valid(a,b,c) png_get_valid(a,b,c)
#define Fpng_read_end(a,b) png_read_end(a,b)
#define Fpng_set_interlace_handling(a) png_set_interlace_handling(a)
Of course it has to be added to the PKGBUILD, with md5sum, etc.
Hope someone finds it useful.

ThomasAdam wrote:
I'll keep an eye on this -- although I don't like the patch as-is, so I will likely implement something similar upstream when libpng14 is a little more wide-spread.
What other patches does ArchLinux have kicking around for FVWM that I seemingly don't know about?  Who's responsible for maintaining these.  I am specifically *not* interested in patches which implement crappy features, but more the ones like this libpng patch, which are integration patches.
-- Thomas Adam
I maintain the fvwm packages in the repo. The only patch currently used is similar to the one posted here to build with libpng14.  We also add a .desktop file to the package.

Similar Messages

  • Fixing GR/IR with the new GL and new splitter program

    Dear SAP Guru's,
    I need help understanding how to fix GR/IR with the new GL and new splitter program in ECC 6.0.
    Does anyone have any information or direction as to where I can find information on this?
    Thanks!
    POINTS PROMISED

    no response

  • "Papers" citation manager no longer works with the new version of pages '13. Is there a fix out there?

    "Papers" citation manager no longer works with the new version of pages '13. Is there a fix out there?

    Do take a look out there. It is a third party applications so better check out Papers site.

  • My iMessage no longer works with the new is07 update how do I fix this

    My iMessage and some of my applications no longer work with the new software update. How do I fix this?

    I called Apple Support after trying many fixes suggested online. They directed me to the procedure on the following page:
    http://support.apple.com/kb/TS4268?viewlocale=en_US
    I did the erase and restore option they suggested since I had tried a pile of ther things suggested on posts and blogs and they did not work. I even waited the obligatory 24 hours, thus the restore from backup option was what they suggested. I have a 64gig iPhone 4S and it took about 1.5 hours to complete the entire operation seeing that I am using about 54 gigs of that capacity.
    Warning: I lost all of my emails and all of the data files from one of my map programs so be sure you have everything that you really need from your phone store elsewhere before wiping your phone. I thought that the backup on my computer would restore everything but obviously NOT.
    Hope this helps.

  • HT1688 I tried to update my iPhone 5 this morning with the new software update and now it won't turn on. When I plug into my itunes account, it says my phone is in recovery mode. Was working perfectly prior to the attempt to update. How do I fix this?

    I tried to update my iPhone 5 this morning with the new software update. Now my phone won't turn on. When I plug into iTunes, it says that my phone is in recovery mode and that it needs to be restored to factory settings. Is there a way to fix this without losing my settings? Why would this happen on a software update?

    Zach Doody wrote:
    itunes says i cannot update the phone as it is in recovery mode.
    That is not what it says. Read the message again. It's telling you it has detected an iPhone in recovery mode and it must be restored.
    Restore it. You don't have a choice at this point.

  • Ok, my former computer crashed and i have a new one. i would like to sync my ipod with the new one, but it wont allow me to with out removing all of the data on it. How can i fix this?

    ok, my former computer crashed and i have a new one. i would like to sync my ipod with the new one, but it wont allow me to with out removing all of the data on it. How can i fix this?

    See Recover your iTunes library from your iPod or iOS device.
    tt2

  • I keep receiving a server error message with the new beta version of iMessage.  What can I do to fix this?

    I keep receiving a server error message with the new beta version of iMessage.  What can I do to fix this?

    Ok I have a question.
    Why do you want to use Beta software? Especially since you are having this problem with it?
    Uninstall it and forget about it until it is released as a real piece of software.

  • I have just updated my ipad mini with the new ios software and it has caused may ipads onboard keyboard to run very slowly does anyone no how to fix this issue

    I have just updated my ipad mini with the new ios software and it has caused may ipads onboard keyboard to run very slowly does anyone no how to fix this issue

    *Typing lag iOS 7*
    Settings>General>Reset>Reset all settings. This should improve the typing responsiveness
    *Note:* Settings, preferences, network settings, etc will be reset. *NO data or media will be lost*
    and/or
    Settings>iCloud>Documents and Data (turn it OFF)

  • [svn:fx-trunk] 5802: Fix ant asdoc target to work with the new manifest files.

    Revision: 5802
    Author: [email protected]
    Date: 2009-03-31 09:14:44 -0700 (Tue, 31 Mar 2009)
    Log Message:
    Fix ant asdoc target to work with the new manifest files.
    QE Notes: None.
    Doc Notes: None.
    tests: checkintests
    Modified Paths:
    flex/sdk/trunk/asdoc/build.xml

    Thats good news.

  • Provide list of the fixes with the new upgrade via OTA

    Hi,
    Can you please start providing a list of all the fixes available with the new upgrade via OTA. The list can be displayed in the System Update section along with the latest upgrade.
    This will give the users an idea on what all changes are are available with the fix and will set their expectations accordingly.

    Good idea! Thanks for you suggestion! I will bring your suggestion to our manager for further consideration.

  • HT4528 Since updateing with the new IOS 7.1 on my 4s, I have NO sound coming from my speakers or volume control, but I DO have sound when my phone rings.  How do we fix this problem?

    I updated my phone last night with the new iOS7.1  my phone worked fine before updating.  Since updating, I have no sound from music or videos, but I do have sound when my phone rings.  anyone know how to fix this?  I have already done a restore that did nothing.

    Clean iPhone charging port with toothbrush and small amount of isopropyl alcohol. If still problem the faulty part is charging port assembly with flex cable, lower mic, and connector of home button flex. Apple handles this problem with replacement iPhone 4S with Warranty or AppleCare coverage, if no coverage it is $199.

  • The program vectorworks 2008 (not 2009) does not work with the new operating system Mavericks, which is a disaster because it forces us to change the program, and is very expensive. Apple should fix this problem

    The program vectorworks 2008 (not 2009) does not work with the new operating system Mavericks, which is a disaster because it forces us to change the program, and is very expensive. Apple should fix this problem

    Why should Apple fix the problem? Maybe you should consider NOT upgrading if an expensive piece of (obsolete) software you're running won't work with it...

  • Why with the new iOS 7 update does my music rewind a second once I unlock my phone? This is really annoying and they should fix it

    Why with the new iOS 7 update does my music rewind a second once I unlock my phone? This is really annoying and they should fix it

    Start with your finger at the bottom of the screen (about even with the home button) and swipe in an upward motion.  There should be a row of icons at the top of a grey field.  if the quarter-moon icon is bright white, tap it.  If it was (and still is) dark, take the iPhone in to be evaluated by a qualified technician.

  • I don't understand why recently with the new "pages" my computer stops responding. When I go to fix some grammar all of a sudden the little colored circle begins to appear and won't go away I restart my computer.

    I don't understand why recently with the new "pages" my computer stops responding. When I go to fix some grammar all of a sudden the little colored circle begins to appear and won't go away I restart my computer.

    If you have more than one user account, these instructions must be carried out as an administrator.
    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Step 1
    Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left. If you don't see that menu, select
    View ▹ Show Log List
    from the menu bar.
    Enter "BOOT_TIME" (without the quotes) in the search box. Note the timestamps of those log messages, which refer to the times when the system was booted. Now clear the search box and scroll back in the log to the last boot time after  you had the problem. Select the messages logged before the boot, while the system was unresponsive or was failing to shut down. Copy them to the Clipboard by pressing the key combination command-C. Paste into a reply to this message (command-V). Please include the BOOT_TIME message at the end of the log extract.
    If there are runs of repeated messages, post only one example of each. Don’t post many repetitions of the same message.
    When posting a log extract, be selective. In most cases, a few dozen lines are more than enough.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some private information, such as your name, may appear in the log. Anonymize before posting.
    Step 2
    Still in Console, look under System Diagnostic Reports for crash or panic logs, and post the entire contents of the most recent one, if any. In the interest of privacy, I suggest you edit out the “Anonymous UUID,” a long string of letters, numbers, and dashes in the header of the report, if present (it may not be.) Please don’t post any other kind of report — it will be very long and not helpful.

  • My head phone jack isn't working. Only works with the new headphones that have three rings at the bottom. My regular ones with two rings don't work with the computer anymore. Anyone know a fix?

    My head phone jack isn't working. Only works with the new headphones that have three rings at the bottom. My regular ones with two rings don't work with the computer anymore. Anyone know a fix? Ive tried reseting my computer and that didnt work

    Get the new keyboard at eBay and replace by yourself may be cheaper way, though you're required higher skill and well know about MacBook Air.
    http://www.ebay.com/sch/i.html?_from=R40&_trksid=p2050601.m570.l1313.TR0.TRC0.H0 .Xmacbook+air+2011+keyboard&_nkw=macbook+air+2011+keyboard&_sacat=0
    https://www.youtube.com/watch?v=gLbasVD69xo

Maybe you are looking for