Re: [Rpm-maint] How to generate GNU make dependency file for a SPEC file automatically?

2018-05-14 Thread Francesco
Hi Jeff, I was taking a look at the "tar --to-command" option but unfortunately it seems that even latest TAR versions do not support "cpio" archive type. I think that hacking directly the rpmbuild utility would be indeed the most elegant solution to the problem, but I'm not sure how

Re: [Rpm-maint] [rpm-software-management/rpm] RFE: Expose _RPMVSF_NOSIGNATURES and _RPMVSF_NODIGESTS (#440)

2018-05-14 Thread Panu Matilainen
@n3npq : and all that has absolutely nothing to do with this perfectly legit RFE, so why don't you just give it a rest, okay? -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] Provide a way to opt out from automagic Python bytecompilation (#434)

2018-05-14 Thread Miro Hrončok
Passing `%{?__python}` was copied from Fedora. The script seems to expect it. I can pass `""` here instead, as the invocation differs in Fedora anyway. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] Provide a way to opt out from automagic Python bytecompilation (#434)

2018-05-14 Thread Florian Festi
Passing %{?__python} at least deserves it's own separate patch. It also deserves some argumentation why it does not change the behaviour (it probably does) or why the change is acceptable/desirabled. -- You are receiving this because you are subscribed to this thread. Reply to this email

Re: [Rpm-maint] [rpm-software-management/rpm] Provide a way to opt out from automagic Python bytecompilation (#434)

2018-05-14 Thread Miro Hrončok
So I set `%_python_bytecompile_extra` to 1 as default. And the opt out is to undefine it, opt in is to set it to 1. Will do. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] Provide a way to opt out from automagic Python bytecompilation (#434)

2018-05-14 Thread Panu Matilainen
The new "extra" naming is much better, thanks. Now that I look closer though: the enable/disable "functions" are very unlike anything else in rpm, and there's no obvious default when it's handled that way. Just drop them and use define/undefine of %_python_bytecompile_extra control it

Re: [Rpm-maint] How to generate GNU make dependency file for a SPEC file automatically?

2018-05-14 Thread Francesco
Hi Jeff, thanks for the useful pointers. I definitively think that my current Python proof-of-concept can be improved, mostly in 2 areas: 1) the need of RPM unpacking, as you pointed out; 2) I found out it fails miserably to do its job when the RPM contains a compiled ELF: the md5sum of the