* [Buildroot] [PATCH 1/1] safeclib: fix build without wchar and host-doxygen
@ 2018-03-15 19:37 Fabrice Fontaine
2018-03-25 21:25 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Fabrice Fontaine @ 2018-03-15 19:37 UTC (permalink / raw)
To: buildroot
Add a patch (sent upstream) to add a --disable-doc option
Fixes:
- http://autobuild.buildroot.net/results/e597843f2bb528da01d1e617929c818613b56cec
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
package/safeclib/0001-Add-disable-doc-option.patch | 58 ++++++++++++++++++++++
1 file changed, 58 insertions(+)
create mode 100644 package/safeclib/0001-Add-disable-doc-option.patch
diff --git a/package/safeclib/0001-Add-disable-doc-option.patch b/package/safeclib/0001-Add-disable-doc-option.patch
new file mode 100644
index 0000000000..67c48906f3
--- /dev/null
+++ b/package/safeclib/0001-Add-disable-doc-option.patch
@@ -0,0 +1,58 @@
+From 0d56b6327f6b652511c3e4c72382f4dc4d194e10 Mon Sep 17 00:00:00 2001
+From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+Date: Thu, 15 Mar 2018 20:12:28 +0100
+Subject: [PATCH] Add --disable-doc option
+
+This option allows the user to disable man pages even if pod2man and
+doxygen programs are found
+
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+---
+ Makefile.am | 2 ++
+ configure.ac | 10 ++++++++++
+ 2 files changed, 12 insertions(+)
+
+diff --git a/Makefile.am b/Makefile.am
+index 0f65c5c1..ce1424bb 100644
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -104,6 +104,7 @@ LIBTOOL_DISTCLEAN_FILES = \
+ build-tools/test-driver
+ DISTCLEANFILES = .version
+
++if ENABLE_DOC
+ MAN1_SOURCES = doc/man/man1/check_for_unsafe_apis.1
+ dist_man_MANS =
+ if HAVE_POD2MAN
+@@ -560,6 +561,7 @@ clean-local:
+ rm -rf $(builddir)/doc/html
+ rm -rf $(builddir)/doc/man
+ endif
++endif
+
+ if ENABLE_GCOV
+ gcov: check
+diff --git a/configure.ac b/configure.ac
+index 0e4e5eea..33ed7326 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -339,6 +339,16 @@ else
+ AC_MSG_RESULT([no (default)])
+ fi
+
++AC_ARG_ENABLE(doc,
++ AS_HELP_STRING([--disable-doc],
++ [disable documentation @<:@default=no@:>@]),
++ [case "${enableval}" in
++ yes) enable_doc=true ;;
++ no) enable_doc=false ;;
++ *) AC_MSG_ERROR([bad value ${enableval} for --enable-doc]) ;;
++ esac], [enable_doc=true])
++AM_CONDITIONAL(ENABLE_DOC, test "x$enable_doc" = "xtrue")
++
+ dnl for windows dllimport. checking pic_flag DLL_EXPORT would be better,
+ dnl but this is only enabled for the shared objs, and we need it in the config
+ dnl for our tests.
+--
+2.14.1
+
--
2.14.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH 1/1] safeclib: fix build without wchar and host-doxygen
2018-03-15 19:37 [Buildroot] [PATCH 1/1] safeclib: fix build without wchar and host-doxygen Fabrice Fontaine
@ 2018-03-25 21:25 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2018-03-25 21:25 UTC (permalink / raw)
To: buildroot
Hello,
On Thu, 15 Mar 2018 20:37:11 +0100, Fabrice Fontaine wrote:
> diff --git a/package/safeclib/0001-Add-disable-doc-option.patch b/package/safeclib/0001-Add-disable-doc-option.patch
> new file mode 100644
> index 0000000000..67c48906f3
> --- /dev/null
> +++ b/package/safeclib/0001-Add-disable-doc-option.patch
> @@ -0,0 +1,58 @@
> +From 0d56b6327f6b652511c3e4c72382f4dc4d194e10 Mon Sep 17 00:00:00 2001
> +From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> +Date: Thu, 15 Mar 2018 20:12:28 +0100
> +Subject: [PATCH] Add --disable-doc option
> +
> +This option allows the user to disable man pages even if pod2man and
> +doxygen programs are found
> +
> +Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Since it has been applied upstream now, I've added a reference to the
upstream commit here.
> ++AC_ARG_ENABLE(doc,
> ++ AS_HELP_STRING([--disable-doc],
> ++ [disable documentation @<:@default=no@:>@]),
> ++ [case "${enableval}" in
> ++ yes) enable_doc=true ;;
> ++ no) enable_doc=false ;;
> ++ *) AC_MSG_ERROR([bad value ${enableval} for --enable-doc]) ;;
I haven't seen many configure.ac scripts that do this. Most simply do:
enable_doc=${enableval}
and that's it.
But OK, it's been accepted upstream, so I don't care :)
Patch applied to master. Thanks!
Best regards,
Thomas
--
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-03-25 21:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-15 19:37 [Buildroot] [PATCH 1/1] safeclib: fix build without wchar and host-doxygen Fabrice Fontaine
2018-03-25 21:25 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox