History log of /freebsd-head/lib/libxo/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
49c790f01dc66225114ff44916a3d288b5467196 25-Jan-2020 phil <phil@FreeBSD.org> Import libxo-1.4.0:

- Two changes to encoder options:
encoder options may use plus or colon, but only one
encoder names can be specified as "@name"
This results in the syntax:

df --libxo @csv:no-header:leafs=name.available-blocks /

- If xo_set_program is called before xo_parse_args, honor the requested value
- add xo_errorn* function; repair newline-adding-on-xo_error bug
- test programs now use fixed name, since linux libtool prefixs "lt-"
- Fix "horse butt" comment in source code
- update test cases

PR: 242686
dd.man
ibxo/xo_config.h
80a408b91ef60946cf657981c2426e0eadd62299 16-Dec-2019 phil <phil@FreeBSD.org> Allow proper builds of libxo's CSV encoder:
- Move libxo.a build to subdirectory (lib/libxo/libxo/Makefile)
- Add .WAIT target to delay encoder build til after libxo
- Use FILES to install encoder library as csv.enc
- Update import script to put xo_config.h in new location
akefile
ncoder/csv/Makefile
ibxo/Makefile
ibxo/xo_config.h
ests/Makefile
ests/encoder/Makefile
o_config.h
cd6bd6c451007b4459287a2aa1d9c37721a99e01 14-Dec-2019 cem <cem@FreeBSD.org> Deprecate sranddev(3) API

It serves no useful purpose and wasn't as popular as its equally meritless
cousin, srandomdev(3).

Setting aside the problems with rand(3) in general, the problem with this
interface is that the seed isn't shared with the caller (other than by
attacking the output of the generator, which is trivial, but not a hallmark of
pleasant API design). The (arguable) utility of rand(3) or random(3) is as a
semi-fast simulation generator which produces consistent results from a given
seed. These are mutually at odd. Furthermore, sometimes people got the
mistaken impression that a high quality random seed meant a weak generator like
rand(3) or random(3) could be used for things like cryptographic key
generation. This is absolutely not so.

The API was never part of a standard and was not widely used in tree. Existing
in-tree uses have all been removed.

Possible replacement in out of tree codebases:

char buf[3];
time_t t;

time(t);
strftime(buf, sizeof(buf), "%S", gmtime(&t));
srand(atoi(buf));

Relnotes: yes
o_config.h
16923f2426747207f66ba4329b6ede7418cf4adb 11-Dec-2019 sjg <sjg@FreeBSD.org> Update Makefile.depend files

Update a bunch of Makefile.depend files as
a result of adding Makefile.depend.options files

Reviewed by: bdrewery
MFC after: 1 week
Sponsored by: Juniper Networks
Differential Revision: https://reviews.freebsd.org/D22494
akefile.depend
7fb341c9f5666206bb6b4bffa89e81bbbcf6aba3 07-Nov-2019 phil <phil@FreeBSD.org> Import libxo-1.3.1:
- handle argv[0] without '/'
- add test case for argv[0] without '/'
dd.man
ncoder/csv/Makefile
o_config.h
e5ee3c207838af3705ab1bf5f25bb101ec17b2f4 07-Nov-2019 phil <phil@FreeBSD.org> Back out encoder compilation to unbreak HEAD.
akefile
3ae3b2e23c25fc73af59d44be0226b23f490b812 07-Nov-2019 phil <phil@FreeBSD.org> Import libxo-1.3.0:
- move from "oxtradoc" to RST/Sphinx documentation
- new "csv" encoder, which allows path and leaf lists
- address warnings from PVS-Stdio tool
- add "xolint" detected errors to the documentation
5fc62085ddb56d6813437e17f7d741da00665089 05-Sep-2019 manu <manu@FreeBSD.org> pkgbase: Put a lot of binaries and lib in FreeBSD-runtime

All of them are needed to be able to boot to single user and be able
to repair a existing FreeBSD installation so put them directly into
FreeBSD-runtime.

