From owner-freebsd-ports@FreeBSD.ORG Fri Dec 8 20:07:42 2006 Return-Path: X-Original-To: ports@freebsd.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 39D9B16A407 for ; Fri, 8 Dec 2006 20:07:42 +0000 (UTC) (envelope-from roam@ringlet.net) Received: from straylight.ringlet.net (nat114.cnsys.bg [85.95.80.114]) by mx1.FreeBSD.org (Postfix) with SMTP id 7A38843CA2 for ; Fri, 8 Dec 2006 20:06:41 +0000 (GMT) (envelope-from roam@ringlet.net) Received: (qmail 16696 invoked by uid 1000); 8 Dec 2006 20:07:55 -0000 Date: Fri, 8 Dec 2006 22:07:55 +0200 From: Peter Pentchev To: LI Xin Message-ID: <20061208200755.GA16586@straylight.m.ringlet.net> Mail-Followup-To: LI Xin , "Marc G. Fournier" , freebsd@orchid.homeunix.org, ports@freebsd.org, dd@freebsd.org References: <4576A4F6.7070407@orchid.homeunix.org> <8194EEE8E22BA574C20015C8@ganymede.hub.org> <4576D15A.2070101@delphij.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="3V7upXqbjpZ4EhLz" Content-Disposition: inline In-Reply-To: <4576D15A.2070101@delphij.net> User-Agent: Mutt/1.5.13 (2006-08-11) Cc: "Marc G. Fournier" , freebsd@orchid.homeunix.org, ports@freebsd.org, dd@freebsd.org Subject: Re: bsdstats 5.3 on 6-STABLE and netcat weirdness 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: Fri, 08 Dec 2006 20:07:42 -0000 --3V7upXqbjpZ4EhLz Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Dec 06, 2006 at 10:19:06PM +0800, LI Xin wrote: > Marc G. Fournier wrote: > >=20 > > 'k, I don't know how to fix this one ... I thought about doing: > >=20 > > .if ${OSVERSION} <=3D 492101 > > RUN_DEPENDS=3D nc:${PORTSDIR}/net/netcat > > .endif > >=20 > > not sure which version brought in nc, but 492101 is the last of the 4.x= series=20 > > ... but it portlint fails miserably if I don't put bsd.port.pre.mk befo= re it,=20 > > but also fails if I do: > >=20 > > WARN: Makefile: no MASTER_SITES found. is it ok? > > WARN: Makefile: "RUN_DEPENDS" has to appear earlier. > > 0 fatal errors and 2 warnings found. > >=20 > > Is there a better way of doing this ... ? >=20 > I think you want something like: >=20 > .if ${OSVERSION} < 503102 || (${OSVERSION} >=3D 600000 && ${OSVERSION} < > 600010) >=20 > instead of just considering 492101. That's a good suggestion. Mark, as to the portlint problem - well, portlint cannot really be expected to handle each and every corner case in a port Makefile :) It is doing a wonderful job as it is, but every now and then you have to make a choice between a working port and a clean port ;) To make the OSVERSION check work, you do indeed need a bsd.port.pre.mk inclusion before it. Then... just ignore the portlint warnings. And... thanks for a great utility! :) G'luck, Peter --=20 Peter Pentchev roam@ringlet.net roam@cnsys.bg roam@FreeBSD.org PGP key: http://people.FreeBSD.org/~roam/roam.key.asc Key fingerprint FDBA FD79 C26F 3C51 C95E DF9E ED18 B68D 1619 4553 I am the meaning of this sentence. --3V7upXqbjpZ4EhLz Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQFFecYb7Ri2jRYZRVMRAoF8AJ9tUgBm/Jy4LB+DmTBugCf1YsrImwCbBmlZ e1ZKb42lIjNAuda1v9Kn2WM= =bk9E -----END PGP SIGNATURE----- --3V7upXqbjpZ4EhLz--