Conversation
Nice! Though we'll almost certainly need to get png support working before merging this. |
For reference: |
babl and gegl have been pulled, sorry about the delay. |
The new commit adds support for png, and depends on #8855 (libpng12). |
I know this is an aside, for which I apologize, but since you've been working on Gimp compilation, do you know offhand how hard it would be to bump this to the 2.7 betas? I've been anxious to try Gimp's single-window-mode on OS X. |
@cpence I actually already created a formula for the betas of gimp. Pushing it right now in a new branch for ya :) |
@cpence see branch gimp-dev for the development version of gimp |
New commit now have support for libpng15. #8855 (libpng12) is no longer needed. |
so, isn't merged yet? :S |
@Frizlab do you think that you can bump the version to 2.6.12, it is suppose to be "the final 2.6 release". Also, is this going to be merged anytime soon, I would LOVE to see this in homebrew! |
@LinusU I will try and do this ASAP |
@Frizlab that's great, and thanks for the fast reply. I'm gonna try this formula as soon as I figure out how to switch branch on my local homebrew installation (or fail and just apply the patches manually :D ) and report back if it works. Won't be able to do it tonight thought but hopefully during the weekend. |
@Frizlab, Nice! I just tested your formula (2.6.12) and it worked great! Thanks for taking the time to make this formula, hope it gets merged soon :) |
Noticed some interesting things,
Additions I did to the formula:
In
My ruby skills are very close to none so I might have missed something important but it built a functional gimp for me so I guess I'm not that bad. |
I don't know if Homebrew allows flags for dev releases of formulas. I did however created a separate branch of my fork of Homebrew in which there is the development version of gimp (2.7.3). |
@Frizlab take a look to the Formula Cookbook, in the "Unstable versions (HEAD, devel)" section you can use a git, svn, mercurial, etc, repository for unstable versions. |
My bad. I will do the changes ASAP. |
Ahh, good. I also tried to add HEAD-support to the formula, but it didn't work. |
Not sure if it is an issue on my side but I'm not able to install the devel version. It exits with an error during pango make install. 2.6.12 works fine and brew doctor does not report any issue. By the way thanks for this formula! |
@irrationalfab It seems it is not an issue about the gimp formula. When installing the devel version of gimp, all the dependencies are installed in devel mode. Apparently, pango fails to compile in devel mode. |
Thank you for the quick reply. Strangely |
Hey guys, any updates on this one? |
I updated the formula as asked by @adamv. |
+1'ing this, would love to see this merged. Definitely willing to help test this out before merging. |
|
@adamv On what platform did you test this formula? |
@Frizlab, some days ago the GIMP team released a new version of gegl, babl and gimp. I think it would be very wise to bump the devel version in this one to 2.8-rc1 and to update the gegl and babl formulas. What do you think? Also, thanks for taking the time to get GIMP into Homebrew, it is really appreciated. |
OS X 10.6.8 / Xcode 3.2.6 / Core 2 Duo |
I don't have Snow Leopard at home. I will try and update the formula to correct the crash on Snow Leopard as soon as possible. If someone have an idea to try first, I'm willing to take it. @LinusU I will update babl, gegl and the devel versions of Gimp. Thanks for notifying me :) |
I updated glib and recompiled gimp, but I still get the same error. @Sharpie: Yes, I'm on Snow Leopard. How do I make sure that Pango links to Hombrew's Cairo? |
Can't compile gegl 0.2, the issue: #12063 (comment) |
A bit of a mess unfortunately. |
@Sharpie: That worked, thanks! |
Glad to hear it! Everything should be sorted put when #11328 is closed. |
Works great!, I just do this:
$ brew --config HOMEBREW_VERSION: 0.9 HEAD: 0235e587da10cd97ad60bf1b5f25904667b5189c HOMEBREW_PREFIX: /usr/local HOMEBREW_CELLAR: /usr/local/Cellar CPU: dual-core 64-bit penryn OS X: 10.7.4 Kernel Architecture: x86_64 Xcode: 4.3.2 GCC-4.0: N/A GCC-4.2: N/A LLVM: build 2336 Clang: 3.1 build 318 MacPorts or Fink? false X11: /usr/X11 System Ruby: 1.8.7-357 /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby Which Perl: /usr/bin/perl Which Python: /usr/local/bin/python => /usr/local/Cellar/python/2.7.3/bin/python2.7 Which Ruby: /Users/nebiros/.rbenv/shims/ruby |
Regarding "dbus/machine-id", glib-2.32 (the latest pushed) is not aware of dbus's launchd support and tries to run "dbus-launch --autolaunch", which does not work on Mac OS X. I got dbus working via:
Additionally, I've also forked lisanet.de's gimponosx project as https://github.com/idodeclare/gimponosx. I'm only using lisanet's portion to build a OSX application that wraps up gimp-2.8, and I jettisoned all the macports dependencies. I also simplified the project so it builds entirely in Xcode. I wonder if it might be possible to get it to a point where Gimp.app could be brewed. |
I recommend adding dbus-glib as a brew pre-requisite. After much debugging, I finally deduced that half of gimp is using glib's new "embedded" dbus hooks (see gimp-2.8.0/app/unique.c), but the other half is relying on the deprecated dbus-glib library (see gimp-2.8.0/app/gui/gui-unique.c). So without dbus-glib, gimp will appear to be fully dbus functional, in that it connects to the dbus-daemon straightaway and sends bus messages, but the portion of gimp which publishes a org.gimp.GIMP.UI service will not be compiled in. |
dbus-glib is added as an optional dependency to the Gimp formula. |
+1 and thanks for all your efforts. From your configure command I guess this runs with the stock X11 on Lion 10.7.4? I was not looking forward to install XQuartz the way Gimp on OSX from lisanet required. |
Yes it works with the default X11. |
After @nebiros comment: #8835 (comment) . my gimp was compiled and working. |
If dbus is optional there should be a switch for it; since "optional" deps will always be picked up. |
Getting a GEGL error on startup:
|
Squash to a single commit for another review, thanks. |
Squashed to a single commit. But still getting an error on launch. Will work on that when I find some time to spend on the problem. I will also add a switch for dbus. |
@yuvadm I'm not sure. What I provide in my formula is a command line version of The Gimp that uses X11. A native OS X Gimp is not the same thing. Some might find it better, but for instance, if you use The Gimp without GUI, you would need the command line version of The Gimp. |
@Frizlab cool. Note that the native app might also be suffering from the same error you're seeing on initial launch. |
Will check that, when I find the time :) |
So. Now that Gimp is a native OSX application, the only reason we would want to brew gimp is to have the command line version of gimp. |
There could be one reason more for gimp; to build gimp plugins, there should be the environment of gimp! This missing environment is IMHO the largest disadvantage of GimponOSX as well as all other Mac Gimp binaries. Hence, I would appreciate to have a gimp version in homebrew. Command version or app may be a bit less puristic behaviour could help. |
Well. I removed the gimp branch of my fork of Homebrew. I didn't backed it up anywhere. Maybe someone forked my fork and the gimp branch is still somewhere on GitHub, I don't know… EDIT: I deleted the branch, but the commits are still in my fork as I did not delete it. You can still see the formula as it was three months ago by checking the changes made by this pull request. |
I would like to point out that I prefer X11 gimp over native for reasons of taste. I dislike having gimp act differently in OSX than it does in linux/windows, so I like X11 gimp. There is a reason. |
Note that this pull request depends on my other two pull requests: babl and gegl