From nobody Fri Dec 3 13:25:54 2021 X-Original-To: freebsd-ports@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 90FF918BD97E for ; Fri, 3 Dec 2021 13:25:55 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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 "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4J5D9H37MSz4XLr; Fri, 3 Dec 2021 13:25:55 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from aniel.nours.eu (nours.eu [176.31.115.77]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: bapt) by smtp.freebsd.org (Postfix) with ESMTPSA id 342BA9336; Fri, 3 Dec 2021 13:25:55 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: by aniel.nours.eu (Postfix, from userid 1001) id 40DD3481B9; Fri, 3 Dec 2021 14:25:54 +0100 (CET) Date: Fri, 3 Dec 2021 14:25:54 +0100 From: Baptiste Daroussin To: Mel Pilgrim Cc: freebsd-ports@freebsd.org Subject: Re: pkg alias commands missing after upgrading to 1.17.5 Message-ID: <20211203132554.k4xkhd6oznue4deo@aniel.nours.eu> References: <83dabf19-6e42-c3ab-e553-1525035c66fe@bluerosetech.com> <20211203105607.nggtpashet7f6d7f@aniel.nours.eu> <4f73869a-de80-8989-273f-08475dbe18cb@bluerosetech.com> List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4f73869a-de80-8989-273f-08475dbe18cb@bluerosetech.com> ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1638537955; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=jp55L1Ar1BwsQ+C0VtPm+INI0SpSoKOtDMbpiPGa0To=; b=nGg5X4Pf0qk1VHAUT4j0jUeUdGuLDRWvwi/dwIMqXTY/umncAvwVlRFg+kS+Mckw4Ui3x+ MHL+oIPNOkF4DOQKkW0VGrR9tZ69iM9PbC8+aHVs/AEcDeRufGu1rBilUOnY2ZdP30RnTo Im0MS+9e5Q8pkRU4fy2xGNIzusdKr3swWufI7V7AjmVulq9YsFsyM/pX3ldeRCbrVgZD9e fp0HZwmJHkLRxJBS0gkQYZU4uE6N8ZU44t1bEx+tnrVFSRIshIbi+INcJpnzu+rJrToc3J 6pU2W5JaiQUqy3VRloGlITiXW98GlZ6g6N1S/PmrMXno+0moMjNJeif8I59OEQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1638537955; a=rsa-sha256; cv=none; b=cGUs6GQ73t/i6NqK7ztKRfs+1gjo0blgN95QbbbW0Z5bUj/G9lPPgbkWytkXZgQByCl9kX TZauaybuqydDK94ZUvqxt3NnNZCUKiriPYnwl9R/V2LLTktKw9kh1W5hN8yZEgnhEsSsVn fLD339ahSh61x8K68+osx+qdkt5Opq177OF12Bkz7NGQrk9QfMPrkQM1n+YjpBsR6PIBFL YM3amxPpdtJdRG/1mCY/zO4BmRJiKpEDAu7eKVfREFLy3tZnfXx+u6ZH9LdZzPsj61C+Ge 8B3vr0ilwxpnnhE6HQ7C5s0NmkDuml6M2A25whqKt2P2MzcAasbAS5Pc9sbv6w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N On Fri, Dec 03, 2021 at 05:11:06AM -0800, Mel Pilgrim wrote: > On 2021-12-03 2:56, Baptiste Daroussin wrote: > > On Fri, Dec 03, 2021 at 02:28:58AM -0800, Mel Pilgrim wrote: > > > With pkg-1.17.5: > > > > > > # pkg alias > > > ALIAS ARGUMENTS > > > # pkg leaf > > > pkg: unknown command: leaf > > > > > > For more information on available commands and options see 'pkg help'. > > > > > > > I don't know what happened in your case, but I cannot reproduce. > > Do you have any diagnostic steps I can do to figure out what happened? > > I fetched a fresh copy of pkg-1.17.5~d6f9535722.pkg from the public repo and > installed it using pkg-static, but that didn't fix the problem. > > I can at least confirm this only happens on one particular system. I have > 15 systems all using the same private pkg repo, and only one has this > problem. it means on the system with this issue, someone touched /usr/local/etc/pkg.conf The aliases are set there, the original file is stored at the following place: /usr/local/etc/pkg.conf.sample Best regards, Bapt