ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
April 17th, 2024 | 14:30-16:00 SGT (UTC+8) | Online

Wireshark-dev: Re: [Wireshark-dev] asn2wrs.py no longer seems to generate the same code ...

From: Richard Sharpe <realrichardsharpe@xxxxxxxxx>
Date: Sat, 16 May 2020 08:29:03 -0700
On Sat, May 16, 2020 at 6:00 AM João Valverde
<joao.valverde@xxxxxxxxxxxxxxxxxx> wrote:
>
> Hi Richard,
>
> On 15/05/20 23:46, Richard Sharpe wrote:
> > On Fri, May 15, 2020 at 3:33 PM Peter Wu <peter@xxxxxxxxxxxxx> wrote:
> >> The "asn1" target rebuilds all asn1 dissectors.
> >> Alternatively to rebuild a specific one, use a target such as "generate_dissector-pkcs1".
> > Sure, but there seems to be multiple issues.
> >
> > 1. The 'documented' command placed in the generated source does not
> > generate the same source:
> > 2. make asn1 modifies the source directory, but it seems to me that it
> > should not do that because that breaks one of the out-of-tree
> > guarantees that cmake gives you.
>
> Normally that would be true for a generated source file, but in this
> case a choice was made to commit the generated ASN.1 source code to VCS
> (for efficiency reasons I presume). Therefore the asn1 target is a
> special one designed only to update the ASN.1 source tree and commit the
> result.

Shouldn't the developer make that decision?

-- 
Regards,
Richard Sharpe
(何以解憂?唯有杜康。--曹操)(传说杜康是酒的发明者)