Bug#1027542: epl: FTBFS: make: *** [debian/rules:6: build] Error 25

2023-03-06 Thread David Bremner
David Bremner  writes:

> Adrian Bunk  writes:
>
>>> FTR, the dates when epl started to FTBFS in sid and bookworm are
>>> a good match for when emacs 1:28.2+1-9 entered sid and bookworm:
>>> https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/epl.html
>>
>> Correct link:
>> https://tests.reproducible-builds.org/debian/history/epl.html
>
> Some pretty weird behaviour here
>
> HOME=/n0nexistent emacs -batch -Q -l package \
>   --eval "(add-to-list 'package-directory-list  
> \"/usr/share/emacs/site-lisp/elpa\")" \
>   --eval "(add-to-list 'package-directory-list  
> \"/usr/share/emacs/site-lisp/elpa-src\")" \
>   -f package-initialize -L . -L test --eval "(progn (setq 
> comp-enable-subr-trampolines nil) \
>   (load-file \"test/test-helper.el\") (load-file \"test/epl-test.el\"))" \
>   -l test/epl-test.el --eval \(ert-run-tests-batch-and-exit\)
>
> fails, but replacing /n0nexistent with /nonexistent passes. I hope this is 
> not a sign that someone has special cased /nonexistent, but I fear otherwise.

This weird behaviour is a consequence of emacs' ill-advised
special-casing of "HOME==/nonexistent" in startup.el (around line 550).

if HOME==/nonexistent, then emacs tries to provide a temporary directory
for native compilation output. Why this is needed is a different question.



Bug#1027542: epl: FTBFS: make: *** [debian/rules:6: build] Error 25

2023-03-06 Thread David Bremner
Adrian Bunk  writes:

>> FTR, the dates when epl started to FTBFS in sid and bookworm are
>> a good match for when emacs 1:28.2+1-9 entered sid and bookworm:
>> https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/epl.html
>
> Correct link:
> https://tests.reproducible-builds.org/debian/history/epl.html

Some pretty weird behaviour here

HOME=/n0nexistent emacs -batch -Q -l package \
  --eval "(add-to-list 'package-directory-list  
\"/usr/share/emacs/site-lisp/elpa\")" \
  --eval "(add-to-list 'package-directory-list  
\"/usr/share/emacs/site-lisp/elpa-src\")" \
  -f package-initialize -L . -L test --eval "(progn (setq 
comp-enable-subr-trampolines nil) \
  (load-file \"test/test-helper.el\") (load-file \"test/epl-test.el\"))" \
  -l test/epl-test.el --eval \(ert-run-tests-batch-and-exit\)

fails, but replacing /n0nexistent with /nonexistent passes. I hope this is not 
a sign that someone has special cased /nonexistent, but I fear otherwise.



Bug#1027542: epl: FTBFS: make: *** [debian/rules:6: build] Error 25

2023-02-14 Thread Adrian Bunk
On Tue, Feb 14, 2023 at 12:30:59PM +0200, Adrian Bunk wrote:
> On Mon, Jan 02, 2023 at 08:14:55AM -0400, David Bremner wrote:
> > Lucas Nussbaum  writes:
> > 
> > > Source: epl
> > > Version: 0.9-5
> > > Severity: serious
> > > Justification: FTBFS
> > > Tags: bookworm sid ftbfs
> > > User: lu...@debian.org
> > > Usertags: ftbfs-20230101 ftbfs-bookworm
> > >
> > > Hi,
> > >
> > > During a rebuild of all packages in sid, your package failed to build
> > > on amd64.
> > >
> > 
> > This seems tricky to duplicate
> > 
> > - building on bare metal (sid/bookworm): works
> > - building in sbuild chroot by running dpkg-buildpackage: works
> > - building with sbuild: fails.
> > 
> > As a wild guess I tried adding
> > 
> >export EMACS_INHIBIT_AUTOMATIC_NATIVE_COMPILATION=t
> > 
> > to debian/rules, but it did not help.
> 
> FTR, the dates when epl started to FTBFS in sid and bookworm are
> a good match for when emacs 1:28.2+1-9 entered sid and bookworm:
> https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/epl.html

Correct link:
https://tests.reproducible-builds.org/debian/history/epl.html

cu
Adrian



Bug#1027542: epl: FTBFS: make: *** [debian/rules:6: build] Error 25

2023-02-14 Thread Adrian Bunk
On Mon, Jan 02, 2023 at 08:14:55AM -0400, David Bremner wrote:
> Lucas Nussbaum  writes:
> 
> > Source: epl
> > Version: 0.9-5
> > Severity: serious
> > Justification: FTBFS
> > Tags: bookworm sid ftbfs
> > User: lu...@debian.org
> > Usertags: ftbfs-20230101 ftbfs-bookworm
> >
> > Hi,
> >
> > During a rebuild of all packages in sid, your package failed to build
> > on amd64.
> >
> 
> This seems tricky to duplicate
> 
> - building on bare metal (sid/bookworm): works
> - building in sbuild chroot by running dpkg-buildpackage: works
> - building with sbuild: fails.
> 
> As a wild guess I tried adding
> 
>export EMACS_INHIBIT_AUTOMATIC_NATIVE_COMPILATION=t
> 
> to debian/rules, but it did not help.

FTR, the dates when epl started to FTBFS in sid and bookworm are
a good match for when emacs 1:28.2+1-9 entered sid and bookworm:
https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/epl.html

cu
Adrian



Bug#1027542: epl: FTBFS: make: *** [debian/rules:6: build] Error 25

2023-01-02 Thread David Bremner
Lucas Nussbaum  writes:

> Source: epl
> Version: 0.9-5
> Severity: serious
> Justification: FTBFS
> Tags: bookworm sid ftbfs
> User: lu...@debian.org
> Usertags: ftbfs-20230101 ftbfs-bookworm
>
> Hi,
>
> During a rebuild of all packages in sid, your package failed to build
> on amd64.
>

This seems tricky to duplicate

- building on bare metal (sid/bookworm): works
- building in sbuild chroot by running dpkg-buildpackage: works
- building with sbuild: fails.

As a wild guess I tried adding

   export EMACS_INHIBIT_AUTOMATIC_NATIVE_COMPILATION=t

to debian/rules, but it did not help.



Bug#1027542: epl: FTBFS: make: *** [debian/rules:6: build] Error 25

2023-01-01 Thread Lucas Nussbaum
Source: epl
Version: 0.9-5
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lu...@debian.org
Usertags: ftbfs-20230101 ftbfs-bookworm

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
> make[1]: Entering directory '/<>'
> true
> make[1]: Leaving directory '/<>'
>dh_elpa_test
>   emacs -batch -Q -l package --eval "(add-to-list 'package-directory-list 
> \"/usr/share/emacs/site-lisp/elpa\")" --eval "(add-to-list 
> 'package-directory-list \"/usr/share/emacs/site-lisp/elpa-src\")" -f 
> package-initialize -L . -L test -l test/epl-test.el --eval 
> \(ert-run-tests-batch-and-exit\)
> Running 18 tests (2023-01-01 09:23:13+, selector ‘t’)
>passed   1/18  epl-built-in-packages/catches-all (0.001895 sec)
>passed   2/18  epl-package-as-description/variable-must-be-a-symbol 
> (0.000172 sec)
>passed   3/18  
> epl-package-as-description/variable-must-be-bound-to-epl-package (0.82 
> sec)
>   INFO Scraping files for smartie-package-autoloads.el... 
>   INFO Scraping files for smartie-package-autoloads.el...done
> Checking /<>/test/sandbox/smartie-package-1.2.3...
> Compiling 
> /<>/test/sandbox/smartie-package-1.2.3/smartie-package-autoloads.el...
> Compiling 
> /<>/test/sandbox/smartie-package-1.2.3/smartie-package-pkg.el...
> Compiling 
> /<>/test/sandbox/smartie-package-1.2.3/smartie-package.el...
> Done (Total of 1 file compiled, 2 skipped)
> Setting ‘package-selected-packages’ temporarily since "emacs -q" would 
> overwrite customizations
> Setting ‘package-selected-packages’ temporarily since "emacs -q" would 
> overwrite customizations
> Test epl-package-delete/should-not-be-installed backtrace:
>   comp-el-to-eln-filename("/<>/test/sandbox/smar
>   package--delete-directory("/<>/test/sandbox/sm
>   package-delete(#s(package-desc :name smartie-package :version (1 2 3
>   (with-no-warnings (package-delete (progn (or (progn (and (memq (type
>   (if (epl-package--package-desc-p package) (with-no-warnings (package
>   (let ((delete-by-moving-to-trash nil)) (if (epl-package--package-des
>   epl-package-delete(#s(epl-package :name smartie-package :description
>   (let ((package (car (epl-find-installed-packages 'smartie-package)))
>   (let ((smartie-package (epl-test-resource-file-name "smartie-package
>   (let ((package-user-dir epl-sandbox-directory)) (if (f-dir\? epl-san
>   (let ((lexical-binding t)) (let ((package-user-dir epl-sandbox-direc
>   (closure (t) nil (let ((lexical-binding t)) (let ((package-user-dir 
>   ert--run-test-internal(#s(ert--test-execution-info :test #s(ert-test
>   ert-run-test(#s(ert-test :name epl-package-delete/should-not-be-inst
>   ert-run-or-rerun-test(#s(ert--stats :selector t :tests [... ... ... 
>   ert-run-tests(t #f(compiled-function (event-type  event-args) #
>   ert-run-tests-batch(nil)
>   ert-run-tests-batch-and-exit()
>   command-line-1(("-l" "package" "--eval" "(add-to-list 'package-direc
>   command-line()
>   normal-top-level()
> Test epl-package-delete/should-not-be-installed condition:
> (error "Cannot find suitable directory for output in 
> ‘native-comp-eln-load-path’.")
>FAILED   4/18  epl-package-delete/should-not-be-installed (0.350690 sec)
>   INFO Scraping files for smartie-package-autoloads.el... 
>   INFO Scraping files for smartie-package-autoloads.el...done
> Checking /<>/test/sandbox/smartie-package-1.2.3...
> Compiling 
> /<>/test/sandbox/smartie-package-1.2.3/smartie-package-autoloads.el...
> Compiling 
> /<>/test/sandbox/smartie-package-1.2.3/smartie-package-pkg.el...
> Compiling 
> /<>/test/sandbox/smartie-package-1.2.3/smartie-package.el...
> Done (Total of 1 file compiled, 2 skipped)
> Setting ‘package-selected-packages’ temporarily since "emacs -q" would 
> overwrite customizations
> Setting ‘package-selected-packages’ temporarily since "emacs -q" would 
> overwrite customizations
> Test epl-package-directory/should-work backtrace:
>   comp-el-to-eln-filename("/<>/test/sandbox/smar
>   package--delete-directory("/<>/test/sandbox/sm
>   package-delete(#s(package-desc :name smartie-package :version (1 2 3
>   (with-no-warnings (package-delete (progn (or (progn (and (memq (type
>   (if (epl-package--package-desc-p package) (with-no-warnings (package
>   (let ((delete-by-moving-to-trash nil)) (if (epl-package--package-des
>   epl-package-delete(#s(epl-package :name smartie-package :description
>   (let ((package (epl-find-installed-package 'smartie-package))) (let*
>   (let ((package-user-dir epl-sandbox-directory)) (if (f-dir\? epl-san
>   (let ((lexical-binding t)) (let ((package-user-dir epl-sandbox-direc
>   (closure (t) nil (let ((lexical-binding t)) (let ((package-user-dir 
>   ert--run-test-internal(#s(ert--test-execution-info :test #s(ert-test
>   ert-run-test(#s(ert-test :name epl-package-directory/should-work :do
>   ert-run-or-rerun-test(#s(ert--stats :selector t :tests ... :test-map
>   ert-run-tests(t