[Lunar-commits] r25540 - moonbase/trunk/perl/SDL_perl

Auke Kok sofar at lunar-linux.org
Thu Aug 23 17:30:20 CEST 2007


Author: sofar
Date: 2007-08-23 17:30:20 +0200 (Thu, 23 Aug 2007)
New Revision: 25540

Modified:
   moonbase/trunk/perl/SDL_perl/BUILD
Log:
workaround for (Module-Build?) bug that installs libs in wrong place.
Don't know how robust the link creation is. Is there a better way.

Also, to work around BR189 (http://bugs.lunar-linux.org/view.php?id=189)
in order to get frozen-bubble to install, it is necessary to build without
smpeg - ie. lrm smpeg, then lin SDL_perl, then relin smpeg.
How should this be handled?


From:  duncan.gibson at xs4all.nl


Modified: moonbase/trunk/perl/SDL_perl/BUILD
===================================================================
--- moonbase/trunk/perl/SDL_perl/BUILD	2007-08-23 15:29:55 UTC (rev 25539)
+++ moonbase/trunk/perl/SDL_perl/BUILD	2007-08-23 15:30:20 UTC (rev 25540)
@@ -2,9 +2,35 @@
 
   perl Build.PL    &&
   ./Build          &&
-  ./Build test     &&
+
   prepare_install  &&
   ./Build install  &&
   sleep 3
 
+  # dirty workaround for problem in (Module-Build?) installation code
+
+  WRONG=/usr/lib/perl5/site_perl/5*/*/auto/src/SDL
+  if [ -d $WRONG ] ; then
+    RIGHT=`echo $WRONG | sed 's:src/SDL:/SDL:'`
+    if [ -h $RIGHT ] ; then
+      rm $RIGHT
+    fi
+    if [ ! -e $RIGHT ] ; then
+      echo ln -s $WRONG $RIGHT
+      ln -s $WRONG $RIGHT
+    fi
+  fi
+
+  WRONG=/usr/lib/perl5/site_perl/5*/*/auto/src/SDL_perl
+  if [ -d $WRONG ] ; then
+    RIGHT=`echo $WRONG | sed 's:src/SDL_perl:/SDL_perl:'`
+    if [ -h $RIGHT ] ; then
+      rm $RIGHT
+    fi
+    if [ ! -e $RIGHT ] ; then
+      echo ln -s $WRONG $RIGHT
+      ln -s $WRONG $RIGHT
+    fi
+  fi
+
 ) > $C_FIFO 2>&1



More information about the Lunar-commits mailing list