#809931 org-mode: org-odt-data-dir is incorrectly set

#809931#5
Date:
2016-01-04 22:34:36 UTC
From:
To:
Exporting as ODT does not work, because org-odt-data-dir is set by default
to /usr/share/emacs/etc/org, while the relevant files are installed in
/usr/share/emacs/site-lisp/org-mode/etc/styles/

Either org-odt-data-dir should be set to the latter directory, or the files
installed in the former.

#809931#10
Date:
2016-01-04 22:42:55 UTC
From:
To:
The correct value for org-odt-data-dir is actually

/usr/share/emacs/site-lisp/org-mode/etc

(not …/styles as I previously said).

#809931#19
Date:
2023-08-24 00:40:34 UTC
From:
To:
Hello Reuben,

Reuben Thomas <rrt@sc3d.org> writes:

Wow, it seems no one saw this bug for quite some time...  I recently did
some Debian Emacsen Team uploads for org-mode, and I noticed that the
following are not currently installed in the elpa-org package:

  etc/csl/locales-en-US.xml
  etc/styles/OrgOdtContentTemplate.xml
  etc/styles/OrgOdtStyles.xml

however, emacs-common installs this:

  /usr/share/emacs/28.2/etc/org/OrgOdtStyles.xml

Do you know if the copy bundled with Emacs is sufficient, or if we
should be setting org-odt-data-dir to a value specific to elpa-org?

Regards,
Nicholas

#809931#24
Date:
2023-08-24 16:34:35 UTC
From:
To:

I'm sorry, I don't know; these days I install org-mode manually from ELPA.
However, it would seem to make sense that elpa-org would get its own copy,
although at the same time, presumably that file doesn't change that often.

#809931#29
Date:
2023-08-24 17:18:43 UTC
From:
To:
Reuben Thomas <rrt@sc3d.org> writes:

Indeed!

#809931#34
Date:
2025-09-07 00:13:34 UTC
From:
To:
Reuben Thomas <rrt@sc3d.org> writes:

I can't reproduce this bug in trixie (nor bookworm, if I remember
correctly), so I'm marking it unreproducible.  Upstream Org-mode states
that they only support the last couple Emacs releases, so I think that
it's likely that an Emacs that is new enough for elpa-org will also have
necessary ODT-support files that are new enough, yes, this might not
always be the case, but a backwards-incompatible ODT change will require
a manual intervention for elpa-org to adapt to this hypothetical case.

Given that these xml files have not changed at all between the Emacs
shipped with bookworm and the current release of Org-mode, I think it's
reasonable to use upstream's fixed default 'org-odt-data-dir'.

I'm happy to see it works by default now!
Best,
Nicholas

#809931#47
Date:
2026-06-29 18:48:52 UTC
From:
To:
[The following email didn't make it to this bug, because this bug was
still archived 12 Jun 2026]

    It looks like this bug was only incidentally resolved because
    emacs-common and elpa-org versions were close enough at the time I
    tested if the bug was still reproducible; this is why I couldn't
    reproduce the bug.  I'm working on a proper fix now!
    (12 June 2026)

It's now June 29th and I have a couple moments of free time to test to
fix.  If it looks good then I'll upload and this bug will finally be
properly fixed.

Cheers,
Nicholas

