[csw-devel] SF.net SVN: gar:[6728] csw/mgar/pkg/urxvt/trunk

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Tue Oct 6 16:59:09 CEST 2009


Revision: 6728
          http://gar.svn.sourceforge.net/gar/?rev=6728&view=rev
Author:   wahwah
Date:     2009-10-06 14:59:08 +0000 (Tue, 06 Oct 2009)

Log Message:
-----------
urxvt: A workaround for a Solaris kernel bug: http://bugs.opensolaris.org/view_bug.do?bug_id=6268715

Modified Paths:
--------------
    csw/mgar/pkg/urxvt/trunk/Makefile
    csw/mgar/pkg/urxvt/trunk/checksums

Added Paths:
-----------
    csw/mgar/pkg/urxvt/trunk/files/urxvt-wrapper

Modified: csw/mgar/pkg/urxvt/trunk/Makefile
===================================================================
--- csw/mgar/pkg/urxvt/trunk/Makefile	2009-10-06 14:32:10 UTC (rev 6727)
+++ csw/mgar/pkg/urxvt/trunk/Makefile	2009-10-06 14:59:08 UTC (rev 6728)
@@ -20,6 +20,7 @@
 
 MASTER_SITES = http://dist.schmorp.de/rxvt-unicode/
 DISTFILES  = $(GARNAME)-$(GARVERSION).tar.bz2
+DISTFILES += urxvt-wrapper
 # PATCHFILES = $(GARNAME)-$(GARVERSION)-solaris8.patch
 
 UFILES_REGEX = $(GARNAME)-(\d+(?:\.\d+)*).tar.bz2
@@ -33,7 +34,21 @@
 
 GARCOMPILER = GNU
 
-REQUIRED_PKGS_CSWurxvt = CSWfconfig CSWftype2 CSWlibxft2 CSWlibxrender CSWzlib
+REQUIRED_PKGS_CSWurxvt  = CSWbash
+REQUIRED_PKGS_CSWurxvt += CSWfconfig
+REQUIRED_PKGS_CSWurxvt += CSWftype2
+REQUIRED_PKGS_CSWurxvt += CSWlibxft2
+REQUIRED_PKGS_CSWurxvt += CSWlibxrender
+REQUIRED_PKGS_CSWurxvt += CSWzlib
 TEST_SCRIPTS =
 
+post-install-modulated:
+	ginstall -m 755 -d $(DESTDIR)$(libexecdir)
+	for b in urxvt urxvtd urxvtc; do \
+	  mv $(DESTDIR)$(bindir)/$${b} $(DESTDIR)$(libexecdir); \
+	  ln -s ../libexec/urxvt-wrapper $(DESTDIR)$(bindir)/$${b}; \
+	done
+	ginstall -m 755 $(FILEDIR)/urxvt-wrapper $(DESTDIR)$(libexecdir)
+	@$(MAKECOOKIE)
+
 include gar/category.mk

Modified: csw/mgar/pkg/urxvt/trunk/checksums
===================================================================
--- csw/mgar/pkg/urxvt/trunk/checksums	2009-10-06 14:32:10 UTC (rev 6727)
+++ csw/mgar/pkg/urxvt/trunk/checksums	2009-10-06 14:59:08 UTC (rev 6728)
@@ -1 +1,2 @@
 4cb9330e99fc0b0b05cebf3581557dd8  download/rxvt-unicode-9.06.tar.bz2
+d1fb3a5f721baf361574880f6cdc92be  download/urxvt-wrapper

Added: csw/mgar/pkg/urxvt/trunk/files/urxvt-wrapper
===================================================================
--- csw/mgar/pkg/urxvt/trunk/files/urxvt-wrapper	                        (rev 0)
+++ csw/mgar/pkg/urxvt/trunk/files/urxvt-wrapper	2009-10-06 14:59:08 UTC (rev 6728)
@@ -0,0 +1,20 @@
+#!/opt/csw/bin/bash
+#
+# A workaround because of a Solaris 10 kernel bug:
+# http://bugs.opensolaris.org/view_bug.do?bug_id=6268715
+
+set -u
+
+executable=$(basename $0)
+libexec="/opt/csw/libexec"
+libexec_binary="${libexec}/${executable}"
+
+if [[ ! -r "${libexec_binary}" ]]; then
+  echo "Can't read ${libexec_binary}"
+  exit 1
+fi
+
+# The workaround itself:
+export LIBEV_FLAGS=1
+
+exec "${libexec_binary}" "$@"


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