[PATCH cygport] Make a build-depends list from a cygport file

Lemures Lemniscati lemures.lemniscati@gmail.com
Sun Jan 24 05:40:58 GMT 2021


Hi!

Here are small patches, which might be useful (I guess).

1. We can get a build-depends list from a cygport file by

     cygport foo.cygport builddep-oneline | tail -1

   and can easily use the results from other scripts.

2. Make sure a build-depends list in *-src.hint be a single line
   (just a fool-proof).

----

* 0001-New-functions-in-lib-pkg_info.cygpart.patch

    New functions in lib/pkg_info.cygpart
    
    * __make_oneline_sorted(), __make_list_sorted():
      print a space-separated, or newline-ending list of args
    
    * __show_build_deps_oneline(), __show_build_deps():
      print ${BUILD_REQUIRES} and 'cygport' by the functions above


* 0002-New-commands-builddep-oneline.patch

    New commands: builddep*oneline and builddep* to show BUILD_REQUIRES
    
    * cygport builddep*oneline
    * cygport builddep*
    
    We can get a space-separated list of build-depends by
    
        cygport foo.cygport builddep-oneline | tail -1
    
    Note:
      It's safe to extract a last line explicitly,
      in case cygport outputs something else.


* 0003-Make-sure-build-depends-in-src_hint-is-oneline.patch

    Use __show_build_deps_oneline() to generate *-src.hint files

----

Regards,

Lem
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-New-functions-in-lib-pkg_info.cygpart.patch
Type: application/octet-stream
Size: 1365 bytes
Desc: not available
URL: <https://cygwin.com/pipermail/cygwin-apps/attachments/20210124/75268518/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-New-commands-builddep-oneline.patch
Type: application/octet-stream
Size: 1198 bytes
Desc: not available
URL: <https://cygwin.com/pipermail/cygwin-apps/attachments/20210124/75268518/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-Make-sure-build-depends-in-src_hint-is-oneline.patch
Type: application/octet-stream
Size: 748 bytes
Desc: not available
URL: <https://cygwin.com/pipermail/cygwin-apps/attachments/20210124/75268518/attachment-0002.obj>


More information about the Cygwin-apps mailing list