Using MacProrts inhouse as multiplatform package manager
Hi, I was just wondering if it's possible to use MacPorts as an inhouse package distribution manager for several platforms (linux, solaris, mac os x). We are a software development company and we develop across these platforms. It would be ideal if we can manage a single list of packages (Portfiles) and use macports to specifically tune them in for every platform. Ognen -- Ognen Ivanovski | ognen.ivanovski@netcetera.com.mk phone +389 -2- 30 64 532 | fax +389 -2- 30 79 495 Netcetera | 1000 Skopje | Macedonia | http://netcetera.com.mk
Ognen Ivanovski wrote:
I was just wondering if it's possible to use MacPorts as an inhouse package distribution manager for several platforms (linux, solaris, mac os x).
MacPorts only supports Mac OS X, so that's not going to work cross-platform. (you can use it on FreeBSD with GNUstep, but it is not officially supported) --anders
On Aug 10, 2007, at 14:54, Anders F Björklund wrote:
Ognen Ivanovski wrote:
I was just wondering if it's possible to use MacPorts as an inhouse package distribution manager for several platforms (linux, solaris, mac os x).
MacPorts only supports Mac OS X, so that's not going to work cross- platform. (you can use it on FreeBSD with GNUstep, but it is not officially supported)
Well, to express that in a bit more friendly way: MacPorts is designed for Mac OS X 10.3 and later. The target audience is Mac OS X users. But since Mac OS X is based on BSD UNIX, many ports will also work on BSD-style operating systems. MacPorts should also be capable of supporting builds on most UNIX- like platforms, including Linux and Solaris. Many ports will probably already work on those operating systems without modification. I doubt anybody is testing most of the ports on those systems, however, so you may run into problems. But those problems should be surmountable (Mac OS X GUI applications excepted for obvious reasons). You can insert directives into the portfiles for commands to be run only on certain platforms. And if you find such changes necessary, you can submit patches to us via Trac for inclusion in the normal ports collection, so that you don't have to keep maintaining your own deltas. Looking through the existing portfiles, I see gettext which declares it will work on linux, libpng says it will work on linux, freebsd and sunos, and monit claims to work on linux, freebsd, netbsd, openbsd and solaris. In addition to Mac OS X, of course. And, as I say, many ports will probably work on your other OSes, even if they don't declare it. (And if you find that they do work, you can tell us so that we can indicate that the port does work on that platform.)
Ryan Schmidt wrote:
MacPorts only supports Mac OS X, so that's not going to work cross-platform. (you can use it on FreeBSD with GNUstep, but it is not officially supported)
Well, to express that in a bit more friendly way: MacPorts is designed for Mac OS X 10.3 and later. The target audience is Mac OS X users. But since Mac OS X is based on BSD UNIX, many ports will also work on BSD-style operating systems.
I didn't mean to sound unfriendly. I just meant that since the refocus of MacPorts on Mac OS X, other operating systems such as Darwin or FreeBSD are officially unsupported. And the "base" installation currently lacks features and code, to allow it to even compile on GNU/Linux or Solaris ?
Looking through the existing portfiles, I see gettext which declares it will work on linux, libpng says it will work on linux, freebsd and sunos, and monit claims to work on linux, freebsd, netbsd, openbsd and solaris. In addition to Mac OS X, of course. And, as I say, many ports will probably work on your other OSes, even if they don't declare it. (And if you find that they do work, you can tell us so that we can indicate that the port does work on that platform.)
Probably need to re-inventory these, since some of those flags are leftovers from DarwinPorts and not all ports no longer work on systems that they claim ? Feel free to post results on porting base or ports over to other operating systems on the macports-dev list, I am trying to run it on FreeBSD myself. --anders
Looking through the existing portfiles, I see gettext which declares it will work on linux, libpng says it will work on linux, freebsd and sunos, and monit claims to work on linux, freebsd, netbsd, openbsd and solaris. In addition to Mac OS X, of course. And, as I say, many ports will probably work on your other OSes, even if they don't declare it. (And if you find that they do work, you can tell us so that we can indicate that the port does work on that platform.)
Probably need to re-inventory these, since some of those flags are leftovers from DarwinPorts and not all ports no longer work on systems that they claim ? Feel free to post results on porting base or ports over to other operating systems on the macports-dev list, I am trying to run it on FreeBSD myself.
As long as Tcl and GNUstep are installed, and some minor bugs patched, MacPorts 1.5 installs OK on FreeBSD and Fedora. So there is no reason why there couldn't be packages (TBZ or RPM) made for those systems made in e.g. MacPorts 1.6, assuming that there is enough interest in such ports of course. "selfupdate" doesn't work, though. The issues are reported on Trac, under the keywords "FreeBSD support" and "Linux support". --anders
participants (3)
-
Anders F Björklund
-
Ognen Ivanovski
-
Ryan Schmidt