Package: rpm
Version: 4.14.2.1+dfsg1-1
Severity: important

Dear Maintainer,

On my 32-bit ARM system (armhf architecture), the value for the
%{_target} macro returned `rpm` or `rpmbuild` does not match the
directory names in `/usr/lib/rpm/platform`. Subsequently, rpm-package
builds fail as the macros
defined in `/usr/lib/rpm/platform/%{_target}` are not included, e.g.
%{_arch} is not defined in that case.

In particular, `rpm -E '%{_target}'` returns `armv7hnl-linux`, however
the respective directory is called `armv7hnl-linux-gnueabihf`.

Workaround: Creating a sym-link (`ln -s armv7hnl-linux-gnueabihf
armv7hnl-linux`) resolves the issue as the correct macros are
included, but is obviously not a proper solution.

It seems this issue is not present for other architectures (e.g.
x86_64) as the values returned by `rpm` and the directory names in
`/usr/lib/rpm/platform` match there.

-Armin



-- System Information:
Debian Release: 10.5
 APT prefers stable-updates
 APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: armhf (armv7l)

Kernel: Linux 5.4.43-mvebu (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
(ignored: LC_ALL set to en_US.UTF-8), LANGUAGE=en_US.UTF-8
(charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages rpm depends on:
ii  debugedit     4.14.2.1+dfsg1-1
ii  libc6         2.28-10
ii  libelf1       0.176-1.1
ii  libpopt0      1.16-12
ii  librpm8       4.14.2.1+dfsg1-1
ii  librpmbuild8  4.14.2.1+dfsg1-1
ii  librpmio8     4.14.2.1+dfsg1-1
ii  librpmsign8   4.14.2.1+dfsg1-1
ii  perl          5.28.1-6+deb10u1
ii  rpm-common    4.14.2.1+dfsg1-1
ii  rpm2cpio      4.14.2.1+dfsg1-1

rpm recommends no packages.

Versions of packages rpm suggests:
ii  alien     8.95
pn  elfutils  <none>
ii  python    2.7.16-1
pn  rpm-i18n  <none>
pn  rpm2html  <none>
pn  rpmlint   <none>

-- no debconf information

Reply via email to