Package Details: nlohmann-json 3.6.1-2

Git Clone URL: https://aur.archlinux.org/nlohmann-json.git (read-only)
Package Base: nlohmann-json
Description: Header-only JSON library for Modern C++
Upstream URL: https://github.com/nlohmann/json
Licenses: MIT
Submitter: eduardosm
Maintainer: haawda
Last Packager: haawda
Votes: 17
Popularity: 1.006743
First Submitted: 2017-10-15 16:59
Last Updated: 2019-05-11 17:58

Dependencies (1)

Required by (7)

Sources (1)

Pinned Comments

alepez commented on 2019-05-04 13:07

For who like me doesn't want to download megabytes of tests and documentation: you can install the alternative package https://aur.archlinux.org/packages/nlohmann-json-bin which downloads only needed files.

Latest Comments

1 2 Next › Last »

alepez commented on 2019-05-04 13:07

For who like me doesn't want to download megabytes of tests and documentation: you can install the alternative package https://aur.archlinux.org/packages/nlohmann-json-bin which downloads only needed files.

falconindy commented on 2018-10-27 20:05

You might consider building from the include.zip artifact offered by upstream. It elides the tests and docs, containing only the headers.

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 https://github.com/nlohmann/json/archive/v3.1.2.tar.gz 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.