From unknown Fri Aug 15 14:19:34 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#14639 <14639@debbugs.gnu.org> To: bug#14639 <14639@debbugs.gnu.org> Subject: Status: package-initialize not run Reply-To: bug#14639 <14639@debbugs.gnu.org> Date: Fri, 15 Aug 2025 21:19:34 +0000 retitle 14639 package-initialize not run reassign 14639 emacs submitter 14639 Juanma Barranquero severity 14639 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 16 22:35:09 2013 Received: (at submit) by debbugs.gnu.org; 17 Jun 2013 02:35:09 +0000 Received: from localhost ([127.0.0.1]:49340 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UoPHg-0002Ep-9S for submit@debbugs.gnu.org; Sun, 16 Jun 2013 22:35:08 -0400 Received: from eggs.gnu.org ([208.118.235.92]:42834) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UoPHe-0002EA-6Q for submit@debbugs.gnu.org; Sun, 16 Jun 2013 22:35:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UoPHY-0001al-2K for submit@debbugs.gnu.org; Sun, 16 Jun 2013 22:35:00 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-101.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID,USER_IN_WHITELIST autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:60644) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UoPHX-0001ag-Vf for submit@debbugs.gnu.org; Sun, 16 Jun 2013 22:34:59 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44552) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UoPHX-0006Xy-24 for bug-gnu-emacs@gnu.org; Sun, 16 Jun 2013 22:34:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UoPHW-0001aW-4N for bug-gnu-emacs@gnu.org; Sun, 16 Jun 2013 22:34:58 -0400 Received: from mail-ee0-x234.google.com ([2a00:1450:4013:c00::234]:41893) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UoPHV-0001aJ-U3 for bug-gnu-emacs@gnu.org; Sun, 16 Jun 2013 22:34:58 -0400 Received: by mail-ee0-f52.google.com with SMTP id c50so1470370eek.39 for ; Sun, 16 Jun 2013 19:34:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=WYhH45svDhH0x7Nt9Gsde3o1qLPj3dY2uzvoJnHaVRc=; b=lpBXpBdumh9rZ02cTJ5G8xo8zRHbO/525k8zbQ0fIjNc38a6IqDwTNZSlYyDN/FYUn s/TP1xI48/HyUrZg9SF9hg5seaKkefv6qrczYV0/3+/sVWBpEG5jL6gIMIr6Tis68+e5 eJcsAcSK7nDjw+vFlKNqFlxMv2wxsX5JLVl6dh3640ZVDLv1HTffmFbApfC/9kx3cp46 e2syo6BWfD4s8oa62MvBuF6T/iMOWIsp8JT2GzaWOgOId9kRRWoG8Jwc7SAoxplh8YqY cUO94TafMdssWXc7Db7JiUq7YWv5SvRP6xz8MOQ3pSL3wMus08DipawzhWPePrak2EPz lVmg== X-Received: by 10.15.102.68 with SMTP id bq44mr967948eeb.89.1371436496905; Sun, 16 Jun 2013 19:34:56 -0700 (PDT) MIME-Version: 1.0 Received: by 10.14.142.4 with HTTP; Sun, 16 Jun 2013 19:34:16 -0700 (PDT) From: Juanma Barranquero Date: Mon, 17 Jun 2013 04:34:16 +0200 Message-ID: Subject: package-initialize not run To: Bug-Gnu-Emacs Content-Type: text/plain; charset=UTF-8 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.3 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.3 (----) Package: emacs Version: 24.3.50 X-Debbugs-CC: monnier@iro.umontreal.ca package-initialize is not being run because the code to detect description files does (when (let ((subdir (expand-file-name subdir dir))) (and (file-directory-p subdir) (file-exists-p (package--description-file subdir)))) (throw 'package-dir-found t))))))) but package--description-file does not return an absolute filename, so file-exists-p fails. Either this patch is needed, === modified file 'lisp/startup.el' --- lisp/startup.el 2013-06-15 15:36:11 +0000 +++ lisp/startup.el 2013-06-17 02:21:06 +0000 @@ -1204,5 +1204,7 @@ (and (file-directory-p subdir) (file-exists-p - (package--description-file subdir)))) + (expand-file-name + (package--description-file subdir) + subdir)))) (throw 'package-dir-found t))))))) (package-initialize)) or modifying package--description-file to return an absolute path. From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 17 09:36:27 2013 Received: (at 14639) by debbugs.gnu.org; 17 Jun 2013 13:36:27 +0000 Received: from localhost ([127.0.0.1]:50240 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UoZbe-0006mE-EA for submit@debbugs.gnu.org; Mon, 17 Jun 2013 09:36:26 -0400 Received: from mail-ee0-f54.google.com ([74.125.83.54]:52152) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UoZbb-0006li-N1 for 14639@debbugs.gnu.org; Mon, 17 Jun 2013 09:36:24 -0400 Received: by mail-ee0-f54.google.com with SMTP id t10so1823250eei.27 for <14639@debbugs.gnu.org>; Mon, 17 Jun 2013 06:36:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=de7OpBWhoMhdsVGZYrXYnGlacS0iCTW2OBP5VhN6Ue4=; b=wedf25LOxBHBJHqHMrQrseCZ/pGCGKaNtSvLh4vyWQ39FYYqfLkiQFCQG2P8sGXn4w zUnY5RrRGqyqxXZHdWo6ce59jitAQQvDpxqNcIC/LELQYYwFUIv+0s15cq1fnW/Zexwv FhDm63+BJW/LrZtEXs6OlgZG54C1enLaLNPddGuozSAxpT3uIrWJy3IWkqrMOkJ4ROSc SXcZ93kTM/qiNWV90wPatZZNnySDpHUR+3nKVgiveXtrOXzrXTnlBaxaRjY26ieiWABQ tcq9P5sh7QRXomrwTASipvcShn4Kpa4ITlfy7VoUcTYDM8sFd2y24EkfafZ4H2TIaebH ltAQ== X-Received: by 10.14.38.198 with SMTP id a46mr16655052eeb.42.1371476177777; Mon, 17 Jun 2013 06:36:17 -0700 (PDT) MIME-Version: 1.0 Received: by 10.14.142.4 with HTTP; Mon, 17 Jun 2013 06:35:37 -0700 (PDT) In-Reply-To: References: From: Juanma Barranquero Date: Mon, 17 Jun 2013 15:35:37 +0200 Message-ID: Subject: Re: bug#14639: package-initialize not run To: 14639@debbugs.gnu.org Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 14639 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) On Mon, Jun 17, 2013 at 4:34 AM, Juanma Barranquero wrote: > or modifying package--description-file to return an absolute path. --- lisp/startup.el 2013-06-15 15:36:11 +0000 +++ lisp/startup.el 2013-06-17 13:34:39 +0000 @@ -423,5 +423,6 @@ (defun package--description-file (dir) - (concat (let ((subdir (file-name-nondirectory + (concat (file-name-as-directory dir) + (let ((subdir (file-name-nondirectory (directory-file-name dir)))) (if (string-match "\\([^.].*?\\)-\\([0-9]+\\(?:[.][0-9]+\\|\\(?:pre\\|beta\\|alpha\\)[0-9]+\\)*\\)" subdir) From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 17 10:45:49 2013 Received: (at 14639) by debbugs.gnu.org; 17 Jun 2013 14:45:49 +0000 Received: from localhost ([127.0.0.1]:50769 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Uoagn-0002WA-3F for submit@debbugs.gnu.org; Mon, 17 Jun 2013 10:45:49 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.182]:55776) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Uoagl-0002Qb-RT for 14639@debbugs.gnu.org; Mon, 17 Jun 2013 10:45:48 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EABK/CFFFpZVy/2dsb2JhbABEvw4Xc4IfAQVWIxALDiYSFBgNJIgkwS2RCgOSWwOSHIFegxM X-IPAS-Result: Av4EABK/CFFFpZVy/2dsb2JhbABEvw4Xc4IfAQVWIxALDiYSFBgNJIgkwS2RCgOSWwOSHIFegxM X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="16555200" Received: from 69-165-149-114.dsl.teksavvy.com (HELO pastel.home) ([69.165.149.114]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 17 Jun 2013 10:45:36 -0400 Received: by pastel.home (Postfix, from userid 20848) id B079B63C9B; Mon, 17 Jun 2013 10:45:41 -0400 (EDT) From: Stefan Monnier To: Juanma Barranquero Subject: Re: bug#14639: package-initialize not run Message-ID: References: Date: Mon, 17 Jun 2013 10:45:41 -0400 In-Reply-To: (Juanma Barranquero's message of "Mon, 17 Jun 2013 04:34:16 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 14639 Cc: 14639@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) > - (package--description-file subdir)))) > + (expand-file-name > + (package--description-file subdir) > + subdir)))) Looks good (if you grep a bit, you'll see there are calls to package--description-file which need a relative file name, because it's used to find a file in a tar archive rather than in the file-system). Stefan From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 17 11:37:06 2013 Received: (at 14639-done) by debbugs.gnu.org; 17 Jun 2013 15:37:06 +0000 Received: from localhost ([127.0.0.1]:50884 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UobUP-0004jj-Uh for submit@debbugs.gnu.org; Mon, 17 Jun 2013 11:37:06 -0400 Received: from mail-ee0-f48.google.com ([74.125.83.48]:57505) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UobUN-0004jF-CM for 14639-done@debbugs.gnu.org; Mon, 17 Jun 2013 11:37:04 -0400 Received: by mail-ee0-f48.google.com with SMTP id b47so1889015eek.7 for <14639-done@debbugs.gnu.org>; Mon, 17 Jun 2013 08:36:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=QHxsq3Rv23s45JDV2ECPDAqImYW3hBYYt9xIMvfnxPE=; b=ACfwRgk7JqBFg1qlGQayGU75PcUr8bW29fsg5LCJvUkKqnxoQ8nROFoLY7m1rLw05y EKDbYRaCVMYfdDsTufzbBnQBjNDXx4vqCZg4gZqOy8NRXm63X+ZwS8y0Cy1P+eiS+y0h 9NNHfBDTYhXVtT8YZRMSyR8ZoB5HsRj0lqK3bseWS28WGA5YwVi4LuF2y3aP+bY3jzlx S2osizZ65jMFD5Gpe1OVUiMFCh0aLaLFKX1jmEqxLr7yiI1hNRvsR8p2fsoqoc93UM1j s4DwcGyTX79+wmGBruwZVqBwA2gLb69mFyNOl1k5yNWHk4jsTOr+dqG5j1bpmZw98YLi 7MuA== X-Received: by 10.15.76.71 with SMTP id m47mr17338596eey.70.1371483417405; Mon, 17 Jun 2013 08:36:57 -0700 (PDT) MIME-Version: 1.0 Received: by 10.14.142.4 with HTTP; Mon, 17 Jun 2013 08:36:17 -0700 (PDT) In-Reply-To: References: From: Juanma Barranquero Date: Mon, 17 Jun 2013 17:36:17 +0200 Message-ID: Subject: Re: bug#14639: package-initialize not run To: Stefan Monnier Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 14639-done Cc: 14639-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) On Mon, Jun 17, 2013 at 4:45 PM, Stefan Monnier wrote: > Looks good (if you grep a bit, you'll see there are calls to > package--description-file which need a relative file name, because it's > used to find a file in a tar archive rather than in the file-system). I see. Committed in revno:113021 From unknown Fri Aug 15 14:19:34 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 16 Jul 2013 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator