Summary: | patch allowing transfig-3.2.4 to compile against gcc-4 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Stéphane Gimenez <gentoo> |
Component: | New packages | Assignee: | Philip Walls (RETIRED) <malverian> |
Status: | RESOLVED DUPLICATE | ||
Severity: | trivial | CC: | ppc-macos |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
allows transfig-3.2.4 to compile against gcc-4
dirty patch for dirty makefile to make sure compilation fails if one subdir fails to compile changes made to make it compile on GCC 4 and fail as soon as one subdir fails patch to the ebuild with includes the gcc4 patch and adds virtual/x11 dependency |
Description
Stéphane Gimenez
2005-02-04 11:28:44 UTC
Created attachment 50366 [details, diff]
allows transfig-3.2.4 to compile against gcc-4
surpisingly, the ebuild just continues and reports the merge TO BE SUCCESSFUL! This is however a bug in the Makefile generated and seems to be fixable by patching the Makefile afterwards. No idea whether this is generic. It is scary. See attach 1 which follows this post. using the patch supplied, the compilation runs further on GCC 4.0.0 OS X Tiger, but make finally dies with: /bin/sh: line 1: rman: command not found make: *** [fig2dev.1.html] Error 127 I guess this should have been a dependency for OSX, as Gentoo Linux systems seem to have this tool by default without having the rman ebuild installed actually. See separate bug for rman 3.1 compiles fine on OSX. After applying the two patches, the ebuild finally compiled on OS X Portage. The ebuild diff is attached secondly below. The assumed name for the originally supplied patch is ${P}-gcc-4.0.patch = transfig-3.2.4-gcc-4.0.patch Created attachment 61295 [details, diff]
dirty patch for dirty makefile to make sure compilation fails if one subdir fails to compile
This patch makes sure the whole compilation fails if one subdir (fig2dev for
instance) fails, which happens on Portage OSX with GCC 4.0. Before this patch
the ebuild just continues and reports build to be fine, while in fact the quite
important fig2dev tool is missing.
Created attachment 61296 [details, diff]
changes made to make it compile on GCC 4 and fail as soon as one subdir fails
This patch shows the changes I had to make to get the ebuild to compile on
Portage OSX with GCC 4.0
malverian, the ebuild (transfig-3.2.4-r2) uses xmkmf and rman which is provided by X, hence I added the dependency for virtual/x11 Are the changes to the ebuild okay with you (see next post with attach), and would you like to check them in, or allow me to check them in? Adding ppc-macos as this bug also solves compilation issue on OSX 10.4 (which uses GCC4) Created attachment 65819 [details, diff]
patch to the ebuild with includes the gcc4 patch and adds virtual/x11 dependency
the used patch is the one supplied by gim initially.
|