From owner-freebsd-ports@FreeBSD.ORG Wed Jan 9 19:01:08 2008 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 86B5316A41B; Wed, 9 Jan 2008 19:01:08 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from services.ipt.ru (services.ipt.ru [194.62.233.110]) by mx1.freebsd.org (Postfix) with ESMTP id 1DFB713C458; Wed, 9 Jan 2008 19:01:08 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from bb.ipt.ru ([194.62.233.89]) by services.ipt.ru with esmtp (Exim 4.54 (FreeBSD)) id 1JCgAk-000D54-Gd; Wed, 09 Jan 2008 22:01:06 +0300 To: Kris Kennaway References: <61565506@bb.ipt.ru> <4783E1C6.50001@FreeBSD.org> <95483459@bb.ipt.ru> <1199830245.74596.155.camel@ikaros.oook.cz> <63313519@bb.ipt.ru> <1199834453.74596.157.camel@ikaros.oook.cz> <4784072D.9040003@FreeBSD.org> <18671469@bb.ipt.ru> <478517E4.3040606@FreeBSD.org> From: Boris Samorodov Date: Wed, 09 Jan 2008 21:59:32 +0300 In-Reply-To: <478517E4.3040606@FreeBSD.org> (Kris Kennaway's message of "Wed\, 09 Jan 2008 19\:52\:20 +0100") Message-ID: <20425771@bb.ipt.ru> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: pav@FreeBSD.org, freebsd-ports@FreeBSD.org Subject: Re: pointyhat is building for 5.5 but claiming 8.0 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: Wed, 09 Jan 2008 19:01:08 -0000 On Wed, 09 Jan 2008 19:52:20 +0100 Kris Kennaway wrote: > Boris Samorodov wrote: > > On Wed, 09 Jan 2008 00:28:45 +0100 Kris Kennaway wrote: > > > >> Pav Lucistnik wrote: > >>> Boris Samorodov p=C3=AD=C5=A1e v st 09. 01. 2008 v 02:16 +0300: > >>>> On Tue, 08 Jan 2008 23:10:45 +0100 Pav Lucistnik wrote: > >>>> > >>>>>>> No, the port is using sysctl(2) to query the OS version which can= not > >>>>>>> be wrapped. > >>>>>> Hm, ports-mgmt/tinderbox masks it somehow... And doesn't get > >>>>>> an error for this port. > >>>>> The FreeBSD version inside the tinderbox is same as the host? > >>>> OK, I found the difference. The port builds for all FreeBSD version > >>>> except 5.x. The same is for ports-mgmt/tinderbox. Thus I think that > >>>> there is something that was not MFS'd to 5-STABLE that causes the > >>>> difference. > >>>> > >>>> For now I'm going to mark the port as IGNORE for OSVERSION < 600000. > >>>> A question to portmgr@: Do you have any objections? > >>> It would be nice to know what exactly is going on in there. > > > >> Yeah, I can't imagine what it would be, unless it is using uname(1) or > >> (3) and 5.x doesn't have the environment variable overrides...but in > >> that case hundreds of other things would break. > > > > I stepped a little bit further. Seems that the port (?) does not > > respect UNAME_r at 5.x (I have only 5.4-STABLE to test at): > > ----- > > # echo $UNAME_r > > UNAME_r: Undefined variable. > > # uname -srm > > FreeBSD 5.4-STABLE i386 > > # pwd > > /usr/ports/devel/py-lxml > > # make UNAME_r=3D9.0-FUTURE | grep freebsd > > creating build/lib.freebsd-5.4-STABLE-i386-2.4 > > creating build/lib.freebsd-5.4-STABLE-i386-2.4/lxml > > copying src/lxml/_elementpath.py -> build/lib.freebsd-5.4-STABLE-i386-2= .4/lxml > > copying src/lxml/ElementInclude.py -> build/lib.freebsd-5.4-STABLE-i386= -2.4/lxml > > copying src/lxml/sax.py -> build/lib.freebsd-5.4-STABLE-i386-2.4/lxml > > copying src/lxml/__init__.py -> build/lib.freebsd-5.4-STABLE-i386-2.4/l= xml > > creating build/temp.freebsd-5.4-STABLE-i386-2.4 > > creating build/temp.freebsd-5.4-STABLE-i386-2.4/src > > creating build/temp.freebsd-5.4-STABLE-i386-2.4/src/lxml > > cc -fno-strict-aliasing -DNDEBUG -O -pipe -march=3Dpentiumpro -DTHREAD_= STACK_SIZE=3D0x20000 -O -pipe -march=3Dpentiumpro -fPIC -I/usr/local/includ= e -I/usr/local/include/libxml2 -I/usr/local/include/python2.4 -c src/lxml/e= tree.c -o build/temp.freebsd-5.4-STABLE-i386-2.4/src/lxml/etree.o -w > > ^C > > interrupted > > # ----- > > > > Other FreeBSD versions (didn't check 6.x but assume the same): > > ----- > > # echo $UNAME_r > > UNAME_r: Undefined variable. > > # uname -srm > > FreeBSD 8.0-CURRENT i386 > > # pwd > > /usr/ports/devel/py-lxml > > # make UNAME_r=3D9.0-FUTURE | grep freebsd > > creating build/lib.freebsd-9.0-FUTURE-i386-2.5 > > creating build/lib.freebsd-9.0-FUTURE-i386-2.5/lxml > > copying src/lxml/sax.py -> build/lib.freebsd-9.0-FUTURE-i386-2.5/lxml > > copying src/lxml/builder.py -> build/lib.freebsd-9.0-FUTURE-i386-2.5/lx= ml > > copying src/lxml/htmlbuilder.py -> build/lib.freebsd-9.0-FUTURE-i386-2.= 5/lxml > > copying src/lxml/_elementpath.py -> build/lib.freebsd-9.0-FUTURE-i386-2= .5/lxml > > copying src/lxml/__init__.py -> build/lib.freebsd-9.0-FUTURE-i386-2.5/l= xml > > copying src/lxml/ElementInclude.py -> build/lib.freebsd-9.0-FUTURE-i386= -2.5/lxml > > creating build/temp.freebsd-9.0-FUTURE-i386-2.5 > > creating build/temp.freebsd-9.0-FUTURE-i386-2.5/src > > creating build/temp.freebsd-9.0-FUTURE-i386-2.5/src/lxml > > cc -DNDEBUG -O2 -fno-strict-aliasing -pipe -D__wchar_t=3Dwchar_t -DTHRE= AD_STACK_SIZE=3D0x20000 -O2 -fno-strict-aliasing -pipe -fPIC -I/usr/local/i= nclude -I/usr/local/include/libxml2 -I/usr/local/include/python2.5 -c src/l= xml/etree.c -o build/temp.freebsd-9.0-FUTURE-i386-2.5/src/lxml/etree.o -w > > ^Cinterrupted > > > > # ----- > > > > The same results are for adding "MAKE_ENV+=3D UNAME_r=3D9.0-FUTURE" to > > the port's Makefile. > Yes, 5.4 is likely too old. How about 5.5? I have 5.5 only at ports-mgmt/tinderbox. It's behaviour is the same. Here the environment tindebox is producing for the port (host OS is 7 the port is building for 5.5 but the port uses the host OS version): ----- UNAME_r --> 5.5-STABLE HAVE_MOTIF --> 1 OSVERSION --> 505100 OPTIONS_ENABLED --> 1 __MAKE_CONF --> /usr/local/tinderbox/jails/5/make.conf MASTER_SITE_BACKUP --> ftp://srv.sem.ipt.ru/pub/FreeBSD/ports/distfiles/${D= IST_SUBDIR}/ ftp://ftp.ipt.ru/pub/FreeBSD/ports/distfiles/${DIST _SUBDIR}/ ftp://and.ipt.ru/pub/FreeBSD/ports/distfiles/${DIST_SUBDIR}/ ftp:= //ftp.ipt.ru/pub/download/ BLOCKSIZE --> K USA_RESIDENT --> 1 MASTER_SITE_OVERRIDE --> ${MASTER_SITE_BACKUP} X11BASE --> /usr/local USER --> root PACKAGES --> /usr/local/tinderbox/packages/5-bsam-exp SRCPREFIX --> /usr/local/tinderbox/jails/5/src PARALLEL_PACKAGE_BUILD --> 1 OPTIONS_DIR --> /options PORTOBJFORMAT --> elf X_WINDOW_SYSTEM --> xorg PATH --> /sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/loca= l/bin:/root/bin DISTFILE_CACHE --> /usr/ports/distfiles FTP_PASSIVE_MODE --> yes PACKAGE_BUILDING --> 1 UNAME_s --> FreeBSD PAGER --> more UNAME_v --> "FreeBSD 5.5-STABLE #0: Wed Jan 9 13:30:50 MSK 2008 marcus@mar= cuscom.com:/usr/src/sys/magic/kernel/path" PHP_VER --> 4 __DSVERSION__ --> 2.4.0 PKGZIPCMD --> bzip2 LOCALBASE --> /usr/local BATCH --> 1 UNAME_n --> marcuscom.com CCACHE_JAIL --> 0 CCACHE_LOGFILE -->=20 EDITOR --> vi CCACHE_NOLINK --> 1 CCACHE_DIR -->=20 BRANCH --> STABLE CCACHE_MAX_SIZE --> 1G PORTSDIR --> /usr/local/tinderbox/portstrees/bsam-exp/ports TINDERD_SLEEPTIME --> 120 PKGSUFFIX --> .tbz CCACHE_ENABLED --> 0 OSREL --> 5.5 ARCH --> i386 SRCBASE --> /usr/local/tinderbox/jails/5/src JAIL_OBJDIR -->=20 DISTDIR --> /usr/local/tinderbox/distfiles/5-bsam-exp INDEXFILE --> INDEX-5 ----- WBR --=20 Boris Samorodov (bsam) Research Engineer, http://www.ipt.ru Telephone & Internet SP FreeBSD committer, http://www.FreeBSD.org The Power To Serve