DPDK patches and discussions
 help / color / mirror / Atom feed
From: "Varghese, Vipin" <Vipin.Varghese@amd.com>
To: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>
Cc: Thomas Monjalon <thomas@monjalon.net>,
	"david.marchand@redhat.com" <david.marchand@redhat.com>,
	"Tummala, Sivaprasad" <Sivaprasad.Tummala@amd.com>,
	"dev@dpdk.org" <dev@dpdk.org>
Subject: RE: [PATCH] meson: update doc logic for Windows
Date: Tue, 29 Mar 2022 05:35:55 +0000	[thread overview]
Message-ID: <MN2PR12MB3085FDE5D70137FDB804D404821E9@MN2PR12MB3085.namprd12.prod.outlook.com> (raw)
In-Reply-To: <20220329015114.04aedb30@sovereign>

[AMD Official Use Only]



> -----Original Message-----
> From: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>
> Sent: Tuesday, March 29, 2022 4:21 AM
> To: Varghese, Vipin <Vipin.Varghese@amd.com>
> Cc: Thomas Monjalon <thomas@monjalon.net>;
> david.marchand@redhat.com; Tummala, Sivaprasad
> <Sivaprasad.Tummala@amd.com>; dev@dpdk.org
> Subject: Re: [PATCH] meson: update doc logic for Windows
> 
> [CAUTION: External Email]
> 
> 2022-03-28 12:29 (UTC+0000), Varghese, Vipin:
> [...]
> > > We did get error from `doc/meson` stating ` echo command not
> > > available on windows` for both cmd and powershell for the line ```
> > > run_target('doc', command: [echo, message, doc_target_names],
> > >     depends: doc_targets)
> > > ```
> >
> > This line never searches for "echo" command, e8c90926bdde ("doc: fix
> build on Windows with Meson 0.58") introduced "echo" variable precisely to
> avoid this.
> > Can you give the full log?
> >
> > > > Steps to reproduce the error:
> > > >  - Install dependencies doxygen & sphinix build on Windwos server
> 2019.
> > > >  - Build DPDK with option enable_docs=true for API or User Guide.
> > > >
> > > > This produces error
> > > > ```
> > > > FAILED: doc/api/examples.dox
> > > > sh -e dpdk/doc/api/generate_examples.sh dpdk/examples
> > > > doc/api/examples.dox ```
> 
> Thanks for confirming that the "echo" issue did not reappear.
> 
> [...]
> > Are you recommending
> >
> > Windows libraries and binaries should be cross build from linux (where all
> dependencies and shell script works)?
> >
> > Or
> >
> > let us enhance the check for windows native build, if yes for option `-
> Denable_docs=true, we can stop the build for docs`.
> >
> > If the latter is suggestion I will share v2 patch to check the same.
> 
> I recommend enhancing the Windows native build by enabling full-fledged
> docs generation :) I'm reluctant to accept this patch, even corrected, because
> it effectively works against better Windows support:
> - it makes less meson code reachable on Windows,
>   allowing it to accumulate incompatible changes;
> - it treats Windows as special,
>   while we want it to be a platform supported on par with the others.
> That being said, the latter option is acceptable for sure, because it fixes a
> build failure in certain configuration.

As stated in patch with Windows native build using meson `-Denable_docs=true` result in build error

```
FAILED: doc/api/examples.dox
sh -e dpdk/doc/api/generate_examples.sh dpdk/examples doc/api/examples.dox ```
```

The reason is because shell script is not supported on Windows CMD. The scope of the patch is addressing the issue `by continuing the build processing with a warning to user`.

IMO the current patch can be deprecated or removed from mainline one `once full fledge docs generation is supported by native Windows build` as suggested by Dmitry.

      reply	other threads:[~2022-03-29  5:36 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-26  2:59 Vipin Varghese
2022-03-26  9:41 ` Thomas Monjalon
2022-03-28  3:02   ` Varghese, Vipin
2022-03-28  9:34     ` Dmitry Kozlyuk
2022-03-28 12:29       ` Varghese, Vipin
2022-03-28 14:37         ` Varghese, Vipin
2022-03-28 22:51         ` Dmitry Kozlyuk
2022-03-29  5:35           ` Varghese, Vipin [this message]

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=MN2PR12MB3085FDE5D70137FDB804D404821E9@MN2PR12MB3085.namprd12.prod.outlook.com \
    --to=vipin.varghese@amd.com \
    --cc=Sivaprasad.Tummala@amd.com \
    --cc=david.marchand@redhat.com \
    --cc=dev@dpdk.org \
    --cc=dmitry.kozliuk@gmail.com \
    --cc=thomas@monjalon.net \
    /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: link
Be 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 NNTP newsgroup(s).