Re: Guidance needed regarding running `ant` in %prep

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

 



On Sun, 2023-10-29 at 14:15 +0100, Sandro wrote:
> Hi,
> 
> During review of a package I submitted [1], the reviewer asked me to 
> move running an `ant` script from %prep to %build.

This is correct IMHO ,

if you run `fedpkg prep` on directory where you heave the spec file of
the package (in a git-dist), you wont be able to get "Local test
rpmbuild prep" if you haven't ant installed on the system. 

for exemplify : 
fedpkg clone eclipse-swt
cd eclipse-swt
fedpkg prep



> However, I feel that step belongs in %prep for two reasons:
> 
> 1. It's a preparatory step for the Python build that follows
> 
> The `ant` job provides codec mappings (from Java Charsets), which are
> subsequently used in the Python package. The process is described in
> the 
> CodecMapper README [2].
> 
> 2. It would be (needlessly?) more complicated to do that in %build
> 
> I need to prep the sources and move stuff around for the Python
> package 
> to live at the top level, before calling `%pyproject_buildrequires`, 
> which is done before %build.
> 
> The actual Python package, from which the PyPI sdist and wheel are 
> produced lives in a sub directory of the CodecMapper repository [3]. 
> Unfortunately, the PyPI sdist is incomplete. That's why I'm using the
> GitHub sources.
> 
> I'd appreciate any guidance with regards to permissibility and/or 
> alternative approaches.
> 
> [1] https://bugzilla.redhat.com/show_bug.cgi?id=2244402
> [2] https://github.com/roskakori/CodecMapper#codecmapper
> [3] https://github.com/roskakori/CodecMapper/tree/master/ebcdic
> 
> Cheers,
> 
> -- 
> Sandro
> FAS: gui1ty
> IRC: Penguinpee
> Elsewhere: [Pp]enguinpee
> _______________________________________________
> packaging mailing list -- packaging@xxxxxxxxxxxxxxxxxxxxxxx
> To unsubscribe send an email to
> packaging-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/packaging@xxxxxxxxxxxxxxxxxxxxxxx
> Do not reply to spam, report it:
> https://pagure.io/fedora-infrastructure/new_issue

-- 
Sérgio M. B.
_______________________________________________
packaging mailing list -- packaging@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to packaging-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/packaging@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue




[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Forum]     [KDE Users]

  Powered by Linux