From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Tim Cross Newsgroups: gmane.emacs.devel Subject: Re: Package.el and specifying alternative dependencies Date: Sun, 5 Mar 2017 09:32:00 +1100 Message-ID: References: <87lgskogcn.fsf@holos> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=f403045ee8821bceaa0549ef3beb X-Trace: blaine.gmane.org 1488666761 22471 195.159.176.226 (4 Mar 2017 22:32:41 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 4 Mar 2017 22:32:41 +0000 (UTC) Cc: Emacs developers To: Mark Oteiza Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Mar 04 23:32:37 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ckIE7-0005K2-Kt for ged-emacs-devel@m.gmane.org; Sat, 04 Mar 2017 23:32:35 +0100 Original-Received: from localhost ([::1]:36782 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ckIED-0001vf-NO for ged-emacs-devel@m.gmane.org; Sat, 04 Mar 2017 17:32:41 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33626) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ckIDb-0001vL-9y for emacs-devel@gnu.org; Sat, 04 Mar 2017 17:32:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ckIDa-000632-4i for emacs-devel@gnu.org; Sat, 04 Mar 2017 17:32:03 -0500 Original-Received: from mail-qk0-x235.google.com ([2607:f8b0:400d:c09::235]:35755) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ckIDZ-00062u-VT for emacs-devel@gnu.org; Sat, 04 Mar 2017 17:32:02 -0500 Original-Received: by mail-qk0-x235.google.com with SMTP id v125so46163173qkh.2 for ; Sat, 04 Mar 2017 14:32:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=CdqHS2MmxRdeT1i0xkXJe3O9kmoahXMyFTXZgCVjXjo=; b=T7Xvj4nvZIyd4IfqStdZrZQbdH/nCdUZbjDbKNBX5SDemwMe15hZ+Ia2PURoDaqgzg nV8W069p9OOEMAjBgw9KlfvZ3PmWlTGR42rO9t33FMiJ+PfOIubbm7fc4Ur1MAEk3vMX elXjfCwd5+/IJ9JOPbAUGRBk7iqlD9wj4Av4lNnSLBO8PZdWDNKKWIdpm5xqQ/dGLRvS HVlIrqqSh++HdkIXTNdpYhu9iAgyHym7oYNae+O1OMi6WpZxpyEPMt9UyyBV5ktOlWiQ RGVe+2FRvHBgUTnydVaM8ggWyQun+96kEE/V5UG/RSl9B7aC/NTSKygFZHjFU2TPMqdy oYVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=CdqHS2MmxRdeT1i0xkXJe3O9kmoahXMyFTXZgCVjXjo=; b=eUcQZNSbEskP2l+pxqPM7C0ePnBDquWyHjVaV/TjL9sZEBSEBgT8zLLiWq6JyK7Jjb MC8Jps8pavfRd+zxMLaoSvL9yC+YSer4ecVW7/filF8Wf9AxlKE/NmVPbfu6nD4hBncZ mC3f9TnvKLZgew9eMaDx3NpV7vRDBtmlsJl6NtB9T0ZNqEO5k9gttWcavb/ltAtmdmt6 kYc/huKjJNQgk0FCq8CakLuTsEPtNMkLjYnrx+c2AJ4vU+y/8y+G47NJG5GaFtJuaf/o zdyftRVYCoE+Y9QCBURAEzvVII+iueDH5yLebhNB2bu74/b49rxIPckvFmofEmk5JEMu 2FRA== X-Gm-Message-State: AMke39lAw764nz6d+ZwdMQrN41kwcvTrVL89gMF1AhG8mljU2osz9JbIKzBfZnFwQyIQc7uCfpRBHLzOnDw6kw== X-Received: by 10.200.1.14 with SMTP id e14mr10055155qtg.244.1488666721240; Sat, 04 Mar 2017 14:32:01 -0800 (PST) Original-Received: by 10.237.44.98 with HTTP; Sat, 4 Mar 2017 14:32:00 -0800 (PST) In-Reply-To: <87lgskogcn.fsf@holos> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400d:c09::235 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:212753 Archived-At: --f403045ee8821bceaa0549ef3beb Content-Type: text/plain; charset=UTF-8 Yes, that was my conclusion as well. It would seem the problem is really just because (in this case) we have org and org-plus-contrib as two packages in the org/elpa repos when really here should just be org and org-contrib. This would then mean if you have a package which depends on org, all is good and if you want the contrib stuff, you just install an additional package with just the contrib additions. Would also make things easier with 'helpers' like use-package. Tim On 5 March 2017 at 08:57, Mark Oteiza wrote: > Tim Cross writes: > > > Is there a way to specify alternative dependencies in a package? > > > > Situation: installing a package is resulting in an additional package > being installed > > even though the dependencies for the package have already been satisfied > by another > > package. This results in two packages being installed which provide > overlapping > > functionality. > > > > Example. I have installed org-plus-contrib. I then install elfeed-org, > which has a > > dependency on org. This results in the org package being installed, but > org is > > already installed as part of the org-plus-contrib package. > > > > I'm trying to work out if this is a problem with how dependencies are > defined in the > > elfeed-org package or is it a problem with how org-plus-conrib is > specifying what > > dependency it satisfies? Need to know in order to determine where this > issue needs to > > be logged. > > IIUC, package.el figures out dependencies by package name, not by the > features it provides. So, I think the answer to your question is no. > -- regards, Tim -- Tim Cross --f403045ee8821bceaa0549ef3beb Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Yes, that was my conclusion as well. It would seem the pro= blem is really just because (in this case) we have org and org-plus-contrib= as two packages in the org/elpa repos when really here should just be org = and org-contrib. This would then mean if you have a package which depends o= n org, all is good and if you want the contrib stuff, you just install an a= dditional package with just the contrib additions.=C2=A0 Would also make th= ings easier with 'helpers' like use-package.=C2=A0

Tim

--f403045ee8821bceaa0549ef3beb--