Page MenuHomeFreeBSD

michaelo (Michael Osipov)
User

Projects

User Details

User Since
Jul 19 2018, 5:53 PM (329 w, 1 d)

Recent Activity

Today

michaelo added a comment to D47433: libfetch: allow use of SSL_CRL_VERIFY.

FTR: https://httpd.apache.org/docs/2.4/mod/mod_ssl.html#sslcarevocationcheck with chain, leaf, none.

Fri, Nov 8, 10:46 AM

Yesterday

michaelo updated subscribers of D47433: libfetch: allow use of SSL_CRL_VERIFY.

I don't disagree, but introducing multiple vars for the same config isn't better either in my opinion. Consider you want to expose that to the CLI for fetch(1), do you want to introduce multiple switches?

For historic context: right now handling of X509_V_ERR_UNABLE_TO_GET_CRL / D47449 is unconditional for OPNsense due to lack of the scope of this patch here. For FreeBSD inclusion I pondered the side effect of introducing this breaking standard verification behaviour of SSL_CRL_FILE and there it would also be beneficial.

Thu, Nov 7, 8:23 AM

Wed, Nov 6

michaelo added a comment to D47433: libfetch: allow use of SSL_CRL_VERIFY.

Well, then maybe SSL_VERIFY_CRL should not be boolean, but rather an enum? E.g, optional, yes, much like https://httpd.apache.org/docs/current/mod/mod_ssl.html#sslverifyclient because it the end it will require more and more flags. Default value would be none/NULL.

Also doable, but personally I dislike the fuzzy matching on the value to act according to user (case sensitivity and ambiguity of yes and no etc and garbage input). The vars in libfetch are set and forget, if referencing a file or dir letting other parts deal with the complexity of the validation too.

Wed, Nov 6, 12:01 PM
michaelo added a comment to D47433: libfetch: allow use of SSL_CRL_VERIFY.

Like fine, but then CR, not CRL because we don't verify the list, do we? :-D Since it is a *verbose* flag I don't mind being verbose literally.

Technically the list's signature and expiry is verified as well but we could also call it a "check" but then the env var should be renamed for clarity as well? Already expected the naming aspect of it to be difficult but I agree that it should be as good as it can be since it will likely stay that way.

Wed, Nov 6, 11:59 AM
michaelo added a comment to D47433: libfetch: allow use of SSL_CRL_VERIFY.

Oh about SSL_VERIFY or SSL_CRL I'm not sure. Keeping it closer to SSL_CRL_FILE may be more beneficial also with SSL_CRL_OPTIONAL in mind later. Don't want these vars too long if it can be avoided and cluster all CRL into SSL_CRL prefix?

Wed, Nov 6, 11:55 AM
michaelo added a comment to D47433: libfetch: allow use of SSL_CRL_VERIFY.

WDYT?

I'm ok with that, maybe with brevity in mind just this:

CRL verification enabled

But I don't mind either way.

Wed, Nov 6, 11:50 AM
michaelo added a comment to D47433: libfetch: allow use of SSL_CRL_VERIFY.

I see inconsistency in env vars and in output:

Wed, Nov 6, 11:17 AM
michaelo added a comment to D47433: libfetch: allow use of SSL_CRL_VERIFY.

I have now played around with the patch and one of our intermediate CAs:

Wed, Nov 6, 8:55 AM
michaelo added a comment to D47433: libfetch: allow use of SSL_CRL_VERIFY.

While testing this, do you intend to add a flag to fetch(1) as well? E.g., --crl-verify?

Wed, Nov 6, 8:40 AM

Tue, Nov 5

michaelo added inline comments to D47433: libfetch: allow use of SSL_CRL_VERIFY.
Tue, Nov 5, 1:47 PM
michaelo added a comment to D47433: libfetch: allow use of SSL_CRL_VERIFY.

I think I have found it, the documentation isn't really good in this case for both SSL_CTX_load_verify_locations() and SSL_CTX_set_default_verify_paths(). If a hashed dir is passed it boils down to https://github.com/openssl/openssl/blob/ccaa754b5f66cc50d8ecbac48b38268e2acd715e/crypto/x509/x509_d2.c#L73-L76 where the manpage says:

