Bug#939307: ITP: ruby-necromancer -- Conversion from one object type to another with a bit of black magic

2019-09-03 Thread Gabriel Filion
Package: wnpp
Severity: wishlist
Owner: Gabriel Filion 

* Package name: ruby-necromancer
  Version : 0.5.0
  Upstream Author : Piotr Murach 
* URL : https://github.com/piotrmurach/necromancer
* License : Expat
  Programming Lang: Ruby
  Description : Conversion from one object type to another with a bit of 
black magic

Necromancer provides independent type conversion component for TTY toolkit.

Conversion between Ruby core types frequently comes up in projects but is
solved by half-baked solutions. This library aims to provide an independent
and extensible API to support a robust and generic way to convert between core
Ruby types.


This is a requirement for ruby-tty-prompt, which in turn is a requirement for
puppet-development-kit, which I'm working to package.

I intend to maintain this package within the ruby team, and will ask for a
sponsor within the team.



Generating man Pages by help2man can be Problematic when Cross-Compiling, why?

2019-09-03 Thread Bagas Sanjaya

Hello,

In UpstreamGuide on wiki.d.o, it stated in Manual Page section that:

For executable programs that take arguments, please consider writing a manual page, rather than expecting users to pass --help or similar. Note that generating the man page from --help output (with a tool such as help2man) can range from unhelpful to problematic in cross-compiling scenarios. 


I have questions: why can generating man page with help2man be 
problematic in cross-compiling? What if I didn't write man page but 
expecting users to pass --help instead, or displaying usage syntax when 
my written program encounters error?


Cheers, Bagas
--
An old man doll... just what I always wanted! - Clara



Re: Generating man Pages by help2man can be Problematic when Cross-Compiling, why?

2019-09-03 Thread Andrey Rahmatullin
On Tue, Sep 03, 2019 at 07:24:30PM +0700, Bagas Sanjaya wrote:
> > For executable programs that take arguments, please consider writing a
> > manual page, rather than expecting users to pass --help or similar. Note
> > that generating the man page from --help output (with a tool such as
> > help2man) can range from unhelpful to problematic in cross-compiling
> > scenarios.
> 
> I have questions: why can generating man page with help2man be problematic
> in cross-compiling? 
help2man runs the program which is obviously problematic when the program
is compiled for a different arch.

> What if I didn't write man page but expecting users to pass --help
> instead, or displaying usage syntax when my written program encounters
> error?
Then users will need additional actions to get help instead of just
running "man program".

-- 
WBR, wRAR


signature.asc
Description: PGP signature


Re: Generating man Pages by help2man can be Problematic when Cross-Compiling, why?

2019-09-03 Thread Guillem Jover
On Tue, 2019-09-03 at 17:45:31 +0500, Andrey Rahmatullin wrote:
> On Tue, Sep 03, 2019 at 07:24:30PM +0700, Bagas Sanjaya wrote:
> > > For executable programs that take arguments, please consider writing a
> > > manual page, rather than expecting users to pass --help or similar. Note
> > > that generating the man page from --help output (with a tool such as
> > > help2man) can range from unhelpful to problematic in cross-compiling
> > > scenarios.
> > 
> > I have questions: why can generating man page with help2man be problematic
> > in cross-compiling?

> help2man runs the program which is obviously problematic when the program
> is compiled for a different arch.

In addition this just duplicates the information from --help, which
tends to be pretty terse, while a man page is supposed to be filled
with details of the operation of the program.

> > What if I didn't write man page but expecting users to pass --help
> > instead, or displaying usage syntax when my written program encounters
> > error?

> Then users will need additional actions to get help instead of just
> running "man program".

Right, this is also suboptimal, because it requires the (potential)
user to have a running system with the program installed just to be
able to know how to call it. Compare with being able to go to sites
like man.freebsd.org or manpages.debian.org, and check how programs
work from there.

IMO using help2man (while it provides the above mentioned benefits)
has always translated to me to "cannot be bothered to write proper,
and good documentation", which is a big deciding factor when to use
a specific project or not.

Thanks,
Guillem