RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1523239 - rebuild broken when docbook-utils is present
Summary: rebuild broken when docbook-utils is present
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: nftables
Version: 7.5
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: rc
: ---
Assignee: Phil Sutter
QA Contact: Tomas Dolezal
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-12-07 13:42 UTC by Tomas Dolezal
Modified: 2018-04-10 16:09 UTC (History)
1 user (show)

Fixed In Version: nftables-0.8-7.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-04-10 16:09:09 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2018:0882 0 None None None 2018-04-10 16:09:34 UTC

Description Tomas Dolezal 2017-12-07 13:42:09 UTC
Description of problem:
./configure script finds docbook-utils and tries to use it to build manpages. that fails on `jw` error. the package is successfully built if docbook-utils are not present (or disabled via configure?)

If missing, then log reads:
checking for docbook2x-man... no
checking for docbook2man... no
checking for db2x_docbook2man... no
configure: WARNING: docbookx2-man/db2x_docbook2man not found, no manpages will be built
....

As found later in the log, manpage is prepackaged.

Version-Release number of selected component (if applicable):
nftables-0.8-4.el7

How reproducible:
always, environment

Steps to Reproduce:
have docbook-utils installed

Actual results:Making all in doc
make[2]: Entering directory `/home/test/rpmbuild/BUILD/nftables-0.8/doc'
docbook2man --xinclude nft.xml
Usage: jw [<options>] <sgml_file>
where <options> are:
  -f|--frontend <frontend>: 	 Specify the frontend (source format)
  				 (default is docbook)
  -b|--backend <backend>: 	 Specify the backend (destination format)
  				 (default is html)
  -c|--cat <file>: 		 Specify an extra SGML open catalog
  -n|--nostd: 			 Do not use the standard SGML open catalogs
  -d|--dsl <file>|default|none:	 Specify an alternate style sheet
  				 (default is to use the default stylesheet)
  -l|--dcl <file>: 		 Specify an alternate SGML declaration
  				 (usual ones like xml.dcl get detected automatically)
  -s|--sgmlbase <path>: 	 Change base directory for SGML distribution
  				 (usually /usr/share/sgml)
  -p|--parser <program>: 	 Specify the parser if several are installed
  				  (jade or openjade)
  -o|--output <directory>: 	 Set output directory
  -u|--nochunks: 		 Output only one big file
  				 (overrides the stylesheet settings)
  -i|--include <section>: 	 Specify a SGML marked section to include
  				 (should be marked as "ignore" in the SGML text)
  -w|--warning <warning_type>|list: Control warnings or display the allowed warning types
  -e|--errors <error_type>|list: Control errors or display the allowed error types
  -h|--help: 			 Print this help message and exit
  -V <variable[=value]>: 	 Set a variable
  -v|--version: 		 Print the version and exit
make[2]: *** [nft.8] Error 1
make[2]: Leaving directory `/home/test/rpmbuild/BUILD/nftables-0.8/doc'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/test/rpmbuild/BUILD/nftables-0.8'
make: *** [all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.eXSg5t (%build)

Expected results:


Additional info:

Comment 3 Phil Sutter 2017-12-07 16:47:34 UTC
When initially importing the package from Fedora, docbook2X wasn't available in RHEL buildsystems. Therefore I included a prebuilt nft.8 into the RPM.

An easy way to disable man page building is to pass DOCBOOK2X_MAN=/bin/true to configure script.

Comment 5 Phil Sutter 2017-12-09 15:26:44 UTC
I had to tweak the solution a bit. The previous approach caused issues since 'make install' still tried to install the man page despite it wasn't built. A proper way to disable it completely is to pass ac_cv_prog_DOCBOOK2X_MAN="no" to configure.

Comment 9 Phil Sutter 2017-12-18 18:53:28 UTC
Hi Tomas,

I missed that there are multiple options for docbook2man implementations being searched, current release should disable tests for all of them.

Sorry, Phil

Comment 13 errata-xmlrpc 2018-04-10 16:09:09 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2018:0882


Note You need to log in before you can comment on or make changes to this bug.