X509_LOOKUP_add_dir() passes a directory specification from which certificates and CRLs are loaded on demand into the associated X509_STORE. type indicates what type of object is expected. This can only be used with a lookup using the implementation X509_LOOKUP_hash_dir(3).

Tue, Nov 5, 1:19 PM
michaelo added inline comments to D47433: libfetch: allow use of SSL_CRL_VERIFY.
Tue, Nov 5, 1:12 PM

Mon, Nov 4

michaelo added a comment to D47433: libfetch: allow use of SSL_CRL_VERIFY.

Will happily look at this, already have a few questions. Will chime in later this week.

Mon, Nov 4, 1:52 PM

Thu, Oct 31

michaelo closed D47164: sysutils/vm-bhyve{,-devel}: Remove unnecessary dependency to security/ca_root_nss.

Change merged.

Thu, Oct 31, 8:55 PM
michaelo committed R11:cee2de980705: sysutils/vm-bhyve{,-devel}: Remove unnecessary dependency to… (authored by michaelo).
sysutils/vm-bhyve{,-devel}: Remove unnecessary dependency to…
Thu, Oct 31, 8:44 PM
michaelo added a comment to D47164: sysutils/vm-bhyve{,-devel}: Remove unnecessary dependency to security/ca_root_nss.

Didn't notice that the devel port is maintained by @driesm ...

Thu, Oct 31, 1:55 PM
michaelo added a reviewer for D47164: sysutils/vm-bhyve{,-devel}: Remove unnecessary dependency to security/ca_root_nss: driesm.
Thu, Oct 31, 1:54 PM
michaelo added a comment to D47164: sysutils/vm-bhyve{,-devel}: Remove unnecessary dependency to security/ca_root_nss.

No objections received, maintainer timeout. Will go ahead and merge it.

Thu, Oct 31, 1:46 PM

Mon, Oct 21

michaelo closed D47217: Invalid unicode characters in MOVED breaks portupgrade & company.
Mon, Oct 21, 3:33 PM
michaelo committed R11:b1422573376d: Invalid unicode characters in MOVED breaks portupgrade & company (authored by michaelo).
Invalid unicode characters in MOVED breaks portupgrade & company
Mon, Oct 21, 3:33 PM
michaelo requested review of D47217: Invalid unicode characters in MOVED breaks portupgrade & company.
Mon, Oct 21, 2:28 PM

Thu, Oct 17

michaelo added a comment to D47164: sysutils/vm-bhyve{,-devel}: Remove unnecessary dependency to security/ca_root_nss.
In D47164#1075300, @jrm wrote:

Assuming @kevans or @des don't chime in to say something is missing in the base certificate store, lgtm.

Thu, Oct 17, 3:16 PM
michaelo requested review of D47164: sysutils/vm-bhyve{,-devel}: Remove unnecessary dependency to security/ca_root_nss.
Thu, Oct 17, 10:29 AM

Sat, Oct 12

michaelo committed rG9525f5726a85: dhclient: Ignore vendor-identifying DHCP options defined in RFC 3925 (authored by michaelo).
dhclient: Ignore vendor-identifying DHCP options defined in RFC 3925
Sat, Oct 12, 12:15 PM
michaelo committed rG36c370fa3e97: dhclient: Ignore vendor-identifying DHCP options defined in RFC 3925 (authored by michaelo).
dhclient: Ignore vendor-identifying DHCP options defined in RFC 3925
Sat, Oct 12, 12:12 PM

Thu, Oct 10

michaelo committed R11:1c33e87ee686: */*: update devel/subversion{,-lts} to 1.14.4 (authored by michaelo).
*/*: update devel/subversion{,-lts} to 1.14.4
Thu, Oct 10, 7:01 AM
michaelo closed D47022: */*: update devel/subversion{,-lts} to 1.14.4.
Thu, Oct 10, 7:00 AM
michaelo committed R11:33666598aa96: */*: update devel/subversion{,-lts} to 1.14.4 (authored by michaelo).
*/*: update devel/subversion{,-lts} to 1.14.4
Thu, Oct 10, 7:00 AM

Oct 9 2024

michaelo requested review of D47022: */*: update devel/subversion{,-lts} to 1.14.4.
Oct 9 2024, 7:58 AM

Oct 7 2024

michaelo closed D46976: print/ghostscript10: print/ghostscript10: update port to 10.04.0.
Oct 7 2024, 6:15 PM
michaelo committed R11:4c55154c02e8: print/ghostscript10: print/ghostscript10: update port to 10.04.0 (authored by michaelo).
print/ghostscript10: print/ghostscript10: update port to 10.04.0
Oct 7 2024, 6:15 PM
michaelo requested review of D46976: print/ghostscript10: print/ghostscript10: update port to 10.04.0.
Oct 7 2024, 3:05 PM
michaelo accepted D46973: fetch: correct env var name for --crl option to work.
Oct 7 2024, 9:35 AM
michaelo added a comment to D46973: fetch: correct env var name for --crl option to work.

This looks like a stupid typo, no?

Oct 7 2024, 9:21 AM

Sep 28 2024

michaelo committed rG38c63b52830c: dhclient: Ignore vendor-identifying DHCP options defined in RFC 3925 (authored by michaelo).
dhclient: Ignore vendor-identifying DHCP options defined in RFC 3925
Sep 28 2024, 8:50 AM
michaelo closed D46760: dhclient: Ignore vendor-identifying DHCP options defined in RFC 3925.
Sep 28 2024, 8:49 AM
michaelo closed D46807: devel/py-subversion{,-lts}: swig-py: Fix `none_dealloc` error (one-off patch).
Sep 28 2024, 8:44 AM
michaelo committed R11:fdad3e1b5329: devel/py-subversion{,-lts}: swig-py: Fix `none_dealloc` error (one-off patch) (authored by michaelo).
devel/py-subversion{,-lts}: swig-py: Fix `none_dealloc` error (one-off patch)
Sep 28 2024, 8:44 AM
michaelo added a comment to D46807: devel/py-subversion{,-lts}: swig-py: Fix `none_dealloc` error (one-off patch).
In D46807#1067249, @jrm wrote:

FYI, when I was testing, I set WITH_SUBVERSION_VER to lts instead of LTS and it wasn't handled as would be expected after a look in devel/subversion/Makefile.addons.

jrm@ser /usr/local/etc/poudriere.d % s poudriere testport -i -j 15amd64 devel/py-subversion
[00:00:00] Creating the reference jail... done
[00:00:00] Mounting system devices for 15amd64-default
[00:00:00] Stashing existing package repository
[00:00:00] Mounting ccache from: /usr/local/poudriere/ccache/15amd64
[00:00:00] Mounting ports from: /usr/ports
[00:00:00] Mounting packages from: /usr/local/poudriere/data/packages/15amd64-default
[00:00:00] Mounting distfiles from: /usr/ports/distfiles
[00:00:00] Copying /var/db/ports from: /usr/local/etc/poudriere.d/15amd64-options
[00:00:00] Appending to make.conf: /usr/local/etc/poudriere.d/15amd64-make.conf
/etc/resolv.conf -> /usr/local/poudriere/data/.m/15amd64-default/ref/etc/resolv.conf
[00:00:00] Starting jail 15amd64-default
Updating /var/run/os-release done.
[00:00:00] Will build as nobody:nobody (65534:65534)
[00:00:01] Ports supports: FLAVORS SUBPACKAGES SELECTED_OPTIONS
[00:00:01] Acquiring build logs lock for 15amd64-default... done
[00:00:01] Logs: /usr/local/poudriere/data/logs/bulk/15amd64-default/2024-09-27_10h24m46s
[00:00:01] WWW: http://pkg.ftfl.ca/build.html?mastername=15amd64-default&build=2024-09-27_10h24m46s
[00:00:01] Loading MOVED for /usr/local/poudriere/data/.m/15amd64-default/ref/usr/ports
[00:00:01] Gathering ports metadata
[00:00:01] Warning: (devel/py-subversion): make: "/usr/ports/Mk/bsd.port.mk" line 1859: Malformed conditional (${WITH_PKG} == devel)
[00:00:01] Warning: (devel/py-subversion): in /usr/share/mk/bsd.port.mk:27
[00:00:01] Warning: (devel/py-subversion): in /usr/share/mk/bsd.port.post.mk:4
[00:00:01] Warning: (devel/py-subversion): in /usr/ports/devel/py-subversion/Makefile:34
[00:00:01] Warning: (devel/py-subversion): make: "/usr/ports/Mk/bsd.ccache.mk" line 78: Malformed conditional (!defined(NO_CCACHE_DEPEND) &&  ${PKGORIGIN} != ${PKG_ORIGIN})
[00:00:01] Warning: (devel/py-subversion): in /usr/ports/Mk/bsd.port.mk:2082
[00:00:01] Warning: (devel/py-subversion): in /usr/share/mk/bsd.port.mk:27
[00:00:01] Warning: (devel/py-subversion): in /usr/share/mk/bsd.port.post.mk:4
[00:00:01] Warning: (devel/py-subversion): in /usr/ports/devel/py-subversion/Makefile:34
[00:00:01] Warning: (devel/py-subversion): make: "/usr/ports/Mk/bsd.port.mk" line 3445: Malformed conditional (${PKGORIGIN} == "ports-mgmt/pkg" || ${PKGORIGIN} == "ports-mgmt/pkg-devel")
[00:00:01] Warning: (devel/py-subversion): in /usr/share/mk/bsd.port.mk:27
[00:00:01] Warning: (devel/py-subversion): in /usr/share/mk/bsd.port.post.mk:4
[00:00:01] Warning: (devel/py-subversion): in /usr/ports/devel/py-subversion/Makefile:34
[00:00:01] Warning: (devel/py-subversion): make: Fatal errors encountered -- cannot continue
[00:00:01] Warning: (devel/py-subversion): Error: Error looking up dependencies for devel/py-subversion
[00:00:01] Error: /usr/local/share/poudriere/testport.sh:gather_port_vars:183:Fatal errors encountered gathering ports metadata
[15amd64-default] [2024-09-27_10h24m46s] [crashed] Time: 00:00:00
[00:00:01] Logs: /usr/local/poudriere/data/logs/bulk/15amd64-default/2024-09-27_10h24m46s
[00:00:01] WWW: http://pkg.ftfl.ca/build.html?mastername=15amd64-default&build=2024-09-27_10h24m46s
[00:00:01] Cleaning up
15amd64-default: removed
15amd64-default-n: removed
[00:00:01] Unmounting file systems
Sep 28 2024, 8:39 AM

Sep 27 2024

michaelo requested review of D46807: devel/py-subversion{,-lts}: swig-py: Fix `none_dealloc` error (one-off patch).
Sep 27 2024, 8:50 AM

Sep 24 2024

michaelo updated the diff for D46760: dhclient: Ignore vendor-identifying DHCP options defined in RFC 3925.

Process comments

Sep 24 2024, 6:49 AM

Sep 23 2024

michaelo requested review of D46760: dhclient: Ignore vendor-identifying DHCP options defined in RFC 3925.
Sep 23 2024, 12:43 PM

Sep 18 2024

michaelo closed D46643: sysutils/msktutil: Update to 1.2.2.

Weird, the maintainer picked up PR, but totally ignored this review....closing.

Sep 18 2024, 2:07 PM
michaelo added a comment to D46643: sysutils/msktutil: Update to 1.2.2.

Friendly reminder that you need a PR in bugzilla for maintainer timeout to apply.

Sep 18 2024, 6:44 AM

Sep 17 2024

michaelo added a comment to D46643: sysutils/msktutil: Update to 1.2.2.

Guys, can we focus on the actual change. I agree with @jrm, that is makes little sense to waste cycles for ./configure. I will provide this change with a separate PR.
There is only one way to make sure that an artifact ist authentic either X.509 or GPG.

