diff options
author | cvs2svn <cvs2svn@FreeBSD.org> | 2011-02-11 03:06:02 +0000 |
---|---|---|
committer | cvs2svn <cvs2svn@FreeBSD.org> | 2011-02-11 03:06:02 +0000 |
commit | f259566108892351d3632c07a73d13c19134360f (patch) | |
tree | d8c04c2dd9d515238e6ff20e97948fc22f7f82be /www/node04/files | |
parent | 9a9990fce5c321d0ddf8afab886e1a0b61cbee55 (diff) |
Notes
Diffstat (limited to 'www/node04/files')
-rw-r--r-- | www/node04/files/patch-libev-kqueue | 55 | ||||
-rw-r--r-- | www/node04/files/patch-man-path | 11 | ||||
-rw-r--r-- | www/node04/files/patch-wafadmin-Node.py | 15 |
3 files changed, 0 insertions, 81 deletions
diff --git a/www/node04/files/patch-libev-kqueue b/www/node04/files/patch-libev-kqueue deleted file mode 100644 index cdc01a945643..000000000000 --- a/www/node04/files/patch-libev-kqueue +++ /dev/null @@ -1,55 +0,0 @@ ---- deps/libev/wscript.orig 2010-04-10 08:05:03.000000000 +0800 -+++ deps/libev/wscript 2010-04-13 09:28:42.000000000 +0800 -@@ -2,6 +2,7 @@ import Options - import platform - - PLATFORM_IS_DARWIN = platform.platform().find('Darwin') == 0 -+PLATFORM_IS_FREEBSD = platform.platform().find('FreeBSD') == 0 - - def set_options(opt): - pass -@@ -27,12 +28,30 @@ def configure(conf): - if conf.check_cc(header_name="poll.h"): - conf.check_cc(header_name="poll.h", function_name="poll") - -- conf.check_cc(header_name="sys/event.h") - conf.check_cc(header_name="sys/queue.h") -- if PLATFORM_IS_DARWIN: -- conf.check_cc(header_name="sys/event.h", function_name="kqueue") -- else: -- conf.check_cc(header_name="sys/queue.h", function_name="kqueue") -+ -+ code = """ -+ #include <sys/types.h> -+ #include <sys/event.h> -+ -+ int main() { -+ return 0; -+ } -+ """ -+ conf.check_cc(fragment=code, define_name="HAVE_SYS_EVENT_H", execute=False, -+ msg="Checking for header sys/event.h") -+ -+ code = """ -+ #include <sys/types.h> -+ #include <sys/event.h> -+ -+ int main() { -+ int fd = kqueue(); -+ return 0; -+ } -+ """ -+ conf.check_cc(fragment=code, define_name="HAVE_KQUEUE", execute=False, -+ msg="Checking for function kqueue") - - if conf.check_cc(header_name="sys/select.h"): - conf.check_cc(header_name="sys/select.h", function_name="select") -@@ -58,7 +77,7 @@ def configure(conf): - have_librt = conf.check(lib='rt', uselib_store='RT') - if have_librt: - conf.check_cc(lib="rt", header_name="time.h", function_name="clock_gettime") -- if PLATFORM_IS_DARWIN: -+ if PLATFORM_IS_DARWIN or PLATFORM_IS_FREEBSD: - conf.check_cc(header_name="time.h", function_name="nanosleep") - elif have_librt: - conf.check_cc(lib="rt", header_name="time.h", function_name="nanosleep") diff --git a/www/node04/files/patch-man-path b/www/node04/files/patch-man-path deleted file mode 100644 index 1695afc54970..000000000000 --- a/www/node04/files/patch-man-path +++ /dev/null @@ -1,11 +0,0 @@ ---- wscript.orig 2010-06-27 19:15:32.000000000 +0800 -+++ wscript 2010-06-27 19:16:02.000000000 +0800 -@@ -547,8 +547,6 @@ - - # Only install the man page if it exists. - # Do 'make doc install' to build and install it. -- if os.path.exists('doc/node.1'): -- bld.install_files('${PREFIX}/share/man/man1/', 'doc/node.1') - - bld.install_files('${PREFIX}/bin/', 'bin/*', chmod=0755) - bld.install_files('${PREFIX}/lib/node/wafadmin', 'tools/wafadmin/*.py') diff --git a/www/node04/files/patch-wafadmin-Node.py b/www/node04/files/patch-wafadmin-Node.py deleted file mode 100644 index b593bc720531..000000000000 --- a/www/node04/files/patch-wafadmin-Node.py +++ /dev/null @@ -1,15 +0,0 @@ ---- tools/wafadmin/Node.py.orig 2010-10-25 05:45:39.000000000 +0800 -+++ tools/wafadmin/Node.py 2010-10-27 18:30:12.000000000 +0800 -@@ -349,6 +349,12 @@ - if self == from_node: return '.' - if from_node.parent == self: return '..' - -+ from_node_path = from_node.abspath() -+ from_node_realpath = os.path.realpath(from_node_path) -+ if from_node_path != from_node_realpath: -+ from_node = self.__class__.bld.root.find_dir(from_node_realpath) -+ return self.relpath_gen(from_node) -+ - # up_path is '../../../' and down_path is 'dir/subdir/subdir/file' - ancestor = self.find_ancestor(from_node) - lst = [] |