Call for Help: need script for patching ports tree, building with poudriere
Hi, I've been working on some advanced scripting with Eitan Adler. We are interested in experimenting with integrating Jenkins + Phabricator using: https://wiki.jenkins-ci.org/display/JENKINS/Phabricator+Plugin For starters, we want to see what we can accomplish with ports. Can someone provide a script that does the following: (1) Takes a patch file (2) Applies the patch file to a checked out ports tree (3) If patching fails, quit and report an error (4) If patch succeeds, do a simple guess to figure out which ports were affected (5) Create a file build.ports.txt which lists these ports, and can be used as input to poudriere, by invoking: poudriere bulk -f build.ports.txt (6) In addition, run portlint, port test, and any other appropriate scripts to test that the patched ports following the porting style guidelines. For example, if the patch in this review was submitted: https://reviews.freebsd.org/D3791 then a build.ports.txt file with this content would be created: databases/py-Pyrseas databases/py-pylibmc databases/py-redis deskutils/py-bugwarrior deskutils/py-taskw devel/py-Jinja2 devel/py-TGScheduler devel/py-apscheduler devel/py-asn1 devel/py-asyncio devel/py-biplist devel/py-check-manifest devel/py-circuits devel/py-dateutil devel/py-doit devel/py-fabric devel/py-filemagic devel/py-foolscap devel/py-freezegun devel/py-future devel/py-lazy devel/py-logan devel/py-mock devel/py-nose devel/py-phabricator devel/py-pip devel/py-protobuf devel/py-pyflakes devel/py-pygit2 devel/py-pygithub devel/py-pytest-cache devel/py-pytest devel/py-python-bugzilla devel/py-sanetime devel/py-scripttest devel/py-semantic_version devel/py-setuptools devel/py-simplejson devel/py-tox devel/py-twiggy devel/py-tzlocal devel/py-virtualenv finance/py-stripe ftp/py-pyftpdlib math/py-graphillion math/py-pycosat net/py-beanstalkc net/py-eventlet net/py-netaddr net/py-oauth2 net/py-pynsq net/py-pyzmq net/py-twitter-tools net/turses science/py-h5py security/py-cryptography security/py-ecdsa security/py-libnacl security/py-oauthlib security/py-openssl security/py-pycrypto security/py-pysha3 sysutils/py-nagiosplugin sysutils/py-supervisor textproc/py-diff-match-patch textproc/py-mistune textproc/py-transifex-client textproc/py-wtforms www/geeknote www/py-aiohttp www/py-bleach www/py-cactus www/py-django-contrib-comments www/py-django-mezzanine www/py-feedgenerator www/py-flask-wtf www/py-flexget www/py-gandi.cli www/py-grequests www/py-gunicorn www/py-pelican www/py-praw www/py-pyjwt www/py-rackspace-monitoring www/py-requests-oauthlib www/py-requests www/py-slimit www/py-slumber and poudriere would be invoked to build those ports. Does such a script exist? If not, would someone by interested in working on such a script, and providing it via GitHub at https://github.com/freebsd/freebsd-ci/ ? Thanks. -- Craig ___ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
FreeBSD Port: tomcat8-8.0.24
hi, could you please fix the problem that the temp directory is not RW for the www user ? root@XYZ/ # ls -la /usr/local/apache-tomcat-8.0/ total 171 drwxr-xr-x 10 root wheel 14 Oct 24 07:44 . drwxr-xr-x 16 root wheel 17 Oct 24 07:46 .. -rw-r--r-- 1 root wheel 57011 Oct 19 11:29 LICENSE -rw-r--r-- 1 root wheel 1444 Oct 19 11:29 NOTICE -rw-r--r-- 1 root wheel 6741 Oct 19 11:29 RELEASE-NOTES -rw-r--r-- 1 root wheel 16204 Oct 19 11:29 RUNNING.txt drwxr-xr-x 2 root wheel 17 Oct 24 07:44 bin drwxr-xr-x 3 www www 19 Oct 24 07:50 conf drwxr-xr-x 2 root wheel 2 Oct 19 11:29 endorsed drwxr-xr-x 2 root wheel 27 Oct 24 07:44 lib drwxr-xr-x 3 www www9 Oct 24 07:50 logs drwxr-xr-x 2 root wheel 3 Oct 19 11:29 temp drwxr-xr-x 7 www www7 Oct 19 11:29 webapps drwxr-xr-x 3 www www3 Oct 24 07:50 work my fix, needed to run the app which is deployed as war file root@XYZ/ # chown -R www:www /usr/local/apache-tomcat-8.0/temp some Apps need the temp directory for example extracting or handling images thanx in advance horst ___ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
Re: FreeBSD Port: tomcat8-8.0.24
Hi! > could you please fix the problem that the temp directory is not > RW for the www user ? There's a PR for it, already in maintainer timeout status. https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=203888 Committed. -- p...@opsec.eu+49 171 3101372 5 years to go ! ___ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
Re: FreeBSD Port: tomcat8-8.0.24
ok :-) i was searching for apache-tomcat8 :-) not for tomcat8 this was my mistake, sorry for inconvenience thanks br horst > On 07 Nov 2015, at 14:03, Kurt Jaeger wrote: > > Hi! > >> could you please fix the problem that the temp directory is not >> RW for the www user ? > > There's a PR for it, already in maintainer timeout status. > > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=203888 > > Committed. > > -- > p...@opsec.eu+49 171 3101372 5 years to > go ! > ___ > freebsd-ports@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org" ___ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
Re: Call for Help: need script for patching ports tree, building with poudriere
Hello Craig, I've been working on some advanced scripting with Eitan Adler. We are interested in experimenting with integrating Jenkins + Phabricator using: https://wiki.jenkins-ci.org/display/JENKINS/Phabricator+Plugin For starters, we want to see what we can accomplish with ports. Can someone provide a script that does the following: (1) Takes a patch file (2) Applies the patch file to a checked out ports tree (3) If patching fails, quit and report an error (4) If patch succeeds, do a simple guess to figure out which ports were affected (5) Create a file build.ports.txt which lists these ports, and can be used as input to poudriere, by invoking: poudriere bulk -f build.ports.txt (6) In addition, run portlint, port test, and any other appropriate scripts to test that the patched ports following the porting style guidelines. For example, if the patch in this review was submitted: https://reviews.freebsd.org/D3791 then a build.ports.txt file with this content would be created: [List of ports] and poudriere would be invoked to build those ports. Does such a script exist? I wrote myself a similar script, but it is very basic (and PHP). It: - assumes that patches are generated against /usr/ports (which makes applying much easier) - apply the patches - get the ports affected by the diff with svn diff - runs portlint - runs poudriere for many versions... - reset every change made to the portstree There are many glitches and it is not this fast, but it safe much time while i wrote port updates. I get a very simple report if everything is fine and then i submit my PR. But of course any other workflow is possible. I aimed to support multiple poudriere server to speed up the process. But i have way more ideas than time... ;) If not, would someone by interested in working on such a script, and providing it via GitHub at https://github.com/freebsd/freebsd-ci/ ? I will help you, but currently (which means till the end of the year) i am very short on time. Are there any requirements to the script in language, performance, etc. ? Greetings, Torsten ___ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
Port Vulnerabilities | php5-phar-5.4.45
Dear port maintainer, Can you check this port as it shows to have some vulnerabilities: Checking for packages with security vulnerabilities: Database fetched: Fri Nov 6 01:06:33 CET 2015 php5-phar-5.4.45 Thanks, Jos Chrispijn ___ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
Re: Call for Help: need script for patching ports tree, building with poudriere
On Sat, Nov 7, 2015 at 9:28 AM, Torsten Zühlsdorff < mailingli...@toco-domains.de> wrote: > > > It: > - assumes that patches are generated against /usr/ports (which makes > applying much easier) > - apply the patches > - get the ports affected by the diff with svn diff > - runs portlint > - runs poudriere for many versions... > - reset every change made to the portstree > > That flow of steps is very close to what I need. The scripts in http://github.com/freebsd/freebsd-ci are mostly shell or Python, but I'm flexible, as long as the scripts run under FreeBSD. I think you mentioned one problem about starting something, and then running out of time to finish working on it. This problem is very common. :( Hopefully if we have multiple people working on something and collaborating, we can get something going that many people can maintain and enhance in future. I would say go ahead and provide your script via GitHub pull request, unless you want to clean it up a little before providing it. Thanks. -- Craig ___ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
Re: Port Vulnerabilities | php5-phar-5.4.45
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 On Sat, Nov 07, 2015 at 08:23:48PM +0100, JosC wrote: > Dear port maintainer, > > Can you check this port as it shows to have some vulnerabilities: > > Checking for packages with security vulnerabilities: > > Database fetched: Fri Nov 6 01:06:33 CET 2015 > php5-phar-5.4.45 > > Thanks, > Jos Chrispijn Jos, See http://www.php.net/eol.php PHP 5.4 is no longer supported by the PHP project as of 3 September 2015. Please update to a supported PHP release, such as the ports default version--PHP 5.6, using the steps in /usr/ports/UPDATING entry 20150220. -BEGIN PGP SIGNATURE- Version: GnuPG v2 iQF8BAEBCgBmBQJWPn7XXxSAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ0NURGNTQ1OTkzQkJFMzc3OTNDQUNERUU2 RkQ0OUMzMDE2MUNBQTZFAAoJEG/UnDAWHKpuU/YH/2z3PLeYvd6QJrxmbnBPyFve k4p5+3mskTN6S2rMxXuUUMHUxWVCoIuw816DeBuCw4HCZEIfhTuEOkLzLz5fCJxW cxcUqTsKafGZVcbbnONH/g0zLIVXUJeuT6pwBlH0qJcc33XE5q97OBERUmw2YNRZ 0M1hWcr8o9bgSRjfwrfRBxCWI6JdU6dI8DwFT/V+N3Nmbk74XBM91h6rguApklCc DK008Gc4cyCc8o1DyU1qYqqzIXTFjW3+2K+pUUWLwZPoGZKOVUpt8Hj6Px9+GdQd CufUPHJKHs0xa6EOYQ9MHM2xrfEkUjhtwtH+7bDxPCGoEsZF932pGvob4vyqxGc= =NGar -END PGP SIGNATURE- ___ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"