Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 487794

Summary: sys-devel/gettext-0.18.3.1: 'autopoint' installs macros to / when it can't find m4dir
Product: Gentoo Linux Reporter: Michał Górny <mgorny>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: normal CC: patrick, x11
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://savannah.gnu.org/bugs/index.php?40278
Whiteboard:
Package list:
Runtime testing required: ---

Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-10-12 16:52:09 UTC
The code in autopoint tries to find m4dir using AC_CONFIG_MACRO_DIR and '-I' ACLOCAL_AMFLAGS in Makefile.am. However, when it fails to find one, instead of bailing out it starts copying macros to /.

This can be seen currently in x11-misc/xkeyboard-config-9999::x11:

 * Running autopoint --force ...
 * ACCESS DENIED:  unlinkat:     /codeset.m4
 * ACCESS DENIED:  open_wr:      /codeset.m4
 * ACCESS DENIED:  unlinkat:     /fcntl-o.m4
 * ACCESS DENIED:  open_wr:      /fcntl-o.m4
 * ACCESS DENIED:  unlinkat:     /gettext.m4
 * ACCESS DENIED:  open_wr:      /gettext.m4
(...)
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2013-10-25 11:07:36 UTC
*** Bug 484554 has been marked as a duplicate of this bug. ***
Comment 2 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2013-10-25 12:51:43 UTC
+*gettext-0.18.3.1-r1 (25 Oct 2013)
+
+  25 Oct 2013; Lars Wendler <polynomial-c@gentoo.org>
+  +gettext-0.18.3.1-r1.ebuild,
+  +files/gettext-0.18.3.1-use_m4_fallback_dir.patch:
+  Fixed autopoint installation to / when no m4dir was found (bug #487794).
+  Raised ebuild to EAPI-5. Switched to mono-env eclass.
+