Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 933119 - net-analyzer/wireshark-4.2.5 with dev-util/lemon-3.16.2::booboo - Command line syntax error: undefined option.
Summary: net-analyzer/wireshark-4.2.5 with dev-util/lemon-3.16.2::booboo - Command lin...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Sam James
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-29 13:55 UTC by Sergey 'L29Ah' Alirzaev
Modified: 2024-06-01 19:04 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge.info,21.13 KB, text/plain)
2024-05-29 13:55 UTC, Sergey 'L29Ah' Alirzaev
Details
build log (build.log,34.02 KB, text/x-log)
2024-05-29 13:55 UTC, Sergey 'L29Ah' Alirzaev
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey 'L29Ah' Alirzaev 2024-05-29 13:55:12 UTC
Created attachment 894605 [details]
emerge --info

[1/2629] cd /var/tmp/portage/net-analyzer/wireshark-4.2.5/work/wireshark-4.2.5_build/epan/dfilter && /usr/bin/lemon -T/usr/share/lemon/lempar.c -d. /var/tmp/portage/net-analyzer/wireshark-4.2.5/work/wireshark-4.2.5/epan/dfilter/grammar.lemon
FAILED: epan/dfilter/grammar.c epan/dfilter/grammar.h epan/dfilter/grammar.out /var/tmp/portage/net-analyzer/wireshark-4.2.5/work/wireshark-4.2.5_build/epan/dfilter/grammar.c /var/tmp/portage/net-analyzer/wireshark-4.2.5/work/wireshark-4.2.5_build/epan/dfilter/grammar.h /var/tmp/portage/net-analyzer/wireshark-4.2.5/work/wireshark-4.2.5_build/epan/dfilter/grammar.out 
cd /var/tmp/portage/net-analyzer/wireshark-4.2.5/work/wireshark-4.2.5_build/epan/dfilter && /usr/bin/lemon -T/usr/share/lemon/lempar.c -d. /var/tmp/portage/net-analyzer/wireshark-4.2.5/work/wireshark-4.2.5/epan/dfilter/grammar.lemon
Command line syntax error: undefined option.
/usr/bin/lemon -T/usr/share/lemon/lempar.c -d. /var/tmp/portage/net-analyzer/wireshark-4.2.5/work/wireshark-4.2.5/epan/dfilter/grammar.lemon
                                     here --^
Comment 1 Sergey 'L29Ah' Alirzaev 2024-05-29 13:55:48 UTC
Created attachment 894606 [details]
build log
Comment 2 Sergey 'L29Ah' Alirzaev 2024-05-29 13:56:26 UTC
dev-util/lemon 3.16.2
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-05-29 14:22:27 UTC
(In reply to Sergey 'L29Ah' Alirzaev from comment #2)
> dev-util/lemon 3.16.2

That's not in ::gentoo...
Comment 4 Sergey 'L29Ah' Alirzaev 2024-05-29 14:23:47 UTC
(In reply to Sam James from comment #3)
> (In reply to Sergey 'L29Ah' Alirzaev from comment #2)
> > dev-util/lemon 3.16.2
> 
> That's not in ::gentoo...

Right. So there's some automagic dependency in wireshark that is not handled in the ebuild perhaps.
Comment 5 Mike Gilbert gentoo-dev 2024-05-30 14:28:56 UTC
So where does dev-util/lemon come from?
Comment 6 Sergey 'L29Ah' Alirzaev 2024-05-30 15:09:42 UTC
(In reply to Mike Gilbert from comment #5)
> So where does dev-util/lemon come from?

::booboo
I presume you don't use eix. It's a great tool, you should give it a try.
Comment 7 Mike Gilbert gentoo-dev 2024-05-30 16:26:56 UTC
I prefer to ask for information rather than making guesses. Keep your sarcastic remarks to yourself please.
Comment 8 Mike Gilbert gentoo-dev 2024-06-01 15:38:13 UTC
The same overlay has dev-util/lemon-3.31.1 available, and that works just fine.

Technically, we could add a blocker on old versions of dev-util/lemon, but that will end up causing a pkgcheck warning since the package has never existed in ::gentoo.

It might be possible to force the build system to use the bundled lemon, but that doesn't really feel right either: if users want to use a compatible version of lemon installed in PATH, they should be able to do so.

I don't see any obvious solution here, so CANTFIX.
Comment 9 Sergey 'L29Ah' Alirzaev 2024-06-01 18:28:44 UTC
(In reply to Mike Gilbert from comment #8)
> The same overlay has dev-util/lemon-3.31.1 available, and that works just
> fine.

The new lemon is incompatible with media-gfx/antimony that is the only package depending on lemon i'm aware of.

> I don't see any obvious solution here, so CANTFIX.

Remove the unconditional implicit dependency and add it under an USE flag, as described in https://wiki.gentoo.org/wiki/Project:Quality_Assurance/Automagic_dependencies
Comment 10 Mike Gilbert gentoo-dev 2024-06-01 18:49:10 UTC
(In reply to Sergey 'L29Ah' Alirzaev from comment #9)

We cannot add a dependency (conditional or otherwise) on a package that does not exist in ::gentoo.
Comment 11 Sergey 'L29Ah' Alirzaev 2024-06-01 19:04:03 UTC
(In reply to Mike Gilbert from comment #10)
> (In reply to Sergey 'L29Ah' Alirzaev from comment #9)
> 
> We cannot add a dependency (conditional or otherwise) on a package that does
> not exist in ::gentoo.

I don't see how that prevents following the QA recommendation about adding an USE flag that controls the build system behavior.
Comment 12 Larry the Git Cow gentoo-dev 2024-06-01 19:04:33 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cf90a0a162eec88c81a4bba686d688f7784fbe6a

commit cf90a0a162eec88c81a4bba686d688f7784fbe6a
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2024-06-01 19:03:26 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2024-06-01 19:03:26 +0000

    net-analyzer/wireshark: force bundled lemon
    
    Closes: https://bugs.gentoo.org/933119
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 net-analyzer/wireshark/wireshark-4.2.4-r1.ebuild | 3 +++
 net-analyzer/wireshark/wireshark-4.2.5.ebuild    | 3 +++
 net-analyzer/wireshark/wireshark-9999.ebuild     | 3 +++
 3 files changed, 9 insertions(+)