Package: libstdc++6 Version: 16.2.0-4 Tags: patch User: [email protected] Usertags: rebootstrap
Hi Matthias, I noticed that when building DEB_STAGE=rtlibs, the generated libstdc++6.prerem is broken, because TARGET_QUAL ends up being empty. For native builds as well as cross building the compiler, it is non-empty. When empty, removing libstdc++6 results in strange output: | dpkg-query: error: --listfiles needs a valid package name but 'libstdc++6' is not: ambiguous package name 'libstdc++6' with more than one installed instance | | Use --help for help about querying packages. | dpkg-query: error: --listfiles needs a valid package name but 'libstdc++6' is not: ambiguous package name 'libstdc++6' with more than one installed instance | | Use --help for help about querying packages. Presently, TARGET_QUAL is set when the host architecture equals the target condition. Clearly, when that condition holds, it needs to be set, but it also needs to be set for DEB_STAGE=rtlibs. I observe that in both cases LS ends up being empty. When LS is non-empty, the relevant package is renamed and Arch:all, so TARGET_QUAL needs to be empty. The prerm is the only location where TARGET_QUAL is being used. So this looks like the right condition to me. Please consider applying the attached patch. Helmut

