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

Bug 682880

Summary: x11-misc/xkeyboard-config-2.25: broken build time dependency with automake:1.15
Product: Gentoo Linux Reporter: Luna <kurogetsusai>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED INVALID    
Severity: minor    
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build log
user patch

Description Luna 2019-04-08 13:31:39 UTC
I patch my xkeyboard-config to add my custom keyboard layout, so I need to recompile that package everytime i change that layout, but compilation always fails because it needs automake 1.15 which isn't pulled automatically when installing xkeyboard-config. Compiles fine when I explicitly install automake 1.15.

Workaround:
emerge -av1 automake:1.15

Reproducible: Always

Steps to Reproduce:
1. emerge -av1 xkeyboard-config
Actual Results:  
Fails to build.

Build log:
(lots of stuff)
Making all in symbols
make[1]: Entering directory '/var/tmp/portage/x11-misc/xkeyboard-config-2.25/work/xkeyboard-config-2.25/symbols'
 cd .. && /bin/sh /var/tmp/portage/x11-misc/xkeyboard-config-2.25/work/xkeyboard-config-2.25/missing automake-1.15 --foreign symbols/Makefile
/var/tmp/portage/x11-misc/xkeyboard-config-2.25/work/xkeyboard-config-2.25/missing: line 81: automake-1.15: command not found
WARNING: 'automake-1.15' is missing on your system.
         You should only need it if you modified 'Makefile.am' or
         'configure.ac' or m4 files included by 'configure.ac'.
         The 'automake' program is part of the GNU Automake package:
         <http://www.gnu.org/software/automake>
         It also requires GNU Autoconf, GNU m4 and Perl in order to run:
         <http://www.gnu.org/software/autoconf>
         <http://www.gnu.org/software/m4/>
         <http://www.perl.org/>
make[1]: *** [Makefile:403: Makefile.in] Error 127
make[1]: Leaving directory '/var/tmp/portage/x11-misc/xkeyboard-config-2.25/work/xkeyboard-config-2.25/symbols'
make: *** [Makefile:461: all-recursive] Error 1
 * ERROR: x11-misc/xkeyboard-config-2.25::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=x11-misc/xkeyboard-config-2.25::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=x11-misc/xkeyboard-config-2.25::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/x11-misc/xkeyboard-config-2.25/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/x11-misc/xkeyboard-config-2.25/temp/environment'.
 * Working directory: '/var/tmp/portage/x11-misc/xkeyboard-config-2.25/work/xkeyboard-config-2.25'
 * S: '/var/tmp/portage/x11-misc/xkeyboard-config-2.25/work/xkeyboard-config-2.25'

Expected Results:  
Build the package successfully.
Comment 1 Luna 2019-04-08 13:39:20 UTC
Created attachment 572232 [details]
build log
Comment 2 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2019-04-08 13:46:29 UTC
Please attach the pacth(es) you are applying.
Comment 3 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2019-04-08 13:46:39 UTC
*patch(es)
Comment 4 Luna 2019-04-08 14:10:37 UTC
Created attachment 572238 [details, diff]
user patch

Oh, sorry, I thought it happens regardless of user patches but looks like I was wrong. It compiles fine without this patch. In that case I'm not sure whether it's a bug that should be fixed or should I just add automake:1.15 to my world file instead?
Comment 5 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2019-04-08 17:43:51 UTC
well, you're modifying Makefile.am which triggers maintainer-mode which triggers rebuild of Makefile.in and Makefile. If you can move that change over to Makefile.in your issue should be fixed.
Comment 6 Luna 2019-04-08 20:43:30 UTC
You're right, I moved that change to Makefile.in and it compiles without automake:1.15. Thank you and sorry for creating this bug request, I thought it was a problem with the ebuild, but it was just my patch.