<?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>13250</bug_id>
          
          <creation_ts>2019-03-29 15:31:52 +0000</creation_ts>
          <short_desc>parted-native fails to build</short_desc>
          <delta_ts>2019-03-29 17:25:49 +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>oe-core other</component>
          <version>2.6.3</version>
          <rep_platform>Other</rep_platform>
          <op_sys>arm</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Marc Ferland">marc.ferland</reporter>
          <assigned_to name="Ross Burton">ross.burton</assigned_to>
          
          
          
          <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>83380</commentid>
    <comment_count>0</comment_count>
      <attachid>4456</attachid>
    <who name="Marc Ferland">marc.ferland</who>
    <bug_when>2019-03-29 15:31:52 +0000</bug_when>
    <thetext>Created attachment 4456
temporary fix

Got the following error when building parted-native:

ERROR: parted-native-3.2-r1 do_install: oe_runmake failed
ERROR: parted-native-3.2-r1 do_install: Function failed: do_install (log file is located at /home/vagrant/build/tmp/work/x86_64-linux/parted-native/3.2-r1/temp/log.do_install.24234)
ERROR: Logfile of failure stored in: /home/vagrant/build/tmp/work/x86_64-linux/parted-native/3.2-r1/temp/log.do_install.24234
Log data follows:
| DEBUG: Executing shell function do_install
| NOTE: make -j 4 DESTDIR=/home/vagrant/build/tmp/work/x86_64-linux/parted-native/3.2-r1/image install
| GNUmakefile:43: /maint.mk: No such file or directory
| make: *** No rule to make target &apos;/maint.mk&apos;.  Stop.
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_install (log file is located at /home/vagrant/build/tmp/work/x86_64-linux/parted-native/3.2-r1/temp/log.do_install.24234)
ERROR: Task (virtual:native:/vagrant/yocto/poky/meta/recipes-extended/parted/parted_3.2.bb:do_install) failed with exit code &apos;1&apos;
NOTE: Tasks Summary: Attempted 128 tasks of which 127 didn&apos;t need to be rerun and 1 failed.

Summary: 1 task failed:
  virtual:native:/vagrant/yocto/poky/meta/recipes-extended/parted/parted_3.2.bb:do_install
Summary: There was 1 WARNING message shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.

I temporarily fixed the build issue with the attached patch. It looks like the Makefile provided in the layer was generated by running the configure script in the source directory (and not in the build directory). The Makefile should probably be regenerated for version 3.2 (since it mentions 3.1)...

I tested my patch with parted and parted-native and both built fine.

Note: I&apos;m using poky on the thud layer rev:faeb366bc3eb322f5f203cfe08dc4cf529a822e9</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83383</commentid>
    <comment_count>1</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2019-03-29 17:06:58 +0000</bug_when>
    <thetext>recipes-extended/parted/files/Makefile is only used in do_install_ptest and is copied into $D directly, so I doubt that&apos;s actually the fix and this probably actually breaks the test suite on target.

I suspect what happened is that you added a new patch and it forced a rebuild, which then worked.

If you can replicate this failure after removing this change please re-open, but your patch literally cannot solve a build-time issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83384</commentid>
    <comment_count>2</comment_count>
    <who name="Marc Ferland">marc.ferland</who>
    <bug_when>2019-03-29 17:25:49 +0000</bug_when>
    <thetext>You&apos;re right. 

I did a:
bitbake -c cleansstate parted parted-native &amp;&amp; bitbake parted parted-native

and it worked. My mistake!</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>4456</attachid>
            <date>2019-03-29 15:31:52 +0000</date>
            <delta_ts>2019-03-29 15:31:52 +0000</delta_ts>
            <desc>temporary fix</desc>
            <filename>0001-parted-fix-native-build.patch</filename>
            <type>text/plain</type>
            <size>814</size>
            <attacher name="Marc Ferland">marc.ferland</attacher>
            
              <data encoding="base64">RnJvbSAzODM3MmEzZjFjOTFkYzdmZDFhY2E5NzZiZjAxM2ExNmRiOWZjNTlmIE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQpGcm9tOiBNYXJjIEZlcmxhbmQgPGZlcmxhbmRtQGFtb3R1cy5jYT4KRGF0
ZTogRnJpLCAyOSBNYXIgMjAxOSAxMToyNjo0MSAtMDQwMApTdWJqZWN0OiBbUEFUQ0hdIHBhcnRl
ZDogZml4IG5hdGl2ZSBidWlsZAoKLS0tCiBtZXRhL3JlY2lwZXMtZXh0ZW5kZWQvcGFydGVkL2Zp
bGVzL01ha2VmaWxlIHwgNCArKy0tCiAxIGZpbGUgY2hhbmdlZCwgMiBpbnNlcnRpb25zKCspLCAy
IGRlbGV0aW9ucygtKQoKZGlmZiAtLWdpdCBhL21ldGEvcmVjaXBlcy1leHRlbmRlZC9wYXJ0ZWQv
ZmlsZXMvTWFrZWZpbGUgYi9tZXRhL3JlY2lwZXMtZXh0ZW5kZWQvcGFydGVkL2ZpbGVzL01ha2Vm
aWxlCmluZGV4IGVlOTBiZTA4MTQuLjc1YTdlZWRlNjggMTAwNjQ0Ci0tLSBhL21ldGEvcmVjaXBl
cy1leHRlbmRlZC9wYXJ0ZWQvZmlsZXMvTWFrZWZpbGUKKysrIGIvbWV0YS9yZWNpcGVzLWV4dGVu
ZGVkL3BhcnRlZC9maWxlcy9NYW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