From f1d89b5222cffe8ddb5de0952c8b13f5a6be3c53 Mon Sep 17 00:00:00 2001
From: P. J. McDermott <pjm@nac.net>
Date: Sat, 13 Oct 2012 12:51:59 -0400
Subject: Don't rely on POSIX-conformant comment parsing.

POSIX.1-2008 specifies that comments in makefile syntax start with a "#"
and continue "until an **unescaped** <newline> is reached" (empahsis
added).

FreeBSD's pmake apparently ignores the backslash before the newline in
comments and prints a "Need an operator" error message while parsing a
generated src/Makefile:

    $ make
    Making executable files...
    "Makefile", line 49: Need an operator
    make: fatal errors encountered -- cannot continue

NetBSD's pmake on the other hand appears to be POSIX-conformant in this
regard.

See also:

  http://pubs.opengroup.org/onlinepubs/9699919799/utilities/make.html#tag_20_76_13_01
  https://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.69/html_node/Backslash_002dNewline-Comments.html
---
(limited to 'man')

diff --git a/man/Makefile.in b/man/Makefile.in
index 0409339..ff69ce1 100644
--- a/man/Makefile.in
+++ b/man/Makefile.in
@@ -36,39 +36,39 @@ sed_script = s&@@PACKAGE_NAME@@&$(package_name)&;\
 .SUFFIXES: .in
 
 #SRCS_1 = opkbuild.1.in \
-         ob-checkbuilddeps.1.in \
-         ob-buildenv.1.in \
-         ob-unpacksource.1.in \
-         ob-applypatches.1.in \
-         ob-installplatconf.1.in \
-         ob-installdocs.1.in \
-         ob-gencontrol.1.in \
-         ob-buildopk.1.in \
-         ob-genchanges.1.in
+#         ob-checkbuilddeps.1.in \
+#         ob-buildenv.1.in \
+#         ob-unpacksource.1.in \
+#         ob-applypatches.1.in \
+#         ob-installplatconf.1.in \
+#         ob-installdocs.1.in \
+#         ob-gencontrol.1.in \
+#         ob-buildopk.1.in \
+#         ob-genchanges.1.in
 #SRCS_3 = ob_get_text_domain.3.in \
-         ob_set_text_domain.3.in \
-         ob_get_msg.3.in \
-         ob_error.3.in \
-         ob_warn.3.in \
-         ob_info.3.in \
-         ob_init_package.3.in \
-         ob_parse_package_metadata.3.in \
-         ob_get_binary_packages.3.in \
-         ob_get_source_parameter.3.in \
-         ob_get_binary_parameter.3.in \
-         ob_summarize_package_arch.3.in \
-         ob_summarize_package_plat.3.in \
-         ob_parse_control.3.in \
-         ob_parse_changelog.3.in \
-         ob_validate_source_package_name.3.in \
-         ob_validate_binary_package_name.3.in \
-         ob_parse_version.3.in \
-         ob_reduce_build_deps.3.in \
-         ob_reduce_runinst_deps.3.in \
-         ob_get_system_arch.3.in \
-         ob_match_arch.3.in \
-         ob_get_system_plat.3.in \
-         ob_match_plat.3.in
+#         ob_set_text_domain.3.in \
+#         ob_get_msg.3.in \
+#         ob_error.3.in \
+#         ob_warn.3.in \
+#         ob_info.3.in \
+#         ob_init_package.3.in \
+#         ob_parse_package_metadata.3.in \
+#         ob_get_binary_packages.3.in \
+#         ob_get_source_parameter.3.in \
+#         ob_get_binary_parameter.3.in \
+#         ob_summarize_package_arch.3.in \
+#         ob_summarize_package_plat.3.in \
+#         ob_parse_control.3.in \
+#         ob_parse_changelog.3.in \
+#         ob_validate_source_package_name.3.in \
+#         ob_validate_binary_package_name.3.in \
+#         ob_parse_version.3.in \
+#         ob_reduce_build_deps.3.in \
+#         ob_reduce_runinst_deps.3.in \
+#         ob_get_system_arch.3.in \
+#         ob_match_arch.3.in \
+#         ob_get_system_plat.3.in \
+#         ob_match_plat.3.in
 SRCS = $(SRCS_1) $(SRCS_3)
 OBJS = $(SRCS:.in=)
 
--
cgit v0.9.1