unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#34321: reproducibility: absolute file name in newst-treeview.elc
@ 2019-02-04 22:55 Glenn Morris
  2019-02-05 16:15 ` Eli Zaretskii
  2022-01-29 15:15 ` bug#34322: reproducibility: absolute file name in tramp.elc Lars Ingebrigtsen
  0 siblings, 2 replies; 8+ messages in thread
From: Glenn Morris @ 2019-02-04 22:55 UTC (permalink / raw)
  To: 34321

Package: emacs
Version: 26.1.91
Severity: minor

For some reason, the definition of newsticker--group-shift in the
compiled file newst-treeview.elc ends up containing a string that points
to the build directory. Eg in the 26.1.91 pretest tarfile, it is:

"/home/nico/work/emacs-26/lisp/emacs-lisp/cl-extra.elc"

This means that newst-treeview.elc is non-reproducible (contents change
as build directory changes).

(Issued spotted in
https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/diffoscope-results/emacs.html
)





^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#34321: reproducibility: absolute file name in newst-treeview.elc
  2019-02-04 22:55 bug#34321: reproducibility: absolute file name in newst-treeview.elc Glenn Morris
@ 2019-02-05 16:15 ` Eli Zaretskii
  2019-02-05 18:52   ` Glenn Morris
  2022-01-29 15:15 ` bug#34322: reproducibility: absolute file name in tramp.elc Lars Ingebrigtsen
  1 sibling, 1 reply; 8+ messages in thread
From: Eli Zaretskii @ 2019-02-05 16:15 UTC (permalink / raw)
  To: Glenn Morris, Stefan Monnier; +Cc: 34321

> From: Glenn Morris <rgm@gnu.org>
> Date: Mon, 04 Feb 2019 17:55:09 -0500
> 
> For some reason, the definition of newsticker--group-shift in the
> compiled file newst-treeview.elc ends up containing a string that points
> to the build directory. Eg in the 26.1.91 pretest tarfile, it is:
> 
> "/home/nico/work/emacs-26/lisp/emacs-lisp/cl-extra.elc"

Looks like a pointer to a place where cl-concatenate is defined.





^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#34321: reproducibility: absolute file name in newst-treeview.elc
  2019-02-05 16:15 ` Eli Zaretskii
@ 2019-02-05 18:52   ` Glenn Morris
  0 siblings, 0 replies; 8+ messages in thread
From: Glenn Morris @ 2019-02-05 18:52 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 34321, Stefan Monnier

Eli Zaretskii wrote:

>> to the build directory. Eg in the 26.1.91 pretest tarfile, it is:
>> 
>> "/home/nico/work/emacs-26/lisp/emacs-lisp/cl-extra.elc"
>
> Looks like a pointer to a place where cl-concatenate is defined.

I was going to say that this is a defun, not a defsubst, but then I see
that it is "proclaimed inline" in cl-macs.el, so it is a (confusing)
defsubst, so this is probably the same root cause as #34322.





^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#34322: reproducibility: absolute file name in tramp.elc
  2019-02-04 22:55 bug#34321: reproducibility: absolute file name in newst-treeview.elc Glenn Morris
  2019-02-05 16:15 ` Eli Zaretskii
@ 2022-01-29 15:15 ` Lars Ingebrigtsen
  2022-01-29 17:40   ` bug#34321: " Glenn Morris
  1 sibling, 1 reply; 8+ messages in thread
From: Lars Ingebrigtsen @ 2022-01-29 15:15 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 34321, 34322

Glenn Morris <rgm@gnu.org> writes:

> For some reason, the definition of newsticker--group-shift in the
> compiled file newst-treeview.elc ends up containing a string that points
> to the build directory. Eg in the 26.1.91 pretest tarfile, it is:
>
> "/home/nico/work/emacs-26/lisp/emacs-lisp/cl-extra.elc"
>
> This means that newst-treeview.elc is non-reproducible (contents change
> as build directory changes).

