Coder Social home page Coder Social logo

Man pages missing about cfengine-debian HOT 17 CLOSED

webhuis avatar webhuis commented on August 21, 2024
Man pages missing

from cfengine-debian.

Comments (17)

basvandervlies avatar basvandervlies commented on August 21, 2024

Just a observation in this repository there is no docs directory. So that is why we can not install them.

from cfengine-debian.

tzz avatar tzz commented on August 21, 2024

What can I do to help here?

from cfengine-debian.

bahamat avatar bahamat commented on August 21, 2024

The best thing would be for the man pages to be included with the tarball form cfengine. Do you know why they're missing?

from cfengine-debian.

tzz avatar tzz commented on August 21, 2024

Oops, wrong button, sorry

from cfengine-debian.

tzz avatar tzz commented on August 21, 2024

IIRC the man pages are supposed to be in the package, but don't know about the tarball. I think they can be generated from source, either way.

@nickanderson @vohi @cduclos can you comment please?

from cfengine-debian.

basvandervlies avatar basvandervlies commented on August 21, 2024

In the 3.5.x and master branch there is the directory:

  • doc/manpages
bas@r7n16:/var/tmp/bas/core/docs/manpages$ ls        
cf-agent.8  cf-execd.8  cf-key.8  cf-monitord.8  cf-promises.8  cf-runagent.8  cf-serverd.8  Makefile  Makefile.am  Makefile.in

from cfengine-debian.

bahamat avatar bahamat commented on August 21, 2024

Debian imports from the tar all though, not the upstream repo.

from cfengine-debian.

basvandervlies avatar basvandervlies commented on August 21, 2024

@bahamat i know we fetch the tarball. I assume that the generation of the tarball goes wrong and does not include the docs directory.

from cfengine-debian.

vohi avatar vohi commented on August 21, 2024

The man pages for the binaries are generated by the binaries themselves, via (undocumented) -M command line parameter. There are no man-pages checked into the repository (https://github.com/cfengine/core/tree/master/docs/manpages).

They can't be in the tar ball for that reason, because we don't compile the binaries before we generate the tar ball. There's https://cfengine.com/dev/issues/2989 as a known issue in our own packages.

from cfengine-debian.

bahamat avatar bahamat commented on August 21, 2024

Ok, that makes a bit more sense. We can add a build step that generates and saves them.

from cfengine-debian.

tzz avatar tzz commented on August 21, 2024

Cool, now it makes sense, thanks @vohi

from cfengine-debian.

bahamat avatar bahamat commented on August 21, 2024

Ted suggested using an acceptance test to create the man pages because the tests already know how to execute the binaries properly.

from cfengine-debian.

bahamat avatar bahamat commented on August 21, 2024

This patch successfully produces man pages, although I don't think this is the best approach.

Any suggestions on improving this?

diff --git a/debian/rules b/debian/rules
index 10086c9..cd1934b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -59,3 +59,11 @@ override_dh_install:

   /bin/rmdir $(CURDIR)/debian/cfengine3/var/lib/cfengine3/inputs
   /bin/rm $(CURDIR)/debian/cfengine3/usr/lib/*.la
+  /bin/mkdir -p $(CURDIR)/debian/cfengine3/usr/share/man/man8/
+  LD_LIBRARY_PATH=$(CURDIR)/debian/cfengine3/usr/lib $(CURDIR)/debian/cfengine3/usr/sbin/cf-agent -M > $(CURDIR)/debian/cfengine3/usr/share/man/man8/cf-agent.8
+  LD_LIBRARY_PATH=$(CURDIR)/debian/cfengine3/usr/lib $(CURDIR)/debian/cfengine3/usr/sbin/cf-execd -M > $(CURDIR)/debian/cfengine3/usr/share/man/man8/cf-execd.8
+  LD_LIBRARY_PATH=$(CURDIR)/debian/cfengine3/usr/lib $(CURDIR)/debian/cfengine3/usr/sbin/cf-key -M > $(CURDIR)/debian/cfengine3/usr/share/man/man8/cf-key.8
+  LD_LIBRARY_PATH=$(CURDIR)/debian/cfengine3/usr/lib $(CURDIR)/debian/cfengine3/usr/sbin/cf-monitord -M > $(CURDIR)/debian/cfengine3/usr/share/man/man8/cf-monitord.8
+  LD_LIBRARY_PATH=$(CURDIR)/debian/cfengine3/usr/lib $(CURDIR)/debian/cfengine3/usr/sbin/cf-promises -M > $(CURDIR)/debian/cfengine3/usr/share/man/man8/cf-promises.8
+  LD_LIBRARY_PATH=$(CURDIR)/debian/cfengine3/usr/lib $(CURDIR)/debian/cfengine3/usr/sbin/cf-runagent -M > $(CURDIR)/debian/cfengine3/usr/share/man/man8/cf-runagent.8
+  LD_LIBRARY_PATH=$(CURDIR)/debian/cfengine3/usr/lib $(CURDIR)/debian/cfengine3/usr/sbin/cf-serverd -M > $(CURDIR)/debian/cfengine3/usr/share/man/man8/cf-serverd.8

There's still no man page for rpmvercmp, but I'm overriding that.

from cfengine-debian.

basvandervlies avatar basvandervlies commented on August 21, 2024

@bahamat maybe this:

    for p in cf-agent cf-key cf-promises cf-runagent cf-execd cf-serverd cf-monitord; \
    do \
        $(CURDIR)/$$p/$$p -M > $(CURDIR)/debian/cfengine3/usr/share/man/man8/$$p.8 ;\
    done

I tested this and it works.

from cfengine-debian.

bahamat avatar bahamat commented on August 21, 2024

Excellent, thanks. I'll use that.

from cfengine-debian.

basvandervlies avatar basvandervlies commented on August 21, 2024

I have issued sn pull request #51

from cfengine-debian.

basvandervlies avatar basvandervlies commented on August 21, 2024

and applied

from cfengine-debian.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.