From owner-freebsd-ports@freebsd.org Mon Nov 9 02:20:00 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 509E0A24E51; Mon, 9 Nov 2015 02:20:00 +0000 (UTC) (envelope-from ricky1252@hotmail.com) Received: from SNT004-OMC1S17.hotmail.com (snt004-omc1s17.hotmail.com [65.55.90.28]) (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 21ACE19E7; Mon, 9 Nov 2015 02:19:59 +0000 (UTC) (envelope-from ricky1252@hotmail.com) Received: from SNT146-W82 ([65.55.90.8]) by SNT004-OMC1S17.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.23008); Sun, 8 Nov 2015 18:18:52 -0800 X-TMN: [yZlq4cMxXWyJMb1F1sj+cvXxDXWoO6Lj] 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: Sun, 8 Nov 2015 21:18:52 -0500 Importance: Normal In-Reply-To: References: MIME-Version: 1.0 X-OriginalArrivalTime: 09 Nov 2015 02:18:52.0965 (UTC) FILETIME=[FA710D50:01D11A94] 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: Mon, 09 Nov 2015 02:20:00 -0000 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? > Date: Sat=2C 7 Nov 2015 00:28:28 -0800 > Subject: Call for Help: need script for patching ports tree=2C building w= ith poudriere > From: rodrigc@FreeBSD.org > To: freebsd-testing@freebsd.org=3B freebsd-ports@freebsd.org >=20 > Hi=2C >=20 > 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=2C we want to see what we can accomplish with ports. >=20 > Can someone provide a script that does the following: >=20 > (1) Takes a patch file > (2) Applies the patch file to a checked out ports tree > (3) If patching fails=2C quit and report an error > (4) If patch succeeds=2C do a simple guess to figure out which ports wer= e > affected > (5) Create a file build.ports.txt which lists these ports=2C and can be = used > as input > to poudriere=2C by invoking: >=20 > poudriere bulk -f build.ports.txt >=20 > (6) In addition=2C run portlint=2C port test=2C and any other appropriat= e > scripts to > test that the patched ports following the porting style guidelines. >=20 > For example=2C 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: >=20 >=20 > 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 >=20 > and poudriere would be invoked to build those ports. >=20 > Does such a script exist? >=20 > If not=2C would someone by interested in working on such a script=2C and > providing it > via GitHub at https://github.com/freebsd/freebsd-ci/ ? >=20 > Thanks. >=20 > -- > Craig > _______________________________________________ > freebsd-ports@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe=2C send any mail to "freebsd-ports-unsubscribe@freebsd.org= " =