I grepped through the news*.elc files for /home, but couldn't find any.
So has this problem fixed itself since it was reported?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#34321: bug#34322: reproducibility: absolute file name in tramp.elc
  2022-01-29 15:15 ` bug#34322: reproducibility: absolute file name in tramp.elc Lars Ingebrigtsen
@ 2022-01-29 17:40   ` Glenn Morris
  2022-01-30 15:54     ` Lars Ingebrigtsen
  0 siblings, 1 reply; 8+ messages in thread
From: Glenn Morris @ 2022-01-29 17:40 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 34321, 34322

Lars Ingebrigtsen wrote:

> So has this problem fixed itself since it was reported?

No it has not.

find . -name '*.elc' | xargs grep /scratch
Binary file ./lisp/org/ox-odt.elc matches
Binary file ./lisp/org/ox.elc matches
Binary file ./lisp/progmodes/cc-mode.elc matches

Even if that didn't return any matches, the onus would still be there to
verify that it was due to a genuine bytecode fix rather than
coincidental changes in the source files or build ordering.





^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#34322: reproducibility: absolute file name in tramp.elc
  2022-01-29 17:40   ` bug#34321: " Glenn Morris
@ 2022-01-30 15:54     ` Lars Ingebrigtsen
  2022-01-30 17:03       ` bug#34321: " Andreas Schwab
  0 siblings, 1 reply; 8+ messages in thread
From: Lars Ingebrigtsen @ 2022-01-30 15:54 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 34321, 34322

Glenn Morris <rgm@gnu.org> writes:

>> So has this problem fixed itself since it was reported?
>
> No it has not.
>
> find . -name '*.elc' | xargs grep /scratch
> Binary file ./lisp/org/ox-odt.elc matches
> Binary file ./lisp/org/ox.elc matches
> Binary file ./lisp/progmodes/cc-mode.elc matches

Ah, right, I also get my complete path in those .elc files.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#34321: bug#34322: reproducibility: absolute file name in tramp.elc
  2022-01-30 15:54     ` Lars Ingebrigtsen
@ 2022-01-30 17:03       ` Andreas Schwab
  2022-05-01  9:03         ` Lars Ingebrigtsen
  0 siblings, 1 reply; 8+ messages in thread
From: Andreas Schwab @ 2022-01-30 17:03 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: Glenn Morris, 34321, 34322

On Jan 30 2022, Lars Ingebrigtsen wrote:

> Glenn Morris <rgm@gnu.org> writes:
>
>>> So has this problem fixed itself since it was reported?
>>
>> No it has not.
>>
>> find . -name '*.elc' | xargs grep /scratch
>> Binary file ./lisp/org/ox-odt.elc matches
>> Binary file ./lisp/org/ox.elc matches
>> Binary file ./lisp/progmodes/cc-mode.elc matches
>
> Ah, right, I also get my complete path in those .elc files.

That appears to be a bug in the bytecode inliner.  In ox.elc the
function org-element-class (a defsubst) is supposed to be inlined into
org-export-data and org-export-expand, but instead the original bytecode
of org-element-class is put into the bytecode, including its doc string
reference (pointing to org-element.elc, which would normally be written
as $# if it appeared there instead of in ex.elc).

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."





^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#34321: bug#34322: reproducibility: absolute file name in tramp.elc
  2022-01-30 17:03       ` bug#34321: " Andreas Schwab
@ 2022-05-01  9:03         ` Lars Ingebrigtsen
  0 siblings, 0 replies; 8+ messages in thread
From: Lars Ingebrigtsen @ 2022-05-01  9:03 UTC (permalink / raw)
  To: Andreas Schwab
  Cc: Mattias Engdegård, 34322, 34321, Stefan Monnier,
	Glenn Morris

Andreas Schwab <schwab@linux-m68k.org> writes:

> That appears to be a bug in the bytecode inliner.  In ox.elc the
> function org-element-class (a defsubst) is supposed to be inlined into
> org-export-data and org-export-expand, but instead the original bytecode
> of org-element-class is put into the bytecode, including its doc string
> reference (pointing to org-element.elc, which would normally be written
> as $# if it appeared there instead of in ex.elc).

Hm, yes.

(As an aside, org-element-class should probably not be a defsubst,
because three other org files declare-function it because they don't
load it at compile time.  But ox.el does load it when compiling.)

Perhaps Stefan or Mattias have some input on what's going wrong with
inlining here; added to the CCs.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-05-01  9:03 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-02-04 22:55 bug#34321: reproducibility: absolute file name in newst-treeview.elc Glenn Morris
2019-02-05 16:15 ` Eli Zaretskii
2019-02-05 18:52   ` Glenn Morris
2022-01-29 15:15 ` bug#34322: reproducibility: absolute file name in tramp.elc Lars Ingebrigtsen
2022-01-29 17:40   ` bug#34321: " Glenn Morris
2022-01-30 15:54     ` Lars Ingebrigtsen
2022-01-30 17:03       ` bug#34321: " Andreas Schwab
2022-05-01  9:03         ` Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).