Date: Wed, 19 Feb 2025 23:14:44 +0900 From: Tomoaki AOKI <junchoon@dec.sakura.ne.jp> To: Mario Marietto <marietto2008@gmail.com> Cc: Mark Millard <marklmi@yahoo.com>, zlei@freebsd.org, FreeBSD Mailing List <freebsd-questions@freebsd.org>, freebsd-hackers <freebsd-hackers@freebsd.org> Subject: Re: eval: startmsg: not found on FreeBSD 14.2-RELEASE-p1 Message-ID: <20250219231444.0ccec43ab6cb1a30dfd54e00@dec.sakura.ne.jp> In-Reply-To: <CA%2B1FSiju2duHQ7suti53A6Z3MKLW0ztVgp%2B79HXq%2BMnG-P5A6A@mail.gmail.com> References: <CA%2B1FSijmdC7XQ0QtqOTVNzsETpOHNog-FfQDbaWSrrZN6aV7PQ@mail.gmail.com> <B12D5DC0-A068-4D3A-89B1-1E480C7BC15C@yahoo.com> <CA%2B1FSiju2duHQ7suti53A6Z3MKLW0ztVgp%2B79HXq%2BMnG-P5A6A@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi. TL;DR Not an exact answer, but just a hint. You can confirm your genuine rc.* scripts by comparing with correct ones. You can read and download any of them here. https://cgit.freebsd.org/src/tree/libexec/rc?h=releng/14.2 And you can see where each of files are intended to be installed in Makefile there. (For example, rc.conf there is installed into /etc/defaults/. If any of them is/are different and you're sure you've not edited it, it should be incorrectly installed (or if your installation is an upgrade from older release, mis-merged). Note that rc.subr is a fundamental one ("subr" stands for "subroutines", thus, called from various rc scripts) and not to be edited locally unless you clearly understanding what your changes do and no negative influences for other scripts exists. Editing this requires thorough tests for ALL RC SCRIPTS AT LEAST ONES INCLUDED IN BASE, and hopefully all additional rc.d scripts in all ports. To modify rc scripts there (not locally but in upstream repo), you need to file a bug on bugzilla or open a review on phablicator (some developer could want github pull request, though), wait for it to be handled (possibly rejected with some reason). On Wed, 19 Feb 2025 11:45:57 +0100 Mario Marietto <marietto2008@gmail.com> wrote: > Hello. > > Sorry for the mistake,I have /etc/rc.subr. This is the part of the code > that may be correlated with the error that I get. Should I modify it ? How ? > > # > # check_startmsgs > # If rc_quiet is set (usually as a result of using faststart at > # boot time) check if rc_startmsgs is enabled. > # > check_startmsgs() > { > if [ -n "$rc_quiet" ]; then > checkyesno rc_startmsgs > else > return 0 > fi > } > > This is the full code of rc.subr : > > # $NetBSD: rc.subr,v 1.67 2006/10/07 11:25:15 elad Exp $ > # $FreeBSD$ > # > # Copyright (c) 1997-2004 The NetBSD Foundation, Inc. > # All rights reserved. (snip) > # If the loader env variable rc.debug is set, turn on debugging. rc.conf > will > # still override this, but /etc/defaults/rc.conf can't unconditionally set > this > # since it would undo what we've done here. > if kenv -q rc.debug > /dev/null ; then > rc_debug=YES > fi > > > On Wed, Feb 19, 2025 at 4:33 AM Mark Millard <marklmi@yahoo.com> wrote: > > > On Feb 18, 2025, at 17:35, Mario Marietto <marietto2008@gmail.com> wrote: > > > > > Hello. > > > Everytime I try to install a package in FreeBSD 14.2-RELEASE-p1,this is > > what happens : > > > marietto# pkg install qcad Updating FreeBSD repository catalogue... > > FreeBSD repository is up to date. All repositories are up to date. The > > following 1 package(s) will be affected (of 0 checked): New packages to be > > INSTALLED: `qcad:` [`3.31.2.0`](http://3.31.2.0) > > > Number of packages to be installed: 1 The process will require 212 MiB > > more space. 28 MiB to be downloaded. Proceed with this action? [y/N]: y > > [1/1] Fetching qcad-3.31.2.0.pkg: 100% 28 MiB 9.9MB/s 00:03 Checking > > integrity... done (0 conflicting) [1/1] Installing qcad-3.31.2.0... [1/1] > > Extracting qcad-3.31.2.0: 100% eval: startmsg: not found > > > eval: startmsg: not found ==> Running trigger: desktop-file-utils.ucl > > Building cache database of MIME types > > > Maybe I found the solution here : > > > > > > > > https://lists.freebsd.org/archives/freebsd-stable/2023-February/001144.html > > > > > > but I don't' understand what to do,since : > > > > > > 1) I don't have any /libexec/rc/rc.d/machine_id on my 14.2-RELEASE-p1 > > > 2) I don't have any /etc/rc.subr > > > > That last indicates an incomplete install. You may need > > to report on how you installed in order to figure out > > what else needs to be done now. > > > > Per "man 8 rc" and "man 8 rc.subr" that talk about > > /etc/rc.subr (only some references are shown below): > > > > > > RC(8) FreeBSD System Manager's Manual > > RC(8) > > > > NAME > > rc – command scripts for auto-reboot and daemon startup > > > > SYNOPSIS > > rc > > rc.conf > > rc.conf.local > > rc.d/ > > rc.firewall > > rc.local > > rc.resume > > rc.shutdown > > rc.subr > > . . . > > FILES > > /etc/rc > > /etc/rc.conf > > /etc/rc.conf.local > > /etc/rc.d/ > > /etc/rc.firewall > > /etc/rc.local > > /etc/rc.shutdown > > /etc/rc.subr > > /var/run/dmesg.boot dmesg(8) results soon after the rc > > process begins. Useful when > > dmesg(8) > > buffer in the kernel no longer has > > this > > information. > > . . . > > SEE ALSO > > kill(1), rc.conf(5), init(8), rc.resume(8), rc.subr(8), rcorder(8), > > reboot(8), savecore(8), service(8), sysrc(8) > > . . . > > > > > > > > RC.SUBR(8) FreeBSD System Manager's Manual > > RC.SUBR(8) > > > > NAME > > rc.subr – functions used by system shell scripts > > > > SYNOPSIS > > . /etc/rc.subr > > > > backup_file action file current backup > > checkyesno var > > check_pidfile pidfile procname [interpreter] > > check_process procname [interpreter] > > DebugOn tag ... > > DebugOff tag ... > > debug message > > dot file ... > > err exitval message > > force_depend name > > info message > > is_verified file > > load_kld [-e regex] [-m module] file > > load_rc_config [flag] [service] > > load_rc_config_var name var > > mount_critical_filesystems type > > rc_log message > > rc_trace level message > > rc_usage command ... > > reverse_list item ... > > run_rc_command argument > > run_rc_script file argument > > run_rc_scripts [options] file ... > > safe_dot file ... > > sdot file ... > > startmsg [-n] message > > vdot file ... > > wait_for_pids [pid ...] > > warn message > > > > DESCRIPTION > > The rc.subr script contains commonly used shell script functions and > > variable definitions which are used by various scripts such as rc(8). > > Scripts required by ports in /usr/local/etc/rc.d will also eventually > > be > > rewritten to make use of it. > > > > The rc.subr functions were mostly imported from NetBSD. > > > > They are accessed by sourcing /etc/rc.subr into the current shell. > > . . . > > > > > > === > > Mark Millard > > marklmi at yahoo.com > > > > > > -- > Mario. -- Tomoaki AOKI <junchoon@dec.sakura.ne.jp>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20250219231444.0ccec43ab6cb1a30dfd54e00>