Re: github fetch not working (solved, mostly)
On 03/18/18 18:13, Miroslav Lachman wrote: Gary Aitken wrote on 2018/03/19 00:02: fetch: https://codeload.github.com/sergiomb2/ufraw/tar.gz/g20161113?dummy=/sergiomb2-ufraw-g20161113_GH0.tar.gz: Not Found => Attempting to fetch http://distcache.FreeBSD.org/ports-distfiles/ufraw-devel/sergiomb2-ufraw-g20161113_GH0.tar.gz fetch: http://distcache.FreeBSD.org/ports-distfiles/ufraw-devel/sergiomb2-ufraw-g20161113_GH0.tar.gz: Not Found => Couldn't fetch it - please try to retrieve this => port manually into ../../distfiles/ufraw-devel and try again. It was my understanding that the USE_GITHUB target would somehow magically clone the tree and build the requisite tarball, or unpack the whole thing into distfiles. Obviously I'm missing something. Clues? Makefile: # $FreeBSD$ DISTDIR= ../../distfiles PORTNAME= ufraw-devel DISTVERSION= g20161113 CATEGORIES= graphics #MASTER_SITES= https://github.com/sergiomb2/ufraw.git USE_GITHUB= yes GH_ACCOUNT= sergiomb2 GH_PROJECT= ufraw #GH_TAGNAME= g6d3259aa DIST_SUBDIR=${PORTNAME} MAINTAINER= free...@dreamchaser.org COMMENT= Read and manipulate raw images from digital cameras LICENSE= GPLv2 .include Where did you get this version number? DISTVERSION= g20161113 I was trying to follow example 5.13 in the porter's handbook. However, this particular git tree has only a main branch and no tags, so it's not a perfect fit. What about this PORTNAME= ufraw-devel PORTVERSION= g20161113 CATEGORIES= graphics MASTER_SITES= GH MAINTAINER= free...@dreamchaser.org COMMENT= Read and manipulate raw images from digital cameras LICENSE= GPLv2 USE_GITHUB= yes GH_ACCOUNT= sergiomb2 GH_PROJECT= ufraw GH_TAGNAME= 6d3259a .include Unfortunately, that yields the same results. However, thanks for the hints; I did get it to work as follows: MASTER_SITES= https://github.com/sergiomb2/ufraw/archive/ DISTNAME= master The link shown on the website for a "Download zip file" is https://github.com/sergiomb2/ufraw/archive/master.zip But the file fetched was ufraw-devel/master.tar.gz $ make fetch ... => Attempting to fetch https://github.com/sergiomb2/ufraw/archive/master.tar.gz fetch: https://github.com/sergiomb2/ufraw/archive/master.tar.gz: size of remote file is not known However, I'm still puzzled because this method totally ignores all the special hooks that are supposed to make a git repository work. Your first version was trying to fetch https://codeload.github.com/sergiomb2/ufraw/tar.gz/g20161113?dummy=/sergiomb2-ufraw-g20161113_GH0.tar.gz But you should fetch this (note the tag 6d3259a after tar.gz/) https://codeload.github.com/sergiomb2/ufraw/tar.gz/6d3259a?dummy=/sergiomb2-ufraw-6d3259a_GH0.tar.gz So you need to tune your Makefile to create link like above. According to this https://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/makefile-distfiles.html#makefile-master_sites-popular you need to set GH_ACCOUNT, GH_PROJECT and GH_TAGNAME=6d3259a to create right URL: ${GH_ACCOUNT}/${GH_PROJECT}/tar.gz/${GH_TAGNAME}?dummy=/ This works for me PORTNAME= ufraw-devel PORTVERSION= g20161113 CATEGORIES= graphics MASTER_SITES= GH #DISTNAME= ${GH_ACCOUNT}-${GH_PROJECT}-${GH_TAGNAME}${DISTVERSIONSUFFIX} MAINTAINER= free...@dreamchaser.org COMMENT= Read and manipulate raw images from digital cameras LICENSE= GPLv2 USE_GITHUB= yes GH_ACCOUNT= sergiomb2 GH_PROJECT= ufraw GH_TAGNAME= 6d3259a .include Thank you, Miroslav. My original problem was I mistakenly prepended a 'g' on the GH_TAGNAME value. I probably was remembering reading the example 5.13 where it was prepending a 'g' for the artificial DISTVERSION. Duh. I will go bang my head against the wall a few times... Again, thank you. Gary ___ 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: github fetch not working (solved, mostly)
Gary Aitken wrote on 2018/03/19 00:02: fetch: https://codeload.github.com/sergiomb2/ufraw/tar.gz/g20161113?dummy=/sergiomb2-ufraw-g20161113_GH0.tar.gz: Not Found => Attempting to fetch http://distcache.FreeBSD.org/ports-distfiles/ufraw-devel/sergiomb2-ufraw-g20161113_GH0.tar.gz fetch: http://distcache.FreeBSD.org/ports-distfiles/ufraw-devel/sergiomb2-ufraw-g20161113_GH0.tar.gz: Not Found => Couldn't fetch it - please try to retrieve this => port manually into ../../distfiles/ufraw-devel and try again. It was my understanding that the USE_GITHUB target would somehow magically clone the tree and build the requisite tarball, or unpack the whole thing into distfiles. Obviously I'm missing something. Clues? Makefile: # $FreeBSD$ DISTDIR= ../../distfiles PORTNAME= ufraw-devel DISTVERSION= g20161113 CATEGORIES= graphics #MASTER_SITES= https://github.com/sergiomb2/ufraw.git USE_GITHUB= yes GH_ACCOUNT= sergiomb2 GH_PROJECT= ufraw #GH_TAGNAME= g6d3259aa DIST_SUBDIR=${PORTNAME} MAINTAINER= free...@dreamchaser.org COMMENT= Read and manipulate raw images from digital cameras LICENSE= GPLv2 .include Where did you get this version number? DISTVERSION= g20161113 I was trying to follow example 5.13 in the porter's handbook. However, this particular git tree has only a main branch and no tags, so it's not a perfect fit. What about this PORTNAME= ufraw-devel PORTVERSION= g20161113 CATEGORIES= graphics MASTER_SITES= GH MAINTAINER= free...@dreamchaser.org COMMENT= Read and manipulate raw images from digital cameras LICENSE= GPLv2 USE_GITHUB= yes GH_ACCOUNT= sergiomb2 GH_PROJECT= ufraw GH_TAGNAME= 6d3259a .include Unfortunately, that yields the same results. However, thanks for the hints; I did get it to work as follows: MASTER_SITES= https://github.com/sergiomb2/ufraw/archive/ DISTNAME= master The link shown on the website for a "Download zip file" is https://github.com/sergiomb2/ufraw/archive/master.zip But the file fetched was ufraw-devel/master.tar.gz $ make fetch ... => Attempting to fetch https://github.com/sergiomb2/ufraw/archive/master.tar.gz fetch: https://github.com/sergiomb2/ufraw/archive/master.tar.gz: size of remote file is not known However, I'm still puzzled because this method totally ignores all the special hooks that are supposed to make a git repository work. Your first version was trying to fetch https://codeload.github.com/sergiomb2/ufraw/tar.gz/g20161113?dummy=/sergiomb2-ufraw-g20161113_GH0.tar.gz But you should fetch this (note the tag 6d3259a after tar.gz/) https://codeload.github.com/sergiomb2/ufraw/tar.gz/6d3259a?dummy=/sergiomb2-ufraw-6d3259a_GH0.tar.gz So you need to tune your Makefile to create link like above. According to this https://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/makefile-distfiles.html#makefile-master_sites-popular you need to set GH_ACCOUNT, GH_PROJECT and GH_TAGNAME=6d3259a to create right URL: ${GH_ACCOUNT}/${GH_PROJECT}/tar.gz/${GH_TAGNAME}?dummy=/ This works for me PORTNAME= ufraw-devel PORTVERSION=g20161113 CATEGORIES= graphics MASTER_SITES= GH #DISTNAME= ${GH_ACCOUNT}-${GH_PROJECT}-${GH_TAGNAME}${DISTVERSIONSUFFIX} MAINTAINER= free...@dreamchaser.org COMMENT=Read and manipulate raw images from digital cameras LICENSE=GPLv2 USE_GITHUB= yes GH_ACCOUNT= sergiomb2 GH_PROJECT= ufraw GH_TAGNAME= 6d3259a .include You should create distinfo file with checksum first: # make makesum => sergiomb2-ufraw-g20161113-6d3259a_GH0.tar.gz doesn't seem to exist in /var/ports/distfiles/. https://codeload.github.com/sergiomb2/ufraw/tar.gz/6d3259a?dummy=/ http://distcache.FreeBSD.org/ports-distfiles/ => Attempting to fetch https://codeload.github.com/sergiomb2/ufraw/tar.gz/6d3259a?dummy=/sergiomb2-ufraw-g20161113-6d3259a_GH0.tar.gz sergiomb2-ufraw-g20161113-6d3259a_GH0.tar.gz 100% of 849 kB 720 kBps 00m01s # cat distinfo TIMESTAMP = 1521418152 SHA256 (sergiomb2-ufraw-g20161113-6d3259a_GH0.tar.gz) = 4a3b415bf86c7cadc71350a8f0a206cef79bb3c22a6a794a9d9894d6bc7ec6dc SIZE (sergiomb2-ufraw-g20161113-6d3259a_GH0.tar.gz) = 870086 # ls -l /var/ports/distfiles/sergiomb2-ufraw-g20161113-6d3259a_GH0.tar.gz -rw-r--r-- 1 root wheel 870086 Mar 19 00:09 /var/ports/distfiles/sergiomb2-ufraw-g20161113-6d3259a_GH0.tar.gz # make distclean ===> Cleaning for ufraw-devel-g20161113 ===> Deleting distfiles for ufraw-devel-g20161113 # make fetch ===> License GPLv2 accepted by the user ===> ufraw-devel-g20161113 depends on file: /usr/local/sbin/pkg - found => sergiomb2-ufraw-g20161113-6d3259a_GH0.tar.gz doesn't seem to exist in /var/ports/distfiles/. https://codeload.github.com/sergiomb2/ufraw/tar.gz/6d3259a?dummy=/ http://distcache.FreeBSD.org/ports-distfiles/ => Attempting to fetch
Re: github fetch not working (solved, mostly)
Where did you get this version number? DISTVERSION= g20161113 I was trying to follow example 5.13 in the porter's handbook. However, this particular git tree has only a main branch and no tags, so it's not a perfect fit. What about this PORTNAME= ufraw-devel PORTVERSION= g20161113 CATEGORIES= graphics MASTER_SITES= GH MAINTAINER= free...@dreamchaser.org COMMENT= Read and manipulate raw images from digital cameras LICENSE= GPLv2 USE_GITHUB= yes GH_ACCOUNT= sergiomb2 GH_PROJECT= ufraw GH_TAGNAME= 6d3259a .include Unfortunately, that yields the same results. However, thanks for the hints; I did get it to work as follows: MASTER_SITES= https://github.com/sergiomb2/ufraw/archive/ DISTNAME= master The link shown on the website for a "Download zip file" is https://github.com/sergiomb2/ufraw/archive/master.zip But the file fetched was ufraw-devel/master.tar.gz $ make fetch ... => Attempting to fetch https://github.com/sergiomb2/ufraw/archive/master.tar.gz fetch: https://github.com/sergiomb2/ufraw/archive/master.tar.gz: size of remote file is not known However, I'm still puzzled because this method totally ignores all the special hooks that are supposed to make a git repository work. This is the wrong way. master.zip is the moving target. If somebody commit something, then master.zip will be different and distinfo will not match. You need to fetch exact revision from github. You may clone this repo and make new release on github in your repo. Or you can fetch master.zip, rename it to something useful and upload somewehere where your Makefile can fetch it. Miroslav Lachman ___ 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: github fetch not working (solved, mostly)
On 03/18/18 14:53, Miroslav Lachman wrote: Gary Aitken wrote on 2018/03/18 20:04: Trying to work up a development port of ufraw, fetching from https://github.com/sergiomb2/ufraw.git (or at least that's where I can get the source manually) Going slowly, just trying to get the source fetched properly: ... ufraw-devel-g20161113 depends on file: /usr/local/sbin/pkg - found => sergiomb2-ufraw-g20161113_GH0.tar.gz doesn't seem to exist in ../../distfiles/ufraw-devel. => Attempting to fetch https://codeload.github.com/sergiomb2/ufraw/tar.gz/g20161113?dummy=/sergiomb2-ufraw-g20161113_GH0.tar.gz fetch: https://codeload.github.com/sergiomb2/ufraw/tar.gz/g20161113?dummy=/sergiomb2-ufraw-g20161113_GH0.tar.gz: Not Found => Attempting to fetch http://distcache.FreeBSD.org/ports-distfiles/ufraw-devel/sergiomb2-ufraw-g20161113_GH0.tar.gz fetch: http://distcache.FreeBSD.org/ports-distfiles/ufraw-devel/sergiomb2-ufraw-g20161113_GH0.tar.gz: Not Found => Couldn't fetch it - please try to retrieve this => port manually into ../../distfiles/ufraw-devel and try again. It was my understanding that the USE_GITHUB target would somehow magically clone the tree and build the requisite tarball, or unpack the whole thing into distfiles. Obviously I'm missing something. Clues? Makefile: # $FreeBSD$ DISTDIR=../../distfiles PORTNAME= ufraw-devel DISTVERSION=g20161113 CATEGORIES= graphics #MASTER_SITES= https://github.com/sergiomb2/ufraw.git USE_GITHUB= yes GH_ACCOUNT= sergiomb2 GH_PROJECT= ufraw #GH_TAGNAME=g6d3259aa DIST_SUBDIR=${PORTNAME} MAINTAINER= free...@dreamchaser.org COMMENT=Read and manipulate raw images from digital cameras LICENSE=GPLv2 .include Where did you get this version number? DISTVERSION=g20161113 I was trying to follow example 5.13 in the porter's handbook. However, this particular git tree has only a main branch and no tags, so it's not a perfect fit. What about this PORTNAME= ufraw-devel PORTVERSION=g20161113 CATEGORIES= graphics MASTER_SITES= GH MAINTAINER= free...@dreamchaser.org COMMENT=Read and manipulate raw images from digital cameras LICENSE=GPLv2 USE_GITHUB= yes GH_ACCOUNT= sergiomb2 GH_PROJECT= ufraw GH_TAGNAME= 6d3259a .include Unfortunately, that yields the same results. However, thanks for the hints; I did get it to work as follows: MASTER_SITES= https://github.com/sergiomb2/ufraw/archive/ DISTNAME= master The link shown on the website for a "Download zip file" is https://github.com/sergiomb2/ufraw/archive/master.zip But the file fetched was ufraw-devel/master.tar.gz $ make fetch ... => Attempting to fetch https://github.com/sergiomb2/ufraw/archive/master.tar.gz fetch: https://github.com/sergiomb2/ufraw/archive/master.tar.gz: size of remote file is not known However, I'm still puzzled because this method totally ignores all the special hooks that are supposed to make a git repository work. Thanks! ___ 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"