Received: from ci74p00im-qukt09090302.me.com (ci74p00im-qukt09090302.me.com [17.57.156.21]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id 0B8EA780FD9 for <~alpine/devel@lists.alpinelinux.org>; Thu, 30 Jun 2022 07:47:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fouwels.com; s=sig1; t=1656575275; bh=cQVP6VCmMAbracP1ch0idcGiJNknCVxZpvJlncqSMDc=; h=Content-Type:Mime-Version:Subject:From:Date:Message-Id:To; b=mO3HynNsCO2tFyF0pV5msAEOyyQvcW8IOOPHF45/4afU/KZpBNm5/B9PQqrdwDBp6 5Poi8Ok9zBCPOir3evvvoNtg438PugW7HNrvHgO8PBK3V1xeUkyopoDSqLgOFKswOQ gp5HF7vmgxLGNf60Z/m8+2DdIBHDDhrYwdsErw9K6TncyWrSr3qFhofz27CNN831ya Mj9tJ6a1wCwbQRCmBBsYiTzrrjIu9Eq4fjap2aMQOeT9/0iyYxSqP6tSpZ9VPfYAAQ 1sOyryBrp7ns7p8ZHWz1xE6ckGKR9mm1lljSvnmPUv/VhqULa1QRD8b1A+rK198A3g UWBSNhcF5H8mg== Received: from smtpclient.apple (ci77p00im-dlb-asmtp-mailmevip.me.com [17.57.156.26]) by ci74p00im-qukt09090302.me.com (Postfix) with ESMTPSA id C43175BC0334; Thu, 30 Jun 2022 07:47:54 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.100.31\)) Subject: Re: Fixing shell script libraries like /lib/libalpine.sh From: Kaelan Thijs Fouwels In-Reply-To: Date: Thu, 30 Jun 2022 08:47:51 +0100 Cc: "Daniel F. Dickinson" , ~alpine/devel@lists.alpinelinux.org Content-Transfer-Encoding: quoted-printable Message-Id: <0B490FC5-4BE5-4047-8552-AD50580BD622@fouwels.com> References: <4caa8c5f-7ebf-ad2f-0e92-29428785fe60@wildtechgarden.ca> <2512fab8-7ae4-c554-32a9-333a2b08813c@wildtechgarden.ca> To: Dominique Martinet X-Mailer: Apple Mail (2.3696.100.31) X-Proofpoint-ORIG-GUID: Bnppq09AVaHQzFJdub8WFKi-hYliA77k X-Proofpoint-GUID: Bnppq09AVaHQzFJdub8WFKi-hYliA77k X-Proofpoint-Virus-Version: =?UTF-8?Q?vendor=3Dfsecure_engine=3D1.1.170-22c6f66c430a71ce266a39bfe25bc?= =?UTF-8?Q?2903e8d5c8f:6.0.138,18.0.572,17.11.62.513.0000000_definitions?= =?UTF-8?Q?=3D2020-02-14=5F11:2020-02-14=5F02,2020-02-14=5F11,2021-12-02?= =?UTF-8?Q?=5F01_signatures=3D0?= X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 suspectscore=0 malwarescore=0 clxscore=1030 mlxscore=0 spamscore=0 adultscore=0 bulkscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2202240000 definitions=main-2206300028 > On 30 Jun 2022, at 08:39, Dominique Martinet = wrote: >=20 > Daniel F. Dickinson wrote on Thu, Jun 30, 2022 at 03:31:50AM -0400: >> This calls setup-ntp with NTPOPTS as the parameter; perhaps the issue = is >> the quoting there. In any event, I've obviously got to do some more >> complete troubleshooting, fix, and test thereof. >=20 > The problem is setup-ntp sets 'resp' from parsing -c in getopts loop, > but actually expects it to be the first positional parameter e.g. > 'setup-ntp chrony' as it checks $# and assigns resp from $1 regardless > of $#. >=20 > It shouldn't be too hard to make it work with either -c or first > positional parameter, letting you send a MR on gitlab :) >=20 >=20 > (oh, and I use reply to all and think most others do as well -- but I > don't know if it really is a rule or just habits from other lists = where > non-subscribers can post) > -- > Dominique I've previously attempted to diagnose this exact issue to no avail in = our internal builds, so can second this problem during automated ANSWERS = installed. Daniel, if you have identified the root cause, PR would be most welcome! Kaelan Thijs Fouwels Kaelan@fouwels.com