Sep 17 2024, 11:16 AM

Sep 15 2024

michaelo updated the diff for D46643: sysutils/msktutil: Update to 1.2.2.

Incorporate @diizzy's comments

Sep 15 2024, 11:06 AM
michaelo added a comment to D46643: sysutils/msktutil: Update to 1.2.2.

Any reason as to why we're not using upstream release archive?
https://github.com/msktutil/msktutil/releases/download/1.2.2/msktutil-1.2.2.tar.bz2
That will also likely get rid of USES= autoreconf

Other notes:
Remove GNU_CONFIGURE_MANPREFIX

Sep 15 2024, 10:12 AM

Sep 14 2024

michaelo added a comment to D46643: sysutils/msktutil: Update to 1.2.2.

Will wait for the maintainer timeout.

Sep 14 2024, 8:23 AM
michaelo added a comment to D46643: sysutils/msktutil: Update to 1.2.2.
In D46643#1063059, @jrm wrote:

lgtm assuming all the necessary poudriere runs pass and @pi has no objections.

Sep 14 2024, 8:23 AM

Sep 11 2024

michaelo added a reviewer for D46643: sysutils/msktutil: Update to 1.2.2: zi.
Sep 11 2024, 1:47 PM
michaelo requested review of D46643: sysutils/msktutil: Update to 1.2.2.
Sep 11 2024, 1:46 PM

Sep 9 2024

michaelo accepted D46601: Drop expired FreeBSD 14.0 support.
Sep 9 2024, 7:11 AM

Aug 20 2024

michaelo closed D46323: devel/maven39: Update to 3.9.9.
Aug 20 2024, 12:20 PM
michaelo committed R11:39233eae5b6d: devel/maven39: Update to 3.9.9 (authored by michaelo).
devel/maven39: Update to 3.9.9
Aug 20 2024, 12:20 PM
michaelo requested review of D46323: devel/maven39: Update to 3.9.9.
Aug 20 2024, 8:11 AM

Aug 15 2024

michaelo closed D46096: devel/subversion{,-lts}: remove port option STATIC.
Aug 15 2024, 10:09 AM
michaelo committed R11:223bd7be7329: devel/subversion{,-lts}: remove port option STATIC (authored by michaelo).
devel/subversion{,-lts}: remove port option STATIC
Aug 15 2024, 10:09 AM

Aug 3 2024

michaelo closed D46059: Mk/: Possible values for "ssl" are inconsistent.
Aug 3 2024, 4:01 PM
michaelo committed R11:4c51f2b5e430: Mk/: Possible values for "ssl" are inconsistent (authored by michaelo).
Mk/: Possible values for "ssl" are inconsistent
Aug 3 2024, 4:01 PM
michaelo added a comment to D46059: Mk/: Possible values for "ssl" are inconsistent.

Issues addressed.

Aug 3 2024, 10:28 AM
michaelo updated the diff for D46059: Mk/: Possible values for "ssl" are inconsistent.

Add mat's comments

Aug 3 2024, 10:27 AM
michaelo added a comment to D46096: devel/subversion{,-lts}: remove port option STATIC.

Passes Poudriere and lgtm,

While out of scope for the PR perhaps it's time to retire the -lts port given upstream development?

Aug 3 2024, 10:21 AM
michaelo added a comment to D46059: Mk/: Possible values for "ssl" are inconsistent.
In D46059#1053623, @mat wrote:

Something like this

Aug 3 2024, 10:20 AM

Aug 2 2024

michaelo added a comment to D46059: Mk/: Possible values for "ssl" are inconsistent.

Anyone else, any objections?

Aug 2 2024, 4:54 PM

Jul 30 2024

michaelo added a comment to D46096: devel/subversion{,-lts}: remove port option STATIC.

@diizzy , can you please have another sharp look at this?

Jul 30 2024, 10:02 AM
michaelo added a reviewer for D46059: Mk/: Possible values for "ssl" are inconsistent: portmgr.
Jul 30 2024, 10:01 AM

Jul 29 2024

michaelo committed rGe5236f640510: dhclient: Ignore SIP servers DHCP option defined in RFC 3361 (authored by naito.yuichiro_gmail.com).
dhclient: Ignore SIP servers DHCP option defined in RFC 3361
Jul 29 2024, 6:22 AM
michaelo committed rG954692a14402: dhclient: Ignore SIP servers DHCP option defined in RFC 3361 (authored by naito.yuichiro_gmail.com).
dhclient: Ignore SIP servers DHCP option defined in RFC 3361
Jul 29 2024, 6:21 AM

Jul 28 2024

michaelo added a comment to D46096: devel/subversion{,-lts}: remove port option STATIC.

@jrm, this happens when pkgconf is not present:

Jul 28 2024, 8:01 PM
michaelo added inline comments to D46096: devel/subversion{,-lts}: remove port option STATIC.
Jul 28 2024, 7:28 PM
michaelo added a comment to D46059: Mk/: Possible values for "ssl" are inconsistent.
In D46059#1052323, @jrm wrote:

Should add portmgr as a reviewer? There may be a server-side git hook to ensure commits under Mk/ are approved by them.

Jul 28 2024, 7:26 PM

Jul 26 2024

michaelo updated the diff for D46096: devel/subversion{,-lts}: remove port option STATIC.

Address diizzy's comment

Jul 26 2024, 7:34 AM

Jul 25 2024

michaelo retitled D46096: devel/subversion{,-lts}: remove port option STATIC from devel/subversion{,-lts}: silent dependency on pkgconf to devel/subversion{,-lts}: remove port option STATIC.
Jul 25 2024, 8:56 AM
michaelo updated the diff for D46096: devel/subversion{,-lts}: remove port option STATIC.

Remove port option STATIC

Jul 25 2024, 8:55 AM

Jul 24 2024

michaelo updated the diff for D46096: devel/subversion{,-lts}: remove port option STATIC.

Formatting

Jul 24 2024, 11:04 AM
michaelo retitled D46096: devel/subversion{,-lts}: remove port option STATIC from devel/subversion: silent dependency on pkgconf to devel/subversion{,-lts}: silent dependency on pkgconf.
Jul 24 2024, 10:59 AM
michaelo requested review of D46096: devel/subversion{,-lts}: remove port option STATIC.
Jul 24 2024, 10:55 AM

Jul 22 2024

michaelo requested review of D46059: Mk/: Possible values for "ssl" are inconsistent.
Jul 22 2024, 11:26 AM

Jul 15 2024

michaelo committed rGac6dc5cde729: dhclient: Ignore SIP servers DHCP option defined in RFC 3361 (authored by naito.yuichiro_gmail.com).
dhclient: Ignore SIP servers DHCP option defined in RFC 3361
Jul 15 2024, 5:44 PM
michaelo closed D45873: dhclient: Ignore SIP servers DHCP option defined in RFC 3361.
Jul 15 2024, 5:44 PM

Jul 4 2024

michaelo added a comment to D45873: dhclient: Ignore SIP servers DHCP option defined in RFC 3361.
In D45873#1045890, @jrm wrote:

RFC 3361 declares 120 to be the code for the option, and this is doing the same thing as what's done for other unimplemented options, so this seems fine to me too. I'll add @brooks, a src committer who just touched dhclient, to be sure we're not missing something. Please make sure you use git commit --author to attribute Yuichiro NAITO in the commit logs.

Jul 4 2024, 6:44 PM
michaelo added a comment to D45873: dhclient: Ignore SIP servers DHCP option defined in RFC 3361.

Please also note the discussion in the PR: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=280119

Jul 4 2024, 6:44 PM
michaelo updated the diff for D45873: dhclient: Ignore SIP servers DHCP option defined in RFC 3361.

Formatting again

Jul 4 2024, 6:15 PM
michaelo updated the diff for D45873: dhclient: Ignore SIP servers DHCP option defined in RFC 3361.

Fix formatting

Jul 4 2024, 6:15 PM
michaelo requested review of D45873: dhclient: Ignore SIP servers DHCP option defined in RFC 3361.
Jul 4 2024, 6:13 PM

