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

Attachment: 0001-New-functions-in-lib-pkg_info.cygpart.patch
Description: Binary data

Attachment: 0002-New-commands-builddep-oneline.patch
Description: Binary data

Attachment: 0003-Make-sure-build-depends-in-src_hint-is-oneline.patch
Description: Binary data

Reply via email to