Hi,
Thanks Chuck for the reference, this did the tric:
--- a/packaging/rpm/wireshark.spec.in
+++ b/packaging/rpm/wireshark.spec.in
@@ -65,7 +65,11 @@ Source:
https://www.wireshark.org/download/src/OneWireshark-%{package_version}.
 URL:           https://www.wireshark.org/
 Packager:      Gerald Combs <gerald[AT]wireshark.org>

+%if 0%{?rhel} && ( 0%{?rhel} <= 7 )
+BuildRequires: cmake3 >= 3.10
+%else
 BuildRequires: cmake >= 3.10
+%endif
 BuildRequires: python3
 %if %{with toolchain_clang}
 BuildRequires: clang
@@ -281,7 +285,12 @@ development of Wireshark scripts and plugins.
 # Fedora's new RPATH hardening means we need to enable $ORIGIN if the
 # prefix is anything other than /usr:
 # https://fedoraproject.org/wiki/Changes/Broken_RPATH_will_fail_rpmbuild
+%if 0%{?rhel} && ( 0%{?rhel} <= 7 )
+cmake3 \
+  -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
+%else
 %cmake \
+%endif
 %if 0%{?fedora} && ( "%{_prefix}" != "/usr" )
   -DENABLE_RPATH_ORIGIN=ON \
 %endif

@jeff.morriss...@gmail.com <jeff.morriss...@gmail.com> i got cmake3 from
epel I believe
yum-config-manager --enable base epel extras updates
yum install cmake3
Built from source:
c-ares-1.14.0
libgcrypt-1.10.1
ibgpg-error-1.27

Best regards
Anders

Den fre 19 aug. 2022 kl 17:49 skrev chuck c <bubbas...@gmail.com>:

> Similar error message:
> https://gitlab.com/wireshark/wireshark/-/issues/17354
>
> Changes to rhel7 cmake requirements:
>
> https://gitlab.com/wireshark/wireshark/-/commit/0676ddfb4f37af4c805c0e5c2112e131669e6375
>
> On Fri, Aug 19, 2022 at 10:26 AM Anders Broman <a.broma...@gmail.com>
> wrote:
>
>> Hi,
>> Yes that did the trick now stuck on
>> Create a rpm from the current git commit.
>> error: Failed build dependencies:
>>         cmake >= 3.10 is needed by
>> wireshark-4.1.0rc0.5120_gc67cdc0514d9_Ericsson-1.x86_64
>> make[3]: *** [CMakeFiles/wireshark_rpm] Error 1
>> make[2]: *** [CMakeFiles/wireshark_rpm.dir/all] Error 2
>> make[1]: *** [CMakeFiles/wireshark_rpm.dir/rule] Error 2
>> make: *** [wireshark_rpm] Error 2
>> [root@wireshark-build-server-inst-site1 build]# cmake --version
>> cmake3 version 3.17.5
>>
>> Used alternatives as suggested here:
>>
>> https://stackoverflow.com/questions/48831131/cmake-on-linux-centos-7-how-to-force-the-system-to-use-cmake3
>>
>> Regards
>> Anders
>>
>>
>> Den fre 19 aug. 2022 kl 17:07 skrev chuck c <bubbas...@gmail.com>:
>>
>>> https://www.wireshark.org/docs/wsdg_html/#ChSrcRpm
>>>
>>> Should the target be wireshark_rpm?
>>>
>>> On Fri, Aug 19, 2022 at 9:23 AM Anders Broman <a.broma...@gmail.com>
>>> wrote:
>>>
>>>> Hi,
>>>> I'm trying to build a tshark RPM on Centos7 after manually building
>>>> some required packages
>>>> l(ibcryp c-ares) the build works
>>>> cmake3 -G "Unix Makefiles" ../source -DBUILD_wireshark=OFF
>>>> make (successful)
>>>> make rpm-package
>>>> make: *** No rule to make target `rpm-package'.  Stop.
>>>>
>>>> Shouldn't it be possible to do a tshark rpm only?
>>>> Regards
>>>> Anders
>>>>
>>>>
>>>> ___________________________________________________________________________
>>>> Sent via:    Wireshark-dev mailing list <wireshark-dev@wireshark.org>
>>>> Archives:    https://www.wireshark.org/lists/wireshark-dev
>>>> Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
>>>>              mailto:wireshark-dev-requ...@wireshark.org
>>>> ?subject=unsubscribe
>>>>
>>>
>>> ___________________________________________________________________________
>>> Sent via:    Wireshark-dev mailing list <wireshark-dev@wireshark.org>
>>> Archives:    https://www.wireshark.org/lists/wireshark-dev
>>> Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
>>>              mailto:wireshark-dev-requ...@wireshark.org
>>> ?subject=unsubscribe
>>>
>>
>> ___________________________________________________________________________
>> Sent via:    Wireshark-dev mailing list <wireshark-dev@wireshark.org>
>> Archives:    https://www.wireshark.org/lists/wireshark-dev
>> Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
>>              mailto:wireshark-dev-requ...@wireshark.org
>> ?subject=unsubscribe
>>
> ___________________________________________________________________________
> Sent via:    Wireshark-dev mailing list <wireshark-dev@wireshark.org>
> Archives:    https://www.wireshark.org/lists/wireshark-dev
> Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
>              mailto:wireshark-dev-requ...@wireshark.org
> ?subject=unsubscribe
>
___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev@wireshark.org>
Archives:    https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe

Reply via email to