From owner-freebsd-ports Wed Apr 18 4:55: 8 2001 Delivered-To: freebsd-ports@freebsd.org Received: from ipcard.iptcom.net (ipcard.iptcom.net [212.9.224.5]) by hub.freebsd.org (Postfix) with ESMTP id B26D837B423; Wed, 18 Apr 2001 04:55:01 -0700 (PDT) (envelope-from sobomax@FreeBSD.org) Received: from vic.sabbo.net (dialup15-59.iptelecom.net.ua [212.9.229.187]) by ipcard.iptcom.net (8.9.3/8.9.3) with ESMTP id OAA46571; Wed, 18 Apr 2001 14:54:57 +0300 (EEST) (envelope-from sobomax@FreeBSD.org) Received: from FreeBSD.org (big_brother.vega.com [192.168.1.1]) by vic.sabbo.net (8.11.3/8.11.2) with ESMTP id f3IBsP775659; Wed, 18 Apr 2001 14:54:25 +0300 (EEST) (envelope-from sobomax@FreeBSD.org) Message-ID: <3ADD806E.9432C7EC@FreeBSD.org> Date: Wed, 18 Apr 2001 14:54:22 +0300 From: Maxim Sobolev Organization: Vega International Capital X-Mailer: Mozilla 4.77 [en] (WinNT; U) X-Accept-Language: uk,ru,en MIME-Version: 1.0 To: Ruslan Ermilov Cc: ports@FreeBSD.org Subject: Re: Need help unbreaking one port References: <20010418134424.A57916@sunbay.com> <3ADD72F5.494CA95B@FreeBSD.org> <20010418141356.A64850@sunbay.com> Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Ruslan Ermilov wrote: > On Wed, Apr 18, 2001 at 01:56:53PM +0300, Maxim Sobolev wrote: > > Ruslan Ermilov wrote: > > > > > Hi! > > > > > > I have imported Groff 1.17 yesterday, and I need to reflect directory > > > layout changes in the textproc/gxditview port. > > > > > > The specifics of this port is that its distribution files live in > > > /usr/src/contrib/groff, and the location is different between -STABLE > > > and -CURRENT, being .../xditview for -STABLE and .../src/xditview for > > > -CURRENT. > > > > > > The PORTVERSION should ideally also be differently for -STABLE and > > > -CURRENT, 1.16.1 vs. 1.17. > > > > > > I searched through the Porter's Handbook, but found no info that would > > > handle my case. > > > > > > Should I bump the __FreeBSD_version and use the updated OSVERSION? > > > Also, what FreeBSD branches the Ports are supposed to be built for? > > > I mean, what should I do with port when I import Groff 1.17 into > > > 4.3-STABLE? Should I provide OSVERSION tests so that the port > > > builds on older versions, or? > > > > Keep it simple: > > > > .if exists (/usr/src/contrib/groff/src/xditview/xditview.c) > > # -CURRENT > > .else > > # -STABLE > > .endif > > > I thought of that in the first place, but then, how should I > set the PORTVERSION? .if exists (/usr/src/contrib/groff/src/xditview/xditview.c) PORTVERSION= 1.17 [blabla] .else PORTVERSION= 1.16.1 [blabla] .endif > And I really want to know the answer on my second question. > What FreeBSD versions the current port is supposed to be built > on? What is the requirement? It should be buildable on all systems in the 4.x range and reasonably recent -current. Support for 3.x and 2.x.x is optional and up to you. It is why OSVERSION test is not very good method for your sutuation, as you would have to cover 3 cases (-current before update, -current after update and -stable), while after groff MFC the number of possible combinations increases to 4 (-stable after update adds up). -Maxim To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message