Re: F36 Change: Package information on ELF objects (System-Wide Change proposal)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx> 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.)

> I am unclear how this change is supposed to interact with the OCaml
> ecosystem.

I hope it'll "just work"…

$ readelf --notes /usr/bin/frama-c
...
Displaying notes found in: .note.package
  Owner                Data size	Description
  FDO                  0x00000078	FDO_PACKAGING_METADATA
    Packaging Metadata: {"type":"rpm","name":"frama-c","version":"24.0-3.fc36","architecture":"x86_64","osCpe":"cpe:/o:fedoraproject:fedora:36"}

Now to make waste this effort, the authors have to ensure that the
program crashes at least from time to time ;-]]]

Zbyszek
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux