Automatic conversion of the NetBSD pkgsrc CVS module, use with care
Find a file
nia 175adfcf5f json-c: Update to 0.14
0.14 (up to commit 9ed00a6, 2020/04/14)
=========================================

Deprecated and removed features:
--------------------------------
* bits.h has been removed
* lh_abort() has been removed
* lh_table_lookup() has been removed, use lh_table_lookup_ex() instead.
* Remove TRUE and FALSE defines, use 1 and 0 instead.

Build changes:
--------------
## Deprecated and removed features:
* bits.h has been removed
* lh_abort() has been removed
* lh_table_lookup() has been removed, use lh_table_lookup_ex() instead.
* Remove TRUE and FALSE defines, use 1 and 0 instead.
* autoconf support, including autogen.sh, has been removed.  See details about cmake, below.
* With the addition of json_tokener_get_parse_end(), access to internal fields of json_tokener, as well as use of many other symbols and types in json_tokener.h, is deprecated now.
* The use of Android.configure.mk to build for Android no longer works, and it is unknown how (or if) the new cmake-based build machinery can be used.
    * Reports of success, or pull requests to correct issues are welcome.

## Notable improvements and new features

### Builds and documentation
* Build machinery has been switched to CMake.  See README.md for details about how to build.
    * TL;DR: `mkdir build ; cd build ; cmake -DCMAKE_INSTALL_PREFIX=/some/path ../json-c ; make all test install`
    * To ease the transition, there is a `cmake-configure` wrapper that emulates the old autoconf-based configure script.
    * This has enabled improvements to the build on Windows system; also all public functions have been fixed to be properly exported.  For best results, use Visual Studio 2015 or newer.
* The json-c style guide has been updated to specify the use of clang-format, and all code has been reformatted.
    * Since many lines of code have trivial changes now, when using git blame, be sure to specify -w
* Numerous improvements have been made to the documentation including function effects on refcounts, when passing a NULL is safe, and so on.

### json_tokener changes
* Added a json_tokener_get_parse_end() function to replace direct access of tok->char_offset.
    * The char_offset field, and the rest of the json_tokener structure remain exposed for now, but expect a future release to hide it like is done with json_object_private.h
* json_tokener_parse_ex() now accepts a new JSON_TOKENER_VALIDATE_UTF8 flag to validate that input is UTF8.
    * If validation fails, json_tokener_get_error(tok) will return json_tokener_error_parse_utf8_string (see enum json_tokener_error).

### Other changes and additions
* Add support for unsigned 64-bit integers, uint64_t, to gain one extra bit of magnitude for positive ints.
    * json_tokener will now parse values up to UINT64_MAX (18446744073709551615)
    * Existing methods returning int32_t or int64_t will cap out-of-range values at INT32_MAX or INT64_MAX, preserving existing behavior.
    * The implementation includes the possibility of easily extending this to larger sizes in the future.
* A total of 7 new functions were added:
    * json_object_get_uint64 ( struct json_object const* jso )
    * json_object_new_uint64 ( uint64_t i )
    * json_object_set_uint64 ( struct json_object* jso, uint64_t new_value )
    * json_parse_uint64 ( char const* buf, uint64_t* retval )
        * See description of uint64 support, above.
    * json_tokener_get_parse_end ( struct json_tokener* tok )
        * See details under "json_tokener changes", above.
    * json_object_from_fd_ex ( int fd, int in_depth )
        * Allows the max nesting depth to be specified.
    * json_object_new_null ( )
        * Simply returns NULL.  Its use is not recommended.
* The size of struct json_object has decreased from 96 bytes to 88 bytes.

### Testing
* Many updates were made to test cases, increasing code coverage.
* There is now a quick way (JSONC_TEST_TRACE=1) to turn on shell tracing in tests.
* To run tests, use `make test`; the old "check" target no longer exists.

## Significant bug fixes
For the full list of issues and pull requests since the previous release, please see issues_closed_for_0.14.md

