[MacPorts] #13448: dbus-glib is not building (0% CPU no error
messages) when building Gimp2
MacPorts
trac at macosforge.org
Tue Dec 11 07:48:43 PST 2007
#13448: dbus-glib is not building (0% CPU no error messages) when building Gimp2
----------------------------------------+-----------------------------------
Reporter: poubelle.beslin at orange.fr | Owner: rhwood at macports.org
Type: defect | Status: reopened
Priority: High | Milestone: Port Bugs
Component: ports | Version:
Resolution: | Keywords:
----------------------------------------+-----------------------------------
Comment (by boeyms at macports.org):
Replying to [comment:34 junk at lessjunkmorefunk.de]:
You can roll back by creating a local ports tree and placing an older
version of glib2 Portfile in it to mask the official one. The following
instructions tell you how to do so from scratch (I hope you can work out
what to omit if you've done some of these before).
1. Create a directory on your system to root your local ports tree in,
e.g. `/Users/me/mp-local-ports`.
2. Create a subdirectory in that root into which to place the Portfile;
it must match that reported by `port search`, which is in the form of a
category and then a port name. In this case, we can see that glib2 is
listed by `port search ^glib2$` as being in `devel/glib2`:
{{{
MyComputer:~ me$ port search ^glib2$
glib2 devel/glib2 2.14.4 Library with
data structure functions and other constructs
MyComputer:~ me$
}}}
Thus the subdirectory to create is `devel/glib2` (making the absolute
path to the Portfile `/Users/me/mp-local-ports/devel/glib2` in this case).
3. Copy the desired Portfile into the above directory -- if you want the
one for `glib2 @2.14.2_0`,
[http://trac.macosforge.org/projects/macports/browser/trunk/dports/devel/glib2/Portfile?rev=30556&format=raw
this patch] should do the trick, otherwise you can browse
[http://trac.macosforge.org/projects/macports/log/trunk/dports/devel/glib2/Portfile
the revisions to it] for the one you want.
4. In this case, the Portfile demands patchfiles, which are stored in a
`files/` subdirectory of the port. You will thus need to create such a
directory (e.g. `/Users/me/mp-local-ports/devel/glib2/files`) and copy the
appropriate patchfiles into it (which in this case are
[http://trac.macosforge.org/projects/macports/browser/trunk/dports/devel/glib2/files
here].
5. Return to the root of the local ports tree (e.g. `/Users/me/mp-local-
ports`) and run `portindex`; this creates a `PortIndex` file in that
directory that `port` can then use to know that your local port exists.
6. Finally, edit your `${prefix}/etc/macports/sources.conf` file by
putting the root directory of your local ports tree ''before'' the main
`rsync://rsync.macports.org/release/ports` one, so that your local ports
tree does indeed mask the official one. Note that the path must be in URL
format, so in this case we would enter `file:///Users/me/mp-local-ports`.
Now installing glib2 (when it's not currently installed) will install the
version whose Portfile you put into your local ports tree. Once you're
done with it, simply delete the directory for that port, re-run portindex
in the root of the local port tree, and uninstall the port; subsequent
installs will once again pick up the official Portfile.
I hope this is straightforward enough to follow. If not, please say so.
--
Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/13448#comment:35>
MacPorts </projects/macports>
Ports system for Mac OS
More information about the macports-tickets
mailing list