Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Freeimage patch 4 fails... #8857

Closed
jrminter opened this issue Nov 29, 2011 · 7 comments
Closed

Freeimage patch 4 fails... #8857

jrminter opened this issue Nov 29, 2011 · 7 comments

Comments

@jrminter
Copy link

Think you have seen this before...

jrmMac 20: brew upgrade freeimage
==> Upgrading freeimage
==> Downloading http://downloads.sourceforge.net/project/freeimage/Source%20Dist
File already downloaded in /Users/jrminter/Library/Caches/Homebrew
==> Patching
patching file Makefile.gnu
Hunk #4 FAILED at 58.
1 out of 4 hunks FAILED -- saving rejects to file Makefile.gnu.rej
patching file Makefile.fip
Error: Failure while executing: /usr/bin/patch -f -p1 -i 001-homebrew.diff

@jrminter
Copy link
Author

Should note that this is freeimage 3.15.1

@tundal45
Copy link

I'm seeing the same issue as well :(.

@jrminter
Copy link
Author

A kludgy work-around until this patch issue is solved...Do a manual build/symlink as follows:

  1. Unlink freeimage 3.13.1 (or whatever you have installed) with "brew unlink freeimage"
  2. move the /usr/local/Cellar/freeimage/3.13.1 someplace safe as a backup in case you have problems
  3. copy the source tar.gz file from the cache (~/Library/Caches/Homebrew) to a directory where you can do a manual build
  4. manually edit the makefile. Set the prefix = /usr/local/Cellar/freeimage/3.15.1 and make sure the compiler matches what you have
  5. run make and it should compile w/o errors. then do make install. Even though I changed the permissions on /usr/local, I needed to do sudo make install ...
  6. symlink the library with brew link freeimage.
  7. Test. If you have any problems, you can just unlink, get rid of the 3.15.1 folder in /usr/local/Cellar and copy the 3.13.1 folder back in and brew link freeimage again...

I know it is a kludge, but it worked for me... YMMV...

@ghost
Copy link

ghost commented Nov 29, 2011

I have the same issue too on Lion 10.7.2

@Sharpie
Copy link
Contributor

Sharpie commented Nov 29, 2011

Additional discussion in pull request #7320.

@Sharpie
Copy link
Contributor

Sharpie commented Dec 1, 2011

Fixed by 7cbfb05.

@Sharpie Sharpie closed this as completed Dec 1, 2011
@jrminter
Copy link
Author

jrminter commented Dec 1, 2011

Thanks, Charlie!

@Homebrew Homebrew locked and limited conversation to collaborators Feb 16, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants