After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 773870 - git master fails to build using JHbuild
git master fails to build using JHbuild
Status: RESOLVED FIXED
Product: gnome-settings-daemon
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gnome-settings-daemon-maint
gnome-settings-daemon-maint
Depends on:
Blocks:
 
 
Reported: 2016-11-03 02:08 UTC by Mohammed Sadiq
Modified: 2016-11-03 08:23 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Mohammed Sadiq 2016-11-03 02:08:09 UTC
git master fails to build using JHBuild.

Relevant part from build log:

configure.ac:512: error: required file 'plugins/media-keys/gvc/Makefile.in' not found
gnome-settings-daemon/Makefile.am: installing './depcomp'
parallel-tests: installing './test-driver'
plugins/power/Makefile.am:67: warning: libexec_PROGRAMS was already defined in condition TRUE, which includes condition HAVE_GUDEV ...
plugins/power/Makefile.am:26: ... 'libexec_PROGRAMS' previously defined here
plugins/smartcard/Makefile.am:59: warning: variable 'libsmartcard_la_SOURCES' is defined but no program or
plugins/smartcard/Makefile.am:59: library has 'libsmartcard_la' as canonical name (possible typo)
plugins/smartcard/Makefile.am:68: warning: variable 'nodist_libsmartcard_la_SOURCES' is defined but no program or
plugins/smartcard/Makefile.am:68: library has 'libsmartcard_la' as canonical name (possible typo)
plugins/smartcard/Makefile.am:91: warning: variable 'libsmartcard_la_LIBADD' is defined but no program or
plugins/smartcard/Makefile.am:91: library has 'libsmartcard_la' as canonical name (possible typo)
plugins/smartcard/Makefile.am:88: warning: variable 'libsmartcard_la_LDFLAGS' is defined but no program or
plugins/smartcard/Makefile.am:88: library has 'libsmartcard_la' as canonical name (possible typo)
autoreconf: automake failed with exit status: 1
*** Error during phase configure of gnome-settings-daemon: ########## Error running /home/sadiq/jhbuild/checkout/gnome-settings-daemon/autogen.sh --prefix /home/sadiq/jhbuild/install --disable-Werror  --disable-static --disable-gtk-doc  ***

