[Bug 264049] Mk/Uses/cabal.mk: 'make ma ke-use-cabal-revs' fails: fetch: http://hacka ge.haskell.org/package/attoparsec-0.14.4-l-at toparsec-internal/revisions/: Not Found

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 17 May 2022 18:42:59 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264049

            Bug ID: 264049
           Summary: Mk/Uses/cabal.mk: 'make make-use-cabal-revs' fails:
                    fetch:
                    http://hackage.haskell.org/package/attoparsec-0.14.4-l
                    -attoparsec-internal/revisions/: Not Found
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Ports Framework
          Assignee: portmgr@FreeBSD.org
          Reporter: yuri@freebsd.org
                CC: ports-bugs@FreeBSD.org

I am trying to update security/hs-cryptol to 2.13.0.

I am using these instructions:
1. Define PORTNAME, PORTVERSION and USES=cabal
2. Run `make cabal-extract`. This will fetch the package using
devel/hs-cabal-install
3. Run `make cabal-extract-deps`. This will fetch and build all package
dependencies, including transitive ones.
4. Run make `make-use-cabal`. This will generate intial USE_CABAL string.
Copy&paste it into the port.
5. Run make `make-use-cabal-revs`. This will check packages from current
USE_CABAL for available revisions and generate new string. Copy&paste it into
the port.
6. Run `make makesum && make clean` and try building the port the usual way.

'make make-use-cabal-revs' fails:
attoparsec-0.14.4_1 \
fetch:
http://hackage.haskell.org/package/attoparsec-0.14.4-l-attoparsec-internal/revisions/:
Not Found
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/local/lib/python3.8/json/__init__.py", line 293, in load
    return loads(fp.read(),
  File "/usr/local/lib/python3.8/json/__init__.py", line 357, in loads
    return _default_decoder.decode(s)
  File "/usr/local/lib/python3.8/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/local/lib/python3.8/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
*** Error code 1


This appears to be triggered by this item in USE_CABAL:
attoparsec-0.14.4-l-attoparsec-internal

-- 
You are receiving this mail because:
You are on the CC list for the bug.