diff options
author | taca <taca@pkgsrc.org> | 2012-04-06 10:42:37 +0000 |
---|---|---|
committer | taca <taca@pkgsrc.org> | 2012-04-06 10:42:37 +0000 |
commit | 513a593b97e2c782270252ee12eb470466dc02e9 (patch) | |
tree | 9b8a7986c457b0df9b2fa0b32797eaccfc86b3b2 /devel | |
parent | 28096e98610d0291e80276cdfb9160a7b4eaf4a9 (diff) | |
download | pkgsrc-513a593b97e2c782270252ee12eb470466dc02e9.tar.gz |
Fix build problem on the platform without RLIMIT_AS; NetBSD 4.
No PKGREVISION bump since it is simply fix of build problem.
Diffstat (limited to 'devel')
-rw-r--r-- | devel/libgsf/distinfo | 3 | ||||
-rw-r--r-- | devel/libgsf/patches/patch-thumbnailer_main.c | 18 |
2 files changed, 20 insertions, 1 deletions
diff --git a/devel/libgsf/distinfo b/devel/libgsf/distinfo index f8d69b6edd5..cc86acc8de7 100644 --- a/devel/libgsf/distinfo +++ b/devel/libgsf/distinfo @@ -1,5 +1,6 @@ -$NetBSD: distinfo,v 1.40 2012/01/20 12:05:09 wiz Exp $ +$NetBSD: distinfo,v 1.41 2012/04/06 10:42:37 taca Exp $ SHA1 (libgsf-1.14.22.tar.xz) = ca1c5aa92a840e322d7cafd9f2dede3d38a69660 RMD160 (libgsf-1.14.22.tar.xz) = a47fa284ace94ead51f2130cba31d8962d554f3b Size (libgsf-1.14.22.tar.xz) = 506188 bytes +SHA1 (patch-thumbnailer_main.c) = bb7d25d26f19d676305a02a64474d11881bfc7fc diff --git a/devel/libgsf/patches/patch-thumbnailer_main.c b/devel/libgsf/patches/patch-thumbnailer_main.c new file mode 100644 index 00000000000..b5e597971fa --- /dev/null +++ b/devel/libgsf/patches/patch-thumbnailer_main.c @@ -0,0 +1,18 @@ +$NetBSD: patch-thumbnailer_main.c,v 1.1 2012/04/06 10:42:38 taca Exp $ + +* Fix build problem on the platform without RLIMIT_AS; NetBSD 4. + +--- thumbnailer/main.c.orig 2011-12-07 23:05:18.000000000 +0000 ++++ thumbnailer/main.c +@@ -258,9 +258,11 @@ set_resource_limits (void) + * time on certain WMFs. So, we'll put a cap on how much resources it can use. + */ + ++#ifdef RLIMIT_AS + limit.rlim_cur = MAX_HELPER_MEMORY; + limit.rlim_max = MAX_HELPER_MEMORY; + setrlimit (RLIMIT_AS, &limit); ++#endif + + limit.rlim_cur = MAX_HELPER_SECONDS; + limit.rlim_max = MAX_HELPER_SECONDS; |