From owner-freebsd-current@FreeBSD.ORG Sun Jul 14 15:01:53 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 4D744D69; Sun, 14 Jul 2013 15:01:53 +0000 (UTC) (envelope-from crees@bayofrum.net) Received: from mk-outboundfilter-1.mail.uk.tiscali.com (mk-outboundfilter-1.mail.uk.tiscali.com [212.74.114.37]) by mx1.freebsd.org (Postfix) with ESMTP id AE60C38A; Sun, 14 Jul 2013 15:01:52 +0000 (UTC) X-Trace: 739672869/mk-outboundfilter-1.mail.uk.tiscali.com/PIPEX/$ON_NET_AUTH_ACCEPTED/Talk_Talk_Customer/2.102.104.150/None/crees@bayofrum.net X-SBRS: None X-RemoteIP: 2.102.104.150 X-IP-MAIL-FROM: crees@bayofrum.net X-SMTP-AUTH: bayofrum@uwclub.net X-MUA: Apple Mail (2.1085) X-IP-BHB: Once X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Aj4SAA684lECZmiW/2dsb2JhbABagwZEwgkGgQAXdIIjAQEFOhwjEAsOCi45HgaIJ7YEjzEzBy6CXW0DnWyEEocrgxM7 X-IronPort-AV: E=Sophos;i="4.89,663,1367967600"; d="scan'208";a="739672869" X-IP-Direction: OUT Received: from host-2-102-104-150.as13285.net (HELO pegasus.bayofrum.net) ([2.102.104.150]) by smtp.pipex.tiscali.co.uk with ESMTP; 14 Jul 2013 16:01:37 +0100 Received: from zeus.bayofrum.net (zeus.bayofrum.net [192.168.1.151]) by pegasus.bayofrum.net (Postfix) with ESMTPA id 531902EC44; Sun, 14 Jul 2013 16:01:15 +0100 (BST) References: <20130712231637.GS85556@ithaqua.etoilebsd.net> <13CA24D6AB415D428143D44749F57D7201FC2DBD@ltcfiswmsgmb21> <20130713080732.GV85556@ithaqua.etoilebsd.net> <13CA24D6AB415D428143D44749F57D7201FC3AA2@ltcfiswmsgmb21> <13CA24D6AB415D428143D44749F57D7201FC3C92@ltcfiswmsgmb21> <13CA24D6AB415D428143D44749F57D7201FC3FAA@ltcfiswmsgmb21> <201307140613.r6E6Dsov002016@hergotha.csail.mit.edu> <201307140706.r6E76Kg0002959@hergotha.csail.mit.edu> <13CA24D6AB415D428143D44749F57D7201FC51FE@ltcfiswmsgmb21> In-Reply-To: <13CA24D6AB415D428143D44749F57D7201FC51FE@ltcfiswmsgmb21> Mime-Version: 1.0 (Apple Message framework v1085) Content-Type: text/plain; charset=us-ascii Message-Id: <7325EE70-8821-4350-9D8A-E5CAAC548FE9@bayofrum.net> Content-Transfer-Encoding: quoted-printable From: Chris Rees Subject: Re: [HEADSUP] No more pkg_install on HEAD by default Date: Sun, 14 Jul 2013 16:01:14 +0100 To: Devin Teske X-Mailer: Apple Mail (2.1085) X-bayofrum-MailScanner-Information: Please contact the ISP for more information X-bayofrum-MailScanner-ID: 531902EC44.A9D91 X-bayofrum-MailScanner: Found to be clean X-bayofrum-MailScanner-From: crees@bayofrum.net X-Spam-Status: No X-Mailman-Approved-At: Sun, 14 Jul 2013 21:08:09 +0000 Cc: "freebsd-current@freebsd.org" , Garrett Wollman X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Jul 2013 15:01:53 -0000 On 14 Jul 2013, at 08:29, Teske, Devin wrote: >=20 > To give you an idea as to just how helpful this is... >=20 > Imagine the following hierarchy: >=20 > src/pkgbase/depend/mystuff/script1 > src/pkgbase/depend/mystuff/textfile1 > src/pkgbase/depend/mystuff/sourcefile.c > src/pkgbase/depend/mystuff/Makefile >=20 > You are a developer. You want to ship a package that contains "script1", = "textfile1", and "binary1" (which is compiled by saying "make" to turn "sou= rcefile.c" into "binary1") >=20 > You want to ship 8 types of packages: >=20 > FreeBSD-4.11 > FreeBSD-8.1 (i386) > FreeBSD-8.1 (amd64) > RedHat EL 4 > RedHat EL 6 (i386) > RedHat EL 6 (x86_64) > Debian Wheezy > Debian Wheezy 64-bit >=20 > This is where my framework comes in-handy... >=20 > cd ~/src/pkgbase/freebsd/RELENG_4/category/mystuff > make > # it pulled the necessary bits from "src/pkgbase/depend/mystuff" and buil= t the .tgz >=20 > cd ~/src/pkgbase/freebsd/RELENG_8/category/mystuff > make > # it pulled the necessary bits from the "depend" dir and built .tbz >=20 > cd ~/src/pkgbase/redhat/rhel4/category/sub-category/mystuff > make > # pulled in "depend" and made .rpm >=20 > cd ~/src/pkgbase/redhat/rhel6/category/sub-category/mystuff > make > # pulled in "depend" and made .rpm >=20 > etc. >=20 > Of course, *any* time the depend tree has binaries in it... you have to f= irst do a make in there on the platform you want to ship the binary for, an= d then do "make depend" in the platform-specific tree to pull in the binari= es. Once you've done that, you don't have to muck with the depend tree agai= n unless there are changes there. >=20 > So, I assume that your prejudice remarks are because you haven't either s= een (a) such a platform or (b) such a need for said platform. >=20 > Yeah, I could rewrite the freebsd-specific logic to use "pkg create", but= let me tell you... >=20 > When you have to touch a file that needs to get shipped out to multiple p= latforms... >=20 > It's damned nice to be able to build the FreeBSD packages under RedHat *B= ECAUSE* the redhat RPMs can't be built under anything else (building an RPM= on FreeBSD and attempting to install it on RedHat results in an error mess= age similar to "this is an rpm for FreeBSD; go away"). >=20 > Whereas FreeBSD will never balk about a package built on another platform. >=20 > It's a huge time-saving measure... not having to jump over to each/every = unique platform to package things up *IF/WHEN* you know that there are no b= inaries in the package *or* you've already checked the pre-compiled binarie= s into the arch-specific hierarchy. >=20 >=20 >=20 >=20 >> Or you >> can maintain the old cruft for your business -- just don't expect >> anyone else to use it, or even want to. >>=20 >=20 >=20 > I have no intention of making old-world packages... but I also have no in= tention of using "pkg create". You still haven't really explained at all why you can't use libpkg. If it = doesn't run on Debian (not tried), it's got to be easier to port it than re= write a hacked version, hasn't it??? At least then you'll also be contribu= ting back. Chris --=20 This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.