From owner-freebsd-ports@FreeBSD.ORG Mon Jan 9 18:36:13 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 78521106564A; Mon, 9 Jan 2012 18:36:13 +0000 (UTC) (envelope-from max@mxcrypt.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 215008FC17; Mon, 9 Jan 2012 18:36:12 +0000 (UTC) Received: by vbbfr13 with SMTP id fr13so4566415vbb.13 for ; Mon, 09 Jan 2012 10:36:12 -0800 (PST) Received: by 10.52.26.8 with SMTP id h8mr2629014vdg.122.1326134172275; Mon, 09 Jan 2012 10:36:12 -0800 (PST) MIME-Version: 1.0 Received: by 10.220.150.132 with HTTP; Mon, 9 Jan 2012 10:35:41 -0800 (PST) In-Reply-To: <0683987E-9D15-41BD-8CFB-D76F693A89E1@unbit.it> References: <0683987E-9D15-41BD-8CFB-D76F693A89E1@unbit.it> From: Maxim Khitrov Date: Mon, 9 Jan 2012 13:35:41 -0500 Message-ID: To: Roberto De Ioris Content-Type: multipart/mixed; boundary=20cf307c9afe43556204b61cac0d Cc: Daniel Gerzo , freebsd-ports@freebsd.org Subject: Re: [patch] Problem building www/uwsgi on FreeBSD 9 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Jan 2012 18:36:13 -0000 --20cf307c9afe43556204b61cac0d Content-Type: text/plain; charset=UTF-8 On Mon, Jan 9, 2012 at 10:13 AM, Roberto De Ioris wrote: > > Il giorno 08/gen/2012, alle ore 21:43, Maxim Khitrov ha scritto: > >> Hi all, >> >> I'm not sure whether this is a FreeBSD or uwsgi problem, but the >> current port (uwsgi 1.0) isn't compiling on FreeBSD 9.0-RELEASE amd64 >> for the following reasons: >> >> 1. In uwsgiconfig.py:534 uwsgi checks for the existence of >> sys/capability.h. This header isn't present on my 7.x or 8.x systems, >> but it is there in FreeBSD 9. >> >> 2. If the check succeeds, UWSGI_CAP is defined for compilation. >> >> 3. In uwsgi.h:1169 the presence of UWSGI_CAP causes "cap_value_t >> *cap;" to be defined. >> >> 4. The FreeBSD version of sys/capability.h does not define cap_value_t >> (which seems to be a simple int typedef on Linux). >> >> The net effect of this is a long series of errors when compiling utils.c: > > > > FreeBSD9 capabilities are completely different from linux one. > > I will try to make a port, otherwise i will enable to check only for linux. Yea, I spent a bit more time looking at it and the FreeBSD version of sys/capability.h seems to be related to libcapsicum rather than libcap. The POSIX version was removed ~9.5 years ago and resurrected as capacium 10 months ago for FreeBSD 9: http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/sys/capability.h Daniel, I suggest adding my patch to the port as a temporary solution. 9.0-RELEASE is likely to be announced any day now, so it would be good to have a working version of uwsgi in the ports tree. The patch can be removed once Roberto implements the final fix on his end. - Max --20cf307c9afe43556204b61cac0d Content-Type: application/octet-stream; name="uwsgi-capability.patch" Content-Disposition: attachment; filename="uwsgi-capability.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_gx7treq40 LS0tIHV3c2dpY29uZmlnLnB5Lm9yaWcJMjAxMi0wMS0wOCAxNToxNzozMi4wMDAwMDAwMDAgLTA1 MDAKKysrIHV3c2dpY29uZmlnLnB5CTIwMTItMDEtMDggMTU6MjA6MDYuMDAwMDAwMDAwIC0wNTAw CkBAIC01MzEsNyArNTMxLDcgQEAKICAgICAgICAgICAgICAgICAgICAgc2VsZi5nY2NfbGlzdC5h cHBlbmQoJ3JlZ2V4cCcpCiAgICAgICAgICAgICAgICAgICAgIHNlbGYuY2ZsYWdzLmFwcGVuZCgi LURVV1NHSV9QQ1JFIikKCi0gICAgICAgIGlmIHNlbGYuaGFzX2luY2x1ZGUoJ3N5cy9jYXBhYmls aXR5LmgnKToKKyAgICAgICAgaWYgdXdzZ2lfb3MgIT0gJ0ZyZWVCU0QnIGFuZCBzZWxmLmhhc19p bmNsdWRlKCdzeXMvY2FwYWJpbGl0eS5oJyk6CiAgICAgICAgICAgICBzZWxmLmNmbGFncy5hcHBl bmQoIi1EVVdTR0lfQ0FQIikKICAgICAgICAgICAgIHNlbGYubGlicy5hcHBlbmQoJy1sY2FwJykK Cg== --20cf307c9afe43556204b61cac0d--