On 2020/04/20 01:10, f.holop wrote:
> hello,
> 
> not my day.
> i am trying to put together my first rust port but failing miserably.
> 
> i use ripgrep all the time.  so i look at the port.  i try to build it.
> it errors out right away:
> 
> ~/src/ports/textproc/ripgrep$ make extract
> ===>  Checking files for ripgrep-11.0.2p0
> `/home/g/src/ports/distfiles/ripgrep-11.0.2.tar.gz' is up to date.
> `/home/g/src/ports/distfiles/cargo/libc-0.2.63.tar.gz' is up to date.
> `/home/g/src/ports/distfiles/cargo/aho-corasick-0.7.4.tar.gz' is up to date.
> `/home/g/src/ports/distfiles/cargo/atty-0.2.13.tar.gz' is up to date.
> `/home/g/src/ports/distfiles/cargo/base64-0.10.1.tar.gz' is up to date.
> `/home/g/src/ports/distfiles/cargo/bitflags-1.1.0.tar.gz' is up to date.
> `/home/g/src/ports/distfiles/cargo/bstr-0.2.6.tar.gz' is up to date.
> `/home/g/src/ports/distfiles/cargo/bytecount-0.5.1.tar.gz' is up to date.
> `/home/g/src/ports/distfiles/cargo/byteorder-1.3.2.tar.gz' is up to date.
> `/home/g/src/ports/distfiles/cargo/c2-chacha-0.2.2.tar.gz' is up to date.
> `/home/g/src/ports/distfiles/cargo/cc-1.0.38.tar.gz' is up to date.
> >> Fetch https://crates.io/api/v1/crates/cfg-if/0.1.9/download
> ftp: File is already fully retrieved.
> >> Fetch 
> >> https://ftp.openbsd.org/pub/OpenBSD/distfiles/cargo/cfg-if-0.1.9.tar.gz
> ftp: File is already fully retrieved.
> >> Fetch 
> >> https://ftp.usa.openbsd.org/pub/OpenBSD/distfiles/cargo/cfg-if-0.1.9.tar.gz
> ftp: Error retrieving 
> https://ftp.usa.openbsd.org/pub/OpenBSD/distfiles/cargo/cfg-if-0.1.9.tar.gz: 
> 404 Not Found
> >> Fetch 
> >> https://ftp.fr.openbsd.org/pub/OpenBSD/distfiles/cargo/cfg-if-0.1.9.tar.gz
> ftp: File is already fully retrieved.
> *** Error 1 in . (/home/g/src/ports/infrastructure/mk/bsd.port.mk:3136 
> '/home/g/src/ports/distfiles/cargo/cfg-if-0.1.9.tar.gz': @lock=cfg-if...)
> *** Error 2 in . (/home/g/src/ports/infrastructure/mk/bsd.port.mk:2447 
> '_internal-fetch': @cd /home/g/src/ports/textproc/ripgrep && PKGPATH=...)
> *** Error 2 in . (/home/g/src/ports/infrastructure/mk/bsd.port.mk:2652 
> '/home/g/src/ports/pobj/ripgrep-11.0.2/.extract_done': @cd/home/g/sr...)
> *** Error 2 in /home/g/src/ports/textproc/ripgrep 
> (/home/g/src/ports/infrastructure/mk/bsd.port.mk:2573 'extract': 
> @lock=ripgrep-11.0.2p0;  ...)

> what does it mean "File is already fully retrieved." ?
> why is that a bad thing?

It's trying to continue fetching (ftp -C) but the range request is
rejected because it's trying to fetch starting at the end of the file.
You'll see the same if you try to fetch it twice manually with ftp -C.
I guess it didn't get renamed from cfg-if-0.1.9.tar.gz.dist to
cfg-if-0.1.9.tar.gz maybe due to some permissions problem.

ls -l distfiles/cargo/cfg-if-0.1.9.tar.gz* - anything look different
than other files?

> 
> some other questions:
> 
> where did this list of MODCARGO_CRATES come from?
> it's not the dep list in the toml file, so it's not
> like RUN_DEPENDS in python...  is it _all_ the crates
> from the lock file?  am i supposed to fill in the licenses
> for all of them manually?

Remove the old MODCARGO_CRATES entries, run "make modcargo-gen-crates"
and include the newly generated list in the port Makefile.

Then "make modcargo-gen-crates-licenses" and replace the list in the
Makefile with the new output which includes license information.

If it now uses a new version of rust-libc newer than 0.2.63 that's ok,
if not then put MODCARGO_CRATES_UPDATE and MODCARGO_CRATES += libc 0.2.63
back.

Reply via email to