From c47de643494ac02f5b18765bd989cbcc48c465d4 Mon Sep 17 00:00:00 2001 From: Matthew Flatt Date: Mon, 6 Oct 2014 14:13:12 -0600 Subject: [PATCH] configure: add `--enable-natipkg` and 64-bit Linux native libraries The `--enable-natipkg` configuration option adds "-natipkg" to the platform library subpath. The suffix is intended to trigger the installation of packages that supply native libraries for supported platforms (where 64-bit Linux is the supported platform, for now, for main-distribution packages), instead of relying on libraries installed via the OS's package manager. The intended client for "-natipkg" is the package-build service, where installing packages via the OS package manager would require network access and either trust or constrained installations. The build machine is intentionally disconnected from the network and can only access Racket packages, so repackaging native libraries as Racket packages makes those libraries accessible. A disadvantage of this approach to installing native libraries is that it creates work for implementers of packages that access native libraries. Those implementers will have to supply packages for 64-bit Linux versions of native libraries to the degree needed to build and (eventually) test the package. An advantage of the approach is that it requires no changes to the package system; it will be cheap to replace this approach if we find a better way to deal with native libraries and/or OS packages in the package-build service. original commit: 40f5ec070aa2764ea1bec1954769cdd025c443fb --- pkgs/gui-pkgs/gui-lib/info.rkt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/gui-pkgs/gui-lib/info.rkt b/pkgs/gui-pkgs/gui-lib/info.rkt index b5937687..d378cc66 100644 --- a/pkgs/gui-pkgs/gui-lib/info.rkt +++ b/pkgs/gui-pkgs/gui-lib/info.rkt @@ -21,7 +21,8 @@ ("gui-x86_64-macosx" #:platform "x86_64-macosx") ("gui-ppc-macosx" #:platform "ppc-macosx") ("gui-win32-i386" #:platform "win32\\i386") - ("gui-win32-x86_64" #:platform "win32\\x86_64"))) + ("gui-win32-x86_64" #:platform "win32\\x86_64") + ("gui-x86_64-linux-natipkg" #:platform "x86_64-linux-natipkg"))) (define build-deps '("at-exp-lib" "rackunit-lib"))