The Samba-Bugzilla – Attachment 12974 Details for
Bug 12595
Top level make dist does not package CTDB pre-built manpages
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patches for v4-6
BZ12595-v4-6.patch (text/plain), 4.98 KB, created by
Amitay Isaacs
on 2017-02-24 05:48:11 UTC
(
hide
)
Description:
Patches for v4-6
Filename:
MIME Type:
Creator:
Amitay Isaacs
Created:
2017-02-24 05:48:11 UTC
Size:
4.98 KB
patch
obsolete
>From 13c02ac99eb12862641818350bd310bf94866b17 Mon Sep 17 00:00:00 2001 >From: Amitay Isaacs <amitay@gmail.com> >Date: Tue, 21 Feb 2017 22:30:30 +1100 >Subject: [PATCH 1/3] ctdb-build: Split dist() target to generate manpages > separately > >BUG: https://bugzilla.samba.org/show_bug.cgi?id=12595 > >Signed-off-by: Amitay Isaacs <amitay@gmail.com> >Reviewed-by: Martin Schwenke <martin@meltin.net> >(cherry picked from commit 5005362122700ba3651b2c0c58f9026d415d031e) >--- > ctdb/wscript | 44 +++++++++++++++++++++++++++----------------- > 1 file changed, 27 insertions(+), 17 deletions(-) > >diff --git a/ctdb/wscript b/ctdb/wscript >index 13384c8..d23358b 100644 >--- a/ctdb/wscript >+++ b/ctdb/wscript >@@ -957,7 +957,27 @@ def show_version(ctx): > print VERSION > > >-def dist(): >+def manpages(ctx): >+ BASE_URL = 'http://docbook.sourceforge.net/release/xsl/current' >+ MAN_XSL = '%s/manpages/docbook.xsl' % BASE_URL >+ HTML_XSL = '%s/html/docbook.xsl' % BASE_URL >+ CMD_TEMPLATE = 'xsltproc --xinclude -o %s --nonet %s %s' >+ manpages = manpages_binary + manpages_misc + manpages_etcd + manpages_ceph >+ for t in manpages: >+ cmd = CMD_TEMPLATE % ('doc/%s' % t, MAN_XSL, 'doc/%s.xml' % t) >+ ret = samba_utils.RUN_COMMAND(cmd) >+ if ret != 0: >+ print('Command %s failed with exit status %d' % (cmd, ret)) >+ sys.exit(ret) >+ >+ cmd = CMD_TEMPLATE % ('doc/%s.html' % t, HTML_XSL, 'doc/%s.xml' % t) >+ ret = samba_utils.RUN_COMMAND(cmd) >+ if ret != 0: >+ print('Command %s failed with exit status %d' % (cmd, ret)) >+ sys.exit(ret) >+ >+ >+def distonly(ctx): > samba_dist.DIST_FILES('VERSION:VERSION', extend=True) > > t = 'include/ctdb_version.h' >@@ -979,24 +999,8 @@ def dist(): > sys.exit(ret) > samba_dist.DIST_FILES('ctdb/%s:%s' % (t, t), extend=True) > >- BASE_URL = 'http://docbook.sourceforge.net/release/xsl/current' >- MAN_XSL = '%s/manpages/docbook.xsl' % BASE_URL >- HTML_XSL = '%s/html/docbook.xsl' % BASE_URL >- CMD_TEMPLATE = 'xsltproc --xinclude -o %s --nonet %s %s' > manpages = manpages_binary + manpages_misc + manpages_etcd + manpages_ceph > for t in manpages: >- cmd = CMD_TEMPLATE % ('doc/%s' % t, MAN_XSL, 'doc/%s.xml' % t) >- ret = samba_utils.RUN_COMMAND(cmd) >- if ret != 0: >- print('Command %s failed with exit status %d' % (cmd, ret)) >- sys.exit(ret) >- >- cmd = CMD_TEMPLATE % ('doc/%s.html' % t, HTML_XSL, 'doc/%s.xml' % t) >- ret = samba_utils.RUN_COMMAND(cmd) >- if ret != 0: >- print('Command %s failed with exit status %d' % (cmd, ret)) >- sys.exit(ret) >- > samba_dist.DIST_FILES('ctdb/doc/%s:doc/%s' % (t, t), extend=True) > samba_dist.DIST_FILES('ctdb/doc/%s.html:doc/%s.html' % (t, t), > extend=True) >@@ -1004,6 +1008,12 @@ def dist(): > samba_dist.dist() > > >+def dist(): >+ import Scripting >+ Scripting.commands.append('manpages') >+ Scripting.commands.append('distonly') >+ >+ > def rpmonly(ctx): > opts = os.getenv('RPM_OPTIONS') or '' > cmd = 'rpmbuild -ta --clean --rmsource %s ctdb-%s.tar.gz' % (opts, VERSION) >-- >2.9.3 > > >From add2cb1b75e9097753dc917bd98f18311e87ecb1 Mon Sep 17 00:00:00 2001 >From: Amitay Isaacs <amitay@gmail.com> >Date: Tue, 21 Feb 2017 22:44:10 +1100 >Subject: [PATCH 2/3] ctdb-build: Add make target for generating manpages > >BUG: https://bugzilla.samba.org/show_bug.cgi?id=12595 > >Signed-off-by: Amitay Isaacs <amitay@gmail.com> >Reviewed-by: Martin Schwenke <martin@meltin.net> >(cherry picked from commit 3bb4fd545864aeb7f28230604c26ccc188ba360a) >--- > ctdb/Makefile | 3 +++ > 1 file changed, 3 insertions(+) > >diff --git a/ctdb/Makefile b/ctdb/Makefile >index b0912f2..23ee780 100644 >--- a/ctdb/Makefile >+++ b/ctdb/Makefile >@@ -27,6 +27,9 @@ show_version: > @touch .tmplock > @WAFLOCK=.tmplock $(WAF) show_version > >+manpages: >+ $(WAF) manpages >+ > dist: > touch .tmplock > WAFLOCK=.tmplock $(WAF) dist >-- >2.9.3 > > >From 4ec8d73e810cae4da5874ca165eaded7b5478576 Mon Sep 17 00:00:00 2001 >From: Amitay Isaacs <amitay@gmail.com> >Date: Tue, 21 Feb 2017 22:33:48 +1100 >Subject: [PATCH 3/3] build: Fix generation of CTDB manpages while creating > tarball > >BUG: https://bugzilla.samba.org/show_bug.cgi?id=12595 > >Signed-off-by: Amitay Isaacs <amitay@gmail.com> >Reviewed-by: Martin Schwenke <martin@meltin.net> > >Autobuild-User(master): Martin Schwenke <martins@samba.org> >Autobuild-Date(master): Thu Feb 23 19:25:11 CET 2017 on sn-devel-144 > >(cherry picked from commit a9211ec2860d7763e606e9a9e4b62c19846b3302) >--- > wscript | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/wscript b/wscript >index 9168db1..6adfc45 100644 >--- a/wscript >+++ b/wscript >@@ -309,7 +309,7 @@ def dist(): > '''makes a tarball for distribution''' > sambaversion = samba_version.load_version(env=None) > >- os.system("make -C ctdb/doc") >+ os.system("make -C ctdb manpages") > samba_dist.DIST_FILES('ctdb/doc:ctdb/doc', extend=True) > > os.system(srcdir + "/release-scripts/build-manpages-nogit") >-- >2.9.3 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Flags:
martins
:
review+
Actions:
View
Attachments on
bug 12595
: 12974 |
12976
|
12977