Skip to contentSkip to conversation

build fixes for selinux-doc-1.18

PATCH Andreas Steinmetz 2 participants 7 messages Apr 4, 2005 – Apr 6, 2005

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

1. added simple top level Makefile
2. replaced db2html with docbook2html as db2html is not part of docbook-utils but seems to be created by some distro only

Signature · 1 line
Andreas Steinmetz                       SPAMmers use [email protected]
Makefile +4 -0
diff -rNu selinux-doc-1.18.orig/Makefile selinux-doc-1.18/Makefile
@@ -0,0 +1,4 @@
+subdirs=module uavc policy
+
+all:
+	for i in $(subdirs) ; do make -C $$i || exit 1 ; done
module/Makefile +1 -1
diff -rNu selinux-doc-1.18.orig/module/Makefile selinux-doc-1.18/module/Makefile
@@ -20,7 +20,7 @@
 
 $(HTML): $(ALL)
 	-$(RM) -r $@
-	db2html $(TOP)
+	docbook2html $(TOP)
 	if [ ! -z "$(JPG-$@)" ]; then cp $(JPG-$@) $@; fi
 
 clean:
policy/Makefile +1 -1
diff -rNu selinux-doc-1.18.orig/policy/Makefile selinux-doc-1.18/policy/Makefile
@@ -20,7 +20,7 @@
 
 $(HTML): $(ALL)
 	-$(RM) -r $@
-	db2html $(TOP)
+	docbook2html $(TOP)
 	if [ ! -z "$(JPG-$@)" ]; then cp $(JPG-$@) $@; fi
 
 clean:
uavc/Makefile +1 -1
diff -rNu selinux-doc-1.18.orig/uavc/Makefile selinux-doc-1.18/uavc/Makefile
@@ -20,7 +20,7 @@
 
 $(HTML): $(ALL)
 	-$(RM) -r $@
-	db2html $(TOP)
+	docbook2html $(TOP)
 	if [ ! -z "$(JPG-$@)" ]; then cp $(JPG-$@) $@; fi
 
 clean:
#1 lore raw
Quoted 3 lines · Andreas Steinmetz

1. added simple top level Makefile
2. replaced db2html with docbook2html as db2html is not part of docbook-utils but seems to be created by some distro only

Hmmm...well, db2html appears to create a separate directory for the output files, and copies stylesheet images into it as well. The use of db2html was patterned after its use in the kernel Documentation/DocBook/Makefile. Hence, I'm hesitant to merge the latter change without further justification.

Signature · 8 lines
Stephen Smalley <[email protected]>
National Security Agency


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#3 lore raw
In reply to Andreas Steinmetz
Quoted 10 lines · Andreas Steinmetz
Quoted 5 lines · Stephen Smalley

Hmmm...well, db2html appears to create a separate directory for the output files, and copies stylesheet images into it as well. The use of db2html was patterned after its use in the kernel Documentation/DocBook/Makefile. Hence, I'm hesitant to merge the latter change without further justification.

I see. Would you accept a patch that uses db2html if available and docbook2html otherwise? If so I can come up with this probably on thursday, maybe friday.

Wouldn't it just be easier to add db2html to the distribution? It appears to be a trivial script (not quite as trivial as docbook2html, but still quite simple), and the kernel DocBook Makefile seems to rely on it without anyone complaining about that. Falling back to docbook2html yields a different result (i.e. no separate directory for the output), so it wouldn't work anyway for the spec file.

Signature · 8 lines
Stephen Smalley <[email protected]>
National Security Agency


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#2 lore raw
In reply to Stephen Smalley
Quoted 5 lines · Stephen Smalley

Hmmm...well, db2html appears to create a separate directory for the output files, and copies stylesheet images into it as well. The use of db2html was patterned after its use in the kernel Documentation/DocBook/Makefile. Hence, I'm hesitant to merge the latter change without further justification.

I see. Would you accept a patch that uses db2html if available and docbook2html otherwise? If so I can come up with this probably on thursday, maybe friday.

Signature · 6 lines
Andreas Steinmetz                       SPAMmers use [email protected]

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#4 lore raw
In reply to Stephen Smalley
Quoted 1 line · Stephen Smalley

Wouldn't it just be easier to add db2html to the distribution? It

Fine with me.

Signature · 6 lines
Andreas Steinmetz                       SPAMmers use [email protected]

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#5 lore raw
Quoted 4 lines · Andreas Steinmetz
Quoted 1 line · Stephen Smalley

Wouldn't it just be easier to add db2html to the distribution? It

Fine with me.

By "distribution", I mean the Linux distribution you are using, not our distribution of selinux-doc ;)

But I see that patches have been submitted on linux-kernel to change the kernel DocBook Makefile to use xmlto rather than db2*. Do you have xmlto in your distro? See http://marc.theaimsgroup.com/?l=linux-
kernel&m=111278927418714&w=2. I haven't tried xmlto yet myself, so I don't know what impact this has on the generated output.

Signature · 8 lines
Stephen Smalley <[email protected]>
National Security Agency


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#6 lore raw
Quoted 8 lines · Stephen Smalley

By "distribution", I mean the Linux distribution you are using, not our distribution of selinux-doc ;)

But I see that patches have been submitted on linux-kernel to change the kernel DocBook Makefile to use xmlto rather than db2*. Do you have xmlto in your distro? See http://marc.theaimsgroup.com/?l=linux-
kernel&m=111278927418714&w=2. I haven't tried xmlto yet myself, so I don't know what impact this has on the generated output.

Ah, just tried xmlto on one of the reports, and it didn't like it very much. Oh well.

Signature · 8 lines
Stephen Smalley <[email protected]>
National Security Agency


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.