[MacPorts] #61511: wireshark3 @3.4.0_0+cares+chmodbpf+geoip+gnutls+kerberos5+libsmi+python37+qt5+zlib: error: use of undeclared identifier 'CLOCK_REALTIME'
MacPorts
noreply at macports.org
Tue Dec 22 18:40:35 UTC 2020
#61511: wireshark3
@3.4.0_0+cares+chmodbpf+geoip+gnutls+kerberos5+libsmi+python37+qt5+zlib:
error: use of undeclared identifier 'CLOCK_REALTIME'
-------------------------+----------------------------------
Reporter: thetrial | Owner: ghosthound
Type: defect | Status: accepted
Priority: Normal | Milestone:
Component: ports | Version: 2.6.4
Resolution: | Keywords: legacy-os, elcapitan
Port: wireshark3 |
-------------------------+----------------------------------
Comment (by kencu):
Replying to [comment:16 thetrial]:
> Hm, something went wrong.
>
> {{{
> can't find file to patch at input line 3
> Perhaps you used the wrong -p or --strip option?
> The text leading up to this was:
> --------------------------
> |--- old/ui/qt/import_text_dialog.cpp 2020-12-20 11:02:56.000000000
-0500
> |+++ new/ui/qt/import_text_dialog.cpp 2020-12-15 16:53:01.000000000
-0500
> --------------------------
> File to patch:
> }}}
>
> I don’t know why. I tried to apply your patch with:
>
> {{{
> cd $(port dir wireshark3)
> net/wireshark3 # patch -p0 < ~/Downloads/wireshark3-patch-fix-
clock_realtime.diff
> }}}
You don't run the patch from this directory:
{{{
cd $(port dir wireshark3)
}}}
you run it from this directory:
{{{
cd $(port work wireshark3)
}}}
The work directory doesn't exist until the build is in progress, so you
can do this:
{{{
sudo port clean wireshark3
sudo port -v pactch wireshark3
cd $(port work wireshark3)
patch -p1 < ~/Downloads/wireshark3-patch-fix-clock_realtime.diff
cd ~
sudo port -v -s install wireshark3
}}}
--
Ticket URL: <https://trac.macports.org/ticket/61511#comment:18>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list