-
Hello. We have a workaround in our Fedora package: https://src.fedoraproject.org/rpms/python-rpm-generators/blob/b1fa63bf02b03b2120d32eb91ca2911d4ec77beb/f/pythonname.attr#_6 (see the comment above this line) While debugging a related issue on CentOS Stream 9, I figured out that the warning is no longer present since Fedora 35. reproducer.spec
/usr/lib/rpm/fileattrs/xxx.attr
rpm-4.16.1.3-1.fc34
rpm-4.17.1-3.fc35
Was this warning removed on purpose and can we safely remove the ugly workaround? Or is this a regression? Looking through the relevant code's history near Line 946 in a97c376 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Oh, sorry. I remember seeing this but it's fallen through the cracks. The warning was an artifact of a hack in the rpm level, fixed in commit a9bae82 (in >= 4.17). Rpm never warns on unused automatic macros such as %1, but in 4.16 the %1 passed to the parametric macro was not an automatic macro but a hardcoded hack. That said, a generator not using the filename passed to it via %1 sounds suspicious in itself. |
Beta Was this translation helpful? Give feedback.
Oh, sorry. I remember seeing this but it's fallen through the cracks.
The warning was an artifact of a hack in the rpm level, fixed in commit a9bae82 (in >= 4.17). Rpm never warns on unused automatic macros such as %1, but in 4.16 the %1 passed to the parametric macro was not an automatic macro but a hardcoded hack.
That said, a generator not using the filename passed to it via %1 sounds suspicious in itself.