Solved tar.gz is not fetched from MASTER_SITES

Hi All !

i'm packaging a new port with my poudriere and i got the following error :
Code:
===========================================================================
=======================<phase: patch-depends  >============================
===========================================================================
=======================<phase: patch          >============================
===>  Missing license file for MIT in /wrkdirs/usr/ports/net-mgmt/prom_monit/work/prom_monit/LICENSE
*** Error code 1

Stop.
make: stopped in /usr/ports/net-mgmt/prom_monit

So i tried to pass each step manually :
- make fetch
Code:
===>  License MIT accepted by the user
===>   prom_monit-1.0 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by prom_monit-1.0 for building
=> SHA256 Checksum OK for prom_monit-1.0.tar.gz.

- make checksum
Code:
===>  License MIT accepted by the user
===>   prom_monit-1.0 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by prom_monit-1.0 for building
=> SHA256 Checksum OK for prom_monit-1.0.tar.gz.

- make depends
Code:
===>   prom_monit-1.0 depends on file: /usr/local/sbin/pkg - found

- make extract...
Code:
===>  License MIT accepted by the user
===>   prom_monit-1.0 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by prom_monit-1.0 for building
===>  Extracting for prom_monit-1.0
=> SHA256 Checksum OK for prom_monit-1.0.tar.gz.

And even if i didnt get any errors, i just see that make didn't fetch nor extract prom_monit.tar.gz in the subdirectory ./work.
I configured my own master_sites (which is my poudriere) where prom_monit-1.0.tar.gz is available...

I deleted the archive from /usr/ports/distfiles and try to retrieve the whole process but i got the same result...

Any ideas ? this is not my first timeto create a package but first time i'm running into these error.

Br,

Nutz!
 
I think it would help if you'd post the actual Makefile you are using. Also if you actually had the source archive in distfiles it must been downloaded at some point. My guess would be that this happened during an earlier test and the Makefile got broken somehow later on.
 
Sometimes when I use portmaster a file fails to download from a repo so I had to manually download and place it in /usr/ports/distfiles. Try this method may be it will work.
 
Hi All,

Thanks for your answer.

Minbari, i tried, and that didnt work, it failed at the checksum step.
So i look at the distinfo and this is not consistent

Code:
TIMESTAMP = 1601646028
SHA256 (prom_monit-1.0.tar.gz) = e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
SIZE (prom_monit-1.0.tar.gz) = 0

ekvz : here my Makefile

Code:
# Created by: Nutz <nutz.bastogne@gmail.com>
# $FreeBSD$

PORTNAME=     prom_monit
PORTVERSION=     1.0
CATEGORIES=    net-mgmt
MASTER_SITES=    http://fbsd-build.local.domain/FBSD12_1/ports/archive/

MAINTAINER=    nutz.bastogne@gmail.com
COMMENT=    Package to install script used by node_exporter textfile processor

LICENSE=    MIT
LICENSE_FILE=    ${WRKSRC}/LICENSE

WRKSRC=        ${WRKDIR}/prom_monit

NO_ARCH=    yes

do-install:
    ${INSTALL_DATA} ${WRKSRC}/script ${STAGEDIR}/usr/local/prom/

.include <bsd.port.mk>

BR,
nutz
 
ok finally i ran into a more specific error when i change the MASTER_SITES with a wrong one and put back the good one.
I overwrite the value into the distinfo to set up the right size but thats was not working so i just add
Code:
NO_CHECKSUM=yes

This is now okay...
But i still don't know why the distinfo is wrong :/
 
Run make makesum to download the new archive and generate the correct checksums (distinfo) for it.
 
  • Like
Reactions: a6h
ekvz At the beginning it was an issue with the dowloading of the archive and after it's became an issue with checksum mismatch.
 
Back
Top