From owner-freebsd-ports@FreeBSD.ORG Sun Feb 14 21:48:04 2010 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EFB6A1065670 for ; Sun, 14 Feb 2010 21:48:04 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: from mail-pw0-f54.google.com (mail-pw0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id BE1BD8FC17 for ; Sun, 14 Feb 2010 21:48:04 +0000 (UTC) Received: by pwj7 with SMTP id 7so404849pwj.13 for ; Sun, 14 Feb 2010 13:48:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=JH6i/3n6uZ1pFryBsNKPv3XBqTlE+SdBJKSJeWBLhzA=; b=iSv9XtFd3S9HWCRw9Hpeq0z5N1KU6eYjJMovivm0nfEF1DLTn1kL92QLDpAEuMdyd+ DHgpnd1hjjKMWtWQ2JtV5W6EG5n+VaoAR2CfL3N+Q87sajpWu0I5effj8LGp9X3V96mb Qvm1PRMn/9lvcJeV8s7Vv3Rr3ljU9G8PcKpfk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=Oul3QD5N5kgDyoFYsI0FfZTo0vf31zS25HvXMbzqKV48w6YBHTnh0HAmhLCW43NV/D D9FnNGRSGKbMxoNcyh83ssgWCUNXmgI0GqNEJ11pn+ytkP35T4fsg8hXeddpjx9MWG9Y 6UKU1R7Fw9hkruceWHEkIXDPtj3PFSU4zXt0E= MIME-Version: 1.0 Received: by 10.143.24.26 with SMTP id b26mr2955710wfj.64.1266184084100; Sun, 14 Feb 2010 13:48:04 -0800 (PST) In-Reply-To: <4B7863FE.9040108@bitfreak.org> References: <4B776D6F.10008@bitfreak.org> <20100214180243.GA79050@atarininja.org> <4B7863FE.9040108@bitfreak.org> Date: Sun, 14 Feb 2010 13:48:04 -0800 Message-ID: <7d6fde3d1002141348q1facadd4l5b11b4749379d49f@mail.gmail.com> From: Garrett Cooper To: Darren Pilgrim Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: ports@freebsd.org, Wesley Shields Subject: Re: Installing a different PORTVERSION based on OSVERSION? 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: Sun, 14 Feb 2010 21:48:05 -0000 On Sun, Feb 14, 2010 at 12:58 PM, Darren Pilgrim wro= te: > Wesley Shields wrote: >> >> On Sat, Feb 13, 2010 at 07:26:39PM -0800, Darren Pilgrim wrote: >>> >>> I'm working on a revision to a port where the current version doesn't >>> work on 8.0-R; however, an older version does. =A0Rather than roll the = entire >>> port back to an older version, I'd like to have the newer version avail= able >>> to 7.x and older and the older version available to 8.x and newer. =A0I= s it >>> appropriate to install different versions of a port based on ${OSVERSIO= N}? >>> =A0If so, do I just set the necessary variables after including >>> bsd.port.pre.mk? >> >> This seems like a bad idea to me. How much effort would it take to fix >> the port on 8.x and newer? > > The port contains a static-linked binary from the vendor--not something I > can patch. > >> The other option is to mark it broken on 8.x and newer. > > The port currently sets BROKEN if OSVERSION >=3D 800000. Vendor provided binaries are a fun ball of wax to deal with because you need to have all dependencies come from the same generic pool as the package [/ port] itself, as any This sounds trivial, but it requires changes to pkg_add (for fetching / installing a particular revision of the code, as well as `slotting' the packages themselves), determining elf-version, ld modifications, as well as a few other things. It's been implemented at my work [Ironport] from what I've been told, but 1) I'm not sure how complete it is, 2) I'm not sure how tested it is, and 3) it hasn't been reviewed yet and I'm not sure how much would be put back in the community at large to be honest... HTH, -Garrett