public inbox for cygwin-cvs@sourceware.org help / color / mirror / Atom feed
From: Corinna Vinschen <corinna@sourceware.org> To: cygwin-cvs@sourceware.org Subject: [newlib-cygwin/main] Cygwin: cygcheck: collect build-depends info Date: Tue, 7 Feb 2023 21:50:45 +0000 (GMT) [thread overview] Message-ID: <20230207215045.D9DD03858417@sourceware.org> (raw) https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=627c0f2b6715f37663ccd0c6c7f87b2f0ba0dc8f commit 627c0f2b6715f37663ccd0c6c7f87b2f0ba0dc8f Author: Corinna Vinschen <corinna@vinschen.de> AuthorDate: Tue Feb 7 22:49:38 2023 +0100 Commit: Corinna Vinschen <corinna@vinschen.de> CommitDate: Tue Feb 7 22:49:38 2023 +0100 Cygwin: cygcheck: collect build-depends info TODO: implement options to print all deps, all build-deps, all packages depending on packages matching the search string and so on. Signed-off-by: Corinna Vinschen <corinna@vinschen.de> Diff: --- winsup/utils/mingw/cygcheck.cc | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/winsup/utils/mingw/cygcheck.cc b/winsup/utils/mingw/cygcheck.cc index 1ed4fdc6f360..ac8343e664df 100644 --- a/winsup/utils/mingw/cygcheck.cc +++ b/winsup/utils/mingw/cygcheck.cc @@ -2237,6 +2237,7 @@ struct vers_info char *install; char *source; char *depends2; + char *build_depends; time_t install_date; bool matches; bool installed; @@ -2270,6 +2271,7 @@ free_pkg_info (ini_package_info *pi) free (pi->curr.install); free (pi->curr.source); free (pi->curr.depends2); + free (pi->curr.build_depends); if (pi->prev) { for (size_t i = 0; i < pi->prev_count; ++i) @@ -2278,6 +2280,7 @@ free_pkg_info (ini_package_info *pi) free (pi->prev[i].install); free (pi->prev[i].source); free (pi->prev[i].depends2); + free (pi->prev[i].build_depends); } free (pi->prev); } @@ -2289,6 +2292,7 @@ free_pkg_info (ini_package_info *pi) free (pi->test[i].install); free (pi->test[i].source); free (pi->test[i].depends2); + free (pi->test[i].build_depends); } free (pi->test); } @@ -2410,6 +2414,8 @@ collect_pkg_info (FILE *fp, ini_package_info *pi) vinfo->source = strdup (buf + strlen ("source: ")); else if (!strncmp (buf, "depends2: ", strlen ("depends2: "))) vinfo->depends2 = strdup (buf + strlen ("depends2: ")); + else if (!strncmp (buf, "build-depends: ", strlen ("build-depends: "))) + vinfo->build_depends = strdup (buf + strlen ("build-depends: ")); } } return pi; @@ -2503,6 +2509,12 @@ package_info_print (ini_package_info *pi, vers_info *vers) printf ("Source : %s\n", cp + 1); } } +#if 0 /* FIXME: needs CLI options */ + if (vers->depends2) + printf ("Dependencies: %s\n", vers->depends2); + if (vers->build_depends) + printf ("Build Deps : %s\n", vers->build_depends); +#endif if (pi->sdesc) printf ("Summary : %s\n", pi->sdesc); if (pi->url)
reply other threads:[~2023-02-07 21:50 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20230207215045.D9DD03858417@sourceware.org \ --to=corinna@sourceware.org \ --cc=cygwin-cvs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).