From nobody Sun Apr 21 18:34:04 2024 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 4VMxql5tJvz5HV9f for ; Sun, 21 Apr 2024 18:34:27 +0000 (UTC) (envelope-from yasu@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 4VMxql4wbXz4b3r; Sun, 21 Apr 2024 18:34:27 +0000 (UTC) (envelope-from yasu@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1713724467; 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: in-reply-to:in-reply-to:references:references; bh=MapbI0+GOAvxSartYX/h7tPLk5Zgb7utyRbkhwWS+Ew=; b=Z7dRuLHO+qN9zLMAy9xGmcyns9616RcGbByzg8dWqdl2u2ekKnKKwLIrmniMLIee5NXx1k xQx09U2AnECz/rRW7yzhPuid78+fQTKQ8A+rdoB7Pqb8lkE3J6iB4RFDZEQUm0pwXiGo8c MRgnrJKZYZes2TcxnDwGP2fE4FUhisXnn7Oze9lgT4VR/+zRK2k9TcvxuJlZtSAr1zPUlS W4IEjYeBu6mlYL0zvrf5EwGhmT4lUPtQskXgJTuHfRKkqEEPqFFdg6sHd7vOoaR5vYNH4B SexxOHQjWuuWOMIzYrzZU/fGIijVL3flDcd1D/qee0tbrvK3uxr/n9Bcs9VS0w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1713724467; a=rsa-sha256; cv=none; b=c5PMJ0+J4pT5SGWoZbl0MKcQsnQd0fSOb1dzOiZzyrBVUbHSYwqIWfbQfbmNKmCYgs1V/v Vu1i044QrhUnUlt2MNNEMqcwuMMzbi5Zxc64E0VsYDCvElqQRMdt7yhGq4ava1ZQuEUL4H WtSqACn01wuTReBdF52CoNnWF8AWpipHKvUIU45fYYwg9fyvSC1pumrYXuRj5YzXWlwtX8 7FjnEJ/HutjZYXFKVlGjVh7zbkJAFyfKFNgvvl8ILYDzAyHdaFy64Xge3kWmYXB6/lW6xI AdfyQOAjIUBsSOIOg//KnBqwkp/4Ct2kgqSi5HpdH/8G4ygl9IgVDZpAjh09ug== 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=1713724467; 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: in-reply-to:in-reply-to:references:references; bh=MapbI0+GOAvxSartYX/h7tPLk5Zgb7utyRbkhwWS+Ew=; b=XiNUuFt1AJq5t92/irUKaefzJaxGviMfd295mirjKz2mVsRrwzybFUDh3+OkUHE840U9pP oDDl2EfOCs2LJsllBAL39/lm713Q7lqqBwhUEHAoWajYdOMs0UiGo8xYSJzJ2E82y1OQaC dpbGlFfjyXPaGazCPUm84LmClsWCkkydFmo5F69gp6XBVv9aCG1o5vTzBXSqWN2OU4rLI0 mWqPPS/wwJMVZy4nX+bV+ZbAz3Ii7zJKfNv9NrS4SVkSEmU1UF8Q2UTZwwaaKA6tJAJpVl LXpc2ivuV5ch0hQ7sjB++9GDNNnZ2+RHWtIeKK2at5b+Y6mqiaeLgjckvKcPZg== Received: from localhost (unknown [IPv6:240b:11:220:fe00::174:11]) (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) (Authenticated sender: yasu/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4VMxql0T3kzh9b; Sun, 21 Apr 2024 18:34:26 +0000 (UTC) (envelope-from yasu@FreeBSD.org) Date: Mon, 22 Apr 2024 03:34:04 +0900 (JST) Message-Id: <20240422.033404.1260345725989401397.yasu@FreeBSD.org> To: freebsd-ports@freebsd.org Subject: Re: `pkg autoremove` uninstalls pkg itself From: Yasuhiro Kimura In-Reply-To: <20240421.223026.1542858955517379564.yasu@FreeBSD.org> References: <20240419.214307.1212149214636268607.yasu@FreeBSD.org> <20240421.223026.1542858955517379564.yasu@FreeBSD.org> X-Mailer: Mew version 6.9 on Emacs 30.0.50 List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-ports@freebsd.org Sender: owner-freebsd-ports@FreeBSD.org Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: Yasuhiro Kimura Subject: Re: `pkg autoremove` uninstalls pkg itself Date: Sun, 21 Apr 2024 22:30:26 +0900 (JST) > Just from curiosity I checked out following commit and tested if the > issue also happens (I selected the commit just because it was > committed on the release date of 14.0-RELEASE). > > ---------------------------------------------------------------------- > commit 5f5f3d7a8808 > Author: Piotr Kubaj > AuthorDate: Mon Nov 20 15:29:31 2023 +0100 > Commit: Piotr Kubaj > CommitDate: Mon Nov 20 15:32:05 2023 +0100 > > shells/oksh: update to 7.4 > ---------------------------------------------------------------------- > > Then output of `pkg query '%a' pkg` is '0' and `pkg autoremove` > doesn't remove itself. It means something is changed after this commit > and it is the cause of the issue. > > I tried bisect, and according to the result of it the issue starts > with following commit. > > ---------------------------------------------------------------------- > commit 830ec3717024 > Author: Tijl Coosemans > AuthorDate: Wed Mar 6 20:13:39 2024 +0100 > Commit: Tijl Coosemans > CommitDate: Wed Mar 6 21:22:21 2024 +0100 > > Mk/Scripts/do-depends.sh: Avoid make -D flag > > Both FreeBSD make and GNU make pass command line flags to sub-makes > through the MAKEFLAGS environment variable, but the flags aren't > compatible and GNU make 4.4 exits with an error when it encounters > flags it doesn't understand, e.g. -D. > > Avoid using the flag for now until ports run gmake with SETENVI. > > This fixes the case where a port is built using make directly and it > recurses to build a dependency that uses gmake. Poudriere does not > use this feature of the ports tree to build dependencies so it's not > affected. > > PR: 272216, 277492 > ---------------------------------------------------------------------- > > As far as I read commit message, the issue of pkg seems to be > unintended result of this commit. I submitted the issue to Bugzilla. https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=278511 --- Yasuhiro Kimura