[Bug 280387] Mk/Uses/cabal.mk: 'make make-use-cabal' fails: cabal2tuple: Parse error: Unexpected end-of-input, expecting JSON value

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 21 Jul 2024 08:10:23 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=280387

            Bug ID: 280387
           Summary: Mk/Uses/cabal.mk: 'make make-use-cabal' fails:
                    cabal2tuple: Parse error: Unexpected end-of-input,
                    expecting JSON value
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: yuri@freebsd.org

How to reproduce:
1. cd /usr/ports/lang/hs-futhark
2. make cabal-extract
3. make cabal-configure
4. make make-use-cabal > out

The last command fails:
```
$ make make-use-cabal > out
cabal2tuple: Parse error: Unexpected end-of-input, expecting JSON value
CallStack (from HasCallStack):
  error, called at Cabal2Tuple/Cabal2Tuple.hs:118:41 in
cabal2tuple-2.0.0.1-inplace:Cabal2Tuple
```

The 'out' file contains this string: USE_CABAL=        Did you forget to make
cabal-configure

This failure prevents updating this port.

-- 
You are receiving this mail because:
You are the assignee for the bug.