Ask Your Question
0

Asciidoctor error on gmake wireshark_rpm : RHEL 8 install with ruby gems asciidoctor [closed]

asked 2024-04-26 16:16:40 +0000

CyberTazer gravatar image

updated 2024-04-29 09:04:33 +0000

grahamb gravatar image

I have successfully run cmake with several options, including moving it to /usr/bin and setting suid etc that are standard for a RHEL install of wireshark. I did change the docs dir as well:

cmake -LH -DMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_DOCDIR=/usr/share/doc/wireshark4.2.4 -DDUMPCAP_INSTALL_OPTION=suid -DUSE_qt6=OFF wireshark source dir

cmake indicates that asciidoctor is found:

-- Found Asciidoctor: /usr/bin/asciidoctor (found suitable version "2.0.22", minimum required is "1.5")

Two vars seems suspect, but I'm not sure they matter:

// Path to Asciidoctor EPUB3 or AsciidoctorJ
ASCIIDOCTOR_EPUB_EXECUTABLE:FILEPATH=ASCIIDOCTOR_EPUB_EXECUTABLE-NOTFOUND
// Path to Asciidoctor PDF or AsciidoctorJ
ASCIIDOCTOR_PDF_EXECUTABLE:FILEPATH=ASCIIDOCTOR_PDF_EXECUTABLE-NOTFOUND

I believe this is because I had to do a ruby gem install of asciidoctor.

This is RHEL 8, so it has asciidoc. There was a page that said this would not work, so I uninstalled asciidoc, and then did a gem install of asciidoctor.

Verified that asciidoctor works when running manually.

I get the following error when running "gmake wireshark_rpm"

gmake wireshark_rpm

path to tar file/wireshark-4.2.4.tar.xz commit ID matches c966d79150b69fb96946d18598a17bedc81f2104.
Built target dist
Built target copy-dist
Create a rpm from the current git commit.
error: Failed build dependencies:
    /usr/bin/asciidoctor is needed by wireshark-4.2.4-1.el8.x86_64
gmake[3]: *** [CMakeFiles/wireshark_rpm.dir/build.make:71: CMakeFiles/wireshark_rpm] Error 1
gmake[2]: *** [CMakeFiles/Makefile2:3895: CMakeFiles/wireshark_rpm.dir/all] Error 2
gmake[1]: *** [CMakeFiles/Makefile2:3902: CMakeFiles/wireshark_rpm.dir/rule] Error 2
gmake: *** [Makefile:514: wireshark_rpm] Error 2

Please help. I've done lots of searching at this point, and I simply can't find a solution, except to use yum to install from a repository I do not have access to or use chocolaty, which I cannot do. Do I need to patch the rubygems version of asciidoctor?

edit: Thinking this may be an rpm issue.. still researching...

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by CyberTazer
close date 2024-04-27 02:19:06.953045

1 Answer

Sort by ยป oldest newest most voted
0

answered 2024-04-27 00:52:34 +0000

johnthacker gravatar image

updated 2024-04-27 00:53:44 +0000

It's an RPM spec file issue. If you installed it outside an RPM, then the dependencies in the spec file won't be satisfied through the package management system

RHEL 8 does have a rubygems-asciidoctor RPM package, though it might be in EPEL. https://bugzilla.redhat.com/show_bug....

When you say you did a ruby gem install, I assume that means you didn't install that package but instead installed via ruby. Im that case, you need to edit the spec file to remove the Depends line referring to asciidoctor.

https://gitlab.com/wireshark/wireshar...

edit flag offensive delete link more

Comments

Thank you... I circled this answer but did not quite pull it off till you put it together for me... I know RPM basics, but it's not my best subject. I had gotten far enough to realize it had nothing to do with cmake (hence edit update.) I knew it had to be RPM something or other, but had not pulled it together before I called it a day today. This worked like a champ. Hopefully this answer can help others... I tried to keyword the heck out of it in the text of the question.

CyberTazer gravatar imageCyberTazer ( 2024-04-27 02:17:15 +0000 )edit

Question Tools

1 follower

Stats

Asked: 2024-04-26 16:16:40 +0000

Seen: 126 times

Last updated: Apr 29