Page MenuHomeFreeBSD

sysrc: make independant from bsdconfig(8)
ClosedPublic

Authored by bapt on Mon, Sep 14, 9:00 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Sep 15, 6:54 AM
Unknown Object (File)
Tue, Sep 15, 4:33 AM
Unknown Object (File)
Tue, Sep 15, 4:31 AM
Unknown Object (File)
Mon, Sep 14, 11:33 PM
Unknown Object (File)
Mon, Sep 14, 9:46 PM
Unknown Object (File)
Mon, Sep 14, 5:01 PM
Unknown Object (File)
Mon, Sep 14, 3:44 PM
Unknown Object (File)
Mon, Sep 14, 11:03 AM
Subscribers

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 76873
Build 73756: arc lint + arc unit

Event Timeline

bapt requested review of this revision.Mon, Sep 14, 9:00 AM
dteske requested changes to this revision.Mon, Sep 14, 9:58 AM

Title is incorrect. bsdconfig is not in section 1, but section 8.

Please switch bsdconfig . of sysrc.subr to f_include to support debug=1 and debugFile

usr.sbin/bsdconfig/share/sysrc.subr
36

After you have sourced common.subr with . you should switch to using f_include for additional includes because it is not only more succinct, it (1) has debugging and (2) standardizes the exposure of the . exit status instead of forcing 1.

This revision now requires changes to proceed.Mon, Sep 14, 9:58 AM
bapt retitled this revision from sysrc: make independant from bsdconfig(1) to sysrc: make independant from bsdconfig(8).Mon, Sep 14, 10:03 AM
usr.sbin/sysrc/sysrc.subr
52–53

Outside of bsdconfig this include has no i18n capabilities so the word “defaults” is not right. Suggest just making it short and sweet “Error messages” and non-English would require a new i18n faculty (e.g., bespoke case statement on LANG/LC_ALL if we ever wanted later).

This revision is now accepted and ready to land.Mon, Sep 14, 12:02 PM
This revision was automatically updated to reflect the committed changes.

This commit is causing a regression in the usr.sbin/sysrc/sysrc_test:A_flag testcase, but it looks like that testcase might now be stale right? @bapt could you take a look?

https://ci.freebsd.org/job/FreeBSD-main-amd64-test/29496/testReport/usr.sbin.sysrc/sysrc_test/A_flag/

This commit is causing a regression in the usr.sbin/sysrc/sysrc_test:A_flag testcase, but it looks like that testcase might now be stale right? @bapt could you take a look?

https://ci.freebsd.org/job/FreeBSD-main-amd64-test/29496/testReport/usr.sbin.sysrc/sysrc_test/A_flag/

Fix is in-flight

This commit is causing a regression in the usr.sbin/sysrc/sysrc_test:A_flag testcase, but it looks like that testcase might now be stale right? @bapt could you take a look?

https://ci.freebsd.org/job/FreeBSD-main-amd64-test/29496/testReport/usr.sbin.sysrc/sysrc_test/A_flag/

Fix is in-flight

Fixed in 09711ccb09f482fd345b2b640dbbeb66de535041

NB: I admit that I should have prefixed the the commit title with "sysrc:" but at least we have the Fixes tag to show what the context is