Thanks.
Comment 1 Bastien Nocera 2016-11-03 06:31:26 UTC
(In reply to Mohammed Sadiq from comment #0)
> git master fails to build using JHBuild.
> 
> Relevant part from build log:
> 
> configure.ac:512: error: required file 'plugins/media-keys/gvc/Makefile.in'
> not found

One of the errors. Next time, please make sure to include the complete log, include the one that has errors before this.

Fixed in master.
Comment 2 Mohammed Sadiq 2016-11-03 06:44:31 UTC
(In reply to Bastien Nocera from comment #1)
 > One of the errors. Next time, please make sure to include the complete log,
> include the one that has errors before this.

Sorry, I didn't notice the other errors

> 
> Fixed in master.

I still have some strange issue compiling. I have pushd and popd. I'm Debian testing if that matters
The full log:

*** Configuring gnome-settings-daemon *** [1/1]
/home/sadiq/jhbuild/checkout/gnome-settings-daemon/autogen.sh --prefix /home/sadiq/jhbuild/install --disable-Werror  --disable-static --disable-gtk-doc 
/home/sadiq/jhbuild/install/bin/gnome-autogen.sh
/home/sadiq/jhbuild/checkout/gnome-settings-daemon/autogen.sh: 25: /home/sadiq/jhbuild/checkout/gnome-settings-daemon/autogen.sh: pushd: not found
+ Setting up submodules
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
/home/sadiq/jhbuild/checkout/gnome-settings-daemon/autogen.sh: 34: /home/sadiq/jhbuild/checkout/gnome-settings-daemon/autogen.sh: popd: not found
***Warning*** USE_GNOME2_MACROS is deprecated, you may remove it from autogen.sh
***Warning*** PKG_NAME is deprecated, you may remove it from autogen.sh
checking for automake >= 1.5...
  testing automake... found 1.15
checking for autoreconf >= 2.53...
  testing autoreconf... found 2.69
checking for glib-gettext >= 2.2.0...
  testing glib-gettextize... found 2.51.0
checking for intltool >= 0.25...
  testing intltoolize... found 0.51.0
checking for pkg-config >= 0.14.0...
  testing pkg-config... found 0.28
Checking for required M4 macros...
Processing /home/sadiq/jhbuild/checkout/gnome-settings-daemon/configure.ac
Running glib-gettextize... Ignore non-fatal messages.
Copying file po/Makefile.in.in

Please add the files
  codeset.m4 gettext.m4 glibc21.m4 iconv.m4 isc-posix.m4 lcmessage.m4
  progtest.m4
from the /home/sadiq/jhbuild/install/share/aclocal directory to your autoconf macro directory
or directly to your aclocal.m4 file.
You will also need config.guess and config.sub, which you can get from
ftp://ftp.gnu.org/pub/gnu/config/.

Running intltoolize...
Running autoreconf...
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force --warnings=no-portability ${ACLOCAL_FLAGS}
autoreconf: configure.ac: tracing
autoreconf: running: libtoolize --copy --force
libtoolize: putting auxiliary files in '.'.
libtoolize: copying file './ltmain.sh'
libtoolize: Consider adding 'AC_CONFIG_MACRO_DIRS([m4])' to configure.ac,
libtoolize: and rerunning libtoolize and aclocal.
libtoolize: Consider adding '-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
autoreconf: running: /usr/bin/autoconf --force --warnings=no-portability
autoreconf: running: /usr/bin/autoheader --force --warnings=no-portability
autoreconf: running: automake --add-missing --copy --force-missing --warnings=no-portability
configure.ac:20: installing './compile'
configure.ac:23: installing './config.guess'
configure.ac:23: installing './config.sub'
configure.ac:9: installing './install-sh'
configure.ac:9: installing './missing'
Makefile.am: installing './INSTALL'
configure.ac:512: error: required file 'plugins/media-keys/gvc/Makefile.in' not found
gnome-settings-daemon/Makefile.am: installing './depcomp'
parallel-tests: installing './test-driver'
plugins/power/Makefile.am:67: warning: libexec_PROGRAMS was already defined in condition TRUE, which includes condition HAVE_GUDEV ...
plugins/power/Makefile.am:26: ... 'libexec_PROGRAMS' previously defined here
plugins/smartcard/Makefile.am:59: warning: variable 'libsmartcard_la_SOURCES' is defined but no program or
plugins/smartcard/Makefile.am:59: library has 'libsmartcard_la' as canonical name (possible typo)
plugins/smartcard/Makefile.am:68: warning: variable 'nodist_libsmartcard_la_SOURCES' is defined but no program or
plugins/smartcard/Makefile.am:68: library has 'libsmartcard_la' as canonical name (possible typo)
plugins/smartcard/Makefile.am:91: warning: variable 'libsmartcard_la_LIBADD' is defined but no program or
plugins/smartcard/Makefile.am:91: library has 'libsmartcard_la' as canonical name (possible typo)
plugins/smartcard/Makefile.am:88: warning: variable 'libsmartcard_la_LDFLAGS' is defined but no program or
plugins/smartcard/Makefile.am:88: library has 'libsmartcard_la' as canonical name (possible typo)
autoreconf: automake failed with exit status: 1
*** Error during phase configure of gnome-settings-daemon: ########## Error running /home/sadiq/jhbuild/checkout/gnome-settings-daemon/autogen.sh --prefix /home/sadiq/jhbuild/install --disable-Werror  --disable-static --disable-gtk-doc  *** [1/1]

Thanks
Comment 3 Mohammed Sadiq 2016-11-03 06:48:39 UTC
Hm.. using bash instead of sh in autogen.sh fixes the issue
Comment 4 Bastien Nocera 2016-11-03 06:55:30 UTC
Yeah, Ubuntu and Debian's crippled shell... I'm pretty sure all the autogen.sh files around use bash syntax. If that's a problem, please file a bug against jhbuild so it runs the interpreter itself, rather than letting the script specify it.
Comment 5 Bastien Nocera 2016-11-03 08:23:37 UTC
Never mind, I made changes that will also work with ash.