intel / ipmctl

BSD 3-Clause "New" or "Revised" License
184 stars 62 forks source link

development: rpmbuild.sh fails to find manpages #184

Open jchu314atgithub opened 2 years ago

jchu314atgithub commented 2 years ago

In the "development" branch, "./rpmbuild.sh 03.00.00.0423" halted with

RPM build errors: File not found: /home2/workspace/ipmctl-repos/ipmctl.development/output/rpmbuild/BUILDROOT/ipmctl-03.00.00.0423-1.el8.x86_64/usr/share/man/man1/ipmctl*

Looking at the ./output/cmake_install.cmake file, it is missing

file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/share/man/man1" TYPE DIRECTORY FILES "/home2/workspace/ipmctl-repos/ipmctl.master/output/release/manpage/")

in comparison to the cmake_install.cmake file generated in the "master" branch.

Since cmake_install.cmake file is automatically generated by "cmake -DRELEASE=ON -DCMAKE_INSTALL_PREFIX=/usr .." in both branches, what else is causing this gap?

StevenPontsler commented 2 years ago

It looks to me like earlier in the process it failed to generate the manpages. Perhaps one of the packages used to generate them is missing. Hopefully there is a message earlier on that indicates what is happening.

can you capture all the output to the screen and post it here or you can send it to me directly (my email is my profile).

What distro and version are you using to build on?

jchu314atgithub commented 2 years ago

sure, let me take a look and get back to you.

jchu314atgithub commented 2 years ago

$ ./rpmbuild.sh 03.00.00.0423 output has this - `VERSION:03.00.00.0423 CMAKE_BUILD_TYPE:Release -- Found PythonInterp: /usr/bin/python3.6 (found version "3.6.8") CMake Warning at CMakeLists.txt:90 (find_package): By not providing "Finda2x.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "a2x", but CMake did not find one.

Could not find a package configuration file provided by "a2x" with any of the following names:

a2xConfig.cmake
a2x-config.cmake

Add the installation prefix of "a2x" to CMAKE_PREFIX_PATH or set "a2x_DIR" to a directory containing one of the above files. If "a2x" provides a separate development package or SDK, be sure it has been installed.

-- Could NOT find asciidoctor (missing: ASCIIDOCTOR_BINARY) -- Found asciidoc: /usr/bin/asciidoc -- Found PkgConfig: /usr/bin/pkg-config (found version "1.4.2") -- Checking for module 'libndctl>=58.2' -- Found libndctl, version 71.2.gea014c0 -- Checking for module 'systemd' -- Found systemd, version 239 -- Looking for pthread.h -- Looking for pthread.h - found -- Looking for pthread_create -- Looking for pthread_create - not found -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Found Threads: TRUE But, $ sudo yum list installed | grep asciidoc asciidoc.noarch 8.6.10-0.5.20180627gitf7c2274.el8`

Is 'asciidoctor' a required package? the "master" branch is fine without it.

StevenPontsler commented 2 years ago

I would not expect it to be different from master. I believe asciidoc or asciidoctor should work. I do not know how recently that has been tested.

a2x looks like it is part of asciidoc and I found suggestions to try installing asciidoc-base.

I'll have to look into more later.

jchu314atgithub commented 2 years ago

Thanks! I attached the complete log in email.

jchu314atgithub commented 2 years ago

just checked, I have /usr/bin/a2x, as part of asciidoc. perhaps the issue is something else.

StevenPontsler commented 2 years ago

A couple of added cmake find helper files for cmake were missed in a merge.

Fixed on tags addcmakefiles and v03.00.00.00.0427