Distfiles mirror behind proxy

Max Asato asato at cae1.aero.org
Thu Dec 11 09:41:00 PST 2008


This thread got a bit fragmented so I'll restate this particular problem.
Sorry about the length of this posting.

I had created a binary archive on one system and copied the archive
to another system in the hopes that I could install the binaries
directly and avoid a second build.  This would demonstrate the
feasibility of accelerating Port installations for users on our network
by providing a shared repository for prebuilt archives.

It turns out that I either just happened to pick an odd package for my
initial testing or there are architectural differences between a
PowerMac (2x dual-core Xeon) and an iMac (Core 2 Duo) that the glib2 port 
cares about.

I built glib2 originally on a PowerMac running 10.4.11.

   abk239$ port installed glib2
   The following ports are currently installed:
     glib2 @2.18.3_0+darwin_8 (active)

   abk239$ port variants glib2
   glib2 has the variants:
           universal
           puredarwin
           darwin
           powerpc
           darwin_6
           darwin_7
           darwin_8
           darwin_9

   abk239$ ls -l /opt/local/var/macports/packages/darwin/i386/glib2*
   -rw-r--r--   1 root  admin  3629276 Dec  8 13:18 /opt/local/var/macports/packages/darwin/i386/glib2-2.18.3_0+darwin_8.i386.tgz
   
I then tried to install that binary on an iMac running 10.4.11 (which 
doesn't seem to support the darwin_8 variant).  This failed even when that 
variant was requested.

   imac2$ ls -l /opt/local/var/macports/packages/darwin/i386/glib2*
   -rw-r--r--   1 root  admin  3629276 Dec  8 13:18 /opt/local/var/macports/packages/darwin/i386/glib2-2.18.3_0+darwin_8.i386.tgz

   imac2$ port variants glib2
   glib2 has the variants:
           universal
           puredarwin
           darwin
           powerpc
           darwin_6
           darwin_9

   imac2$ sudo port -bd install glib2 +darwin_8
   DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/glib2
   DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/glib2
   DEBUG: Requested variant darwin_8 is not provided by port glib2.
   DEBUG: Requested variant i386 is not provided by port glib2.
   DEBUG: Requested variant macosx is not provided by port glib2.
   DEBUG: Executing variant darwin provides darwin
   DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/gettext
   DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/gettext
   DEBUG: Requested variant darwin_8 is not provided by port gettext.
   DEBUG: Requested variant darwin is not provided by port gettext.
   DEBUG: Requested variant i386 is not provided by port gettext.
   DEBUG: Requested variant macosx is not provided by port gettext.
   DEBUG: Searching for dependency: gettext
   DEBUG: Found Dependency: receipt exists for gettext
   DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/textproc/libiconv
   DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/textproc/libiconv
   DEBUG: Requested variant darwin is not provided by port libiconv.
   DEBUG: Requested variant i386 is not provided by port libiconv.
   DEBUG: Requested variant macosx is not provided by port libiconv.
   DEBUG: Executing variant darwin_8 provides darwin_8
   DEBUG: Searching for dependency: libiconv
   DEBUG: Found Dependency: receipt exists for libiconv
   DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/pkgconfig
   DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/pkgconfig
   DEBUG: Requested variant darwin_8 is not provided by port pkgconfig.
   DEBUG: Requested variant darwin is not provided by port pkgconfig.
   DEBUG: Requested variant i386 is not provided by port pkgconfig.
   DEBUG: Requested variant macosx is not provided by port pkgconfig.
   DEBUG: Searching for dependency: pkgconfig
   DEBUG: Found Dependency: receipt exists for pkgconfig
   DEBUG: Skipping completed org.macports.main (glib2)
   DEBUG: No TGZ archive: /opt/local/var/macports/packages/darwin/i386/glib2-2.18.3_0.i386.tgz
   Error: Target org.macports.unarchive returned: Archive for glib2 2.18.3_0 not found, required when binary-only is set!


So it looks like MacPorts is searching for an archive and would have used
it if the port and variant had matched.  So the jury is still out on 
whether it is worth the effort of creating a mechanism for sharing
prebuilt binaries among our users.

Thanks to all of those who responded.

-Max



More information about the macports-users mailing list