* [Issue #389](https://github.com/json-c/json-c/issues/389): Add an assert to explicitly crash when _ref_count is corrupted, instead of a later "double free" error.
* [Issue #407](https://github.com/json-c/json-c/issues/407): fix incorrect casts in calls to ctype functions (isdigit and isspace) so we don't crash when asserts are enabled on certain platforms and characters > 128 are parsed.
* [Issue #418](https://github.com/json-c/json-c/issues/418): Fix docs for json_util_from_fd and json_util_from_file to say that they return NULL on failures.
* [Issue #422](https://github.com/json-c/json-c/issues/422): json_object.c:set errno in json_object_get_double() when called on a json_type_string object with bad content.
* [Issue #453](https://github.com/json-c/json-c/issues/453): Fixed misalignment in JSON serialization when JSON_C_TO_STRING_SPACED and JSON_C_TO_STRING_PRETTY are used together.
* [Issue #463](https://github.com/json-c/json-c/issues/463): fix newlocale() call to use LC_NUMERIC_MASK instead of LC_NUMERIC, and remove incorrect comment.
* [Issue #486](https://github.com/json-c/json-c/issues/486): append a missing ".0" to negative double values to ensure they are serialized as floating point numbers.
* [Issue #488](https://github.com/json-c/json-c/issues/488): use JSON_EXPORT on functions so they are properly exported on Windows.
* [Issue #539](https://github.com/json-c/json-c/issues/539): use an internal-only serializer function in json_object_new_double_s() to avoid potential conflicts with user code that uses the json_object_userdata_to_json_string serializer.
2020-05-19 12:08:31 +00:00
archivers py-lz4: updated to 3.0.2 2020-05-16 08:31:37 +00:00
audio qsynth: Update to 0.6.2 2020-05-19 11:04:21 +00:00
benchmarks benchmarks/bonnie++: clean up REPLACE_PERL 2020-05-18 05:23:26 +00:00
biology biology/canu: fix build on NetBSD-8.0-x86_64 2020-05-16 19:50:21 +00:00
bootstrap Highly silly typo. 2020-05-07 14:20:49 +00:00
cad cad/ghdl: skip portability check 2020-05-17 15:54:04 +00:00
chat irssi: remove random debug leftover 2020-05-18 19:15:38 +00:00
comms g/c references to openjdk7 2020-05-17 00:54:00 +00:00
converters py-cairosvg: Add setup_requires packages to BUILD_DEPENDS. 2020-05-19 09:59:58 +00:00
cross cross/binutils-mips-current: remove unknown configure option 2020-05-17 22:05:41 +00:00
databases redis: updated to 6.0.3 2020-05-19 09:20:15 +00:00
devel py-cython: updated to 0.29.18 2020-05-19 09:21:43 +00:00
distfiles
doc doc: Updated games/teeworlds to 0.7.5 2020-05-19 11:46:42 +00:00
editors (editors/TeXmacs) fix WARNING: [subst.mk:init] Nothing changed 2020-05-18 22:01:32 +00:00
emulators qemu: Remove no longer used prefix subst class 2020-05-18 17:07:38 +00:00
filesystems pytest from versioned depends 2020-05-16 17:42:41 +00:00
finance pytest from versioned depends 2020-05-16 17:42:41 +00:00
fonts harfbuzz: Update to 2.6.6. 2020-05-17 14:43:16 +00:00
games teeworlds: Update to 0.7.5 2020-05-19 11:46:26 +00:00
geography py-googlemaps: Update to 4.4.0. 2020-05-16 14:12:51 +00:00
graphics libexif: Update to 0.6.22 2020-05-19 11:20:00 +00:00
ham ham/tqsl: Update SUBST pattern to follow upstream 2020-05-16 14:26:53 +00:00
inputmethod inputmethod/ibus: allow no-op SUBST block 2020-05-16 14:16:20 +00:00
lang rust: Bump libLLVM version for SunOS bootstrap. 2020-05-19 09:53:28 +00:00
licenses add afl-3.0 (Academic Free License) 2020-04-30 08:40:06 +00:00
mail libetpan: Resolve pkgconfig mess 2020-05-19 10:13:49 +00:00
math libixion: clean some pkglint 2020-05-18 19:21:19 +00:00
mbone Fix const issues 2020-05-14 19:26:01 +00:00
meta-pkgs texlive-collection-pictures: update to rev 54812 2020-05-10 13:04:41 +00:00
misc py-immutables: updated to 0.14 2020-05-18 10:50:04 +00:00
mk mk/configure/replace-interpreter.mk: silently skip broken symlinks 2020-05-18 06:06:34 +00:00
multimedia vlc: don't list x11 in SUGGESTED_OPTIONS twice 2020-05-19 08:45:36 +00:00
net net/bind914: update to 9.14.12 2020-05-19 10:23:03 +00:00
news news/suck: suppress USE_TOOLS+=perl warning 2020-05-10 14:19:38 +00:00
packages
parallel py-billiard: updated to 3.6.3.0 2020-05-17 19:16:38 +00:00
pkgtools pkgtools/pkglint: update to 20.1.7 2020-05-18 19:11:16 +00:00
print libcups: don't install binaries with mode 555 2020-05-17 00:25:42 +00:00
regress regress/infra-unittests: demonstrate relative paths in +BUILD_VERSION 2020-05-19 06:09:53 +00:00
security py-keyright: updated to 21.2.1 2020-05-17 19:57:22 +00:00
shells fish: Update to 3.1.2 2020-05-17 14:25:47 +00:00
sysutils rox: Update to 2.11 2020-05-19 10:31:57 +00:00
templates
textproc json-c: Update to 0.14 2020-05-19 12:08:31 +00:00
time pytest from versioned depends 2020-05-18 10:40:11 +00:00
wm herbstluftwm: Update to 0.8.2 2020-05-17 14:56:42 +00:00
www www/ruby-padrino-mailer: update to 0.15.0 2020-05-18 15:00:32 +00:00
x11 rofi: Update to 1.5.4 2020-05-19 10:48:39 +00:00
Makefile Makefile: fix outdated documentation 2020-02-12 15:04:51 +00:00
pkglocate
README.md README.md: minor adjustments 2020-01-15 16:19:22 +00:00

pkgsrc

pkgsrc is a framework for building software for a variety of UNIX-like systems.

It produces binary packages, which can be managed with tools such as pkgin.

Bootstrapping

To use pkgsrc on operating systems other than NetBSD, you first need to bootstrap:

cd pkgsrc/bootstrap
./bootstrap

Note that this is only for the most simple case, using pkgsrc's defaults.

Please consult bootstrap/README and bootstrap/README.OS for detailed information about bootstrapping.

Building packages

cd pkgsrc/category/package-name
$PREFIX/bin/bmake install

Where $PREFIX is where you've chosen to install packages (typically /usr/pkg)

On NetBSD, bmake is simply the built-in make tool.

To build packages in bulk, tools such as pkgtools/pbulk and pkgtools/pkg_comp can be used.

Troubleshooting

Latest sources

To fetch the main CVS repository:

cvs -d anoncvs@anoncvs.NetBSD.org:/cvsroot checkout -P pkgsrc

To work in the Git mirror, which is updated every few hours from CVS:

git clone https://github.com/NetBSD/pkgsrc.git