From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Fabrice Popineau Newsgroups: gmane.emacs.bugs Subject: bug#22582: 25.0.90; package-test fail on w64 Date: Sun, 7 Feb 2016 15:25:42 +0100 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e0160b7c61dd4ef052b2edd0d X-Trace: ger.gmane.org 1454855248 18862 80.91.229.3 (7 Feb 2016 14:27:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 7 Feb 2016 14:27:28 +0000 (UTC) To: 22582@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Feb 07 15:27:14 2016 Return-path: Envelope-to: geb-bug-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 1aSQIz-0000jV-No for geb-bug-gnu-emacs@m.gmane.org; Sun, 07 Feb 2016 15:27:13 +0100 Original-Received: from localhost ([::1]:35154 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aSQIv-0004Aa-OH for geb-bug-gnu-emacs@m.gmane.org; Sun, 07 Feb 2016 09:27:09 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59337) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aSQIq-0004AD-LC for bug-gnu-emacs@gnu.org; Sun, 07 Feb 2016 09:27:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aSQIo-0006fs-Nt for bug-gnu-emacs@gnu.org; Sun, 07 Feb 2016 09:27:04 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:56197) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aSQIo-0006fV-Jz for bug-gnu-emacs@gnu.org; Sun, 07 Feb 2016 09:27:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aSQIo-00049z-Dt for bug-gnu-emacs@gnu.org; Sun, 07 Feb 2016 09:27:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Fabrice Popineau Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 07 Feb 2016 14:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 22582 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.145485517615927 (code B ref -1); Sun, 07 Feb 2016 14:27:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 7 Feb 2016 14:26:16 +0000 Original-Received: from localhost ([127.0.0.1]:36553 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aSQI3-00048o-Uv for submit@debbugs.gnu.org; Sun, 07 Feb 2016 09:26:16 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:40032) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aSQI1-00048Y-8V for submit@debbugs.gnu.org; Sun, 07 Feb 2016 09:26:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aSQHu-0006UN-EL for submit@debbugs.gnu.org; Sun, 07 Feb 2016 09:26:08 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:48046) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aSQHu-0006UG-BW for submit@debbugs.gnu.org; Sun, 07 Feb 2016 09:26:06 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59207) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aSQHs-0003yo-ET for bug-gnu-emacs@gnu.org; Sun, 07 Feb 2016 09:26:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aSQHq-0006S9-H6 for bug-gnu-emacs@gnu.org; Sun, 07 Feb 2016 09:26:04 -0500 Original-Received: from mail-ob0-x229.google.com ([2607:f8b0:4003:c01::229]:33778) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aSQHq-0006S5-A4 for bug-gnu-emacs@gnu.org; Sun, 07 Feb 2016 09:26:02 -0500 Original-Received: by mail-ob0-x229.google.com with SMTP id is5so125071647obc.0 for ; Sun, 07 Feb 2016 06:26:02 -0800 (PST) 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=EiU9/3tKFncKxeYDjIydABwUfekUWv4oJvBv0cRTUkw=; b=h+KIQ9vqYC57Z5o241va/joM7tNe6eaJGk4dXaXT2TyjjEfdhxT3SIp6B23ozw42Fp N0HI+YlsAZmgogISZleSOmM6LRTjDzRrWmVOl1gs1A6rNnBM4i9FVmTdrpZwyrOKngLj xza2HRjTAC1CHnemWOwyHotZdPBUEzk+8XxF/jl16qptcxIGn+FwcocFPo5Qmv1mFacR Vd2kcizImjYLepknxmnrjpsiAZJXTCBzSaV2ODNZjICzrfN2EJhA9q7gZC6xyzQjSBp2 yd7YF6+A/9jj0n9DIFJ0CraRumwGpqSAJyCLNGgb7c+Q/1rW6hc8Pc6t3TAKLx2ar+nV YKpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to :content-type; bh=EiU9/3tKFncKxeYDjIydABwUfekUWv4oJvBv0cRTUkw=; b=asXm4+gpFIKc3mx9Nr4Af91kOqG4GGIegPch8EKoA0luzQCeQfde3ZN4JT2vCT4Hmz dv9aVW9+yAPZ6HmWB1cumS+N9luT9FDtAAFnndl2ozviktOR88BbXCdgk7a3AZAxIKXd hhoDHWAMjycyZHarhps76xYV+pTfcyT8qARU+07eouDf59KfVkLbAPvRE55iZ0z9BPX/ 0fYMSHK0Nb2XBQ7Ch3H+RhWx8mjc5uQOAITugIC6flr3ZkbCHhHkshV1igyVeIPrM7r9 qPCZ1HsnHF1BTXXx8mbWnv45kilzT1sZfYaVJbDmmzRQaGk2Nz6MFIt8tYohqoGZ6EWn wzFA== X-Gm-Message-State: AG10YOTs+5+VMR7JQLo0f3/FQ1sAbvNc0cf0LCUcYYyyQvmulZQYzYj3NtSpvzyV0AEx/gYS1NfUtX9pkmM4yQ== X-Received: by 10.182.73.225 with SMTP id o1mr20733290obv.80.1454855161761; Sun, 07 Feb 2016 06:26:01 -0800 (PST) Original-Received: by 10.202.78.75 with HTTP; Sun, 7 Feb 2016 06:25:42 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:112623 Archived-At: --089e0160b7c61dd4ef052b2edd0d Content-Type: text/plain; charset=UTF-8 The are 2 failures. One can be fixed simply by patching test/automated/package-test.el in the following way: diff --git a/test/automated/package-test.el b/test/automated/package-test.el index e10946e..e2526e3 100644 --- a/test/automated/package-test.el +++ b/test/automated/package-test.el @@ -246,12 +246,15 @@ package-test-desc-version-string "Install a package which includes a dependency." (with-package-test (:basedir "data/package") (package-install-file (expand-file-name "macro-problem-package-1.0/")) - (require 'macro-problem) + (load-library "macro-aux") + (load-library "macro-problem") ;; `macro-problem-func' uses a macro from `macro-aux'. (should (equal (macro-problem-func) '(progn a b))) (package-install-file (expand-file-name "macro-problem-package-2.0/")) ;; After upgrading, `macro-problem-func' depends on a new version ;; of the macro from `macro-aux'. + (load-library "macro-aux") + (load-library "macro-problem") (should (equal (macro-problem-func) '(1 b))) ;; `macro-problem-10-and-90' depends on an entirely new macro from `macro-aux'. (should (equal (macro-problem-10-and-90) '(10 90))))) My question is: when you ``(require 'macro-problem)'', should the package mechanism be clever enough to reload the files when you upgrade the package? Because clearly it doesn't happen there. Second problem directly related to the underlying platform: the connection to http://0.0.0.0:8000/ fails with a 10049 error. This error is frequently reported on forums (see http://www.sockets.com/err_lst1.htm for example). I don't know what is the best fix. diff --git a/test/automated/package-test.el b/test/automated/package-test.el index e10946e..e2526e3 100644 --- a/test/automated/package-test.el +++ b/test/automated/package-test.el @@ -374,7 +377,7 @@ package-test-desc-version-string (skip-unless (not (getenv "NIX_STORE"))) (with-package-test (:basedir package-test-data-dir - :location "http://0.0.0.0:8000/") + :location "http://127.0.0.1:8000/") (let* ((package-menu-async t) (process (start-process "package-server" "package-server-buffer" In GNU Emacs 25.0.90.10 (x86_64-w64-mingw32) of 2016-02-07 built on LOBSANG Repository revision: 9a71f062ce6e610a8206108f551ad029ebac6d33 Windowing system distributor 'Microsoft Corp.', version 10.0.10586 Configured using: 'configure --prefix=/c/Local/Emacs --libexecdir=/c/Local/Emacs/bin --datarootdir=/c/Local/Emacs --localstatedir=/c/Local/Emacs --sysconfdir=/c/Local/Emacs/etc --with-jpeg --with-xpm --with-png --with-tiff --with-rsvg --with-xml2 --with-gnutls --without-imagemagick --enable-checking=no 'CFLAGS=-I/mingw64/include -fomit-frame-pointer -O3 -g0 -mtune=corei7' CPPFLAGS=-I/mingw64/include LDFLAGS=-L/mingw64/lib' Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND DBUS NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS Important settings: value of $LANG: fr_FR locale-coding-system: cp1252 Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Making completion list... Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message dired format-spec rfc822 mml mml-sec epg epg-config gnus-util mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns help-mode easymenu cl-loaddefs pcase cl-lib mail-prsvr mail-utils time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp disp-table w32-win w32-vars term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese charscript case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote w32notify dbusbind w32 multi-tty make-network-process emacs) Memory information: ((conses 16 88612 6686) (symbols 56 19622 0) (miscs 48 37 105) (strings 32 15786 3899) (string-bytes 1 424977) (vectors 16 11609) (vector-slots 8 414040 4736) (floats 8 161 43) (intervals 56 256 6) (buffers 976 12)) --089e0160b7c61dd4ef052b2edd0d Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

