Package Details: nlohmann-json 3.3.0-1

Git Clone URL: (read-only)
Package Base: nlohmann-json
Description: Header-only JSON library for Modern C++
Upstream URL:
Licenses: MIT
Submitter: eduardosm
Maintainer: eduardosm
Last Packager: eduardosm
Votes: 10
Popularity: 0.319823
First Submitted: 2017-10-15 16:59
Last Updated: 2018-10-07 14:18

Dependencies (1)

Required by (9)

Sources (1)

Latest Comments

1 2 Next › Last »

eduardosm commented on 2018-10-17 17:07

@Thermi What error do you get exactly?

Thermi commented on 2018-10-17 16:09

The check() function fails whenever I try to run it. It happens in a clean, fresh docker container, too. The following code runs it correctly:

check() {
    mkdir -p "$srcdir/json-${pkgver}/build"
    cd "$srcdir/json-${pkgver}/build"
    cmake ..
    cmake --build .
    ctest --output-on-failure

eduardosm commented on 2018-05-04 17:45

@sum41 Yes, I think I can do that.

sum01 commented on 2018-05-04 01:49

Could -DBUILD_TESTING=OFF be added to the cmake command in build()?

Then in check() you'd put a cmake -DBUILD_TESTING=ON .. && make to actually build tests before running ctest.

This would allow people who disable check() in their makepkg.conf to have faster builds without you removing the check() step.

cirrus commented on 2018-04-18 22:54

curl: (33) HTTP server doesn't seem to support byte ranges. Cannot resume. ==> ERROR: Failure while downloading Aborting...

bus commented on 2018-02-08 17:32

@eduardosm Well, we will have to agree to disagree then.

If you ever change your mind, email me or something, that'd be cool. Until then I'll have to maintain nlohmann-json-bin for my own sanity and hopefully somebody else's.

@Jesin Thanks, I put !check in my makepkg.conf and tried running makepkg --nocheck, yet it still compiles all those tests.

But that still doesn't solve the problem of downloading and extracting needless hundreds of megabytes (of which 99.9% are test cases and benchmarks).

Jesin commented on 2018-02-08 17:29

@bus If you want to skip the check function, makepkg has a '--nocheck' flag for just that reason.

eduardosm commented on 2018-02-07 21:22

@bus As far I'm concerned, the general recomendation is that PKGBUILDs should include a check function if there is a test suite, so I would like to keet this package as it is. I know it can be frustrating to heavy compiling on slow processors. In your case, you can add -DJSON_BuildTests=OFF to the cmake command to avoid building the tests.

bus commented on 2018-02-07 19:36

@eduardosm In official repositories? But that happens before packages reach the user, which is not the case here. (unless there are packages that do post-transaction testing or something, of which I'm not aware of)

I would, in fact, argue that it is bad and the whole process is bloated. I need to use this library on a Raspberry Pi, but installing it via this package takes hours and requires me to have hundreds of megabytes of free storage for the 550KB resulting package. I'd tell you the actual time, but it's been 30 minutes and it's still only at 7%. This library updates fairly often, so I don't want to go through this every time, but I do want to be notified of its updates through my AUR helper.

If it made sense, I would have already created the nlohmann-json-bin package, but there's nothing to compile here so there's no binary. Making a header-only package version of a header-only library would just be silly.

I checked a few others header-only libraries in AUR. Most I found (even the -git versions) don't do any expensive compilations or testing (and the ones that do usually revolve around testing themselves). I would like to see this package do the same, as I believe it's the rational way.

Sorry for the rant, I just feel very strongly about this for whatever reason.

eduardosm commented on 2018-02-07 18:22

@bus Many packages in official repositories run the test suite, even if they are stable versions. It is not that bad having to run the checks from time to time when the library is updated and the resulting package is not bloated.