Re: Problems with updating a port due to top directory in tarball
On Sat, 6 Mar 2021, Kevin Oberman wrote: On Wed, Mar 3, 2021 at 10:15 PM Hiroo Ono wrote: On 2021年3月4日木曜日 9時00分32秒 JST, Kevin Oberman wrote: I'm trying to update a port I maintain. Since I last updated, it moved from ISC to github and it uses unusual naming conventions. The distfile is "irrtoolset/archive/release-5.1.3.tar.gz". I can work around this with a DIST_SUBDIR and DISTNAME, but when the extract takes place, the top directory in the tarball is "irrtoolset-release-5.1.3". Since this is not expected, patch fails. If it is same as what is tagged as "release-5.1.3", DISTVERSIONPREFIX= release- DISTVERSION=5.1.3 USE_GITHUB= yes GH_ACCOUNT= irrtoolset GH_PROJECT= irrtoolset should work. cf. https://docs.freebsd.org/en_US.ISO8859-1/books/porters-handbook/makefile-distfiles.html#makefile-master_sites-github-description Thanks you very much! The update to the port has been submitted and is awaiting a committer. Looking at the Porter's Handbook, I now understand how it works, but it would have taken a VERY long time to figure it all out without your help! (Might have taken until the heat death of the universe.) I also was hitting some issues with this for opendmarc, which recently moved from Sourceforge to Github. Well, moved a while ago but put out its first github-exclusive release recently. For some of the process, portsfiles just plain didn't try to fetch. Even when I copied the relevant variables verbatim from another port. Despite having the porter's handbook open lots, there were many things I had to just go read the files in /usr/ports/Mk to figure out. There could definitely be more recipes. One example: how to correctly handle a port that uses an RPM. Or multiple RPMs. -- Dan Mahoney Techie, Sysadmin, WebGeek Gushi on efnet/undernet IRC FB: fb.com/DanielMahoneyIV LI: linkedin.com/in/gushi Site: http://www.gushi.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: Problems with updating a port due to top directory in tarball
On Wed, Mar 3, 2021 at 10:15 PM Hiroo Ono wrote: > > On 2021年3月4日木曜日 9時00分32秒 JST, Kevin Oberman wrote: > > I'm trying to update a port I maintain. Since I last updated, it moved > from > > ISC to github and it uses unusual naming conventions. > > > > The distfile is "irrtoolset/archive/release-5.1.3.tar.gz". I can work > > around this with a DIST_SUBDIR and DISTNAME, but when the extract takes > > place, the top directory in the tarball is "irrtoolset-release-5.1.3". > > Since this is not expected, patch fails. > > If it is same as what is tagged as "release-5.1.3", > > DISTVERSIONPREFIX= release- > DISTVERSION=5.1.3 > USE_GITHUB= yes > GH_ACCOUNT= irrtoolset > GH_PROJECT= irrtoolset > > should work. > cf. > > https://docs.freebsd.org/en_US.ISO8859-1/books/porters-handbook/makefile-distfiles.html#makefile-master_sites-github-description > > Thanks you very much! The update to the port has been submitted and is awaiting a committer. Looking at the Porter's Handbook, I now understand how it works, but it would have taken a VERY long time to figure it all out without your help! (Might have taken until the heat death of the universe.) -- Kevin Oberman, Part time kid herder and retired Network Engineer E-mail: rkober...@gmail.com PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683 ___ 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: Problems with updating a port due to top directory in tarball
On 2021年3月4日木曜日 9時00分32秒 JST, Kevin Oberman wrote: I'm trying to update a port I maintain. Since I last updated, it moved from ISC to github and it uses unusual naming conventions. The distfile is "irrtoolset/archive/release-5.1.3.tar.gz". I can work around this with a DIST_SUBDIR and DISTNAME, but when the extract takes place, the top directory in the tarball is "irrtoolset-release-5.1.3". Since this is not expected, patch fails. If it is same as what is tagged as "release-5.1.3", DISTVERSIONPREFIX= release- DISTVERSION=5.1.3 USE_GITHUB= yes GH_ACCOUNT= irrtoolset GH_PROJECT= irrtoolset should work. cf. https://docs.freebsd.org/en_US.ISO8859-1/books/porters-handbook/makefile-distfiles.html#makefile-master_sites-github-description ___ 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: Problems with updating a port due to top directory in tarball
I am resending this mail because I put the wrong From for the first time. On 2021年3月4日木曜日 9時00分32秒 JST, Kevin Oberman wrote: I'm trying to update a port I maintain. Since I last updated, it moved from ISC to github and it uses unusual naming conventions. The distfile is "irrtoolset/archive/release-5.1.3.tar.gz". I can work around this with a DIST_SUBDIR and DISTNAME, but when the extract takes place, the top directory in the tarball is "irrtoolset-release-5.1.3". Since this is not expected, patch fails. If it is same as what is tagged as "release-5.1.3", DISTVERSIONPREFIX= release- DISTVERSION=5.1.3 USE_GITHUB= yes GH_ACCOUNT= irrtoolset GH_PROJECT= irrtoolset should work. cf. https://docs.freebsd.org/en_US.ISO8859-1/books/porters-handbook/makefile-distfiles.html#makefile-master_sites-github-description ___ 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: Problems with updating a port due to top directory in tarball
Thanks to both of you. Looks like I can continue working on the port, now! -- Kevin Oberman, Part time kid herder and retired Network Engineer E-mail: rkober...@gmail.com PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683 ___ 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: Problems with updating a port due to top directory in tarball
Kevin Oberman writes: > I'm trying to update a port I maintain. Since I last updated, it moved from > ISC to github and it uses unusual naming conventions. > > The distfile is "irrtoolset/archive/release-5.1.3.tar.gz". I can work > around this with a DIST_SUBDIR and DISTNAME, but when the extract takes > place, the top directory in the tarball is "irrtoolset-release-5.1.3". > Since this is not expected, patch fails. Try DISTVERSIONPREFIX=release- like devel/googletest. USE_GITHUB renames distfile via ?dummy=/ in MASTER_SITES, so you don't need to manually set DIST_SUBDIR/DISTNAME. $ make fetch-urlall-list MASTER_SITE_BACKUP= https://codeload.github.com/irrtoolset/irrtoolset/tar.gz/release-5.1.3?dummy=/irrtoolset-irrtoolset-release-5.1.3_GH0.tar.gz ___ 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: Problems with updating a port due to top directory in tarball
On 2021-03-04 00:00, Kevin Oberman wrote: I'm trying to update a port I maintain. Since I last updated, it moved from ISC to github and it uses unusual naming conventions. The distfile is "irrtoolset/archive/release-5.1.3.tar.gz". I can work around this with a DIST_SUBDIR and DISTNAME, but when the extract takes place, the top directory in the tarball is "irrtoolset-release-5.1.3". Since this is not expected, patch fails. Is there a way to specify the name of the restore directory? Or to rename it after the extract phase? I'd use the post-extract target, but maybe there's a better way. Since loading the "Porter's Handbook" as a single file seems to not be an option any longer, it is harder to search through the whole thing, I may have missed an simple way to deal with this. Have you tried https://docs.freebsd.org/en/books/porters-handbook/ ? It loads as a single file for me. ___ 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"
Problems with updating a port due to top directory in tarball
I'm trying to update a port I maintain. Since I last updated, it moved from ISC to github and it uses unusual naming conventions. The distfile is "irrtoolset/archive/release-5.1.3.tar.gz". I can work around this with a DIST_SUBDIR and DISTNAME, but when the extract takes place, the top directory in the tarball is "irrtoolset-release-5.1.3". Since this is not expected, patch fails. Is there a way to specify the name of the restore directory? Or to rename it after the extract phase? Since loading the "Porter's Handbook" as a single file seems to not be an option any longer, it is harder to search through the whole thing, I may have missed an simple way to deal with this. Thanks, -- Kevin Oberman, Part time kid herder and retired Network Engineer E-mail: rkober...@gmail.com PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683 ___ 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"