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.

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

--
Orion Poplawski
he/him/his  - surely the least important thing about me
IT Systems Manager                         720-772-5637
NWRA, Boulder/CoRA Office             FAX: 303-415-9702
3380 Mitchell Lane                       [email protected]
Boulder, CO 80301                 https://www.nwra.com/
--
_______________________________________________
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