Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Mar 2015 14:53:33 +0000 (UTC)
From:      John Marino <marino@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r382424 - head/multimedia/aegisub/files
Message-ID:  <201503271453.t2RErXiB000207@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: marino
Date: Fri Mar 27 14:53:32 2015
New Revision: 382424
URL: https://svnweb.freebsd.org/changeset/ports/382424
QAT: https://qat.redports.org/buildarchive/r382424/

Log:
  multimedia/aegisub: Add DragonFly support (fixes luajit)
  
  Bring in fix from dports (port is not maintained)

Added:
  head/multimedia/aegisub/files/patch-fix-dfly-luajit   (contents, props changed)

Added: head/multimedia/aegisub/files/patch-fix-dfly-luajit
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/multimedia/aegisub/files/patch-fix-dfly-luajit	Fri Mar 27 14:53:32 2015	(r382424)
@@ -0,0 +1,62 @@
+--- vendor/luajit/src/jit/bcsave.lua.orig	2014-12-08 00:07:09 UTC
++++ vendor/luajit/src/jit/bcsave.lua
+@@ -69,7 +69,7 @@ local map_arch = {
+ 
+ local map_os = {
+   linux = true, windows = true, osx = true, freebsd = true, netbsd = true,
+-  openbsd = true, solaris = true,
++  openbsd = true, dragonfly = true, solaris = true,
+ }
+ 
+ local function checkarg(str, map, err)
+--- vendor/luajit/src/lj_alloc.c.orig	2014-12-08 00:07:09 UTC
++++ vendor/luajit/src/lj_alloc.c
+@@ -188,14 +188,14 @@ static LJ_AINLINE void *CALL_MMAP(size_t
+   return ptr;
+ }
+ 
+-#elif LJ_TARGET_OSX || LJ_TARGET_PS4 || defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__sun__)
++#elif LJ_TARGET_OSX || LJ_TARGET_PS4 || defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonFly__) || defined(__sun__)
+ 
+ /* OSX and FreeBSD mmap() use a naive first-fit linear search.
+ ** That's perfect for us. Except that -pagezero_size must be set for OSX,
+ ** otherwise the lower 4GB are blocked. And the 32GB RLIMIT_DATA needs
+ ** to be reduced to 250MB on FreeBSD.
+ */
+-#if LJ_TARGET_OSX
++#if LJ_TARGET_OSX || defined(__DragonFly__)
+ #define MMAP_REGION_START	((uintptr_t)0x10000)
+ #elif LJ_TARGET_PS4
+ #define MMAP_REGION_START	((uintptr_t)0x4000)
+@@ -232,7 +232,7 @@ static LJ_AINLINE void *CALL_MMAP(size_t
+       return p;
+     }
+     if (p != CMFAIL) munmap(p, size);
+-#ifdef __sun__
++#if defined(__sun__) || defined(__DragonFly__)
+     alloc_hint += 0x1000000;  /* Need near-exhaustive linear scan. */
+     if (alloc_hint + size < MMAP_REGION_END) continue;
+ #endif
+--- vendor/luajit/src/lj_arch.h.orig	2015-03-27 14:17:40 UTC
++++ vendor/luajit/src/lj_arch.h
+@@ -67,7 +67,8 @@
+ #elif defined(__MACH__) && defined(__APPLE__)
+ #define LUAJIT_OS	LUAJIT_OS_OSX
+ #elif (defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || \
+-       defined(__NetBSD__) || defined(__OpenBSD__)) && !defined(__ORBIS__)
++       defined(__NetBSD__) || defined(__OpenBSD__) || \
++       defined(__DragonFly__)) && !defined(__ORBIS__)
+ #define LUAJIT_OS	LUAJIT_OS_BSD
+ #elif (defined(__sun__) && defined(__svr4__)) || defined(__CYGWIN__)
+ #define LUAJIT_OS	LUAJIT_OS_POSIX
+--- vendor/luajit/src/lj_gdbjit.c.orig	2014-12-08 00:07:09 UTC
++++ vendor/luajit/src/lj_gdbjit.c
+@@ -356,6 +356,8 @@ static const ELFheader elfhdr_template =
+   .eosabi = 2,
+ #elif defined(__OpenBSD__)
+   .eosabi = 12,
++#elif defined(__DragonFly__)
++  .eosabi = 0,
+ #elif (defined(__sun__) && defined(__svr4__))
+   .eosabi = 6,
+ #else



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201503271453.t2RErXiB000207>