From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Boris Newsgroups: gmane.emacs.help Subject: Re: Runtime package dependencies and compilation order Date: Wed, 01 Jun 2016 14:19:27 +0000 Message-ID: References: <87bn3mi8sy.fsf@web.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1464790833 19203 80.91.229.3 (1 Jun 2016 14:20:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 1 Jun 2016 14:20:33 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Michael Heerdegen Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jun 01 16:20:33 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1b870S-0006hm-Qe for geh-help-gnu-emacs@m.gmane.org; Wed, 01 Jun 2016 16:20:24 +0200 Original-Received: from localhost ([::1]:42355 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b870R-00032j-VI for geh-help-gnu-emacs@m.gmane.org; Wed, 01 Jun 2016 10:20:24 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42331) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b86zk-00031u-6I for help-gnu-emacs@gnu.org; Wed, 01 Jun 2016 10:19:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b86zi-0007xC-UA for help-gnu-emacs@gnu.org; Wed, 01 Jun 2016 10:19:40 -0400 Original-Received: from mail-lf0-x22f.google.com ([2a00:1450:4010:c07::22f]:36659) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b86zi-0007wv-HF for help-gnu-emacs@gnu.org; Wed, 01 Jun 2016 10:19:38 -0400 Original-Received: by mail-lf0-x22f.google.com with SMTP id b73so13918329lfb.3 for ; Wed, 01 Jun 2016 07:19:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=NlLsYAqdfx87+J4I1bn3rDB+w6a3AcPH1/L7WQxP4AY=; b=w49klTYBcejY051/LpDuyHDQsV6QOaqDk6gnRcP48yb2Eu12XynYazGTUIwX7F8Fuw ytBpif/uZuUZvssTPUmC+VLqftGXaVaOo0tDU+sREKio8mBonwFKP2amTtVa63VZ81fr JUDsOLktWoa/8MC+D9pGA/BBvTf3bRRVd8JMzACnNfWyb3iPPHzu/VnSx0GcpPR3iu8r JTFVeVukd3w6+eYsVlfgL0tmPpHWR5j9Wh55iQWxZOHMpZGSDY/TS/UfoRg6AYvBIbaI SUlboLC6HYckIXvFldmM6brixuk4uWAtYp7rpL9+xVixv+SPF5dw4fDwwv/08yrmpZn0 SSPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=NlLsYAqdfx87+J4I1bn3rDB+w6a3AcPH1/L7WQxP4AY=; b=giTuFPwCrspSRSwS2HmF4Tx+f+ls1BGF7vFhyUKcA7nK+qDOglYm/RZvJZ1XNyEETh at3daKfjyRy0POX5PTt5cRW+CLMDZWy8Fc14hjYKcKj67gIDiqlNQmyF+lG2R9Ws+8hG M8YzgZaeCIlMUQpshNYWPzIBDp10A1PMkTAhoZeZdVUabrOX+21JnqhBYHtF7nfZuXVi 4molCjL72Ug4dd5Gp052HpQNIoDNoCwk6e4T4tV0Vh37QBHbGXQDnXQbCEjq8dBf9N81 FdKcv+sLGfAWIksAMJBO8069fjI5XVvgEZhwvDox3YhfUEySA60zqhUC7VrnFSydc96F ZhTw== X-Gm-Message-State: ALyK8tJnP25CjyF9EW7A9sPmhbDb7xCrAKMPy966L1uQZbC6WuNqKkwzyMbgGf4VtsQtjmvgwp0jALq6DCUDfw== X-Received: by 10.46.1.33 with SMTP id 33mr1723279ljb.44.1464790777365; Wed, 01 Jun 2016 07:19:37 -0700 (PDT) In-Reply-To: <87bn3mi8sy.fsf@web.de> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:4010:c07::22f X-Content-Filtered-By: Mailman/MimeDel 2.1.21 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:110161 Archived-At: Hey Michael, Thanks for your reply. > Is this an exclusive "or"? If not, why not just depend on B _and_ C? It's not exclusive, it's disjunction. I don't want to depend on both of them because they are huge. And some people would not like having orphan package to be installed as dependency. > ...is really the compilation order a problem, or the fact that A had > been compiled without B being _loaded_? Doesn't make much a difference > from the end user's view, though. Good question. And I am not sure. I'll look into it. Just out of curiosity. > In the other case I cannot suggest anything better than what you already > did. Alright, then I'll just implement my solution. In any case, I like it. Just wanted to hear others opinion. Thanks again and best regards, Boris On Tue, May 31, 2016 at 5:47 PM Michael Heerdegen wrote: > Boris writes: > > > Recently I've faced following problem. I have a package A that might > > depend on package B or (disjunction) package C. > > Is this an exclusive "or"? If not, why not just depend on B _and_ C? > > In the other case I cannot suggest anything better than what you already > did. Since AFACT, Emacs package management doesn't (yet?) allow > dependencies of type "X or Y" (unlike some OS). But I wonder... > > > The problem comes when someone wants to use the part of package A that > > depends on package B - if package A is byte compiled before B, then some > > functionality doesn't work and you have to manually recompile A. > > ...is really the compilation order a problem, or the fact that A had > been compiled without B being _loaded_? Doesn't make much a difference > from the end user's view, though. > > > Regards, > > Michael. >