From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/5777 Path: news.gmane.org!not-for-mail From: Isaac Dunham Newsgroups: gmane.linux.lib.musl.general,gmane.linux.distributions.alpine.devel Subject: Anyone looking at gnash? Date: Thu, 7 Aug 2014 22:56:38 -0700 Message-ID: <20140808055636.GA3054@newbook> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="tKW2IUtsqtDRztdT" X-Trace: ger.gmane.org 1407477423 26249 80.91.229.3 (8 Aug 2014 05:57:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 8 Aug 2014 05:57:03 +0000 (UTC) To: alpine-devel@lists.alpinelinux.org, musl@lists.openwall.com Original-X-From: musl-return-5782-gllmg-musl=m.gmane.org@lists.openwall.com Fri Aug 08 07:56:57 2014 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1XFdAe-00089Z-3i for gllmg-musl@plane.gmane.org; Fri, 08 Aug 2014 07:56:56 +0200 Original-Received: (qmail 11837 invoked by uid 550); 8 Aug 2014 05:56:55 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 11829 invoked from network); 8 Aug 2014 05:56:54 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:mime-version:content-type :content-disposition:user-agent; bh=EYBUF5mUAUHqdTaT02GxxZmSreZGA83Vr6jd3cALTno=; b=ETh8+HvliSvLny1fVtyKsCf5+/LRglvrSV8sn86d7TTZdu+SFMPaIhrweJdZM+n+R9 7MGZrM1iENBiecYEQxPeXvpUgTKEe42pLDuTPFiy9oxtkKgoiK41TjC4uYf19HA5CEsG oYUmMa7Xt3lCLwreeH3KhU+UwyeIgsDBsW6C8OuusDE12C9Knb/Ni+XPijoel2y9ZtPV EYed1E3dMoVsV57FawRv/ttG4rbI0MYjV6NaHxH/jXHSuOtKb4WQ6dCYTJoQEawcptpP 8V9I2wqQhaq8du4n+BkT8RFFLGlGYZ/9nE/4csgo/gbcuuG7JZR4wOCalGp+mcb1rDMc jUkw== X-Received: by 10.66.152.109 with SMTP id ux13mr22644669pab.122.1407477401832; Thu, 07 Aug 2014 22:56:41 -0700 (PDT) Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) Xref: news.gmane.org gmane.linux.lib.musl.general:5777 gmane.linux.distributions.alpine.devel:2129 Archived-At: --tKW2IUtsqtDRztdT Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hello, I've been poking at gnash on and off, in hopes of having some way to view Flash on Alpine. So far, the problem that I know of is it insists on building a malloc that supports mallinfo (which is used _very_ extensively in gnash). This is jemalloc, where I've found 3 issues already: First, it includes the header sys/sysctl.h by default; the #ifdefs around this are plainly wrong and easily fixed. Second, it defines issetugid() to 0; this of course breaks due to our support for the function, and is horrendously wrong (though gnash is unlikely to be configured in a way where it matters...). Third, it uses some unsupported pthread stuff: I see PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP and PTHREAD_MUTEX_ADAPTIVE_NP. At this point, it's beyond me. Has anyone else looked at this? I'm attaching my current WIP patches; less_sysctl.patch is probably correct, but issetugid.diff is only to get it closer to building on musl and is massively incomplete. I hereby release both to the public domain, in case any work based on them gets pushed upstream. Thanks, Isaac Dunham. --tKW2IUtsqtDRztdT Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="issetugid.diff" commit f7c796b75df5de91dcc5db10ccf8b2db65bbfbc6 Author: Isaac Dunham Date: Thu Aug 7 22:24:36 2014 -0700 issetugid is supported here diff --git a/libbase/jemalloc.c b/libbase/jemalloc.c index 9321f59..cdd540f 100644 --- a/libbase/jemalloc.c +++ b/libbase/jemalloc.c @@ -190,7 +190,6 @@ #if defined(MOZ_MEMORY_LINUX) && !defined(MOZ_MEMORY_ANDROID) #define _GNU_SOURCE /* For mremap(2). */ -#define issetugid() 0 #if 0 /* Enable in order to test decommit code on Linux. */ # define MALLOC_DECOMMIT #endif @@ -240,7 +239,6 @@ static unsigned long tlsIndex = 0xffffffff; #else #define _pthread_self() __threadid() #endif -#define issetugid() 0 #ifndef MOZ_MEMORY_WINCE /* use MSVC intrinsics */ --tKW2IUtsqtDRztdT Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="less-sysctl.patch" diff --git a/libbase/jemalloc.c b/libbase/jemalloc.c index a96333e..9321f59 100644 --- a/libbase/jemalloc.c +++ b/libbase/jemalloc.c @@ -326,7 +326,7 @@ __FBSDID("$FreeBSD: head/lib/libc/stdlib/malloc.c 180599 2008-07-18 19:35:44Z ja #endif #include #include -#if !defined(MOZ_MEMORY_SOLARIS) && !defined(MOZ_MEMORY_ANDROID) +#if defined(MOZ_MEMORY_BSD) #include #endif #include --tKW2IUtsqtDRztdT--