From owner-freebsd-ports@freebsd.org Mon Nov 9 21:55:39 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 DC87CA2ADBC; Mon, 9 Nov 2015 21:55:39 +0000 (UTC) (envelope-from crodr001@gmail.com) Received: from mail-yk0-x230.google.com (mail-yk0-x230.google.com [IPv6:2607:f8b0:4002:c07::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9B31A1DBD; Mon, 9 Nov 2015 21:55:39 +0000 (UTC) (envelope-from crodr001@gmail.com) Received: by ykfs79 with SMTP id s79so59818041ykf.1; Mon, 09 Nov 2015 13:55:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=w7Bq+b7y0JwZR66ZFn+JbW2sTDTDxYesT063KuVbMEc=; b=OAdkxEfNTSdyAcxqIpRW937snKIDZo3P/CVGfXrMsH40GD/gjqSNXpTFVxwFeuJIWP gDGMvzN8a5bobkUhaTzhI4B4ASLkCZgUsduA04KNMUEcvwQNyloaIH2Cz6Pr72pfcL/b IFSUkoG3LmS/4MqiAQrsCOdpc7MCyuM03FyyLgj9JOI1OdLNJPc/jarTBRNgjFc1O3EW zW/qJghrna+KPwj/iCf3jPvPpsW2SxorgNSNyKaaBySYkukLzk19M7qC8sfL/EyDtPHD eEPiWSWbbeZR3UEsGueoBDLyy6f8B8rl0iT/0jHZ55J0tWdVR1SvmkDdbXWIR4M6ARoG k6rA== MIME-Version: 1.0 X-Received: by 10.129.146.197 with SMTP id j188mr143297ywg.19.1447106138551; Mon, 09 Nov 2015 13:55:38 -0800 (PST) Sender: crodr001@gmail.com Received: by 10.37.95.9 with HTTP; Mon, 9 Nov 2015 13:55:38 -0800 (PST) In-Reply-To: References: Date: Mon, 9 Nov 2015 13:55:38 -0800 X-Google-Sender-Auth: gbN3kYz6mheilOJ-yeK5asHLkEQ Message-ID: Subject: Re: Call for Help: need script for patching ports tree, building with poudriere From: Craig Rodrigues To: Ricky G Cc: "freebsd-testing@freebsd.org" , "freebsd-ports@freebsd.org" Content-Type: text/plain; charset=UTF-8 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 21:55:40 -0000 On Sun, Nov 8, 2015 at 6:18 PM, Ricky G wrote: > Hello, > > Started working on a simple sh script to do as requested. So far have > 1,2,4,5 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 > generated the patch at the root of the tree > 5- Does duplicates matter? poudriere doesn't care but is this strictly for > poudriere? > 6- How should the output be handled? > > The script should not worry about the port tree checkout so much, since that will probably be done outside the script. For now, if the script assumes that the port checkout is an SVN tree, and you can run SVN operations on it, that should be sufficient. For duplicates, 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, it does the right thing. At this point, the output format is not so important. For now, making sure that error status is propagated as a return value from the script (0 on success, non-zero on failure) is a good start. The only other suggestion that I have is that when you work on the script, make sure that you put a proper license in it (BSD license preferred). Thanks. -- Craig