From owner-freebsd-ports@FreeBSD.ORG Tue Oct 16 07:36:40 2012 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B363AF7E for ; Tue, 16 Oct 2012 07:36:40 +0000 (UTC) (envelope-from acardenas@bsd-peru.org) Received: from mail-lb0-f182.google.com (mail-lb0-f182.google.com [209.85.217.182]) by mx1.freebsd.org (Postfix) with ESMTP id 2F1248FC16 for ; Tue, 16 Oct 2012 07:36:39 +0000 (UTC) Received: by mail-lb0-f182.google.com with SMTP id b5so4962293lbd.13 for ; Tue, 16 Oct 2012 00:36:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:reply-to:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :x-gm-message-state; bh=06Gau4iBsb9rwBASX590nHChoSwfFnzHWbtJcIhKadA=; b=HJ27gt3Rjg9kJlf6JXjsfVsaK5iiUcP1CF6K2El9DW2MaKRV1a9bU1D64mHeiEncBP mFyY6E8m0/2ql8noiTgiXIkJ4LYNKUtnh4zoTH2nr/JNaP6SVLsa7osWxzpA8qwIZofi y3bjnckaHILVuwtjRt51RRyZcBvDGVivAT09zTifbdWXFqtMteCjGfZEyytVPw/6VfgO 4HHOBdgPWCPKS9aMfWYQuCQVbsGDEXkulkihKF4439PyiCg5xf3dK4TiDH3Ogk5klv1n nCCf5GBP5uTCnvViwTKtpbVQ56iMVlnZh9d7ZRFlTc0wWyBlrHp0rUHkCBXglgNoZ2eD 1Ebw== MIME-Version: 1.0 Received: by 10.112.99.74 with SMTP id eo10mr5169302lbb.64.1350372998315; Tue, 16 Oct 2012 00:36:38 -0700 (PDT) Sender: acardenas@bsd-peru.org Received: by 10.112.148.36 with HTTP; Tue, 16 Oct 2012 00:36:38 -0700 (PDT) In-Reply-To: <5073152F.5060301@yandex.ru> References: <5073152F.5060301@yandex.ru> Date: Tue, 16 Oct 2012 02:36:38 -0500 X-Google-Sender-Auth: tmCqQ4Kwd2gC0mNczFTHdZFP2R4 Message-ID: Subject: Re: Difference in databases/firebird25-client built as root and as unprivileged user From: =?ISO-8859-1?Q?Alonso_C=E1rdenas_M=E1rquez?= To: Ruslan Mahmatkhanov Content-Type: text/plain; charset=KOI8-R X-Gm-Message-State: ALoCoQkb8sCfzu+zUCBQlI6fC3CfWdtjpoo4z2ty5VNYira6EFLPZgr3TgkeiMjD39gJEVwoODoV Cc: FreeBSD Ports Mailing List X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: acm@FreeBSD.org List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Oct 2012 07:36:40 -0000 2012/10/8 Ruslan Mahmatkhanov : > Hello, Hi Ruslan > there is a native python binding for Firebird database: > http://people.freebsd.org/~rm/fdb-0.9.1.tgz > > It is based on ports/172455 by Jose Jachuf. It builds just fine in tinderbox > both with python2 and python3 but fails to build on a live system. The > difference is that firebird25-client's (actually -server, because this is a > slave port) Makefile has this lines in it: > > .ifndef PACKAGE_BUILDING > @if [ `${ID} -u` -eq 0 ]; then \ > ${ECHO_MSG} "==> Please do not build ${PORTNAME} as 'root' because > this may cause conflicts with SysV semaphores of running services."; exit 1; > fi > .endif > > So, while being built in tinderbox this happens under root user, but with > manual building from ports, it requires to build it as unprivileged user. In > later case I've got this when trying to build the aforementioned python > binding (py-fdb): > > """ > ===> Configuring for py27-fdb-0.9.1 > Traceback (most recent call last): > File "setup.py", line 7, in > from fdb import __version__ > File > "/usr/local/tinderbox/portstrees/FreeBSD/ports/databases/py-fdb/work/fdb-0.9.1/fdb/__init__.py", > line 23, in > from fdb.fbcore import * > File > "/usr/local/tinderbox/portstrees/FreeBSD/ports/databases/py-fdb/work/fdb-0.9.1/fdb/fbcore.py", > line 26, in > from . import ibase > File > "/usr/local/tinderbox/portstrees/FreeBSD/ports/databases/py-fdb/work/fdb-0.9.1/fdb/ibase.py", > line 41, in > fb_library = CDLL(fb_library_name) > File "/usr/local/lib/python2.7/ctypes/__init__.py", line 365, in __init__ > self._handle = _dlopen(self._name, mode) > OSError: /usr/local/lib/libfbclient.so.2: Undefined symbol > "_ZTISt9bad_alloc" > *** [do-configure] Error code 1 > """ > > If I rebuild firebird25-client with those three lines commented out (with > root privs), then this py-fdb port builds just fine. The question is - what > the difference in privileged/unprivileged build may be, and what's proper > way to fix this? Thanks. you could add a pre-everything line into py-fdb Makefile file with some message about firebird2*-client ports problem. It could be the following ###### databases/py-fdb depends of databases/firebird25-client If you have not running services using SysV semaphores, you could build databases/firebird25-client using the following: cd /usr/ports/databases/firebird25-client && make PACKAGE_BUILDING=yes install clean clean-depends Otherwise, please install databases/firebird25-client binary package ###### > -- > Regards, > Ruslan > > Tinderboxing kills... the drives. Sorry for delay, you know real life sometimes is hard :) Greetings ACM