<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>7795</bug_id>
          
          <creation_ts>2015-05-20 16:34:20 +0000</creation_ts>
          <short_desc>FTBFS: oprofileui-server requires gettext to build</short_desc>
          <delta_ts>2015-11-19 16:06:50 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>kernel</component>
          <version>1.7.1</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.9</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Gabriel M. Beddingfield">gabrbedd</reporter>
          <assigned_to name="Saul Wold">sgw</assigned_to>
          <cc>bogdanx.a.voiculescu</cc>
    
    <cc>bruce.ashfield</cc>
    
    <cc>sgw</cc>
    
    <cc>tom.zanussi</cc>
          
          <qa_contact name="Bogdan Alexandru Voiculescu">bogdanx.a.voiculescu</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>51172</commentid>
    <comment_count>0</comment_count>
    <who name="Gabriel M. Beddingfield">gabrbedd</who>
    <bug_when>2015-05-20 16:34:20 +0000</bug_when>
    <thetext>When building oprofileui-server_git.bb I got the following error:

ERROR: Function failed: do_configure (log file is located at /full/path/redacted/build/tmp/work/corei7-64-redacted-linux/oprofileui-server/0.0+gitAUTOINC+389e1875af-r0/temp/log.do_configure.16819)
ERROR: Logfile of failure stored in: /full/path/redacted/build/tmp/work/corei7-64-redacted-linux/oprofileui-server/0.0+gitAUTOINC+389e1875af-r0/temp/log.do_configure.16819
Log data follows:
| DEBUG: Executing python function sysroot_cleansstate
| DEBUG: Python function sysroot_cleansstate finished
| DEBUG: SITE files [&apos;endian-little&apos;, &apos;common-linux&apos;, &apos;common-glibc&apos;, &apos;bit-64&apos;, &apos;x86_64-linux&apos;, &apos;common&apos;]
| DEBUG: Executing shell function autotools_preconfigure
| DEBUG: Shell function autotools_preconfigure finished
| DEBUG: Executing python function autotools_copy_aclocals
| DEBUG: Python function autotools_copy_aclocals finished
| DEBUG: Executing shell function do_configure
| automake (GNU automake) 1.14.1
| Copyright (C) 2013 Free Software Foundation, Inc.
| License GPLv2+: GNU GPL version 2 or later &lt;http://gnu.org/licenses/gpl-2.0.html&gt;
| This is free software: you are free to change and redistribute it.
| There is NO WARRANTY, to the extent permitted by law.
| 
| Written by Tom Tromey &lt;tromey@redhat.com&gt;
|        and Alexandre Duret-Lutz &lt;adl@gnu.org&gt;.
| AUTOV is 1.14
| NOTE: Executing glib-gettextize --force --copy
| 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 /full/path/redacted/build/tmp/sysroots/x86_64-linux/usr/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/.
| 
| NOTE: Executing intltoolize --copy --force --automake
| NOTE: Executing ACLOCAL=&quot;aclocal --system-acdir=/full/path/redacted/build/tmp/work/corei7-64-redacted-linux/oprofileui-server/0.0+gitAUTOINC+389e1875af-r0/build/aclocal-copy/ --automake-acdir=/full/path/redacted/build/tmp/sysroots/x86_64-linux/usr/share/aclocal-1.14&quot; autoreconf --verbose --install --force --exclude=autopoint
| autoreconf: Entering directory `.&apos;
| autoreconf: configure.ac: not using Gettext
| autoreconf: running: aclocal --system-acdir=/full/path/redacted/build/tmp/work/corei7-64-redacted-linux/oprofileui-server/0.0+gitAUTOINC+389e1875af-r0/build/aclocal-copy/ --automake-acdir=/full/path/redacted/build/tmp/sysroots/x86_64-linux/usr/share/aclocal-1.14 --force
| configure.ac:12: warning: AM_NLS is m4_require&apos;d but not m4_defun&apos;d
| /full/path/redacted/build/tmp/work/corei7-64-redacted-linux/oprofileui-server/0.0+gitAUTOINC+389e1875af-r0/build/aclocal-copy/intltool.m4:27: IT_PROG_INTLTOOL is expanded from...
| /full/path/redacted/build/tmp/work/corei7-64-redacted-linux/oprofileui-server/0.0+gitAUTOINC+389e1875af-r0/build/aclocal-copy/intltool.m4:237: AC_PROG_INTLTOOL is expanded from...
| configure.ac:12: the top level
| autoreconf: configure.ac: tracing
| configure.ac:12: warning: AM_NLS is m4_require&apos;d but not m4_defun&apos;d
| aclocal.m4:462: IT_PROG_INTLTOOL is expanded from...
| aclocal.m4:672: AC_PROG_INTLTOOL is expanded from...
| configure.ac:12: the top level
| autoreconf: configure.ac: not using Libtool
| autoreconf: running: /full/path/redacted/build/tmp/sysroots/x86_64-linux/usr/bin/autoconf --force
| configure.ac:12: warning: AM_NLS is m4_require&apos;d but not m4_defun&apos;d
| aclocal.m4:462: IT_PROG_INTLTOOL is expanded from...
| aclocal.m4:672: AC_PROG_INTLTOOL is expanded from...
| configure.ac:12: the top level
| configure:5134: error: possibly undefined macro: AM_NLS
|       If this token and others are legitimate, please use m4_pattern_allow.
|       See the Autoconf documentation.
| autoreconf: /full/path/redacted/build/tmp/sysroots/x86_64-linux/usr/bin/autoconf failed with exit status: 1
| ERROR: autoreconf execution failed.
| WARNING: /full/path/redacted/build/tmp/work/corei7-64-redacted-linux/oprofileui-server/0.0+gitAUTOINC+389e1875af-r0/temp/run.do_configure.16819:1 exit 1 from
|   exit 1
| ERROR: Function failed: do_configure (log file is located at /full/path/redacted/build/tmp/work/corei7-64-redacted-linux/oprofileui-server/0.0+gitAUTOINC+389e1875af-r0/temp/log.do_configure.16819)
ERROR: Task 2333 (/full/path/redacted/poky/meta/recipes-kernel/oprofile/oprofileui-server_git.bb, do_configure) failed with exit code &apos;1&apos;

Adding &apos;inherit gettext&apos; resolves the issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51262</commentid>
    <comment_count>1</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2015-05-26 15:14:43 +0000</bug_when>
    <thetext>Hi Garbriel,  I am curious about your host configuration, we build this target 
regularly on our Autobuilder and local infrastructure and have not seen this 
failure with AM_NLS, I would like to get a better idea of your host 
configuration, can you send me the original configure script and also the 
build/config.log file (not the log.do_configure), along with the 
temp/run.do_configure script.  While I do see the first suggestion of &quot;Please 
add the files&quot;  Thanks</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>52201</commentid>
    <comment_count>2</comment_count>
    <who name="Gabriel M. Beddingfield">gabrbedd</who>
    <bug_when>2015-07-08 05:28:49 +0000</bug_when>
    <thetext>I&apos;ve been trying to reproduce it... and I can&apos;t find a way to reproduce it with poky and a qemu64 build.

However... in the HAPPY CASE, building oprofileui-server causes gettext&apos;s do_populate_sysroot_setscene to run. The log for that task shows that it installs the m4 files (sysroot-destdir/usr/share/aclocal/*.m4)

In the FAILING case, these files are missing from gettext&apos;s do_populate_sysroot_setscene log.

When adding `inherit gettext&apos;, then gettext&apos;s do_package_setscene executes again, and seems to cause the m4 files to be installed (package/usr/share/aclocal/*.m4).

I&apos;m not sure why the aclocal files are missing from populate_sysroot_setscene in the failing case.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>52245</commentid>
    <comment_count>3</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2015-07-09 15:22:55 +0000</bug_when>
    <thetext>Well since you have not been able to fully reproduce, we are going to close it at this time, if you come up with a reproducible case, please re-open this bug and we can then look into it in more detail.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>52317</commentid>
    <comment_count>4</comment_count>
    <who name="Gabriel M. Beddingfield">gabrbedd</who>
    <bug_when>2015-07-13 16:40:42 +0000</bug_when>
    <thetext>Steps to reproduce:

$ cd path/to/poky
$ rm -rf build
$ . oe-init-build-env
$ echo &apos;PREFERRED_VERSION_gettext = &quot;0.16%&quot;&apos; &gt;&gt; conf/local.conf
$ bitbake oprofileui-server

Expected results:
Build completes

Actual results:
Error messages as shown above

Notes:

1. This is the non-GPL3 version of gettext. Our project pins these packages to the non-GPL3 version so that we develop with the same package versions that we actually deploy to users.

2. The problem may actually be in the packaging of gettext 0.16, since it doesn&apos;t seem to include the aclocal macros. In fact, it looks like it deletes them.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53711</commentid>
    <comment_count>5</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2015-09-03 17:49:26 +0000</bug_when>
    <thetext>The pinning of gettext was crucial information to help identify the issue.

Actually the packaging of gettext is correct, I reviewed the commit that 
changed the packaging (removing the ac files) 
9e10db5bdfe77c0ef2aff2f1cf89958b62c294a1. This commit points to the fact that 
oprofileui-server should really be inheriting gettext.

Can you please confirm in your env that if you add gettext to the inherit it 
works correctly?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53717</commentid>
    <comment_count>6</comment_count>
    <who name="Gabriel M. Beddingfield">gabrbedd</who>
    <bug_when>2015-09-03 22:02:12 +0000</bug_when>
    <thetext>Yes, adding &apos;inherit gettext&apos; resolves the issue... as stated in the OP.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54021</commentid>
    <comment_count>7</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2015-09-14 15:21:07 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=9337ce26f48bd82bb189773c8190981c069a5553

This is in master, and queue in both fido-next and dizzy-next</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54386</commentid>
    <comment_count>8</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2015-09-21 15:04:10 +0000</bug_when>
    <thetext>Both Fido and Dizzy updated now.

Fido: 1245acce1899c2ffef0750b8c33d8c63b36f3c7c
Dizzy: 800a3dc9b0ab28163433c35dbd87951cfe444166</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56655</commentid>
    <comment_count>9</comment_count>
    <who name="Bogdan Alexandru Voiculescu">bogdanx.a.voiculescu</who>
    <bug_when>2015-11-19 16:06:50 +0000</bug_when>
    <thetext>verified on master:1b25a70991589ed1f123015c16ee4806c46e3199
bitbake oprofileui-server
Parsing recipes: 100% |##########################################################################################################################################################| Time: 00:00:18
Parsing of 887 .bb files complete (0 cached, 887 parsed). 1311 targets, 41 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION        = &quot;1.28.0&quot;
BUILD_SYS         = &quot;x86_64-linux&quot;
NATIVELSBSTRING   = &quot;Ubuntu-14.04&quot;
TARGET_SYS        = &quot;x86_64-poky-linux&quot;
MACHINE           = &quot;genericx86-64&quot;
DISTRO            = &quot;poky&quot;
DISTRO_VERSION    = &quot;2.0&quot;
TUNE_FEATURES     = &quot;m64 core2&quot;
TARGET_FPU        = &quot;&quot;
meta
meta-yocto
meta-yocto-bsp    = &quot;master:1b25a70991589ed1f123015c16ee4806c46e3199&quot;

NOTE: Preparing RunQueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
WARNING: Failed to fetch URL ftp://invisible-island.net/ncurses/current/ncurses-5.9-20150329.tgz, attempting MIRRORS if available
WARNING: Failed to fetch URL ftp://invisible-island.net/byacc/byacc-20150711.tgz, attempting MIRRORS if available
WARNING: Failed to fetch URL ftp://ftp.debian.org/debian/pool/main/o/ossp-uuid/ossp-uuid_1.6.2.orig.tar.gz, attempting MIRRORS if available
WARNING: Failed to fetch URL ftp://sourceware.org/pub/libffi/libffi-3.2.1.tar.gz, attempting MIRRORS if available
WARNING: Failed to fetch URL ftp://xmlsoft.org/libxml2/libxml2-2.9.2.tar.gz;name=libtar, attempting MIRRORS if available
WARNING: Failed to fetch URL ftp://ftp.iana.org/tz/releases/tzcode2015g.tar.gz;name=tzcode, attempting MIRRORS if available
WARNING: Failed to fetch URL ftp://ftp.iana.org/tz/releases/tzdata2015g.tar.gz;name=tzdata, attempting MIRRORS if available
NOTE: Tasks Summary: Attempted 1285 tasks of which 0 didn&apos;t need to be rerun and all succeeded.

Summary: There were 7 WARNING messages shown.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>