Red Hat Bugzilla – Bug 12072
po/Makefile.in.in does not use DESTDIR
Last modified: 2008-05-01 11:37:56 EDT
I just reported this to GNU. I'm sure it'll be fixed in whenever the next
release of gettext goes out.
The problem is that the install targets in the default po/Makefile.in.in
template do not use DESTDIR, making it impossible to install anything that
uses the GNU gettext library to install underneath a build root.
Any RPM that uses BuildRoot: for anything that uses gettext is, basically,
I'm going to attach a small patch to fix this.
Created attachment 399 [details]
Patch to the default po/Makefile.in.in template.
Fixed - should show up in next Rawhide. Thanks.
Patch seems to be incomplete because `intl/Makefile.in' is involved in the
DESTDIR issue also.
Additionally please note my comments and patches in message
<firstname.lastname@example.org> (news:gnu.utils.bug) (archived
| Using DESTDIR in this way is a bad idea because it breaks e.g. "make
| DESTDIR=/tmp/... datadir=/usr/share install". It's better to use it in
| the install-rules explicitly.
Can you attach those patches to this bug? TIA.
Created attachment 2034 [details]
patches mentioned above
Thanks - applied.
Although the patch is in the src.rpm, it won't be applied... Perhaps you have
forgotten `patch6 -p1' in the %setup-stage.
Sorry, must be `patch6 -p0'
This has since been fixed (before the reopening, actually - when applying other
patches for gettext to make it work better).
Received an acknowledgement from GNU that the original issue has been fixed in