From owner-freebsd-chromium@FreeBSD.ORG Mon Mar 10 09:20:21 2014 Return-Path: Delivered-To: chromium@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 107F127F for ; Mon, 10 Mar 2014 09:20:21 +0000 (UTC) Received: from mail-we0-x231.google.com (mail-we0-x231.google.com [IPv6:2a00:1450:400c:c03::231]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 9DA29B77 for ; Mon, 10 Mar 2014 09:20:20 +0000 (UTC) Received: by mail-we0-f177.google.com with SMTP id u57so7956663wes.8 for ; Mon, 10 Mar 2014 02:20:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=yC1JBVxKKJuPxtFVz6hoVVWfhRDAlSxW9VPmc/ZvRBY=; b=R0F0bDNHS/tdrcCPnAZSP5+AFXHgixCOQUMGAjMlrCV5rISCr9n5wBtzhCdRshgHUV yR7/JdbV39ljIXcJyjvysi8ramZ2/weswKtAsyFfEBOrL3SlOXN/ODhEb0+Ovtwahdy2 IzgghNz7YFivHUkJR9TY/Ou9/ytVB81uSEAlFMr3x7C3D6SMvFeBRjFB+c9X6AiK0Ku0 tF6rNtTrs3Rc/yQE73+afjnc9mEEWjye7EFqqQ6gG7THUn8QgN4dXarwkZxgfUPUsVYr e+9k5ctkw+MvFnz1tcfgep3j9LnWRdZKEcBmF7uRfXkBxpMSCdpLsdVrtMu1vCIdCZFG hMKg== X-Received: by 10.194.241.132 with SMTP id wi4mr30513593wjc.14.1394443218987; Mon, 10 Mar 2014 02:20:18 -0700 (PDT) Received: from ?IPv6:2001:980:d7ed:1:85db:cc90:55c9:64ad? ([2001:980:d7ed:1:85db:cc90:55c9:64ad]) by mx.google.com with ESMTPSA id d6sm10677454wiz.4.2014.03.10.02.20.17 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 10 Mar 2014 02:20:18 -0700 (PDT) Sender: =?UTF-8?Q?Ren=C3=A9_Ladan?= Message-ID: <531D83D1.2050005@freebsd.org> Date: Mon, 10 Mar 2014 10:20:17 +0100 From: =?ISO-8859-1?Q?Ren=E9_Ladan?= User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: chromium-packagers@chromium.org, chromium@freebsd.org Subject: more thoughts on porting Chromium to FreeBSD X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-chromium@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: FreeBSD-specific Chromium issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Mar 2014 09:20:21 -0000 Hi, [this is an updated rewrite of an earlier private mail] some more thoughts and ideas I gathered while porting Chromium to FreeBSD: - FreeBSD seems to piggy-back on Linux too much because ninja will build *_linux files on FreeBSD which might or might not be useful. I guess that ideally there should be *_freebsd versions of these files and the build system should know about them. If I understand correctly, this should prevent the need for patches like: + ['OS=="freebsd"', { + 'sources/': [ + ['exclude', '^browser/storage_monitor/udev_util_linux.cc'], .... where linux files are explicitly excluded afterwards. Which leads to the question what file(s) decide that FreeBSD should build *_linux files. - GN probably needs to be ported to FreeBSD to be able to continue bootstrapping the build. I sent tickets for this after making the bootstrap binary run on both FreeBSD 8.4-i386 (oldest supported version of we omit FreeBSD 8.3 which will expire after April) and FreeBSD 10.0-amd64 (latest release). The main ticket is 180743014 which depends on tickets 178193018 and 185713005. - Possibly related to GN is this error that I get when running "ninja -C out/Release" in my tip-of-tree git checkout: ninja: Entering directory `out/Release' ninja: error: '../../chrome/renderer/resources/extensions/bluetooth_custom_bindings.js', needed by 'gen/chrome/grit/renderer_resources.h', missing and no known rule to make it - some knobs seem to be half-handled (e.g. use_system_libusb). Concerning use_system_ knobs, would it be best to use as much system libraries as possible? This would reduce the build time and the number of patches. But on the other hand, testing more bundled libraries would increase robustness. - I made a port of Chromium 34.0.1847.45 to FreeBSD, see https://github.com/gliaskos/freebsd-chromium (beta branch). This is currently only build-tested and has some ugly hacks. I remember someone else made a similar port, maybe we can combine efforts? - At some point it would be really nice to have official FreeBSD build bots, but this is probably only useful after a clean git checkout builds on FreeBSD. Regards, René