On Tuesday, 27 January 2026 23:03:49 GMT Bruno Haible via GNU roff typesetting
system discussion wrote:
> Deri wrote:
> > > - If it contains data that may be deleted and is persisted only to
> > >
> > > provide a speedup, it should be $HOME/.cache/<program>/
> > > (or $XDG_CACHE_HOME/<program>/ if that environment variable is set
> > > [1]).
> >
> > Hi Bruno,
> >
> > I think this is the appropriate place, _Inline contains a .so containing
> > the C routine which improves performance with large fonts. If it is
> > deleted it is recreated the next time gropdf is run. I will work out how
> > to make it happen.
> Thanks. I agree that the proper location is under $HOME/.cache/gropdf/ then.
>
> You will probably also need to include the architecture (ABI) in the
> file name, since the user may have the same $HOME directory in different
> machines with different architectures (e.g. x86_64 and arm64, or even
> x86_64 and x86).
>
> Also, if different versions of groff produce shared libraries with different
> APIs, you will need to include the groff version in the file name, because
> the user may be running different groff versions at different times (or
> even at the same time).
>
> Bruno
It looks like Inline handles this for me. I took my _Inline directory from
x86_64 and installed it on an aarch64 pi. (Simulating a nfs shared directory
across two machines):-
========================================================
dietpi@tvhnew:~ $ tree _Inline
_Inline
├── build
├── config-x86_64-linux-thread-multi-5.032001
├── config-x86_64-linux-thread-multi-5.036000
└── lib
└── auto
├── gropdf_1c9b
│ ├── gropdf_1c9b.inl
│ └── gropdf_1c9b.so
├── gropdf_1c9bf
│ ├── gropdf_1c9bf.inl
│ └── gropdf_1c9bf.so
├── gropdf_20250619_1c9b
│ ├── gropdf_20250619_1c9b.inl
│ └── gropdf_20250619_1c9b.so
└── gropdf_dj_1c9b
├── gropdf_dj_1c9b.inl
└── gropdf_dj_1c9b.so
dietpi@tvhnew:~ $ echo "Hello"|groff -T pdf > t.pdf
dietpi@tvhnew:~ $ tree _Inline
_Inline
├── build
├── config-aarch64-linux-gnu-thread-multi-5.040001
├── config-x86_64-linux-thread-multi-5.032001
├── config-x86_64-linux-thread-multi-5.036000
└── lib
└── auto
├── gropdf_1c9b
│ ├── gropdf_1c9b.inl
│ └── gropdf_1c9b.so
├── gropdf_1c9bf
│ ├── gropdf_1c9bf.inl
│ └── gropdf_1c9bf.so
├── gropdf_1c9bff
│ ├── gropdf_1c9bff.inl
│ └── gropdf_1c9bff.so
├── gropdf_20250619_1c9b
│ ├── gropdf_20250619_1c9b.inl
│ └── gropdf_20250619_1c9b.so
└── gropdf_dj_1c9b
├── gropdf_dj_1c9b.inl
└── gropdf_dj_1c9b.so
9 directories, 13 files
===================================================
It ran quite happily. :-)
Cheers
Deri