From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.devel Subject: Re: ELPA -- making individual packages Date: Fri, 04 Sep 2020 15:20:38 -0700 Message-ID: <87eenhgp55.fsf@ericabrahamsen.net> References: <87363yjue9.fsf@ericabrahamsen.net> <87eenhvgq3.fsf@turtle-trading.net> <875z8tigmv.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22535"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Stefan Monnier , emacs-devel@gnu.org To: Benjamin Riefenstahl Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Sep 05 00:21:31 2020 Return-path: Envelope-to: ged-emacs-devel@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 1kEK5K-0005kL-Pl for ged-emacs-devel@m.gmane-mx.org; Sat, 05 Sep 2020 00:21:30 +0200 Original-Received: from localhost ([::1]:49374 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kEK5J-0003sj-SJ for ged-emacs-devel@m.gmane-mx.org; Fri, 04 Sep 2020 18:21:29 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52104) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kEK4Z-0003Qy-DS for emacs-devel@gnu.org; Fri, 04 Sep 2020 18:20:43 -0400 Original-Received: from ericabrahamsen.net ([52.70.2.18]:59528 helo=mail.ericabrahamsen.net) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kEK4X-0007Vc-GN for emacs-devel@gnu.org; Fri, 04 Sep 2020 18:20:43 -0400 Original-Received: from localhost (c-73-254-86-141.hsd1.wa.comcast.net [73.254.86.141]) (Authenticated sender: eric@ericabrahamsen.net) by mail.ericabrahamsen.net (Postfix) with ESMTPSA id 7A001FA028; Fri, 4 Sep 2020 22:20:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericabrahamsen.net; s=mail; t=1599258039; bh=7sbjkSH19zbiKowF9MVclXn1qyhahu2dLvRlyB4btHI=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=U4F86NqptFEyiNiwklBABFdPrQf5stIb48v8ju2b6OWahvwcYDXn2cHNTb3pXF4Tq OELR1PmU0pcUzjpeJ358y7Yu9LT75eLqcDqkxiWbDybaKZnsxYcG4S5vGNHxtJ5fZl XM4RLOpAPc61tlZ9EJhxYmPS2k0HE57yigkbGaRQ= In-Reply-To: <875z8tigmv.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Fri, 04 Sep 2020 10:41:28 -0700") Received-SPF: pass client-ip=52.70.2.18; envelope-from=eric@ericabrahamsen.net; helo=mail.ericabrahamsen.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/04 18:20:40 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:254533 Archived-At: Eric Abrahamsen writes: > Benjamin Riefenstahl writes: > >> Hi all, >> >> Stefan Monnier writes: >>> I don't think `make` can do exactly that, but there's no doubt that we >>> should be able to provide a way to build just a particular package >>> (maybe the target would have to be called something else than just >>> `gnorb`, e.g. `compile-gnorb`). It's probably not that hard. >> >> Right, in GNU make I have done it like this before: >> >> compile-%: >> echo Making package $* ... >> [commands to make the package] >> >> test-%: >> echo Testing package $* ... >> [commands to test the package] > > Well, this is as far as I've been able to get: > > .PHONY: > compile-%: > @if [ -d "$(CURDIR)/packages/$*" ]; then \ > $(MAKE) -C "$(CURDIR)/packages/$*" "*.elc"; \ > else \ > echo "No such package: $*"; \ > fi; Off-list someone sent me this: define RULE-pkg $(notdir $(1)): $(filter $(1)/%, $(elcs)) endef $(foreach pkg, $(pkgs), $(eval $(call RULE-pkg, $(pkg)))) Which seems to work! Called with the bare package name. One weird thing, though, is that for each file being compiled I get: Unable to activate package =E2=80=98relint=E2=80=99. Required package =E2=80=98xr-1.19=E2=80=99 is unavailable Unable to activate package =E2=80=98exwm=E2=80=99. Required package =E2=80=98xelb-0.18=E2=80=99 is unavailable Unable to activate package =E2=80=98ebdb-i18n-chn=E2=80=99. Required package =E2=80=98pyim-1.6.0=E2=80=99 is unavailable Unable to activate package =E2=80=98counsel=E2=80=99. Required package =E2=80=98swiper-0.13.1=E2=80=99 is unavailable Which is odd since the package I'm compiling doesn't have anything to do with those packages. But, closer to success.