[Lunar-commits] <moonbase> psutils: build without libX11

Paul Bredbury brebs at lunar-linux.org
Sat Jan 22 08:56:50 CET 2011


commit 3477b6fcffe4645d143914ccf6f8e33c98eb9053
Author: Paul Bredbury <brebs at lunar-linux.org>
Date:   Sat Jan 22 14:56:50 2011 +0700

    psutils: build without libX11
    
    Not using optional_depends, because don't want to risk a circular
    dependency.
---
 printer/psutils/BUILD |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/printer/psutils/BUILD b/printer/psutils/BUILD
index ae8b10c..6c17bb0 100644
--- a/printer/psutils/BUILD
+++ b/printer/psutils/BUILD
@@ -3,6 +3,11 @@
   # Only build psutils
   OPTS+=" --disable-all-pkgs --enable-psutils --enable-ipc --enable-shared --enable-static=no --disable-multiplatform --disable-native-texlive-build --with-gs=gs"  &&
 
+  if ! module_installed libX11 ; then
+    # Prevents risk of circular dependency: groff -> man -> libX11
+    OPTS+=" --without-x"
+  fi  &&
+
   default_build
 
 ) > $C_FIFO 2>&1


More information about the Lunar-commits mailing list