#809931#52
Date:
2026-06-29 19:18:51 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
org-mode, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 809931@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Nicholas D Steeves <sten@debian.org> (supplier of updated org-mode package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Mon, 29 Jun 2026 14:21:17 -0400
Source: org-mode
Architecture: source
Version: 9.8.6+dfsg-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Emacsen team <debian-emacsen@lists.debian.org>
Changed-By: Nicholas D Steeves <sten@debian.org>
Closes: 809931
Changes:
 org-mode (9.8.6+dfsg-1) unstable; urgency=medium
 .
   * No longer exclude schema and other supporting files.  In Bug #809931,
     upstream indicates that the expectation is that we will ship an
     equivalently full-featured package to theirs, and the implication is
     that a newer version of org-mode should provide these additional
     support files because it is plausible that they did not exist at the
     time an old version of org-mode was bundled with Emacs.  Meanwhile, if
     OpenDocument-schema-v1.3+libreoffice.rnc and
     OpenDocument-schema-v1.3.rnc are in fact non-dfsg, then our emacs-common
     has a release-critical bug, because it provides them.
   * Exclude .gitignore which makes Debian patch management painful.
   * Drop elpa-org.postinst, which has not been needed since oldoldstable
     --or even earlier.
   * Drop org-mode.maintscript, because it has been more than long
     enough since elpafication that no one will have org-mode files in
     /etc/emacs/site-start.d.
   * Install csl, schema, and styles to the elpa-package-specific,
     Debian Emacs Policy-compliant location similarly to how upstream does.
   * Go one step further than upstream and make it work out of the box
     by providing a sensible default value for org-odt-data-dir using
     0002-Use-elpa-dir-for-org-odt-data-dir.patch (Closes: #809931).
   * New upstream release.
Checksums-Sha1:
 86b5b819890c177cc0d0c3701cd4a94548db3a21 2014 org-mode_9.8.6+dfsg-1.dsc
 895edd055bc5dbab0a5f614ebb6ba061b7a0fff8 2046836 org-mode_9.8.6+dfsg.orig.tar.gz
 90b38e95d38532431573ce5743fe661af9d2fb9f 18412 org-mode_9.8.6+dfsg-1.debian.tar.xz
 5ba1e7c8f2468acf7d1a27b9b4f0e7a233413f72 8180 org-mode_9.8.6+dfsg-1_amd64.buildinfo
Checksums-Sha256:
 90adb3eee3d57329d4866ebb223837dfb05cabbd08b1b99bddf69b130306e1ba 2014 org-mode_9.8.6+dfsg-1.dsc
 b68d5a82bdd2b432939dbd2e76b74b926d6f7fef0dbc29f82e1bd41f0a6fd75c 2046836 org-mode_9.8.6+dfsg.orig.tar.gz
 5ab7ce7edb36b5e4c7f237ad9aeeef23b4f9d1826e16f43690a14921834cb2ee 18412 org-mode_9.8.6+dfsg-1.debian.tar.xz
 a1de5ef872d63f1f00b9bd812668c03f9b176fb46247eb6cdc4bc61d41d89750 8180 org-mode_9.8.6+dfsg-1_amd64.buildinfo
Files:
 442609c6526cc86ce938c64fe1094053 2014 lisp optional org-mode_9.8.6+dfsg-1.dsc
 8a18a0d2d42640f27f0b89e27121adaf 2046836 lisp optional org-mode_9.8.6+dfsg.orig.tar.gz
 7ec79b0cb5e1e92a211a9cb9396c39f7 18412 lisp optional org-mode_9.8.6+dfsg-1.debian.tar.xz
 37c5b45c51d45e2b4b36666ea8c30db3 8180 lisp optional org-mode_9.8.6+dfsg-1_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEE4qYmHjkArtfNxmcIWogwR199EGEFAmpCwMkACgkQWogwR199
EGEvLw/8Cx5+57oSVgRwyqm6k6uQskHPqVk6HmtuHGStfQv78u6mgiBw1UtybJOc
Fj3ahLJAb1+OjLyMlgqiu0FKo9qCUBKNYxG2VdqlLhNM1sGB39uZ9u1sZQ6y0y8N
/hZNSWscNMPLT7p2NmiJzCYf0kicZzhHmUyYZh7RX8AN1wkD1S+atvDlnasJ/uhF
Fo/cMtvNDQcUVt0Agyqyt4LS7XUgJFPimcZIzlYzVIJkjodcIUlV0XmdPgW58bQl
vrI3EX46h8I+Kkp3tMHcyXNXlpB+WvQiu6jIA6XFE6v9oV5OuOcYTso28OMkxrVI
yZhhbKYI9IoNs/xpnmMgMkXQY4uRVbm2hhH4RmizeNJ9LRbxgQbtEH9vo7VKjOYU
sg4LPHwNCABYvwQjxfB4alNgJnom9PPWJFfBcbUw6WMYtEMk7j1evKWFbQKe8Aqu
ilw7jMV0IQOYYdGS0O7uvqL13VqwbgG6evDYZyxblMaB3fDVz/LLwOApU8GPHtne
2HaCGCCgzijnDfrWIi9n3Wm2eyTakwSi1ejFuPXjMDx1lqkMLBWgQBdgGhAGCSpN
415CVETVfb+2qQzjgLALpvJk25sLbt6NWwN6JsKn9+JrBiPlRZRtuhncRyv2473i
L0LRhpXKpUVXkEhOX9a16IkgXMmHgQz9VU6F24mPdAY2ttXrhok=
=02lo
-----END PGP SIGNATURE-----