[26661] trunk/dports/sysutils/smart

source_changes at macosforge.org source_changes at macosforge.org
Mon Jul 2 00:00:56 PDT 2007


Revision: 26661
          http://trac.macosforge.org/projects/macports/changeset/26661
Author:   afb at macports.org
Date:     2007-07-02 00:00:55 -0700 (Mon, 02 Jul 2007)

Log Message:
-----------
version update, closes #12019

Modified Paths:
--------------
    trunk/dports/sysutils/smart/Portfile
    trunk/dports/sysutils/smart/files/patch-prefix.diff

Added Paths:
-----------
    trunk/dports/sysutils/smart/files/patch-filetools.py

Modified: trunk/dports/sysutils/smart/Portfile
===================================================================
--- trunk/dports/sysutils/smart/Portfile	2007-07-02 06:06:04 UTC (rev 26660)
+++ trunk/dports/sysutils/smart/Portfile	2007-07-02 07:00:55 UTC (rev 26661)
@@ -2,7 +2,7 @@
 
 PortSystem 1.0
 name		smart
-version		0.41
+version		0.51
 platforms	darwin
 categories	sysutils archivers
 maintainers	n3npq at mac.com
@@ -16,10 +16,10 @@
 			URPMI, etc).
 homepage	http://smartpm.org
 master_sites	http://labix.org/download/smart/
-checksums	md5 1460dfbfe7f739ac718525c71f46b5fc
+checksums	md5 6584bf3b977081162d19e220fdbcb3ac
 
 use_bzip2	yes
-patchfiles	patch-prefix.diff
+patchfiles	patch-prefix.diff patch-filetools.py
 
 depends_lib	lib:librpm:rpm	port:python24 port:py-gtk2
 

Added: trunk/dports/sysutils/smart/files/patch-filetools.py
===================================================================
--- trunk/dports/sysutils/smart/files/patch-filetools.py	                        (rev 0)
+++ trunk/dports/sysutils/smart/files/patch-filetools.py	2007-07-02 07:00:55 UTC (rev 26661)
@@ -0,0 +1,14 @@
+--- ./smart/util/filetools.py.jbj	2005-08-27 19:27:09.000000000 -0400
++++ ./smart/util/filetools.py	2005-08-27 19:28:33.000000000 -0400
+@@ -65,7 +65,10 @@
+         pass
+ 
+ def setCloseOnExecAll():
+-    for fd in range(3,resource.getrlimit(resource.RLIMIT_NOFILE)[1]):
++    nfmax = resource.getrlimit(resource.RLIMIT_NOFILE)[1]
++    if nfmax > 4096:
++	nfmax = 4096
++    for fd in range(3,nfmax):
+         try:
+             flags = fcntl.fcntl(fd, fcntl.F_GETFL, 0)
+             flags |= fcntl.FD_CLOEXEC

Modified: trunk/dports/sysutils/smart/files/patch-prefix.diff
===================================================================
--- trunk/dports/sysutils/smart/files/patch-prefix.diff	2007-07-02 06:06:04 UTC (rev 26660)
+++ trunk/dports/sysutils/smart/files/patch-prefix.diff	2007-07-02 07:00:55 UTC (rev 26661)
@@ -1,5 +1,5 @@
---- ./Makefile.jbj	2005-08-27 19:33:06.000000000 -0400
-+++ ./Makefile	2005-08-27 19:33:42.000000000 -0400
+--- ./Makefile.orig	2005-08-27 19:33:06.000000000 -0400
++++ ./Makefile	2007-06-18 10:43:00.000000000 +0200
 @@ -5,7 +5,7 @@
  DESTDIR=/
  PYTHON=python
@@ -24,17 +24,36 @@
  USERDATADIR = "~/.smart/"
  CONFFILE    = "config"
  
---- ./smart/util/filetools.py.jbj	2005-08-27 19:27:09.000000000 -0400
-+++ ./smart/util/filetools.py	2005-08-27 19:28:33.000000000 -0400
-@@ -65,7 +65,10 @@
-         pass
+--- ./smart/plugins/detectsys.py.orig	2006-01-24 20:43:55.000000000 +0100
++++ ./smart/plugins/detectsys.py	2007-06-18 10:43:26.000000000 +0200
+@@ -23,7 +23,7 @@ from smart import *
+ import os
  
- def setCloseOnExecAll():
--    for fd in range(3,resource.getrlimit(resource.RLIMIT_NOFILE)[1]):
-+    nfmax = resource.getrlimit(resource.RLIMIT_NOFILE)[1]
-+    if nfmax > 4096:
-+	nfmax = 4096
-+    for fd in range(3,nfmax):
-         try:
-             flags = fcntl.fcntl(fd, fcntl.F_GETFL, 0)
-             flags |= fcntl.FD_CLOEXEC
+ def detectRPMSystem():
+-    dir = os.path.join(sysconf.get("rpm-root", "/"), "var/lib/rpm")
++    dir = os.path.join(sysconf.get("rpm-root", "/"), "@@PREFIX@@/var/lib/rpm")
+     if os.path.isdir(dir):
+         for alias in sysconf.keys("channels"):
+             if sysconf.get(("channels", alias, "type")) == "rpm-sys":
+--- ./smart/backends/rpm/base.py.orig	2006-11-07 21:22:46.000000000 +0100
++++ ./smart/backends/rpm/base.py	2007-06-18 20:53:43.000000000 +0200
+@@ -53,7 +53,7 @@ def getTS(new=False):
+         getTS.ts = rpm.ts(getTS.root)
+         if not sysconf.get("rpm-check-signatures", False):
+             getTS.ts.setVSFlags(rpm._RPMVSF_NOSIGNATURES)
+-        dbdir = os.path.join(getTS.root, "var/lib/rpm")
++        dbdir = os.path.join(getTS.root, "@@PREFIX@@/var/lib/rpm")
+         if not os.path.isdir(dbdir):
+             try:
+                 os.makedirs(dbdir)
+--- ./smart/channels/rpm_sys.py.orig	2006-01-24 20:43:55.000000000 +0100
++++ ./smart/channels/rpm_sys.py	2007-06-18 20:53:33.000000000 +0200
+@@ -33,7 +33,7 @@ class RPMSysChannel(PackageChannel):
+     def fetch(self, fetcher, progress):
+         getTS() # Make sure the db exists.
+         path = os.path.join(sysconf.get("rpm-root", "/"),
+-                            "var/lib/rpm/Packages")
++                            "@@PREFIX@@/var/lib/rpm/Packages")
+         digest = os.path.getmtime(path)
+         if digest == self._digest:
+             return True

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070702/b43e6254/attachment.html


More information about the macports-changes mailing list