Module submission - perl

sofar@lunar-linux.org sofar at lunar-linux.org
Mon May 30 15:18:35 UTC 2005


module name       : perl
suggested section : perl
update (y/n)      : y
bugfix (y/n)      : n
security (y/n)    : n


This contains additional BUILD cleanups greatly simplifying the perl
BUILD scheme, renames the unclean COMPILE env var into CROSSCOMPILE,
and properly rebuilds ALL lunar-installed CPAN modules !!!

Please test ASAP and feedback,

sofar

-------------- next part --------------
--- perl/BUILD	2005-05-30 10:02:13.000000000 +0200
+++ perl/BUILD	2005-05-30 11:13:59.000000000 +0200
@@ -1,48 +1,29 @@
 (
 
-  # DO NOT TOUCH THESE SEDITS UNLESS YOU KNOW WHAT YOU'RE DOING!
-
   # Rename COMPILE to something else in these files since
   # COMPILE gets set by lunar. Perl uses COMPILE when
   # compling win32 test programs.
-  sedit 's/COMPILE/PERL_DID_AN_OOPS/' Makefile.SH installperl &&
+  sedit 's/COMPILE/CROSSCOMPILE/' Makefile.SH installperl &&
 
-  if [ "$USE_SUIDPERL" == "y" ] ; then
+  if [ "$SUIDPERL" == "y" ] ; then
 	OPTS="$OPTS -Dd_dosuid"
   fi &&
-	
-  if [ "$CUSTOM" == "y" ] ; then
-	./Configure  -Dprefix=/usr   \
-		     -Duseshrplib=true	\
-		     $OPTS \
-                     -Dman1dir=/usr/share/man/man1 \
-                     -Dman3dir=/usr/share/man/man3 -e
-  else
-        ./Configure  -Dprefix=/usr   \
-		     -Duseshrplib=true	\
-		     -Dccdlflags='-rdynamic' \
-		     -Doptimize="${CFLAGS}" \
-		     -Duselargefiles \
-		     -Ud_csh \
-		     -Dcf_by='Lunar' \
-                     $OPTS \
-		     -Dman1dir=/usr/share/man/man1 \
-		     -Dusethreads	\
-                     -Dman3dir=/usr/share/man/man3 -d -e 
+  if [ "$CUSTOM" != "y" ] ; then
+    OPTS="$OPTS -Dusethreads -ds"
   fi && 
+  OPTS="$OPTS -Dprefix=/usr -Duseshrplib=true -Dman1dir=/usr/share/man/man1 -Dman3dir=/usr/share/man/man3 -e"
  
+  ./Configure $OPTS	&&
   make	  		&&
-
   export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$SOURCE_DIRECTORY" &&
   ldconfig		&&
-
   prepare_install	&&
   make install		&&
 
-  strip --strip-unneeded $(which perl) &&
+  strip --strip-unneeded /usr/bin/perl &&
   
   if [ "$SUIDPERL" == "y" ] ; then
-    strip --strip-unneeded $(which suidperl)
+    strip --strip-unneeded /usr/bin/suidperl
   fi
 
 ) > $C_FIFO 2>&1
--- perl/POST_INSTALL	2005-05-07 20:09:37.000000000 +0200
+++ perl/POST_INSTALL	2005-05-30 15:03:05.000000000 +0200
@@ -1,10 +1,13 @@
 #  Reinstall packages that add their own perl modules
+if [ -n "$OLD_PERL_VERSION" ] ; then
+	PERLMODS="$( (lvu from /usr/lib/perl?/$OLD_PERL_VERSION; lvu from /usr/lib/perl?/site_perl/$OLD_PERL_VERSION) | cut -d: -f1 | uniq | grep -v perl)"
+	for PERLMOD in $(sort_by_dependency $PERLMODS); do
+		lin -c $PERLMOD || true
+	done
+	unset_module_config OLD_PERL_VERSION
+fi
 
-if  module_installed  irssi;          then  lin  irssi;          fi
-if  module_installed  ImageMagick;    then  lin  ImageMagick;    fi
-if  module_installed  SDL_perl;       then  lin  SDL_perl;       fi
-if  module_installed  SGMLSpm;        then  lin  SGMLSpm;        fi
-if  module_installed  XML-Parser;     then  lin  XML-Parser;	 fi
 message ""
 message "${MESSAGE_COLOR}Remember to re-install ANY CPAN modules by hand!${DEFAULT_COLOR}"
 message "${MESSAGE_COLOR}You will also need to re-lin lunar installed perl modules too!${DEFAULT_COLOR}"
+message ""
--- perl/PRE_BUILD	2005-05-25 19:32:21.000000000 +0200
+++ perl/PRE_BUILD	2005-05-30 09:49:31.000000000 +0200
@@ -1,5 +1,5 @@
-if module_installed perl ; then
-  lrm --upgrade perl
+if [ "$(installed_version perl)" != "$VERSION" ]; then
+	set_module_config OLD_PERL_VERSION $(installed_version perl)
 fi &&
-
+lrm --upgrade perl &&
 default_pre_build


More information about the Lunar-dev mailing list