Re: Issue in fetching upstream package source

2022-04-26 Thread Salil Wadnerkar
Thanks a lot, Stuart! It worked.

On Mon, Apr 25, 2022 at 1:33 PM Stuart Henderson 
wrote:

> On 2022/04/25 21:31, Stuart Henderson wrote:
> > On 2022/04/25 13:30, Salil Wadnerkar wrote:
> > > Hi,
> > >
> > > I am facing issues in fetching upstream packages hosted on github for
> > > multiple new packages that I am trying to build,
> > >
> > > For example,
> > > https://github.com/easymodo/qimgv/archive/refs/tags/v1.0.2.tar.gz
> > > is hosted on the page:
> https://github.com/easymodo/qimgv/releases/tag/v1.0.2
> >
> > See the examples and description for the GH_xxx variables
> > in /usr/ports/infrastructure/templates/Makefile.template
> >
> > > My Makefile is:
> > >
> > > MASTER_SITES=https://github.com/easymodo/qimgv/archive/refs/tags/
> > > VERSION=1.0.2
> > > DISTNAME=v${VERSION}
> > >
> > > My understanding is this should fetch the tar.gz, but `make fetch`
> fails
> > > with this error:
> > >
> > > $ make fetch
> > > ===>  Checking files for qimgv-1.0.2
> > > >> No size recorded for v1.0.2.tar.gz
> > > *** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:3205
> > > '/usr/ports/distfiles/v1.0.2.tar.gz': @lock=v1.0.2.tar.gz.dist; doas -u
> > > _pbu...)
> > > *** Error 2 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2481
> > > '_internal-fetch': @cd /usr/ports/mystuff/graphics/qimgv &&
> > > PKGPATH=graphics...)
> > > *** Error 2 in /usr/ports/mystuff/graphics/qimgv
> > > (/usr/ports/infrastructure/mk/bsd.port.mk:2607 'fetch':
> @lock=qimgv-1.0.2;
> > >  export _LOCKS_H...)
>
> Also "make fetch" checks the downloaded files against recorded size/hash
> in distinfo. If you don't already have the files listed there (as is the
> case
> in a new port or an update), "make makesum" instead.
>
> > >
> > > Can someone show me what I am doing wrong?
> > >
> > > Thanks,
> > > Salil
> >
>


Re: Issue in fetching upstream package source

2022-04-25 Thread Stuart Henderson
On 2022/04/25 21:31, Stuart Henderson wrote:
> On 2022/04/25 13:30, Salil Wadnerkar wrote:
> > Hi,
> > 
> > I am facing issues in fetching upstream packages hosted on github for
> > multiple new packages that I am trying to build,
> > 
> > For example,
> > https://github.com/easymodo/qimgv/archive/refs/tags/v1.0.2.tar.gz
> > is hosted on the page: https://github.com/easymodo/qimgv/releases/tag/v1.0.2
> 
> See the examples and description for the GH_xxx variables
> in /usr/ports/infrastructure/templates/Makefile.template
> 
> > My Makefile is:
> > 
> > MASTER_SITES=https://github.com/easymodo/qimgv/archive/refs/tags/
> > VERSION=1.0.2
> > DISTNAME=v${VERSION}
> > 
> > My understanding is this should fetch the tar.gz, but `make fetch` fails
> > with this error:
> > 
> > $ make fetch
> > ===>  Checking files for qimgv-1.0.2
> > >> No size recorded for v1.0.2.tar.gz
> > *** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:3205
> > '/usr/ports/distfiles/v1.0.2.tar.gz': @lock=v1.0.2.tar.gz.dist; doas -u
> > _pbu...)
> > *** Error 2 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2481
> > '_internal-fetch': @cd /usr/ports/mystuff/graphics/qimgv &&
> > PKGPATH=graphics...)
> > *** Error 2 in /usr/ports/mystuff/graphics/qimgv
> > (/usr/ports/infrastructure/mk/bsd.port.mk:2607 'fetch': @lock=qimgv-1.0.2;
> >  export _LOCKS_H...)

Also "make fetch" checks the downloaded files against recorded size/hash
in distinfo. If you don't already have the files listed there (as is the case
in a new port or an update), "make makesum" instead.

> > 
> > Can someone show me what I am doing wrong?
> > 
> > Thanks,
> > Salil
> 



Re: Issue in fetching upstream package source

2022-04-25 Thread Stuart Henderson
On 2022/04/25 13:30, Salil Wadnerkar wrote:
> Hi,
> 
> I am facing issues in fetching upstream packages hosted on github for
> multiple new packages that I am trying to build,
> 
> For example,
> https://github.com/easymodo/qimgv/archive/refs/tags/v1.0.2.tar.gz
> is hosted on the page: https://github.com/easymodo/qimgv/releases/tag/v1.0.2

See the examples and description for the GH_xxx variables
in /usr/ports/infrastructure/templates/Makefile.template

> My Makefile is:
> 
> MASTER_SITES=https://github.com/easymodo/qimgv/archive/refs/tags/
> VERSION=1.0.2
> DISTNAME=v${VERSION}
> 
> My understanding is this should fetch the tar.gz, but `make fetch` fails
> with this error:
> 
> $ make fetch
> ===>  Checking files for qimgv-1.0.2
> >> No size recorded for v1.0.2.tar.gz
> *** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:3205
> '/usr/ports/distfiles/v1.0.2.tar.gz': @lock=v1.0.2.tar.gz.dist; doas -u
> _pbu...)
> *** Error 2 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2481
> '_internal-fetch': @cd /usr/ports/mystuff/graphics/qimgv &&
> PKGPATH=graphics...)
> *** Error 2 in /usr/ports/mystuff/graphics/qimgv
> (/usr/ports/infrastructure/mk/bsd.port.mk:2607 'fetch': @lock=qimgv-1.0.2;
>  export _LOCKS_H...)
> 
> 
> Can someone show me what I am doing wrong?
> 
> Thanks,
> Salil



Issue in fetching upstream package source

2022-04-25 Thread Salil Wadnerkar
Hi,

I am facing issues in fetching upstream packages hosted on github for
multiple new packages that I am trying to build,

For example,
https://github.com/easymodo/qimgv/archive/refs/tags/v1.0.2.tar.gz
is hosted on the page: https://github.com/easymodo/qimgv/releases/tag/v1.0.2

My Makefile is:

MASTER_SITES=https://github.com/easymodo/qimgv/archive/refs/tags/
VERSION=1.0.2
DISTNAME=v${VERSION}

My understanding is this should fetch the tar.gz, but `make fetch` fails
with this error:

$ make fetch
===>  Checking files for qimgv-1.0.2
>> No size recorded for v1.0.2.tar.gz
*** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:3205
'/usr/ports/distfiles/v1.0.2.tar.gz': @lock=v1.0.2.tar.gz.dist; doas -u
_pbu...)
*** Error 2 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2481
'_internal-fetch': @cd /usr/ports/mystuff/graphics/qimgv &&
PKGPATH=graphics...)
*** Error 2 in /usr/ports/mystuff/graphics/qimgv
(/usr/ports/infrastructure/mk/bsd.port.mk:2607 'fetch': @lock=qimgv-1.0.2;
 export _LOCKS_H...)


Can someone show me what I am doing wrong?

Thanks,
Salil