[Pkg-octave-commit] rev 620 - trunk/packages/octaviz/debian
Thomas Weber
thomas-guest at costa.debian.org
Thu Jun 1 13:58:09 UTC 2006
Author: thomas-guest
Date: 2006-06-01 13:58:08 +0000 (Thu, 01 Jun 2006)
New Revision: 620
Added:
trunk/packages/octaviz/debian/check-symlink.sh
Modified:
trunk/packages/octaviz/debian/changelog
trunk/packages/octaviz/debian/rules
Log:
introduce a test script to checking for the dangling symlink on the autobuilders
Break the build and print an explaining message, if a 'manual' status is found
Modified: trunk/packages/octaviz/debian/changelog
===================================================================
--- trunk/packages/octaviz/debian/changelog 2006-05-31 09:22:12 UTC (rev 619)
+++ trunk/packages/octaviz/debian/changelog 2006-06-01 13:58:08 UTC (rev 620)
@@ -1,3 +1,13 @@
+octaviz (0.4.0-27) unstable; urgency=low
+
+ NOT YET RELEASED!
+
+ [ Thomas Weber ]
+ * Check for dangling symlink on the autobuilder and abort the build, if
+ necessary. Print a message for the buildd admin (Closes: #369764).
+
+ --
+
octaviz (0.4.0-26) unstable; urgency=low
[ Thomas Weber ]
Added: trunk/packages/octaviz/debian/check-symlink.sh
===================================================================
--- trunk/packages/octaviz/debian/check-symlink.sh 2006-05-31 09:22:12 UTC (rev 619)
+++ trunk/packages/octaviz/debian/check-symlink.sh 2006-06-01 13:58:08 UTC (rev 620)
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+# Check the octave-config symlink; send an abort message (and abort the build)
+# if the status is manual
+
+status=$(/usr/sbin/update-alternatives --display octave-config | grep -c "status is manual");
+
+echo "status=$status"
+
+if [ $status == "1" ]
+ then
+ echo " ABORTING BUILD!"
+ echo " octave-config alternative symlink is set to 'manual'."
+ echo " If you are the buildd admin of this machine, please read http://lists.debian.org/debian-devel/2006/01/msg01566.html"
+ echo " If you are in a hurry, just run "
+ echo " # update-alternatives --auto octave-config"
+ echo " in the buildd chroot"
+ fi
+
+exit $status
Property changes on: trunk/packages/octaviz/debian/check-symlink.sh
___________________________________________________________________
Name: svn:executable
+ *
Modified: trunk/packages/octaviz/debian/rules
===================================================================
--- trunk/packages/octaviz/debian/rules 2006-05-31 09:22:12 UTC (rev 619)
+++ trunk/packages/octaviz/debian/rules 2006-06-01 13:58:08 UTC (rev 620)
@@ -28,6 +28,7 @@
# reintroduce tests; failing autobuilders are fun ...
ls -l /usr/bin/oct*
ls -l /etc/alternatives/oct*
+ /bin/sh debian/check-symlink.sh
cmake -DCMAKE_SKIP_RPATH:BOOL=YES .
touch cmake-stamp
More information about the Pkg-octave-commit
mailing list