Reviewed by: bapt, gjb
Differential Revision: https://reviews.freebsd.org/D21503
akefile
42e8bd29798d933745329f470a2b243ce844f255 06-May-2019 phil <phil@FreeBSD.org> Import libxo-1.0.4:
- Avoid NULL deref in xo_xml_leader_len (replacing local fix in rS345967)
- update copyright dates
- update test cases
- fix uncommitted version change

Submitted by: phil
MFC after: 2 weeks
dd.man
o_config.h
11f8ca01b7f31a68942c75298d8a228dfe799007 03-Apr-2019 phil <phil@FreeBSD.org> Import libxo-1.0.2

from 1.0.0:
Add "continuation" flag, to allow multiple "xo" invocations in a single line of output (#58)
Add --top-wrap to make top-level JSON wrappers
Add --{open,close}-{list,instace} options
Add xo_xml_leader(), to detect use of some bogus XML tags. It's still bad form, but it's a little safer now
Avoid call to xo_write before xo_flush, since the latter calls the former
Check return code from xo_flush_h properly (<0) (FreeBSD Bug 236935)
For JSON output, avoid newline before a container's close brace (#62)
Merge branch 'text_only' of https://github.com/zvr/libxo into zvr-text_only
Use XO_USE_INT_RETURN_CODES, not USE_INT_RETURN_CODES
add docs for --continuation
add docs for --not-first
call xo_state_set_flags before values and close containers; add XOIF_MADE_OUTPUT flag to track state; make proper empty JSON objects in xo_finish
color_map code has to be #ifdef'd out, since the struct definition
correct xo_flush_func_t (doesn't use xo_ssize_t)
make depth change for --top-wrap only for JSON
fix to handle --top-wrap in "xo" by being more consistent with handling trailing newlines
fix to handle text-only version #64 (from zvr)
fix xo_buf_has_room for round up to the next XO_BUFSIZ, not just add XO_BUFSIZ to the size (FreeBSD Bug 236937)
update docs for new "xo" options
update functions to use xo_ssize_t
update test cases
from 1.0.1:
Add EINTEGRITY to .pot files under test/gettext/ (fix from FreeBSD)
from 1.0.2:
handle failure from xo_vnsprintf; don't add -1 to "rc"

PR: 236937, 236935
Submitted by: phil
Reported by: Alfonso S. Siciliano <alfix86@gmail.com>
MFC after: 2 weeks
16dd3b375ccf53145e514bb0774738c0e21c1942 23-May-2018 phil <phil@FreeBSD.org> Import libxo-0.9.0:
- Add xo_format_is_numeric() with improved logic to decide if format
strings are numeric, so json output quotes them
- Convert docs to sphinx/rst
- update tests

Includes fix for PR 221676:
https://github.com/Juniper/libxo/commit/27d3021cc3cc8cfbe9ddee5930cd7a9afea8f68f#diff-5a0d468963477f7daedb8308c219dd80

PR: 221676
MFC after: 5 days
a598c4b809a73772d7452991213407cdac302156 31-Oct-2017 bdrewery <bdrewery@FreeBSD.org> DIRDEPS_BUILD: Update dependencies.

Sponsored by: Dell EMC Isilon
akefile.depend
ests/Makefile.depend
a4164f0dcdb68cb39e09bce5c55e2d178c851714 31-Oct-2017 bdrewery <bdrewery@FreeBSD.org> DIRDEPS_BUILD: Connect new directories.

Sponsored by: Dell EMC Isilon
ests/encoder/Makefile.depend
9b1f91963de202c56c5cd1ced57d8b63f44ce575 03-Aug-2017 ngie <ngie@FreeBSD.org> MFhead@r322023
ests/Makefile
f458f4f81d0a07a22a0c74f460ed1edba959a4cc 03-Aug-2017 ngie <ngie@FreeBSD.org> MFhead@r322021
cc13ae8060375dbcebbd523ac2664667001cf8b2 03-Aug-2017 phil <phil@FreeBSD.org> Update from libxo-0.8.1 to 0.8.4:
0.8.4:
- void anchor width optimization when we have a custom formatter (https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=221130)
- make "{[:/18}" do the right thing (also allows "{[:/%s}", wide ? 40 : 10)
- Can't skip anchor formatting in non-display styles
- add test case for {[:/18}
- add upload-xohtml-files to 'make upload'
0.8.3:
- xohtml: Add "-w" option to pull support files from gh_pages
- Add "upload-xohtml-files" target to publish support files in gh_pages/
- add HISTORY/AUTHORS section to man pages
0.8.2:
- xohtml: Add div.units as standard CSS text
- Don't treat values as format strings; they are not
- add "-p" to "mkdir -p build" in setup.sh
- add test case for {U:%%} (from df.c)
- detect end-of-string in '%' and '' escaping
- make xo_simple_field, for common simple cases
- xohtml: nuke "n" in "echo" commands
- rename "format" to "fmt" for consistency; same for "str" to "value"

Submitted by: phil
dd.man
o_config.h
d26727d972ca073241d551b56337307b4d8c964d 02-Aug-2017 ngie <ngie@FreeBSD.org> Add HAS_TESTS to all Makefiles that are currently using the
`SUBDIR.${MK_TESTS}+= tests` idiom.

This is a follow up to r321912.
akefile
734d081ed10eb185d7ad62979e985fcefc6992b3 02-Aug-2017 ngie <ngie@FreeBSD.org> MFhead@r321912
akefile
d810089ddfa9009702539432f1fa6be18574a3b9 02-Aug-2017 ngie <ngie@FreeBSD.org> Convert traditional ${MK_TESTS} conditional idiom for including test
directories to SUBDIR.${MK_TESTS} idiom

This is being done to pave the way for future work (and homogenity) in
^/projects/make-check-sandbox .

No functional change intended.

MFC after: 1 weeks
akefile
c68749766dc7faadad498aa16711a558dac59ab0 30-Jun-2017 phil <phil@FreeBSD.org> Fix functional_test.sh to use --libxo options instead of the deprecated
LIBXO_OPTIONS environment variable.

Submitted by: phil
ests/functional_test.sh
f408ea744d5fe28b85993598cffeb685217843fd 09-Jun-2017 phil <phil@FreeBSD.org> Import libxo-0.8.1 with official fix to today's build break.

Submitted by: phil
dd.man
o_config.h
3bde4e7c551056da12602622f604ef04d6657fad 08-Jun-2017 phil <phil@FreeBSD.org> Import libxo-0.8.0:
- addition of --libxo colors=xxxxx color map (so I never see "blue")
- fix bugs from -fsanitize=address and =undefined
- utf-8 changes (remove support fore 6 byte utf-8 values, which are "historical")
- add comments
- fix man pages
- update test cases

Submitted by: phil
Reviewed by: sjg
Approved by: sjg (mentor)
dd.man
o_config.h
ce139526b68afd6e4851c47cd9cc5a35a361933d 16-May-2017 phil <phil@FreeBSD.org> Import libxo-0.7.2; add xo_options.7.

Submitted by: phil
Reviewed by: sjg
Approved by: sjg (mentor)
1e8a273eb3a626267d7071aa6e92a78ee2c8955a 07-Mar-2017 rgrimes <rgrimes@FreeBSD.org> The relative symlink fix causes downstream issues for
EMC DELL Isilon so revert the relative symlink fix
pending a better solution.

Reported by: ngie
Approved by: greham (mentor) Implicit as reverting
MFC after: 1 week
ests/encoder/Makefile
76d0a7b2265b160301cbdd4435478ea462e1deb3 07-Mar-2017 rgrimes <rgrimes@FreeBSD.org> Convert absolute links to relative links.
Style.Makefile(9) has been ignored to produce minimal diffs.

Approved by: grehan (mentor)
MFC after: 1 week
ests/encoder/Makefile
ecdefc65a1b28ecf9a3e9ea527ab67cd3baac263 29-May-2016 phil <phil@FreeBSD.org> Submitted by: phil
Reviewed by: sjg (mentor)
Approved by: sjg
dd.man
o_config.h
92100036c841e961994633b0de4fdbc3c8217fb7 04-May-2016 ngie <ngie@FreeBSD.org> Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installed
after r298107

Summary of changes:

- Replace all instances of FILES/TESTS with ${PACKAGE}FILES. This ensures that
namespacing is kept with FILES appropriately, and that this shouldn't need
to be repeated if the namespace changes -- only the definition of PACKAGE
needs to be changed
- Allow PACKAGE to be overridden by callers instead of forcing it to always be
`tests`. In the event we get to the point where things can be split up
enough in the base system, it would make more sense to group the tests
with the blocks they're a part of, e.g. byacc with byacc-tests, etc
- Remove PACKAGE definitions where possible, i.e. where FILES wasn't used
previously.
- Remove unnecessary TESTSPACKAGE definitions; this has been elided into
bsd.tests.mk
- Remove unnecessary BINDIRs used previously with ${PACKAGE}FILES;
${PACKAGE}FILESDIR is now automatically defined in bsd.test.mk.
- Fix installation of files under data/ subdirectories in lib/libc/tests/hash
and lib/libc/tests/net/getaddrinfo
- Remove unnecessary .include <bsd.own.mk>s (some opportunistic cleanup)

Document the proposed changes in share/examples/tests/tests/... via examples
so it's clear that ${PACKAGES}FILES is the suggested way forward in terms of
replacing FILES. share/mk/bsd.README didn't seem like the appropriate method
of communicating that info.

MFC after: never probably
X-MFC with: r298107
PR: 209114
Relnotes: yes
Tested with: buildworld, installworld, checkworld; buildworld, packageworld
Sponsored by: EMC / Isilon Storage Division
ests/Makefile
ests/encoder/Makefile
6549ef7d128d37c0dfff87f6c1c189b42ed3e1ef 16-Apr-2016 gjb <gjb@FreeBSD.org> MFH

Sponsored by: The FreeBSD Foundation
ec6357ca208a98134a4c3a92b27cc6f8036a057f 15-Apr-2016 phil <phil@FreeBSD.org> Import to 0.6.1
0.5.0:
document "trim" modifier
add xo_emit_field functions
Add xo_set_file{,_h} functions
Fix LIBXO_* variables; add -L and -I as needed
add --disable-silent-rules and an explicit make; s/PACKAGE-NAME/PACKAGE_NAME/; add /download/ to 'url'
fix silliness where xo_flush_h emitted closing tag (html); make the caller (xo_message) do it
flush after transitions; fix flush call in xo_do_emit
mkdir the version-specific packaging dir
use "XO_" instead of LIBXO_

0.6.0:
Add --with-retain-size to set the size (in bits) of the retain hash buckets
Add The Argument Modifier ({a:})
Add retain and no-retain to --libxo
autoconf: Add test for monitor.h
Document quote heuristic
go deep with nroff backslashes
Use "ULL" for 32 bit check
add xo_retain_clear and xo_retain_clear_all
docs: combine two 'handles' section; move command line argument section
handle GETTEXT when msgfmt isn't where it's supposed to be (FreeBSD)
make 'retain' a flag (XOEF_RETAIN) instead of a role; it's simpler, and doesn't feel as tacky. "{R:}" was painful to document, which means it's painful to use.
new xo_emit_f functions
nuke some unused UNUSEDs
test code: path must be static
update test cases

0.6.1:
fix version number (missed a commit during new-release)

Reviewed by: sjg
Approved by: sjg (mentor)
3115fdeded44fbb337c8cb3062b7f5bb11781357 15-Apr-2016 phil <phil@FreeBSD.org> import libxo-0.4.7
Fix bug w/ {e:} in html, where no default encoding format was built
docs: "t" == "trim" (typo) (cf svn commit: r290445 - head/contrib/libxo/libxo)

Reviewed by: sjg
Approved by: sjg (mentor)
dd.man
o_config.h
cad5e8d3bce52708ae6b253a4427d56b4befd46c 13-Apr-2016 gjb <gjb@FreeBSD.org> MFH

Sponsored by: The FreeBSD Foundation
47a6833363ee968ee9043b2fd0cb32a3c167381e 12-Apr-2016 phil <phil@FreeBSD.org> Merge libxo 0.4.6

Reviewed by: sjg
Approved by: sjg (mentor)
1dc4c40e3b35564cb2e787ad968e6b4a9fb7eb0f 04-Apr-2016 gjb <gjb@FreeBSD.org> MFH

Sponsored by: The FreeBSD Foundation
4ebe6248230e1b4c3e84736ca2e37e21b73a060c 17-Mar-2016 sjg <sjg@FreeBSD.org> xo_config.h no longer in contrib, so -I's needed

PR: /homes/sjg/commit-logs/freebsd/libxo/xo_config.diff
Reviewed by: jkim
ests/Makefile
80ed67b94bf9672dfc7fad678086e9e935fa7004 17-Mar-2016 sjg <sjg@FreeBSD.org> We need libutil

and make it feasible to at least build the tests in situ
ests/Makefile
1dac3be00b270b8bf8d77d06e246c78cb624ec49 16-Mar-2016 phil <phil@FreeBSD.org> Move generated file from contrib to build directory.

Reviewed by: obrien
Approved by: sjg
akefile
o_config.h
1c7e318a9a31cae130bd5b2de01d93e7800f66ff 10-Mar-2016 gjb <gjb@FreeBSD.org> MFH

Sponsored by: The FreeBSD Foundation
aab40fdc3dd7956f91ad07b7f4503747162b3587 09-Mar-2016 bdrewery <bdrewery@FreeBSD.org> DIRDEPS_BUILD: Connect MK_TESTS.

Sponsored by: EMC / Isilon Storage Division
ests/Makefile.depend
fef2698edfa99e7a2c6cc18a04b5261c08130f45 04-Feb-2016 gjb <gjb@FreeBSD.org> First pass through library packaging.

Sponsored by: The FreeBSD Foundation
akefile
a6998ad84f9722c560a80302a74fa495e818a153 02-Feb-2016 gjb <gjb@FreeBSD.org> First pass to fix the 'tests' packages.

Sponsored by: The FreeBSD Foundation
ests/Makefile
ests/encoder/Makefile
e13d6f8b3f1e6da25895f42f0e3321a23b4d2132 25-Nov-2015 bdrewery <bdrewery@FreeBSD.org> META MODE: Prefer INSTALL=tools/install.sh to lessen the need for xinstall.host.

This both avoids some dependencies on xinstall.host and allows
bootstrapping on older releases to work due to lack of at least 'install -l'
support.

Sponsored by: EMC / Isilon Storage Division
akefile.depend
5c0da1966cae498c05787547279f17707ffb1967 18-Oct-2015 ngie <ngie@FreeBSD.org> Make libxo depend on libutil because it uses humanize_number after r287111

Remove overlinking in lib/libxo/tests, sbin/savecore, and
usr.bin/{iscsictl,wc,xo}

PR: 203673
Sponsored by: EMC / Isilon Storage Division
akefile
ests/Makefile
ests/encoder/Makefile
3cab7edfb2189584bee4dcc9949573aaaa5f9861 08-Oct-2015 peter <peter@FreeBSD.org> Move SHLIBDIR?=/lib before <src.opts.mk> so that it works again.
akefile
ec4808a9a6dc06c810390ae575d25b684ab11b99 06-Oct-2015 ngie <ngie@FreeBSD.org> Add directory for test encoder missed by accident in r288929

Sponsored by: EMC / Isilon Storage Division
ests/encoder/Makefile
ec96fc8eab059ccb953b60454e8c2ff8bace647f 06-Oct-2015 ngie <ngie@FreeBSD.org> Remove a comment from an earlier iteration of trying to figure out how the
test encoder testcases worked
ests/Makefile
f58058013980356377f50c3a82eeeb144908c8fa 06-Oct-2015 ngie <ngie@FreeBSD.org> Integrate the tests from libxo into the FreeBSD test suite

The functional_test.sh harness for each test subdir was inspired
by the version in bin/sh/tests/functional_test.sh

Some gymnastics were required to deal with implicit rules for
.c / .o -> .out as the suffix transformation rules were
incorrectly trying to create the test outputs from some of the
source files

Sponsored by: EMC / Isilon Storage Division
akefile
ests/Makefile
ests/functional_test.sh
f61b60624c8d04156826dd91d4c4e605f76248dd 06-Oct-2015 ngie <ngie@FreeBSD.org> Use LIBXOSRC instead of LIBXO when defining the path to contrib/libxo

The latter is already defined in bsd.libnames.mk, so avoid the conflict
in case someone copy-pastes make variables

While here, switch path to the top of the source tree with SRCTOP
akefile
bdebc05d9417fe87fb9c6fbf22dfd293e2068165 17-Sep-2015 bdrewery <bdrewery@FreeBSD.org> Update META_MODE dependencies.
akefile.depend
02ffac2cca7d10e6d7dd08bf0312f623bf082268 24-Aug-2015 marcel <marcel@FreeBSD.org> Upgrade libxo to 0.4.5.

Local changes incorporated by 0.4.5: r284340
Local changes retained: r276260, r282117

Obtained from: https://github.com/Juniper/libxo
akefile
594e07bd1b11504215f7e800f4aad9672c6a14a2 15-Jun-2015 bapt <bapt@FreeBSD.org> Revert r284417 it is not necessary anymore
akefile
9fb85ece8b4762e6e233907d48c333aba4b450b7 15-Jun-2015 bapt <bapt@FreeBSD.org> Enforce overwritting SHLIBDIR

Since METAMODE has been added, sys.mk loads bsd.mkopt.mk which ends load loading
bsd.own.mk which then defines SHLIBDIR before all the Makefile.inc everywhere.

This makes /lib being populated again.

Reported by: many
akefile
008d7c831feeec7a3430b92f009e28762c6740f1 13-Jun-2015 sjg <sjg@FreeBSD.org> Add META_MODE support.

Off by default, build behaves normally.
WITH_META_MODE we get auto objdir creation, the ability to
start build from anywhere in the tree.

Still need to add real targets under targets/ to build packages.

Differential Revision: D2796
Reviewed by: brooks imp
75a137820de70f75cd932fd2fa365fabaf06fa90 08-Jun-2015 sjg <sjg@FreeBSD.org> dirdeps.mk now sets DEP_RELDIR
akefile.depend
65145fa4c81da358fcbc3b650156dab705dfa34e 27-May-2015 sjg <sjg@FreeBSD.org> Merge sync of head
ccd66731b4fbf326f52ead106e5c4b67656100f3 27-Apr-2015 marcel <marcel@FreeBSD.org> Upgrade libxo to 0.3.2.

Obtained from: https://github.com/Juniper/libxo/tree/0.3.2
Requested by: Phil Shafer <phil@juniper.net>

This import incorporates local change 279966.
Local change 276260 has been merged-in.
akefile
ea59bea59330a848548ce834189e97959e8ebae4 19-Jan-2015 marcel <marcel@FreeBSD.org> Upgrade libxo to 0.2.0.

Obtained from: https://github.com/Juniper/libxo
Requested by: Phil Shafer <phil@juniper.net>

Revisions 276253 & 276273 were incorporated into 0.2.0.
Revision 276260 has been merged-in.
akefile
e257fca333058f943de24b04757f44f53c7788dc 25-Dec-2014 alfred <alfred@FreeBSD.org> Move libxo to /lib

Update ObsoleteFiles to reflect libxo move.

Reviewed by: ngie
Differential Revision: https://reviews.freebsd.org/D1370
akefile
42c6265ce20dbf3b0e2f32d4b65e7633e9de96a3 04-Dec-2014 brueffer <brueffer@FreeBSD.org> Add MLINKs for all functions described in the libxo manpages.
akefile
e909cd6c36ba76e0e2cd9682e08cd94ce5fec8e1 19-Nov-2014 sjg <sjg@FreeBSD.org> Updated/new dependencies
akefile.depend
1c9fbedf833fe685d563e3d1751d4830649757e2 23-Oct-2014 marcel <marcel@FreeBSD.org> Hook libxo to the build.

Sponsored by: Juniper Networks, Inc.
akefile