<?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>7298</bug_id>
          
          <creation_ts>2015-02-06 13:57:35 +0000</creation_ts>
          <short_desc>packagegroups are not rebuilt when rdependency pkg name changes</short_desc>
          <delta_ts>2021-11-16 15:12:38 +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>configuration</component>
          <version>1.6.2</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</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>4.99</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Clemens Lang">clemens.lang</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>alex.kanavin</cc>
    
    <cc>JPEWhacker</cc>
    
    <cc>mikko.rapeli</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>ross.burton</cc>
    
    <cc>samuli.piippo</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>48608</commentid>
    <comment_count>0</comment_count>
      <attachid>2397</attachid>
    <who name="Clemens Lang">clemens.lang</who>
    <bug_when>2015-02-06 13:57:35 +0000</bug_when>
    <thetext>Created attachment 2397
Patch to change packaging of eglibc-utils -&gt; libc-utils, triggering this bug if a packagegroup uses ${LIBC_DEPENDENCIES}

This is point 1 from Bug 5970, but has just bitten me again: When the packaging of a recipe is changed in a way that causes debian.bbclass to rename a package, any packagegroups that reference this package must be rebuilt, but http://git.openembedded.org/openembedded-core/commit/?id=80b065ff46322ec0cad039dfd9eb2d010168dba6 prevents them from being rebuilt.

In my case that happened when I tried to modify eglibc&apos;s packaging to improve license metadata by separating ldconfig (which is GPL-2+) into a separate package. The change simplifies checking for license compliance, because the libc6 package is LGPL-2.1+, which does not have a strong copyleft. Attached is a patch you can use to reproduce the problem (you&apos;ll have to write the packagegroup yourself, but that&apos;s really trivial). The problem occurs because the libc6 package no longer contains binaries and debian.bbclass thus renames all packages generated by the recipe, e.g. from eglibc-utils to libc-utils.

I&apos;d argue the overhead of rebuilding the package groups is small, but the impact of a problem like this is large when it occurs, so 80b065ff46322ec0cad039dfd9eb2d010168dba6 should be reverted or improved to deal with this case correctly. Note that the current master adds &quot;and isAllArch(fn)&quot; to the condition that causes this, but still seems to be affected.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60577</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2016-03-31 09:19:06 +0000</bug_when>
    <thetext>The trouble is the packagegroups are allarch and if we want to make them depend on the packaging relationships, the only option we&apos;d have would be to make them all machine specific, meaning they&apos;d be replicated for each individual machine.

I&apos;ve left this bug open for as long trying to think of some other way to deal with this, but as yet, I&apos;ve not been able to.

I will say that I&apos;m not particularly happy with a number of problems the debian renaming causes though and have been considering specifically encoding the debian renaming in the recipes rather than dynamically generating it as its done today...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83893</commentid>
    <comment_count>2</comment_count>
    <who name="Alexander Kanavin">alex.kanavin</who>
    <bug_when>2019-05-23 12:39:47 +0000</bug_when>
    <thetext>We have also just hit this issue: there is a packagegroup that includes a &apos;somelib&apos; that gets debian-renamed to &apos;libsomelib6&apos;. When an update to somelib recipe causes the renaming to change to &apos;libsomelib9&apos;, packagegroup isn&apos;t updated as it should be.

A quick fix would be to not include the library into the packagegroup (it should be pulled in by depenendecies), but people were wondering why this doesn&apos;t jsut work, and doubting the sstate cache mechanism etc.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90996</commentid>
    <comment_count>3</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2021-07-22 15:22:36 +0000</bug_when>
    <thetext>While there are ways of dealing with this, the problem is relatively rare and the solutions are likely fairly complex so there is no plan to work on this issue.

It&apos;s hard to identify the &apos;libsomelib6&apos; class of packages so we can&apos;t even warn about them being present in a packagegroup in say a sanity check.

If you have an idea other than reverting the commit mentioned, please say so.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91411</commentid>
    <comment_count>4</comment_count>
    <who name="Joshua Watt">JPEWhacker</who>
    <bug_when>2021-09-15 15:11:33 +0000</bug_when>
    <thetext>I believe this may have been fixed by https://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=87c9d29</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91461</commentid>
    <comment_count>5</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2021-09-16 15:44:14 +0000</bug_when>
    <thetext>I&apos;m not sure if this &quot;undoes&quot; things such as debian package renaming or kernel package renaming in cases where we need it.

I think the original plan here is to add checking to allarch packagegroups that all the rdepends/rrecommends don&apos;t have PKG_ renaming active. Those that do have this would show an error asking the user to mark them as machine specific.

That would allow us to revert the fix linked to by Joshua and properly fix the underlying issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91993</commentid>
    <comment_count>6</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2021-11-12 17:32:58 +0000</bug_when>
    <thetext>I&apos;ve sent out a patch which does what I suggested above and checks allarch packagegroups aren&apos;t using PKG renaming, throwing an error if they are. I think that should be as good a compromise as we&apos;ll get with this bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92009</commentid>
    <comment_count>7</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2021-11-15 13:19:05 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=0562ab65936a11217cad570d4d633a246e20d3c6</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92014</commentid>
    <comment_count>8</comment_count>
    <who name="Samuli Piippo">samuli.piippo</who>
    <bug_when>2021-11-16 15:12:38 +0000</bug_when>
    <thetext>The sanity check now barks at nativesdk packagegroups for being allarch even though allarch is never applied to those.

Also the check now seem too eager, as with the change Joshua mentioned, the dependencies should already be using the original pkg name. Could the sanity check verify that pkg is not in RPROVIDES section to avoid false positives?</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>2397</attachid>
            <date>2015-02-06 13:57:35 +0000</date>
            <delta_ts>2015-02-06 13:57:35 +0000</delta_ts>
            <desc>Patch to change packaging of eglibc-utils -&gt; libc-utils, triggering this bug if a packagegroup uses ${LIBC_DEPENDENCIES}</desc>
            <filename>0001-eglibc-Package-ldconfig-in-eglibc-bin.patch</filename>
            <type>text/plain</type>
            <size>3499</size>
            <attacher name="Clemens Lang">clemens.lang</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL21ldGEvcmVjaXBlcy1jb3JlL2VnbGliYy9lZ2xpYmMtcGFja2FnZS5pbmMg
Yi9tZXRhL3JlY2lwZXMtY29yZS9lZ2xpYmMvZWdsaWJjLXBhY2thZ2UuaW5jCmluZGV4IDY3MjE4
MTkuLjdjZTYzNjkgMTAwNjQ0Ci0tLSBhL21ldGEvcmVjaXBlcy1jb3JlL2VnbGliYy9lZ2xpYmMt
cGFja2FnZS5pbmMKKysrIGIvbWV0YS9yZWNpcGVzLWNvcmUvZWdsaWJjL2VnbGliYy1wYWNrYWdl
LmluYwpAQCAtMTcsNyArMTcsNyBAQCBweXRob24gX19hbm9ueW1vdXMgKCkgewogIyBTZXQgdGhp
cyB0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