On 07. 10. 25 3:05, Orion Poplawski wrote:
On 9/29/25 23:54, Cristian Le via devel wrote:


On September 30, 2025 3:54:31 AM GMT+02:00, Orion Poplawski <[email protected]> wrote:
pylibssh started to fail to build from source recently:

https://koschei.fedoraproject.org/package/python-ansible-pylibssh

Processing files: python-ansible-pylibssh-debugsource-1.2.2-7.fc44.x86_64
RPM build errors:
error: Empty %files file /builddir/build/BUILD/python-ansible- pylibssh-1.2.2-build/ansible-pylibssh-1.2.2/debugsourcefiles.list     Empty %files file /builddir/build/BUILD/python-ansible-pylibssh-1.2.2- build/ansible-pylibssh-1.2.2/debugsourcefiles.list


Any idea what might be causing that?

Bad news is that they have a completely custom build backend so navigating it would be messy. My guess is that the CFLAGS are not respected somehow.

Good news is that they have packit integration in upstream so you can replicate it there after you revert their conditional [1].

[1]: https://github.com/ansible/pylibssh/blob/ be3f39c218e28da327b98a4d839fd65ee0ce45b6/packaging/rpm/ansible-pylibssh.spec#L15

It was indeed messy, but I finally tracked it down to it building the source in a temporary directory that was removed after the files were compiled.

What we did back in the day when pip has done this:

 - set TMPDIR to a directory within the %builddir (we still do)
 - invoked pip with --no-clean

You may benefit from the in-place TMPDIR if only you can convince the backed not to clean it.

I ended up patching the build config to not do that:
https://src.fedoraproject.org/rpms/python-ansible-pylibssh/ c/5abf22f7396356048987a3f2355252c363ebbdf0?branch=rawhide

I don't know if that is the best way to do it or if there is some way to select the "build_editable" config that uses build_inplace=True
I belive you don't want an editable build,
assuming it's https://peps.python.org/pep-0660/

--
Miro Hrončok
--
Phone: +420777974800
Fedora Matrix: mhroncok

--
_______________________________________________
devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]
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/[email protected]
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to