From owner-freebsd-ports@freebsd.org Tue Nov 10 23:22:31 2015 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A9D72A2BC39; Tue, 10 Nov 2015 23:22:31 +0000 (UTC) (envelope-from ricky1252@hotmail.com) Received: from SNT004-OMC1S29.hotmail.com (snt004-omc1s29.hotmail.com [65.55.90.40]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "*.outlook.com", Issuer "MSIT Machine Auth CA 2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7E2B2115C; Tue, 10 Nov 2015 23:22:31 +0000 (UTC) (envelope-from ricky1252@hotmail.com) Received: from SNT146-W14 ([65.55.90.8]) by SNT004-OMC1S29.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.23008); Tue, 10 Nov 2015 15:21:24 -0800 X-TMN: [aftQPPiB7eOY0VGaNhuCqaxiZCOX9z7l] X-Originating-Email: [ricky1252@hotmail.com] Message-ID: From: Ricky G To: Craig Rodrigues CC: "freebsd-testing@freebsd.org" , "freebsd-ports@freebsd.org" Subject: RE: Call for Help: need script for patching ports tree, building with poudriere Date: Tue, 10 Nov 2015 18:21:23 -0500 Importance: Normal In-Reply-To: References: , , MIME-Version: 1.0 X-OriginalArrivalTime: 10 Nov 2015 23:21:24.0057 (UTC) FILETIME=[84062490:01D11C0E] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Nov 2015 23:22:31 -0000 Almost finished with this=2C just wanted to give an update. I named this s= cript portest=2C I still need to add a few more things and do some bug test= ing but so far it seems to work pretty well. This is the usage page for the= script. Usage: portest [-f bulkfile] [-apPrRtv] patchfile Options: -a -- Do everything except revert (-ptf build.ports.txt) = -f -- Generate a poudiere usable bulk file -p -- Patch and g= ive output -P -- Do not exit on failed patch -r -- Revert t= he files listed in patchfile -R -- Paranoid revert=2C will remove a= nd restore anything and everything the patchfile may have cha= nged or added -t -- Test with portlint -v -- Show version o= f portest By default=2C (no options) portest shows the ports that will be modified Decided to add the -a option to do the task you asked for specifically. So= far every option works on the patch you supplied and several others I had = laying around. One thing that it will not detect is if slave port will be a= ffected by the change=2C also changes to Uses or any other non CAT/PORT dir= ectory will not be detected. I'm still trying to figure out how to solve th= ese problem. Are they important? or not so much? Right now on my todo is to add a config file to change the default setting= s=2C Add a -T option that will do port test or poudrieretesting depending o= n what was selected in the config file. Also later on choose between svn=2C= git or portsnap. Once i'm finished adding the config file ill post it for = some testing and if you can give me some feedback on what else you need or = don't like. Ultima Date: Mon=2C 9 Nov 2015 13:55:38 -0800 Subject: Re: Call for Help: need script for patching ports tree=2C building= with poudriere From: rodrigc@FreeBSD.org To: ricky1252@hotmail.com CC: freebsd-testing@freebsd.org=3B freebsd-ports@freebsd.org On Sun=2C Nov 8=2C 2015 at 6:18 PM=2C Ricky G wrote= : =0A= =0A= =0A= Hello=2C=20 Started working on a simple sh script to do as requested. So far have 1=2C= 2=2C4=2C5 complete. There is much error checking to be added still though. = Wanted to ask a few things first. 2- Does port tree checkout matter? Right now my script assumes svnlite gene= rated the patch at the root of the tree5- Does duplicates matter? poudriere= doesn't care but is this strictly for poudriere?6- How should the output b= e handled? The script should not worry about the port tree checkout so much=2C since that will probably be done outside the script. For now=2C if the scr= ipt assumes that the port checkout is an SVN tree=2C and you can run SVN operat= ions on it=2C that should be sufficient. For duplicates=2C I don't think it matters so much. I believe poudriere is= smart enough so that if you pass it a list of ports with duplicate entries= =2C it does the right thing. At this point=2C the output format is not so important. For now=2C making sure that error status is propagated as a return value from the script (0 on success=2C non-zero on failure) is a good start. The only other suggestion that I have is that when you work on the script=2C make sure that you put a proper license in it (BSD license prefer= red). Thanks. -- Craig =