On Sat, Jan 22, 2022 at 08:54:02PM -0700, Jerry James wrote:
> On Fri, Jan 21, 2022 at 5:35 PM Robert-André Mauchin <zebob.m(a)gmail.com>
wrote:
>> Sorry for the necro but there seems to be a problem with this change. It
>> broke multiple packages at the linking stage:
>>
https://bugzilla.redhat.com/show_bug.cgi?id=2043178
>>
>> On the package-note repo
https://github.com/systemd/package-notes
>> it is said that it requires binutils (>= 2.38) but it hasn't been
>> released yet.
>>
>> Can the owners of this change chime in?
>
> I would appreciate any insights that can be offered into why the
> frama-c build is failing:
>
>
https://koji.fedoraproject.org/koji/taskinfo?taskID=81690392
>
> It's got something to do with this change, since the linker is
> complaining that it cannot find the package-note file, but I am
> unclear how this change is supposed to interact with the OCaml
> ecosystem.
Hi,
the problem was that the %_package_note_file macro uses %buildsubdir,
and %buildsubdir is set during %prep, but it seems it only available
during %build and later. So the path was set wrong… I pushed a work-around
to set %_package_note_file directly before prep and started a new build.
(I wish we had something better for this. %buildsubdir is useful, but
very fragile.)
Well, it turned up that this issue (that %buildsubdir is unusable in %prep)
also affects gabedit as:
/usr/bin/ld: cannot open linker script file
/builddir/build/BUILD/.package_note-gabedit-2.5.1-11.fc36.x86_64.ld: No such file or
directory