Package: po4a
Version: 0.58.1-1
Severity: important
Control: affects -1 src:aptitude
Control: block 960865 by -1

Dear Martin,

previously when building aptitude's documentation, it sufficed to
declare

  [po_directory] po4a/po

in doc/po4a/po4a.cfg and then calling from the out-of-tree build
directory in e.g. "build/doc/de/"

  /usr/bin/po4a --translate-only=de/manpage.xml --srcdir=../../../doc 
--destdir=../../doc ../../../doc/po4a/po4a.cfg

but since recently, this fails with the IMHO not very helpful error
message:

  ../../../doc/po4a/po4a.cfg:1: no PO files found in po4a/po

See https://bugs.debian.org/960865.

The following change to doc/po4a/po4a.cfg fixes this:

  -[po_directory] po4a/po
  +[po_directory] ../../../doc/po4a/po

But this hardcoding of the relative path to the directory given with
--srcdir IMHO contradicts what is written in the man page:

       --srcdir SRCDIR
           Set the base directory for all input documents specified in
           the po4a configuration file.

           If both destdir and srcdir are specified, input files are
           searched in the following directories, in order: destdir,
           srcdir and the current directory. Output files are written to
           destdir if specified, or to the current directory.

Is there a chance that it has been forgotten to also check for the
po_directory under the directory given by --srcdir?

-- System Information:
Debian Release: bullseye/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (600, 'testing'), (500, 'unstable-debug'), 
(500, 'buildd-unstable'), (110, 'experimental'), (1, 'experimental-debug'), (1, 
'buildd-experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.5.0-1-amd64 (SMP w/4 CPU cores)
Kernel taint flags: TAINT_FIRMWARE_WORKAROUND, TAINT_UNSIGNED_MODULE
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE=C.UTF-8 
(charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)
LSM: AppArmor: enabled

Versions of packages po4a depends on:
ii  gettext            0.19.8.1-10
ii  libsgmls-perl      1.03ii-36
ii  libyaml-tiny-perl  1.73-1
ii  opensp             1.5.2-13+b1
ii  perl               5.30.0-10

Versions of packages po4a recommends:
ii  liblocale-gettext-perl     1.07-4
ii  libterm-readkey-perl       2.38-1+b1
ii  libtext-wrapi18n-perl      0.06-9
ii  libunicode-linebreak-perl  0.0.20190101-1+b2

po4a suggests no packages.

-- no debconf information

Reply via email to