Re: Avoiding the automatic /usr/bin/python3 dep
Dne 25. 06. 20 v 16:06 Igor Raits napsal(a): > I think removing that dependency is simply wrong. It essentially means > that one would not be able to use those scripts without dependency > being installed. Simply removing is wrong. But I see nothing bad on moving it to Recommends or even Suggests. It is not required when you are able to do most of common operations without the dependency. -- Miroslav Suchy, RHCA Red Hat, Associate Manager ABRT/Copr, #brno, #fedora-buildsys ___ devel mailing list -- devel@lists.fedoraproject.org To unsubscribe send an email to devel-le...@lists.fedoraproject.org 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@lists.fedoraproject.org
Re: Avoiding the automatic /usr/bin/python3 dep
On Thu, 25 Jun 2020 at 14:57, Miro Hrončok wrote: > What you need is to disable is the "shebang dependency generator" from RPM. > The > easiest way is to use: > https://docs.fedoraproject.org/en-US/packaging-guidelines/AutoProvidesAndRequiresFiltering/ > %global __requires_exclude ^%{python3}$ Works perfectly, thanks! Richard ___ devel mailing list -- devel@lists.fedoraproject.org To unsubscribe send an email to devel-le...@lists.fedoraproject.org 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@lists.fedoraproject.org
Re: Avoiding the automatic /usr/bin/python3 dep
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 On Thu, 2020-06-25 at 14:50 +0100, Richard Hughes wrote: > Hi all, > > In fwupd we ship 4 *tiny* python scripts that are useful for ODMs and > other people working with low level firmware blobs. In > https://src.fedoraproject.org/rpms/fwupd/pull-request/2 it was > suggested we split them off as a subpackage to avoid the > /usr/bin/python3 dep which is unwanted on CoreOS. It does seem a bit > crazy to split off a subpackage when the rpm header will be bigger > than the contents. Given these are such small files and certainly not > warranting dragging python3 onto the image, I did hope I could use > %{?python_disable_dependency_generator} to tell rpmbuild to basically > ignore the .py files and not add a /usr/bin/python3 dep on my package > automatically. Unfortunately that seems not to work. Ideas welcome, > thanks! I think removing that dependency is simply wrong. It essentially means that one would not be able to use those scripts without dependency being installed. You should split that package and can use Recommends to pull it in by default if desired, but definitely not removing a Requires. > Richard. > ___ > devel mailing list -- devel@lists.fedoraproject.org > To unsubscribe send an email to devel-le...@lists.fedoraproject.org > 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@lists.fedoraproject.org - -- Igor Raits -BEGIN PGP SIGNATURE- iQIzBAEBCgAdFiEEcwgJ58gsbV5f5dMcEV1auJxcHh4FAl70r2YACgkQEV1auJxc Hh4O8A/9Hvo8dEqo0/yV2rdUr/v/OYwggwbWTVXHm4L8OhgRBGhhVPjI3vKYiumu NsfgMmCNa5FE7MsYkFEg89CiJrbWT1+9JWxSDbtj1rFsh4OoDRM06Nddd6w3Kvuh LPh0u7Rm2Jb1JD+V4U8GCinR2guIPsBHEDfdM87twt6UnuRBnZneURIXALIi7SBM zO7BxcuxGGN9xn7V5UZA5771yfdIAoJNi0sndWTK7NehjITPTIwyESs/ReDwBs1D ix58Ch7587kH7qslK6hWWppkYvyfxG/bMHlWuu/Os2bLKZtWmdAa1UlhPbxZokPf U+UKZYSi31waUgN7o9aynRGt3Hj5ukrJ4HnJw+0Z7X6BHY/l5xAGlDhr1fS7he0T th2Ta3EmT16taSlMhtn1EujnlW0e3DBf48WJyfUWLwntXu4uPxsZOef83ET+TCuA Ch3UwD1XG31TgHI+8w7mlonh5wLxea+pEtUu0hMHa9RSejA3wEER9iYeGxz1c9Lg k4UNTeeffTF+ryP3/zq2lbVE06ifrCkO20QQ/KR3YtjtI0HeAvCR7+hWNlPA+hnw zcpJnkbo2COiwM6PsU7TFg5Dal8J+atbmIIOc81FMoj3fhi+BaiZnUSHkAqiU0te 2NMmPl4O2QFVfMPmmp+nmieu0sUNQP5QXiCUtxN5akqFsl0zbF0= =fnbm -END PGP SIGNATURE- ___ devel mailing list -- devel@lists.fedoraproject.org To unsubscribe send an email to devel-le...@lists.fedoraproject.org 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@lists.fedoraproject.org
Re: Avoiding the automatic /usr/bin/python3 dep
On 25. 06. 20 15:50, Richard Hughes wrote: Hi all, In fwupd we ship 4 *tiny* python scripts that are useful for ODMs and other people working with low level firmware blobs. In https://src.fedoraproject.org/rpms/fwupd/pull-request/2 it was suggested we split them off as a subpackage to avoid the /usr/bin/python3 dep which is unwanted on CoreOS. It does seem a bit crazy to split off a subpackage when the rpm header will be bigger than the contents. Given these are such small files and certainly not warranting dragging python3 onto the image, I did hope I could use %{?python_disable_dependency_generator} to tell rpmbuild to basically ignore the .py files and not add a /usr/bin/python3 dep on my package automatically. Unfortunately that seems not to work. Ideas welcome, thanks! The %{?python_disable_dependency_generator} will only disable the "Python dependency generator", described in https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_automatically_generated_dependencies What you need is to disable is the "shebang dependency generator" from RPM. The easiest way is to use: https://docs.fedoraproject.org/en-US/packaging-guidelines/AutoProvidesAndRequiresFiltering/ %global __requires_exclude ^%{python3}$ -- Miro Hrončok -- Phone: +420777974800 IRC: mhroncok ___ devel mailing list -- devel@lists.fedoraproject.org To unsubscribe send an email to devel-le...@lists.fedoraproject.org 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@lists.fedoraproject.org
Re: Avoiding the automatic /usr/bin/python3 dep
On Thu, Jun 25, 2020 at 9:51 AM Richard Hughes wrote: > > Hi all, > > In fwupd we ship 4 *tiny* python scripts that are useful for ODMs and > other people working with low level firmware blobs. In > https://src.fedoraproject.org/rpms/fwupd/pull-request/2 it was > suggested we split them off as a subpackage to avoid the > /usr/bin/python3 dep which is unwanted on CoreOS. It does seem a bit > crazy to split off a subpackage when the rpm header will be bigger > than the contents. Given these are such small files and certainly not > warranting dragging python3 onto the image, I did hope I could use > %{?python_disable_dependency_generator} to tell rpmbuild to basically > ignore the .py files and not add a /usr/bin/python3 dep on my package > automatically. Unfortunately that seems not to work. Ideas welcome, > thanks! > I'd suggest using the dependency filtering feature in RPM: https://docs.fedoraproject.org/en-US/packaging-guidelines/AutoProvidesAndRequiresFiltering/ -- 真実はいつも一つ!/ Always, there's only one truth! ___ devel mailing list -- devel@lists.fedoraproject.org To unsubscribe send an email to devel-le...@lists.fedoraproject.org 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@lists.fedoraproject.org
Avoiding the automatic /usr/bin/python3 dep
Hi all, In fwupd we ship 4 *tiny* python scripts that are useful for ODMs and other people working with low level firmware blobs. In https://src.fedoraproject.org/rpms/fwupd/pull-request/2 it was suggested we split them off as a subpackage to avoid the /usr/bin/python3 dep which is unwanted on CoreOS. It does seem a bit crazy to split off a subpackage when the rpm header will be bigger than the contents. Given these are such small files and certainly not warranting dragging python3 onto the image, I did hope I could use %{?python_disable_dependency_generator} to tell rpmbuild to basically ignore the .py files and not add a /usr/bin/python3 dep on my package automatically. Unfortunately that seems not to work. Ideas welcome, thanks! Richard. ___ devel mailing list -- devel@lists.fedoraproject.org To unsubscribe send an email to devel-le...@lists.fedoraproject.org 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@lists.fedoraproject.org