From nobody Thu May 23 13:34:22 2024 X-Original-To: ports-bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VlTfk6qH0z5LkKY for ; Thu, 23 May 2024 13:34:22 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VlTfk5h2sz4Gmx for ; Thu, 23 May 2024 13:34:22 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1716471262; a=rsa-sha256; cv=none; b=JulSeb5ouEUoaU+IAJ/KxAiUR51PTCtpsXG6Pok6ENoFfEMF/lGZuZDkzpRiz3J5hF/mJL 2MINWuvZFESMQ0QvM2jvrLUGO2QV0wjApUS8/Fgj7bDJCDgeMuuhRdOshru0f2tc5r/zks Z8i9+Jvy7Za5dYXCtr1jbuEVdXkb8zOs8L4ESG+tT/xYLVdX5ioeXCSTQmneoTlcBwE/Tr HGW6lAwcFqPIOm2ru6uwk54ocG+qyXPjXTgF0gU8/winSMkspqzwsDVmnxWzdmsDhb/7Ly loNWje2zoLbmtCW97ekHtTcZ0ZW+VrKVe/JU+MHVev47tObcUHoj2MvqwtHydw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1716471262; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=2B3JkJc0XQoWyJWcnInI1vFpGnEbVFDMVzLy0f0fSFo=; b=WdwFcXxAZ65bfN5P0ytuuDjf3DSfrWH9sJzfBuz0+PbHaYGxvdCYmBh3IFwXU8LEop0Ib7 O7zopc2BwDJ+bGIQ6SbgHSq7ND9sS+6lthe82gINKfPNHQUL3vNT/WhEEdD9ctqiuQutpH zOv1+0+0H0z1BUgTEfgF9Xgi9vXB6tVQ/fr5KUOBELqwimXK+4aO3SM+S1CfenNmnuBUGC lbE+kAjQT2cJT1tK9/d6EkLS4SWw9dOWBpPj2frL5fRRvBgYqzDRu0AodaQuyPueF56WtC +XWN4dCFpNQ40pzxil7lT5PzAmZ7ciUSFh6hxcA9LJrw9SG6/etKHsiVXVGKYQ== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4VlTfk59bPzrXP for ; Thu, 23 May 2024 13:34:22 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 44NDYMA7017518 for ; Thu, 23 May 2024 13:34:22 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 44NDYMLj017515 for ports-bugs@FreeBSD.org; Thu, 23 May 2024 13:34:22 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 279251] games/minetest: Fix rc(8) script when using minetest_flags Date: Thu, 23 May 2024 13:34:22 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: DtxdF@disroot.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: amdmi3@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-ports-bugs@freebsd.org Sender: owner-freebsd-ports-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D279251 Bug ID: 279251 Summary: games/minetest: Fix rc(8) script when using minetest_flags Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: amdmi3@FreeBSD.org Reporter: DtxdF@disroot.org Assignee: amdmi3@FreeBSD.org Flags: maintainer-feedback?(amdmi3@FreeBSD.org) Created attachment 250900 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D250900&action= =3Dedit minetest.in.patch Description: After installing `games/minetest_game` and enabling the `rc(8)` script, it fails because I need to set the `--gameid` parameter. I set `minetest_flags= `, which is theoretically the parameter that fixes the problem, but of course since `command` is set to `/usr/sbin/daemon`, those arguments are passed to `daemon(8)` instead of `minetest(6)`. To fix this problem we need to change minetest_flags to minetest_cli_args a= fter applying this patch. Steps to reproduce this issue: ``` # service minetest oneenable minetest enabled in /etc/rc.conf # service minetest start Starting minetest. # service minetest status minetest is not running. # tail /var/log/minetest/debug.log ------------- Separator ------------- 2024-05-23 09:20:05: ERROR[Main]: To run a Minetest server, you need to sel= ect a game using the '--gameid' argument. 2024-05-23 09:20:05: ERROR[Main]: Check out https://content.minetest.net fo= r a selection of games to pick from and download. 2024-05-23 09:20:05: ERROR[Main]: ServerError: Supplied invalid gamespec # sysrc minetest_flags=3D"--gameid minetest_game" minetest_flags: -> --gameid minetest_game # service minetest start Starting minetest. daemon: unrecognized option `--gameid' usage: daemon [-cfHrS] [-p child_pidfile] [-P supervisor_pidfile] [-u user] [-o output_file] [-t title] [-l syslog_facility] [-s syslog_priority] [-T syslog_tag] [-m output_mask] [-R restart_delay_secs] command arguments ... --change-dir -c Change the current working directory to r= oot --close-fds -f Set stdin, stdout, stderr to /dev/null --sighup -H Close and re-open output file on SIGHUP --syslog -S Send output to syslog --output-file -o Append output of the child process to file --output-mask -m What to send to syslog/file 1=3Dstdout, 2=3Dstderr, 3=3Dboth --child-pidfile -p Write PID of the child process to file --supervisor-pidfile -P Write PID of the supervisor process to fi= le --restart -r Restart child if it terminates (1 sec del= ay) --restart-delay -R Restart child if it terminates after N sec --title -t Set the title of the supervisor process --user -u <user> Drop privileges, run as given user --syslog-priority -s <prio> Set syslog priority --syslog-facility -l <flty> Set syslog facility --syslog-tag -T <tag> Set syslog tag --help -h Show this help /usr/local/etc/rc.d/minetest: WARNING: failed to start minetest ``` After applying this patch: ``` # service minetest oneenable minetest enabled in /etc/rc.conf # sysrc minetest_cli_args=3D"--gameid minetest_game" minetest_cli_args: -> --gameid minetest_game # service minetest start Starting minetest. # service minetest status minetest is running as pid 57541. # tail /var/log/minetest/debug.log=20 ------------- Separator ------------- 2024-05-23 09:31:43: [Main]: Using game specified by --gameid on the command line 2024-05-23 09:31:43: ACTION[Main]: World at [/var/db/minetest/world] 2024-05-23 09:31:43: ACTION[Main]: Server for gameid=3D"minetest_game" list= ening on 0.0.0.0:30000. ``` --=20 You are receiving this mail because: You are the assignee for the bug.=