From nobody Sat Aug 26 03:18:39 2023 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RXhqR1Lcvz4rBs2 for ; Sat, 26 Aug 2023 03:18:43 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from omta001.cacentral1.a.cloudfilter.net (omta001.cacentral1.a.cloudfilter.net [3.97.99.32]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "Client", Issuer "CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RXhqQ4lMgz3CxF; Sat, 26 Aug 2023 03:18:42 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Authentication-Results: mx1.freebsd.org; none Received: from shw-obgw-4003a.ext.cloudfilter.net ([10.228.9.183]) by cmsmtp with ESMTP id ZWQRqF36dLAoIZjovq6M8D; Sat, 26 Aug 2023 03:18:41 +0000 Received: from spqr.komquats.com ([70.66.152.170]) by cmsmtp with ESMTPA id ZjouqzwSDcyvuZjovqkvHa; Sat, 26 Aug 2023 03:18:41 +0000 X-Authority-Analysis: v=2.4 cv=VbHkgXl9 c=1 sm=1 tr=0 ts=64e96f11 a=y8EK/9tc/U6QY+pUhnbtgQ==:117 a=y8EK/9tc/U6QY+pUhnbtgQ==:17 a=cIbp4mZcAc5FrXqt:21 a=kj9zAlcOel0A:10 a=UttIx32zK-AA:10 a=6I5d2MoRAAAA:8 a=FP58Ms26AAAA:8 a=YxBL1-UpAAAA:8 a=EkcXrb_YAAAA:8 a=dXeMjV5bUxngp67h2CcA:9 a=CjuIK1q_8ugA:10 a=IjZwj45LgO3ly-622nXo:22 a=Ia-lj3WSrqcvXOmTRaiG:22 a=LK5xJRSDVpKd5WXXoEvA:22 a=qfBVGveCGp7H47GFMKp0:22 Received: from slippy.cwsent.com (slippy [10.1.1.91]) by spqr.komquats.com (Postfix) with ESMTP id E77C4D79; Fri, 25 Aug 2023 20:18:39 -0700 (PDT) Received: by slippy.cwsent.com (Postfix, from userid 1000) id DD932387; Fri, 25 Aug 2023 20:18:39 -0700 (PDT) X-Mailer: exmh version 2.9.0 11/07/2018 with nmh-1.8+dev Reply-to: Cy Schubert From: Cy Schubert X-os: FreeBSD X-Sender: cy@cwsent.com X-URL: http://www.cschubert.com/ To: Craig Leres cc: freebsd-hackers@freebsd.org Subject: Re: How do I configure a port to get a specific sourceforge commit? In-reply-to: <56d5e798-9bb4-ca9a-5fbf-59a7b17a334b@freebsd.org> References: <56d5e798-9bb4-ca9a-5fbf-59a7b17a334b@freebsd.org> Comments: In-reply-to Craig Leres message dated "Fri, 25 Aug 2023 16:09:17 -0700." List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 25 Aug 2023 20:18:39 -0700 Message-Id: <20230826031839.DD932387@slippy.cwsent.com> X-CMAE-Envelope: MS4xfKvfOklHwMKQVWh43Y1P+YJV1x3vPzO0XCsrZK+Af/aNmd+Anqp2PByuczg4No0Cb93mCjfgBXAdoTeCOvEYRFysJXTHUE7sFkW70ydCcdzszTh6GmR7 jMsLfAtIAfPY7eWcIxDsZX0mN3YFUGiWw3bVFAttp2bgZjHttS31jS4rUtMBLPtZXJJoqfqU/poah6/zKQLX4J0fGx8QTXDP5VYMoAR9uKtT5iVieV9LPspq o5vTdyo0EPZ6ylK+qjncRg== X-Rspamd-Queue-Id: 4RXhqQ4lMgz3CxF X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:16509, ipnet:3.96.0.0/15, country:US] In message <56d5e798-9bb4-ca9a-5fbf-59a7b17a334b@freebsd.org>, Craig Leres writ es: > I'm trying to update graphics/netpbm to an actively maintained repo (PR > 262212). I'm told by some that this is the current best choice: > > https://sourceforge.net/projects/netpbm/ > > Unfortunately its idea of "release management" is less than ideal. > > Let's say I browse this commit log: > > https://sourceforge.net/p/netpbm/code/4616/log/?path=/advanced > > and decide that release 11.03.04/commit r4606 is interesting. I can > download it if I click on "Tree" for that commit and then "Download > Snapshot" it gives me this as the "direct link": > > > https://sourceforge.net/code-snapshots/svn/n/ne/netpbm/code/netpbm-code-r4606 > -advanced.zip > > This definitely works. But I don't find an existing port that uses > sourceforge with a specific commit and no combination of > "MASTERSITES=SF..." I've tried works. > > I have something that does work but it's a horrible hack, essentially: > > DISTVERSION= 11.03.04 > MASTER_SITES= > ${MASTER_SITE_SOURCEFORGE:S,/project/%SUBDIR%/,/code-snapshots/svn/n/ne/netpb > m/code/,} > DISTNAME= netpbm-code-r4606-advanced > USES= zip > > Is there a less hacky way to do this? > > Craig > I proxy my -devel ports (cde-devel and motif-devel) based on SF sources through my GH account, and the wpa_supplicant-devel/hostapd-devel on a git repo at w1.fi using that method as well. This allows me to use GH plumbing. I probably wouldn't suggest this for a non -devel port but if you're ever thinking of a netpbm-devel, this may be easier, allowing the use of the GH plumbing in ports. What I do is clone the remote repo and change the remote name from origin to upstream, setting the GH remote to origin and pushing to GH. To update I git fetch upstream, git rebase upstream/main, and finally git push origin. This too is a hack, probably just as hacky as your hack. -- Cheers, Cy Schubert FreeBSD UNIX: Web: https://FreeBSD.org NTP: Web: https://nwtime.org e^(i*pi)+1=0