[csw-devel] SF.net SVN: gar:[13697] csw/mgar/pkg/file/trunk

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Wed Mar 9 01:26:42 CET 2011


Revision: 13697
          http://gar.svn.sourceforge.net/gar/?rev=13697&view=rev
Author:   wahwah
Date:     2011-03-09 00:26:42 +0000 (Wed, 09 Mar 2011)

Log Message:
-----------
file: Adding a check for missing magic.so

Modified Paths:
--------------
    csw/mgar/pkg/file/trunk/Makefile

Added Paths:
-----------
    csw/mgar/pkg/file/trunk/files/check_pkgroot.sh

Modified: csw/mgar/pkg/file/trunk/Makefile
===================================================================
--- csw/mgar/pkg/file/trunk/Makefile	2011-03-08 23:43:18 UTC (rev 13696)
+++ csw/mgar/pkg/file/trunk/Makefile	2011-03-09 00:26:42 UTC (rev 13697)
@@ -102,3 +102,7 @@
 	(cd $(DESTDIR) && \
 		gln -s ../bin/gfile $(DESTDIR)$(prefix)/gnu/file)
 	@$(MAKECOOKIE)
+
+post-merge:
+	$(FILEDIR)/check_pkgroot.sh "$(PKGROOT)"
+	@$(MAKECOOKIE)

Added: csw/mgar/pkg/file/trunk/files/check_pkgroot.sh
===================================================================
--- csw/mgar/pkg/file/trunk/files/check_pkgroot.sh	                        (rev 0)
+++ csw/mgar/pkg/file/trunk/files/check_pkgroot.sh	2011-03-09 00:26:42 UTC (rev 13697)
@@ -0,0 +1,15 @@
+#!/opt/csw/bin/bash
+# $Id$
+
+declare -r PKGROOT="$1"
+if [[ -z "${PKGROOT}" ]]
+then
+  echo "Please give an argument."
+  exit 1
+fi
+set -u
+set -e
+set -x
+
+# This file was missing in file-5.05, and that broke py_libmagic.
+test -f ${PKGROOT}/opt/csw/lib/python/site-packages/magic.so


Property changes on: csw/mgar/pkg/file/trunk/files/check_pkgroot.sh
___________________________________________________________________
Added: svn:executable
   + *
Added: svn:keywords
   + Id


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.


More information about the devel mailing list