Skip to content

Commit

Permalink
sfsexp: update to 1.4.1.
Browse files Browse the repository at this point in the history
1.4.1

Summary

This is a bug fix release that addresses a race condition that can
occur in multi-threaded programs when memory management is enabled.
In previous versions of the library memory management was enabled
by default. This is no longer the case, and it must be enabled
explicitly at configure time.

Explanation of bug: The global variables used for caching and
reusing allocated structures and the functions that manipulate them
do not currently protect critical sections to guarantee atomicity
which can lead to failures in multithreaded programs. The current
fix is to disable memory management by compiling with the
_NO_MEMORY_MANAGEMENT_ directive such that the thread-unsafe code
must be enabled explicitly. The unsafe code may be removed in future
releases if performance evaluation determines that it is a legacy
feature that no longer provides a tangible performance benefit. If
it does provide a measurable benefit, a thread-safe fix will be
implemented.

1.4.0

Updates

    updates to build and installation process, pkg-config
    rename package from sexpr to sfsexp to avoid confusion
    documentation updates
    additional UTF-8 tests
    removal of archaic code that is no longer necessary
    fix for sexp_to_dotfile looping on empty lists
    update sexpvis.c to add arguments

Pull request changes

    generate pkgconfig file during configure by @bremner in #5
    make _sexp_to_dot static / hidden by @bremner in #4
    fix for sexp_to_dotfile looping on empty lists by @bremner in #8
    add some simple non-ascii tests by @bremner in #6
    remove archive/ by @bremner in #10
    Install sfsexp.pc file by @ryoon in #11
    Honor LDFLAGS to fix RELRO build, for example by @ryoon in #12
    Enhance markdown in README.md by @jpellegrini in #13
    Rename sexpr to sfsexp by @mjg in #17
    Pkgincludedir by @mjg in #18
  • Loading branch information
wiz committed Apr 26, 2023
1 parent 3fd7e02 commit 910a8b9
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 23 deletions.
14 changes: 3 additions & 11 deletions devel/sfsexp/Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
# $NetBSD: Makefile,v 1.1 2021/11/01 14:15:42 ryoon Exp $
# $NetBSD: Makefile,v 1.2 2023/04/26 19:36:49 wiz Exp $

GITHUB_PROJECT= sfsexp
DISTNAME= sexpr-1.3.1pre20211025
PKGNAME= ${DISTNAME:S/sexpr-/sfsexp-/}
DISTNAME= sfsexp-1.4.1
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GITHUB:=mjsottile/}
GITHUB_TAG= 30739f9544cfa43212769bb3b4eabfaba44b8ff6
GITHUB_RELEASE= v${PKGVERSION_NOREV}

MAINTAINER= ryoon@NetBSD.org
HOMEPAGE= https://github.com/mjsottile/sfsexp/
Expand All @@ -15,13 +13,7 @@ LICENSE= gnu-lgpl-v2.1
GNU_CONFIGURE= yes
USE_LIBTOOL= yes
USE_LANGUAGES= c c++
USE_TOOLS+= automake

PKGCONFIG_OVERRIDE= sfsexp.pc.in

pre-configure:
set -e; cd ${WRKSRC}; \
${MKDIR} m4; \
aclocal; libtoolize; autoheader; automake -a --foreign -i; autoconf

.include "../../mk/bsd.pkg.mk"
16 changes: 8 additions & 8 deletions devel/sfsexp/PLIST
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
@comment $NetBSD: PLIST,v 1.1 2021/11/01 14:15:42 ryoon Exp $
include/cstring.h
include/faststack.h
include/sexp.h
include/sexp_errors.h
include/sexp_memory.h
include/sexp_ops.h
include/sexp_vis.h
@comment $NetBSD: PLIST,v 1.2 2023/04/26 19:36:49 wiz Exp $
include/sfsexp/cstring.h
include/sfsexp/faststack.h
include/sfsexp/sexp.h
include/sfsexp/sexp_errors.h
include/sfsexp/sexp_memory.h
include/sfsexp/sexp_ops.h
include/sfsexp/sexp_vis.h
lib/libsexp.la
lib/pkgconfig/sfsexp.pc
8 changes: 4 additions & 4 deletions devel/sfsexp/distinfo
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
$NetBSD: distinfo,v 1.1 2021/11/01 14:15:42 ryoon Exp $
$NetBSD: distinfo,v 1.2 2023/04/26 19:36:49 wiz Exp $

BLAKE2s (sexpr-1.3.1pre20211025-30739f9544cfa43212769bb3b4eabfaba44b8ff6.tar.gz) = f2563ac2b68126e4fca2f5f664fb23bf4e21b248f8f9341f308df22af6b1054d
SHA512 (sexpr-1.3.1pre20211025-30739f9544cfa43212769bb3b4eabfaba44b8ff6.tar.gz) = 41c070d67ca317042b9bb4d149f9b52f9966767d1f213a200831277a15a67d414ccbdc5f9665e60a8e3aa8ec774787123a17b9007b8aaebc6c384582f562d3a5
Size (sexpr-1.3.1pre20211025-30739f9544cfa43212769bb3b4eabfaba44b8ff6.tar.gz) = 115585 bytes
BLAKE2s (sfsexp-1.4.1.tar.gz) = 5d26b0fe2d641a04ad8d07226b84773c90d19369040baf5d655e7997202d0e30
SHA512 (sfsexp-1.4.1.tar.gz) = d7625f1b58b12bf34d0d0e9a110bac7ea48ce7b5d9920bb4dd11e5dacf1e9fd998f974fc5da9669797496bb43702319cee44f2e760d0888b2d22db80a55e5f44
Size (sfsexp-1.4.1.tar.gz) = 465297 bytes

0 comments on commit 910a8b9

Please sign in to comment.