Jul 3 2024

michaelo closed D45856: devel/maven39: Update to 3.9.8.
Jul 3 2024, 5:57 PM
michaelo committed R11:c882cfd4526d: devel/maven39: Update to 3.9.8 (authored by michaelo).
devel/maven39: Update to 3.9.8
Jul 3 2024, 5:57 PM
michaelo requested review of D45856: devel/maven39: Update to 3.9.8.
Jul 3 2024, 10:11 AM

Jun 10 2024

michaelo closed D45513: devel/apache-commons-daemon: update port to 1.4.0.
Jun 10 2024, 11:39 AM
michaelo committed R11:7652983088a1: devel/apache-commons-daemon: update port to 1.4.0 (authored by michaelo).
devel/apache-commons-daemon: update port to 1.4.0
Jun 10 2024, 11:39 AM
michaelo added a comment to D45513: devel/apache-commons-daemon: update port to 1.4.0.

I'll give @ale the two-week timeout for maintainers. We still have time to next quarterly branch.

Jun 10 2024, 7:26 AM

Jun 7 2024

michaelo added a comment to D45073: sh(1): Improve recommendation of use of -e.

@mandree The text has been already reduced. Would you like to have it removed completely?

Jun 7 2024, 9:55 AM

Jun 6 2024

michaelo added inline comments to D45513: devel/apache-commons-daemon: update port to 1.4.0.
Jun 6 2024, 1:39 PM
michaelo requested review of D45513: devel/apache-commons-daemon: update port to 1.4.0.
Jun 6 2024, 1:34 PM
michaelo added a reviewer for D45073: sh(1): Improve recommendation of use of -e: bapt.
Jun 6 2024, 9:36 AM
michaelo retitled D45073: sh(1): Improve recommendation of use of -e from sh(1): Remove unsubstantiated discourage use of -e to sh(1): Improve recommendation of use of -e.
Jun 6 2024, 9:36 AM
michaelo updated the diff for D45073: sh(1): Improve recommendation of use of -e.

Incorporate Baptiste's proposal

Jun 6 2024, 9:35 AM

Jun 5 2024

michaelo added a comment to D45073: sh(1): Improve recommendation of use of -e.

The immediately preceding sentence about shell functions is an example of unexpected behaviour of set -e. The part "all commands of the function are considered to be tested as well" may result in code unexpectedly executing in the function and the function returning a different return status.

Many more examples can be found at https://mywiki.wooledge.org/BashFAQ/105 . Bash does not work exactly the same as our sh, but most of the problems are the same.

Bash's behaviour related to set -e has changed over the versions, but it has not succeeded in fixing the confusing parts. I don't believe it's possible to fix, and it is best to leave it unchanged so it is at least consistent.

set -e works reasonably well for scripts that are plain lists of commands with possible case, for, if, while and until, and only use && and || in conditions, which probably explains its use in make. However, even then, command substitution might lead to confusing results, for example because expr returns status 1 if the result is zero or the empty string, and the exit status from the inner command is passed through only in particular cases (for the last command substitution if there is no utility name).

A linting tool will probably be more effective (I've heard of ShellCheck, but I don't know whether it can catch missing error checks). With a linting tool, it matters less how beautiful the code looks but whether the tool can analyze it. Not enabling set -e makes the code easier to analyze, for example because functions don't behave differently depending on whether their return status is tested.

Another option is to use a better programming language. For a long time, there did not use to be one in the base system, but perhaps Lua is now a suitable option.

Jun 5 2024, 11:00 AM
michaelo committed rGac339672fbb4: periodic.conf: remove long deprecated security_daily_compat_var() (authored by michaelo).
periodic.conf: remove long deprecated security_daily_compat_var()
Jun 5 2024, 8:11 AM
michaelo committed rG0e0919db966a: periodic.conf: remove long deprecated security_daily_compat_var() (authored by michaelo).
periodic.conf: remove long deprecated security_daily_compat_var()
Jun 5 2024, 8:08 AM