Date: Tue, 10 Nov 2015 18:21:23 -0500 From: Ricky G <ricky1252@hotmail.com> To: Craig Rodrigues <rodrigc@freebsd.org> Cc: "freebsd-testing@freebsd.org" <freebsd-testing@freebsd.org>, "freebsd-ports@freebsd.org" <freebsd-ports@freebsd.org> Subject: RE: Call for Help: need script for patching ports tree, building with poudriere Message-ID: <SNT146-W14213C226DDB69BA876647A1140@phx.gbl> In-Reply-To: <CAG=rPVfZV4kZbhG5c-%2BrjFG4vGTzMmrRasSyBQ%2BgCtY8FBEtoA@mail.gmail.com> References: <CAG=rPVcOb4g9DD08c7vAsor8UMf3GnckAJ2wkO37p8Ao3G2GwA@mail.gmail.com>, <SNT146-W8224851E20D3E1FDA17AD4A1150@phx.gbl>, <CAG=rPVfZV4kZbhG5c-%2BrjFG4vGTzMmrRasSyBQ%2BgCtY8FBEtoA@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <ricky1252@hotmail.com> 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 =
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?SNT146-W14213C226DDB69BA876647A1140>