From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: ~/.../emacs/lib-src/blessmail owned by root? Date: Thu, 22 Aug 2024 15:16:37 +0300 Message-ID: <86v7zssqfu.fsf@gnu.org> References: <878qwpwcm9.fsf@web.de> <86le0ptab2.fsf@gnu.org> <871q2hw22u.fsf@web.de> <86cym0uav8.fsf@gnu.org> <87frqwu68x.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13885"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Aug 22 14:17:30 2024 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sh6ks-0003TU-DP for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 22 Aug 2024 14:17:30 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sh6kH-0006Oh-6e; Thu, 22 Aug 2024 08:16:57 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sh6k5-0006LR-Je for help-gnu-emacs@gnu.org; Thu, 22 Aug 2024 08:16:41 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sh6k4-0003or-T1 for help-gnu-emacs@gnu.org; Thu, 22 Aug 2024 08:16:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=+RKnX2mdkgnYpI+4rgYT3IBUpG8t54HfyODY12Vals4=; b=Wle2OZODUT4hMORw0UHB QNLVLzX1sOk5YtJj44JIqU25jMKupBKQrWlJDsaRm2OA7i2AMOiGwDiIFFVPHWDz/IfUt9CdQJc6b iJesKO9571L3Fz6dt+/R4htfbRNvNJctyltU0H2CVBtLrQgsZN5U9RloFnoBGiGqrsGJtLJouqMwa 7Zc7EOUEosEnLKTiE4lILKFAYobnEA8by/8HQQBgB12wyaPEyf0F7SlZBRMRM54OtFrbXKW23SVCo Mv62mYPlyiaRjfxQvY/w8mJDo6vpogXVzTtb1IFde3ArBKTJ9k+4X87GgAoA6bqTIcTGZuRWL2QGl dE1hwWOfa3R78A==; In-Reply-To: <87frqwu68x.fsf@gmail.com> (message from Robert Pluim on Thu, 22 Aug 2024 13:49:50 +0200) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:147758 Archived-At: > From: Robert Pluim > Cc: help-gnu-emacs@gnu.org > Date: Thu, 22 Aug 2024 13:49:50 +0200 > > >>>>> On Thu, 22 Aug 2024 13:10:03 +0300, Eli Zaretskii said: > >> It is > >> the only one I ever saw. It must be related to sudo make install, the > >> only sudo'ed command involved. But it doesn't make sense to install > >> files to my home dir where other users don't have access. > >> > >> And I as user can't delete the file unless I use administrator > >> privileges. > >> > >> Don't you find this odd? > > Eli> It might be a bug of some sort, but then why only this file is owned > Eli> by root? AFAICT, "make install" installs it together with other > Eli> files, so I don't understand ATM why only this file got its owner > Eli> changed by sudo. > > The top-level Makefile has: > > install: actual-all install-arch-indep install-etcdoc install-arch-dep install-$(NTDIR) blessmail install-eln install-gsettings-schemas > > and > > blessmail: Makefile src > $(MAKE) -C lib-src maybe-blessmail > > so blessmail is built as part of running the 'install' target, but the > lib-src Makefile only does that when itʼs needed, which is why it ends > up as owned by root. > > Itʼs not installed, but the lib-src Makefile will tell you if it needs > to be run via the maybe-blessmail and need-blessmail targets. Thanks, so the solution seems to be to change the Makefile's so that blessmail is produce at build time, not "make install" time.