The are 2 failures.

One can be fixed simply by patching test/automated/package-test.el i= n
the following way:

diff --git a/test/a= utomated/package-test.el b/test/automated/package-test.el
index e= 10946e..e2526e3 100644
--- a/test/automated/package-test.el
=
+++ b/test/automated/package-test.el
@@ -246,12 +246,15 @@ p= ackage-test-desc-version-string
=C2=A0 =C2=A0"Install a pack= age which includes a dependency."
=C2=A0 =C2=A0(with-package= -test (:basedir "data/package")
=C2=A0 =C2=A0 =C2=A0(pa= ckage-install-file (expand-file-name "macro-problem-package-1.0/"= ))
- =C2=A0 =C2=A0(require 'macro-problem)
+ =C2=A0= =C2=A0(load-library "macro-aux")
+ =C2=A0 =C2=A0(load-= library "macro-problem")
=C2=A0 =C2=A0 =C2=A0;; `macro-= problem-func' uses a macro from `macro-aux'.
=C2=A0 =C2= =A0 =C2=A0(should (equal (macro-problem-func) '(progn a b)))
= =C2=A0 =C2=A0 =C2=A0(package-install-file (expand-file-name "macro-pro= blem-package-2.0/"))
=C2=A0 =C2=A0 =C2=A0;; After upgrading,= `macro-problem-func' depends on a new version
=C2=A0 =C2=A0 = =C2=A0;; of the macro from `macro-aux'.
+ =C2=A0 =C2=A0(load-= library "macro-aux")
+ =C2=A0 =C2=A0(load-library "= ;macro-problem")
=C2=A0 =C2=A0 =C2=A0(should (equal (macro-p= roblem-func) '(1 b)))
=C2=A0 =C2=A0 =C2=A0;; `macro-problem-1= 0-and-90' depends on an entirely new macro from `macro-aux'.
<= div>=C2=A0 =C2=A0 =C2=A0(should (equal (macro-problem-10-and-90) '(10 9= 0)))))

My question is: when you ``(require 'ma= cro-problem)'',
should the package mechanism be clever en= ough to reload the files
when you upgrade the package? Because cl= early it doesn't happen
there.

Secon= d problem directly related to the underlying platform: the
connec= tion to http://0.0.0.0:8000/ fails wit= h a 10049 error.
This error is frequently reported on forums (see=
I don't know what is th= e best fix.

diff --git a/test/automated/package-te= st.el b/test/automated/package-test.el
index e10946e..e2526e3 100= 644
--- a/test/automated/package-test.el
+++ b/test/aut= omated/package-test.el
@@ -374,7 +377,7 @@ package-test-desc-vers= ion-string
=C2=A0 =C2=A0(skip-unless (not (getenv "NIX_STORE= ")))
=C2=A0 =C2=A0(with-package-test (:basedir
=C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0package-test-data-dir
- =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0:location "http://0.0.0.0:8000/")
+ =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0:location &qu= ot;http://127.0.0.1:8000/")
=C2=A0 =C2=A0 =C2=A0(let* ((package-menu-async t)
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (process (start-process
=C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 &quo= t;package-server" "package-server-buffer"




In GNU Emacs 25.0.90.10= (x86_64-w64-mingw32)
=C2=A0of 2016-02-07 built on LOBSANG
<= div>Repository revision: 9a71f062ce6e610a8206108f551ad029ebac6d33
Windowing system distributor 'Microsoft Corp.', version 10.0.10586=
Configured using:
=C2=A0'configure --prefix=3D/c/L= ocal/Emacs --libexecdir=3D/c/Local/Emacs/bin
=C2=A0--datarootdir= =3D/c/Local/Emacs --localstatedir=3D/c/Local/Emacs
=C2=A0--syscon= fdir=3D/c/Local/Emacs/etc --with-jpeg --with-xpm --with-png
=C2= =A0--with-tiff --with-rsvg --with-xml2 --with-gnutls --without-imagemagick<= /div>
=C2=A0--enable-checking=3Dno 'CFLAGS=3D-I/mingw64/include -fo= mit-frame-pointer
=C2=A0-O3 -g0 -mtune=3Dcorei7' CPPFLAGS=3D-= I/mingw64/include
=C2=A0LDFLAGS=3D-L/mingw64/lib'
<= br>
Configured features:
XPM JPEG TIFF GIF PNG RSVG SOU= ND DBUS NOTIFY ACL GNUTLS LIBXML2 ZLIB
TOOLKIT_SCROLL_BARS
<= div>
Important settings:
=C2=A0 value of $LANG: fr_= FR
=C2=A0 locale-coding-system: cp1252

M= ajor mode: Lisp Interaction

Minor modes in effect:=
=C2=A0 tooltip-mode: t
=C2=A0 global-eldoc-mode: t
=C2=A0 electric-indent-mode: t
=C2=A0 mouse-wheel-mode: t<= /div>
=C2=A0 tool-bar-mode: t
=C2=A0 menu-bar-mode: t
=C2=A0 file-name-shadow-mode: t
=C2=A0 global-font-lock-mode: = t
=C2=A0 font-lock-mode: t
=C2=A0 blink-cursor-mode: t<= /div>
=C2=A0 auto-composition-mode: t
=C2=A0 auto-encryption-= mode: t
=C2=A0 auto-compression-mode: t
=C2=A0 line-num= ber-mode: t
=C2=A0 transient-mark-mode: t

Recent messages:
For information about GNU Emacs and the GNU sy= stem, type C-h C-a.
Making completion list...

Load-path shadows:
None found.

Fea= tures:
(shadow sort mail-extr emacsbug message dired format-spec = rfc822 mml
mml-sec epg epg-config gnus-util mm-decode mm-bodies m= m-encode
mail-parse rfc2231 mailabbrev gmm-utils mailheader sendm= ail rfc2047
rfc2045 ietf-drums mm-util help-fns help-mode easymen= u cl-loaddefs pcase
cl-lib mail-prsvr mail-utils time-date mule-u= til tooltip eldoc electric
uniquify ediff-hook vc-hooks lisp-floa= t-type mwheel dos-w32 ls-lisp
disp-table w32-win w32-vars term/co= mmon-win tool-bar dnd fontset image
regexp-opt fringe tabulated-l= ist newcomment elisp-mode lisp-mode
prog-mode register page menu-= bar rfn-eshadow timer select scroll-bar
mouse jit-lock font-lock = syntax facemenu font-core frame cl-generic cham
georgian utf-8-la= ng misc-lang vietnamese tibetan thai tai-viet lao
korean japanese= eucjp-ms cp51932 hebrew greek romanian slovak czech
european eth= iopic indian cyrillic chinese charscript case-table epa-hook
jka-= cmpr-hook help simple abbrev minibuffer cl-preloaded nadvice
load= defs button faces cus-face macroexp files text-properties overlay
sha1 md5 base64 format env code-pages mule custom widget
hashtab= le-print-readable backquote w32notify dbusbind w32 multi-tty
make= -network-process emacs)

Memory information:
<= div>((conses 16 88612 6686)
=C2=A0(symbols 56 19622 0)
= =C2=A0(miscs 48 37 105)
=C2=A0(strings 32 15786 3899)
= =C2=A0(string-bytes 1 424977)
=C2=A0(vectors 16 11609)
= =C2=A0(vector-slots 8 414040 4736)
=C2=A0(floats 8 161 43)
<= div>=C2=A0(intervals 56 256 6)
=C2=A0(buffers 976 12))
=
--089e0160b7c61dd4ef052b2edd0d--