Skip to content

Commit

Permalink
Merge pull request #3444 from citrus-it/pkgupd
Browse files Browse the repository at this point in the history
Core package updates
  • Loading branch information
hadfl authored Jan 10, 2024
2 parents f44d7f8 + 61d039b commit 69da0c0
Show file tree
Hide file tree
Showing 15 changed files with 135 additions and 50 deletions.
5 changes: 2 additions & 3 deletions build/ntpsec/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
# http://www.illumos.org/license/CDDL.
# }}}

# Copyright 2023 OmniOS Community Edition (OmniOSce) Association.
# Copyright 2024 OmniOS Community Edition (OmniOSce) Association.

. ../../lib/build.sh

PROG=ntpsec
VER=1.2.2
VER=1.2.3
PKG=service/network/ntpsec
SUMMARY="Network time services"
DESC="A secure, hardened and improved Network Time Protocol implementation"
Expand Down Expand Up @@ -47,7 +47,6 @@ CONFIGURE_OPTS="
--libdir=$PYTHONVENDOR/ntp
--enable-manpage --disable-doc
--nopyc --nopyo --nopycache
--enable-debug-gdb
"
CONFIGURE_OPTS[WS]="
--build-desc=\"$DISTRO $RELVER\"
Expand Down
18 changes: 11 additions & 7 deletions build/ntpsec/local.mog
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,17 @@
# source. A copy of the CDDL is also available via the Internet at
# http://www.illumos.org/license/CDDL.

# Copyright 2022 OmniOS Community Edition (OmniOSce) Association.

license LICENSES/BSD-2 license=simplified-BSD
license LICENSES/BSD-3 license=modified-BSD
license LICENSES/MIT license=MIT
license LICENSES/CC-BY-4.0 license=skipCC
license LICENSES/NTP license=skipNTP
# Copyright 2024 OmniOS Community Edition (OmniOSce) Association.

license LICENSES/Apache-2.0.txt license=Apache2
license LICENSES/BSD-2-Clause.txt license=simplified-BSD
license LICENSES/BSD-3-Clause.txt license=modified-BSD
license LICENSES/BSD-4-Clause.txt license=modified-BSD
license LICENSES/ISC.txt license=ISC
license LICENSES/MIT.txt license=MIT
license LICENSES/Beerware.txt license=skip/beerware
license LICENSES/CC-BY-4.0.txt license=skip/CC
license LICENSES/NTP.txt license=skip/NTP

# Skip dependency detection for python programs that break the dependency
# checker - more investigation required here.
Expand Down
2 changes: 1 addition & 1 deletion build/ntpsec/patches/asciidoc.patch
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
diff -wpruN '--exclude=*.orig' a~/wafhelpers/asciidoc.py a/wafhelpers/asciidoc.py
diff -wpruN --no-dereference '--exclude=*.orig' a~/wafhelpers/asciidoc.py a/wafhelpers/asciidoc.py
--- a~/wafhelpers/asciidoc.py 1970-01-01 00:00:00
+++ a/wafhelpers/asciidoc.py 1970-01-01 00:00:00
@@ -37,8 +37,7 @@ def configure(ctx):
Expand Down
13 changes: 13 additions & 0 deletions build/ntpsec/patches/clockwork.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff -wpruN --no-dereference '--exclude=*.orig' a~/libntp/clockwork.c a/libntp/clockwork.c
--- a~/libntp/clockwork.c 1970-01-01 00:00:00
+++ a/libntp/clockwork.c 1970-01-01 00:00:00
@@ -39,8 +39,8 @@
*/
int ntp_adjtime_ns(struct timex *ntx)
{
-#ifdef STA_NANO
static bool nanoseconds = false;
+#ifdef STA_NANO
static bool initial_call = true;
if (initial_call)
{
12 changes: 6 additions & 6 deletions build/ntpsec/patches/conf.patch
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

Re-locate the default configuration file from /etc/ to /etc/inet/

diff -wpruN '--exclude=*.orig' a~/docs/includes/ntp-conf-body.adoc a/docs/includes/ntp-conf-body.adoc
diff -wpruN --no-dereference '--exclude=*.orig' a~/docs/includes/ntp-conf-body.adoc a/docs/includes/ntp-conf-body.adoc
--- a~/docs/includes/ntp-conf-body.adoc 1970-01-01 00:00:00
+++ a/docs/includes/ntp-conf-body.adoc 1970-01-01 00:00:00
@@ -3,14 +3,14 @@
Expand Down Expand Up @@ -30,7 +30,7 @@ diff -wpruN '--exclude=*.orig' a~/docs/includes/ntp-conf-body.adoc a/docs/includ
the default name of the configuration file
`ntp.keys`::
private keys
diff -wpruN '--exclude=*.orig' a~/docs/ntpsec.adoc a/docs/ntpsec.adoc
diff -wpruN --no-dereference '--exclude=*.orig' a~/docs/ntpsec.adoc a/docs/ntpsec.adoc
--- a~/docs/ntpsec.adoc 1970-01-01 00:00:00
+++ a/docs/ntpsec.adoc 1970-01-01 00:00:00
@@ -213,7 +213,7 @@ to the security-critical core.
Expand All @@ -55,7 +55,7 @@ diff -wpruN '--exclude=*.orig' a~/docs/ntpsec.adoc a/docs/ntpsec.adoc
more configuration declarations. Only files with the extension
".conf" are interpreted; others are ignored. This feature is
intended to make assembling configuration easier for administration
diff -wpruN '--exclude=*.orig' a~/include/ntp_config.h a/include/ntp_config.h
diff -wpruN --no-dereference '--exclude=*.orig' a~/include/ntp_config.h a/include/ntp_config.h
--- a~/include/ntp_config.h 1970-01-01 00:00:00
+++ a/include/ntp_config.h 1970-01-01 00:00:00
@@ -18,7 +18,7 @@
Expand All @@ -67,7 +67,7 @@ diff -wpruN '--exclude=*.orig' a~/include/ntp_config.h a/include/ntp_config.h
#endif /* not CONFIG_FILE */
#define CONFIG_DIR "ntp.d"

diff -wpruN '--exclude=*.orig' a~/ntpclients/ntpleapfetch a/ntpclients/ntpleapfetch
diff -wpruN --no-dereference '--exclude=*.orig' a~/ntpclients/ntpleapfetch a/ntpclients/ntpleapfetch
--- a~/ntpclients/ntpleapfetch 1970-01-01 00:00:00
+++ a/ntpclients/ntpleapfetch 1970-01-01 00:00:00
@@ -28,7 +28,7 @@ MAXTRIES=6
Expand All @@ -79,10 +79,10 @@ diff -wpruN '--exclude=*.orig' a~/ntpclients/ntpleapfetch a/ntpclients/ntpleapfe

# How long before expiration to get updated file
PREFETCH="60 days"
diff -wpruN '--exclude=*.orig' a~/pylib/packet.py a/pylib/packet.py
diff -wpruN --no-dereference '--exclude=*.orig' a~/pylib/packet.py a/pylib/packet.py
--- a~/pylib/packet.py 1970-01-01 00:00:00
+++ a/pylib/packet.py 1970-01-01 00:00:00
@@ -1728,7 +1728,7 @@ class Authenticator:
@@ -1723,7 +1723,7 @@ class Authenticator:
return (keyid,) + self.passwords[keyid]
else:
return (keyid, None, None)
Expand Down
2 changes: 1 addition & 1 deletion build/ntpsec/patches/nonet.patch
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Always pass --nonet to xsltproc to avoid it checking for updated
stylesheets.

diff -wpruN '--exclude=*.orig' a~/wafhelpers/asciidoc.py a/wafhelpers/asciidoc.py
diff -wpruN --no-dereference '--exclude=*.orig' a~/wafhelpers/asciidoc.py a/wafhelpers/asciidoc.py
--- a~/wafhelpers/asciidoc.py 1970-01-01 00:00:00
+++ a/wafhelpers/asciidoc.py 1970-01-01 00:00:00
@@ -120,6 +120,7 @@ def configure(ctx):
Expand Down
6 changes: 3 additions & 3 deletions build/ntpsec/patches/pie.patch
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
Support for position independent executable is detected but then GCC fails
to link the NTP daemon. Disable the PIE test for now.

diff -wpruN '--exclude=*.orig' a~/wscript a/wscript
diff -wpruN --no-dereference '--exclude=*.orig' a~/wscript a/wscript
--- a~/wscript 1970-01-01 00:00:00
+++ a/wscript 1970-01-01 00:00:00
@@ -300,7 +300,7 @@ def configure(ctx):
@@ -299,7 +299,7 @@ def configure(ctx):

cc_test_flags = [
('f_stack_protector_all', '-fstack-protector-all'),
('PIC', '-fPIC'),
- ('PIE', '-pie -fPIE'),
+ #('PIE', '-pie -fPIE'),
Expand Down
1 change: 1 addition & 0 deletions build/ntpsec/patches/series
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ conf.patch
nonet.patch
unneeded_libs.patch
asciidoc.patch
clockwork.patch
4 changes: 2 additions & 2 deletions build/ntpsec/patches/unneeded_libs.patch
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
diff -wpruN '--exclude=*.orig' a~/wscript a/wscript
diff -wpruN --no-dereference '--exclude=*.orig' a~/wscript a/wscript
--- a~/wscript 1970-01-01 00:00:00
+++ a/wscript 1970-01-01 00:00:00
@@ -276,8 +276,8 @@ def configure(ctx):
Expand Down Expand Up @@ -29,5 +29,5 @@ diff -wpruN '--exclude=*.orig' a~/wscript a/wscript
- ctx.env.LDFLAGS += ["-lssp_nonshared"]
-
cc_test_flags = [
('f_stack_protector_all', '-fstack-protector-all'),
('PIC', '-fPIC'),
#('PIE', '-pie -fPIE'),
15 changes: 5 additions & 10 deletions build/ntpsec/testsuite.log
Original file line number Diff line number Diff line change
Expand Up @@ -335,11 +335,13 @@ TEST(macencrypt, Encrypt) PASS
TEST(macencrypt, DecryptValid) PASS
TEST(macencrypt, DecryptInvalid) PASS
TEST(macencrypt, CMAC_Encrypt) PASS
TEST(macencrypt, CMAC_Encrypt) PASS
TEST(macencrypt, DecryptValidCMAC) PASS
TEST(macencrypt, DecryptInvalidCMAC) PASS
TEST(macencrypt, IPv4AddressToRefId) PASS
TEST(macencrypt, IPv6AddressToRefId) PASS
TEST(macencrypt, null_trunc) PASS
TEST(macencrypt, CMAC_TestVectors) PASS
TEST(numtoa, RefidStr) PASS
TEST(prettydate, ConstantDate) PASS
TEST(prettydate, Rfc3339Date1) PASS
Expand All @@ -361,13 +363,6 @@ TEST(statestr, PeerRestart) PASS
TEST(statestr, SysUnspecified) PASS
TEST(statestr, ClockCodeExists) PASS
TEST(statestr, ClockCodeUnknown) PASS
TEST(strtolfp, PositiveInteger) PASS
TEST(strtolfp, NegativeInteger) PASS
TEST(strtolfp, PositiveFraction) PASS
TEST(strtolfp, NegativeFraction) PASS
TEST(strtolfp, PositiveMsFraction) PASS
TEST(strtolfp, NegativeMsFraction) PASS
TEST(strtolfp, InvalidChars) PASS
TEST(timespecops, Helpers1) PASS
TEST(timespecops, Normalise) PASS
TEST(timespecops, SignNoFrac) PASS
Expand Down Expand Up @@ -411,7 +406,7 @@ TEST(ymd2yd, LeapYearFebruary) PASS
TEST(ymd2yd, LeapYearDecember) PASS

-----------------------
155 Tests 0 Failures 0 Ignored
150 Tests 0 Failures 0 Ignored
OK

*** stderr ***
Expand Down Expand Up @@ -493,9 +488,9 @@ RETURN VALUE: 0
*** stdout ***

*** stderr ***
...
....
----------------------------------------------------------------------
Ran 3 tests
Ran 4 tests

OK

Expand Down
4 changes: 2 additions & 2 deletions build/sudo/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
# }}}
#
# Copyright 2011-2012 OmniTI Computer Consulting, Inc. All rights reserved.
# Copyright 2023 OmniOS Community Edition (OmniOSce) Association.
# Copyright 2024 OmniOS Community Edition (OmniOSce) Association.

. ../../lib/build.sh

PROG=sudo
VER=1.9.15p4
VER=1.9.15p5
PKG=security/sudo
SUMMARY="Authority delegation tool"
DESC="Provide limited super-user privileges to specific users"
Expand Down
4 changes: 2 additions & 2 deletions build/swig/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
# http://www.illumos.org/license/CDDL.
# }}}
#
# Copyright 2022 OmniOS Community Edition (OmniOSce) Association.
# Copyright 2024 OmniOS Community Edition (OmniOSce) Association.

. ../../lib/build.sh

PROG=swig
VER=4.1.1
VER=4.2.0
PKG=developer/swig
SUMMARY="The Simplified Wrapper and Interface Generator (swig)"
DESC="A compiler that integrates C and C++ with languages including Perl, "
Expand Down
8 changes: 4 additions & 4 deletions build/swig/patches/unneeded-libs.patch
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
diff -wpruN '--exclude=*.orig' a~/configure.ac a/configure.ac
diff -wpruN --no-dereference '--exclude=*.orig' a~/configure.ac a/configure.ac
--- a~/configure.ac 1970-01-01 00:00:00
+++ a/configure.ac 1970-01-01 00:00:00
@@ -465,7 +465,7 @@ case $host in
@@ -457,7 +457,7 @@ case $host in
esac

# Check for specific libraries. Used for SWIG examples
Expand All @@ -10,7 +10,7 @@ diff -wpruN '--exclude=*.orig' a~/configure.ac a/configure.ac
AC_CHECK_LIB(dld, shl_load) # Dynamic linking for HP-UX

dnl The following three libraries (nsl,inet,socket) are needed on Sequent,
@@ -475,9 +475,9 @@ dnl
@@ -467,9 +467,9 @@ dnl
dnl Most SVR4 platforms will need -lsocket and -lnsl. However on SGI IRIX 5,
dnl these exist but are broken, so we use AC_SEARCH_LIBS which will only try
dnl the library if the function isn't already available without it.
Expand All @@ -22,7 +22,7 @@ diff -wpruN '--exclude=*.orig' a~/configure.ac a/configure.ac

# check for --with-libm=...
AC_SUBST(LIBM)
@@ -487,7 +487,7 @@ if test "$withval" != yes
@@ -479,7 +479,7 @@ if test "$withval" != yes
then LIBM=$withval
else AC_MSG_ERROR([proper usage is --with-libm=STRING])
fi])
Expand Down
Loading

0 comments on commit 69da0c0

Please sign in to comment.