linux-man.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Handling of updates to kernel Documentation/ tree
@ 2015-03-09 14:17 Stephan Mueller
  2015-03-09 15:07 ` Christoph Hellwig
  0 siblings, 1 reply; 10+ messages in thread
From: Stephan Mueller @ 2015-03-09 14:17 UTC (permalink / raw)
  To: Michael Kerrisk; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA

Hi Michael,

how shall an update to the Documentation/ tree be handled in man pages 
that contain a pointer to these documents?

Specifically, socket(2) contains a reference to 
Documentation/crypto/crypto-API-userspace.txt. With the patch [1] the 
document is gone and its contents is moved into a DocBook.

Shall the kernel DocBook website [2] be referenced? If so, when is it 
appropriate to add the patch (note, the change is expected to be 
propagated to Linus' tree in 4.1-rc1).


[1] 
https://git.kernel.org/cgit/linux/kernel/git/herbert/cryptodev-2.6.git/commit/?id=dbe5fe7e1b3b3632bef2c09964a5f5505de4d744

[2] https://www.kernel.org/doc/htmldocs/crypto-API/index.html

Ciao
Stephan

--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Handling of updates to kernel Documentation/ tree
  2015-03-09 14:17 Handling of updates to kernel Documentation/ tree Stephan Mueller
@ 2015-03-09 15:07 ` Christoph Hellwig
       [not found]   ` <20150309150739.GA6131-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org>
  0 siblings, 1 reply; 10+ messages in thread
From: Christoph Hellwig @ 2015-03-09 15:07 UTC (permalink / raw)
  To: Stephan Mueller; +Cc: Michael Kerrisk, linux-man-u79uwXL29TY76Z2rM5mHXA

On Mon, Mar 09, 2015 at 03:17:58PM +0100, Stephan Mueller wrote:
> Hi Michael,
> 
> how shall an update to the Documentation/ tree be handled in man pages 
> that contain a pointer to these documents?
> 
> Specifically, socket(2) contains a reference to 
> Documentation/crypto/crypto-API-userspace.txt. With the patch [1] the 
> document is gone and its contents is moved into a DocBook.
> 
> Shall the kernel DocBook website [2] be referenced? If so, when is it 
> appropriate to add the patch (note, the change is expected to be 
> propagated to Linus' tree in 4.1-rc1).

Referencing a kernel Documentation file from a man page sounds like
a bad idea to me.  Why can't we include a nroff-yfied version of the
content in the man-pages repository?
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Handling of updates to kernel Documentation/ tree
       [not found]   ` <20150309150739.GA6131-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org>
@ 2015-03-09 16:03     ` Michael Kerrisk (man-pages)
       [not found]       ` <54FDC468.40503-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
  2015-03-09 16:16     ` Stephan Mueller
  2015-03-09 17:40     ` Mike Frysinger
  2 siblings, 1 reply; 10+ messages in thread
From: Michael Kerrisk (man-pages) @ 2015-03-09 16:03 UTC (permalink / raw)
  To: Christoph Hellwig, Stephan Mueller
  Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w, Michael Kerrisk,
	linux-man-u79uwXL29TY76Z2rM5mHXA

On 03/09/2015 04:07 PM, Christoph Hellwig wrote:
> On Mon, Mar 09, 2015 at 03:17:58PM +0100, Stephan Mueller wrote:
>> Hi Michael,
>>
>> how shall an update to the Documentation/ tree be handled in man pages 
>> that contain a pointer to these documents?
>>
>> Specifically, socket(2) contains a reference to 
>> Documentation/crypto/crypto-API-userspace.txt. With the patch [1] the 
>> document is gone and its contents is moved into a DocBook.
>>
>> Shall the kernel DocBook website [2] be referenced? If so, when is it 
>> appropriate to add the patch (note, the change is expected to be 
>> propagated to Linus' tree in 4.1-rc1).
> 
> Referencing a kernel Documentation file from a man page sounds like
> a bad idea to me.  Why can't we include a nroff-yfied version of the
> content in the man-pages repository?

Actually, a lot of man pages do refer to kernel Documentation files.
What's the problem?

Thanks,

Michael


-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Handling of updates to kernel Documentation/ tree
       [not found]       ` <54FDC468.40503-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
@ 2015-03-09 16:05         ` Christoph Hellwig
       [not found]           ` <20150309160520.GA28067-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org>
  0 siblings, 1 reply; 10+ messages in thread
From: Christoph Hellwig @ 2015-03-09 16:05 UTC (permalink / raw)
  To: Michael Kerrisk (man-pages)
  Cc: Christoph Hellwig, Stephan Mueller, Michael Kerrisk,
	linux-man-u79uwXL29TY76Z2rM5mHXA

On Mon, Mar 09, 2015 at 05:03:52PM +0100, Michael Kerrisk (man-pages) wrote:
> Actually, a lot of man pages do refer to kernel Documentation files.
> What's the problem?

It's not easily accessibe and coherent information.  It requires a
checked out kernel tree (or a web mirror these days), which might
be a different version than you expect.  Referencing actually installed
case documentation like man page or at least info pages is a lot easier
for the user.
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Handling of updates to kernel Documentation/ tree
       [not found]   ` <20150309150739.GA6131-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org>
  2015-03-09 16:03     ` Michael Kerrisk (man-pages)
@ 2015-03-09 16:16     ` Stephan Mueller
  2015-03-09 17:40     ` Mike Frysinger
  2 siblings, 0 replies; 10+ messages in thread
From: Stephan Mueller @ 2015-03-09 16:16 UTC (permalink / raw)
  To: Christoph Hellwig; +Cc: Michael Kerrisk, linux-man-u79uwXL29TY76Z2rM5mHXA

Am Montag, 9. März 2015, 08:07:39 schrieb Christoph Hellwig:

Hi Christoph,

>On Mon, Mar 09, 2015 at 03:17:58PM +0100, Stephan Mueller wrote:
>> Hi Michael,
>> 
>> how shall an update to the Documentation/ tree be handled in man
>> pages
>> that contain a pointer to these documents?
>> 
>> Specifically, socket(2) contains a reference to
>> Documentation/crypto/crypto-API-userspace.txt. With the patch [1] the
>> document is gone and its contents is moved into a DocBook.
>> 
>> Shall the kernel DocBook website [2] be referenced? If so, when is it
>> appropriate to add the patch (note, the change is expected to be
>> propagated to Linus' tree in 4.1-rc1).
>
>Referencing a kernel Documentation file from a man page sounds like
>a bad idea to me.  Why can't we include a nroff-yfied version of the
>content in the man-pages repository?

You can see the compiled output at [1]. You see that the output is 
larger. Of course I can provide a patch of the output from make mandocs 
of that DocBook. I would think that this documentation is too large to 
be put into socket(2).

The only proposal I would have is to format the output into a separate 
man page for chapter 4.

[1] http://www.chronox.de/crypto-API/User.html


Ciao
Stephan
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Handling of updates to kernel Documentation/ tree
       [not found]   ` <20150309150739.GA6131-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org>
  2015-03-09 16:03     ` Michael Kerrisk (man-pages)
  2015-03-09 16:16     ` Stephan Mueller
@ 2015-03-09 17:40     ` Mike Frysinger
  2015-03-10  5:56       ` Michael Kerrisk (man-pages)
  2015-03-10 14:11       ` Christoph Hellwig
  2 siblings, 2 replies; 10+ messages in thread
From: Mike Frysinger @ 2015-03-09 17:40 UTC (permalink / raw)
  To: Christoph Hellwig
  Cc: Stephan Mueller, Michael Kerrisk,
	linux-man-u79uwXL29TY76Z2rM5mHXA

[-- Attachment #1: Type: text/plain, Size: 1047 bytes --]

On 09 Mar 2015 08:07, Christoph Hellwig wrote:
> On Mon, Mar 09, 2015 at 03:17:58PM +0100, Stephan Mueller wrote:
> > how shall an update to the Documentation/ tree be handled in man pages 
> > that contain a pointer to these documents?
> > 
> > Specifically, socket(2) contains a reference to 
> > Documentation/crypto/crypto-API-userspace.txt. With the patch [1] the 
> > document is gone and its contents is moved into a DocBook.
> > 
> > Shall the kernel DocBook website [2] be referenced? If so, when is it 
> > appropriate to add the patch (note, the change is expected to be 
> > propagated to Linus' tree in 4.1-rc1).
> 
> Referencing a kernel Documentation file from a man page sounds like
> a bad idea to me.  Why can't we include a nroff-yfied version of the
> content in the man-pages repository?

isn't that way worse ?  now we have to keep the man pages git repo in sync with 
the kernel Documentation/ subtree.

i think having the man pages refer to the public docbook kernel.org pages should 
be fine.
-mike

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Handling of updates to kernel Documentation/ tree
       [not found]           ` <20150309160520.GA28067-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org>
@ 2015-03-10  5:56             ` Michael Kerrisk (man-pages)
  0 siblings, 0 replies; 10+ messages in thread
From: Michael Kerrisk (man-pages) @ 2015-03-10  5:56 UTC (permalink / raw)
  To: Christoph Hellwig
  Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w, Stephan Mueller,
	Michael Kerrisk, linux-man-u79uwXL29TY76Z2rM5mHXA

On 03/09/2015 05:05 PM, Christoph Hellwig wrote:
> On Mon, Mar 09, 2015 at 05:03:52PM +0100, Michael Kerrisk (man-pages) wrote:
>> Actually, a lot of man pages do refer to kernel Documentation files.
>> What's the problem?
> 
> It's not easily accessibe and coherent information.  It requires a
> checked out kernel tree (or a web mirror these days), which might
> be a different version than you expect.  Referencing actually installed
> case documentation like man page or at least info pages is a lot easier
> for the user.

I agree that installed documentation is preferable, but sometimes
it's not always practical to get that documentation in the desired form.
So, failing that man-pages does quite often reference kernel source files.

Cheers,

Michael

-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Handling of updates to kernel Documentation/ tree
  2015-03-09 17:40     ` Mike Frysinger
@ 2015-03-10  5:56       ` Michael Kerrisk (man-pages)
  2015-03-10 14:11       ` Christoph Hellwig
  1 sibling, 0 replies; 10+ messages in thread
From: Michael Kerrisk (man-pages) @ 2015-03-10  5:56 UTC (permalink / raw)
  To: Christoph Hellwig, Stephan Mueller, Michael Kerrisk,
	linux-man-u79uwXL29TY76Z2rM5mHXA
  Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w

On 03/09/2015 06:40 PM, Mike Frysinger wrote:
> On 09 Mar 2015 08:07, Christoph Hellwig wrote:
>> On Mon, Mar 09, 2015 at 03:17:58PM +0100, Stephan Mueller wrote:
>>> how shall an update to the Documentation/ tree be handled in man pages 
>>> that contain a pointer to these documents?
>>>
>>> Specifically, socket(2) contains a reference to 
>>> Documentation/crypto/crypto-API-userspace.txt. With the patch [1] the 
>>> document is gone and its contents is moved into a DocBook.
>>>
>>> Shall the kernel DocBook website [2] be referenced? If so, when is it 
>>> appropriate to add the patch (note, the change is expected to be 
>>> propagated to Linus' tree in 4.1-rc1).
>>
>> Referencing a kernel Documentation file from a man page sounds like
>> a bad idea to me.  Why can't we include a nroff-yfied version of the
>> content in the man-pages repository?
> 
> isn't that way worse ?  now we have to keep the man pages git repo in sync with 
> the kernel Documentation/ subtree.

Agreed. Unless it's totally automated, keeping things in synch is too 
painful.

> i think having the man pages refer to the public docbook kernel.org pages should 
> be fine.

It's acceptable, IMO, though proper installed documentation is better.

Cheers,

Michael


-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Handling of updates to kernel Documentation/ tree
  2015-03-09 17:40     ` Mike Frysinger
  2015-03-10  5:56       ` Michael Kerrisk (man-pages)
@ 2015-03-10 14:11       ` Christoph Hellwig
       [not found]         ` <20150310141104.GA17228-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org>
  1 sibling, 1 reply; 10+ messages in thread
From: Christoph Hellwig @ 2015-03-10 14:11 UTC (permalink / raw)
  To: Christoph Hellwig, Stephan Mueller, Michael Kerrisk,
	linux-man-u79uwXL29TY76Z2rM5mHXA

On Mon, Mar 09, 2015 at 01:40:57PM -0400, Mike Frysinger wrote:
> > Referencing a kernel Documentation file from a man page sounds like
> > a bad idea to me.  Why can't we include a nroff-yfied version of the
> > content in the man-pages repository?
> 
> isn't that way worse ?  now we have to keep the man pages git repo in sync with 
> the kernel Documentation/ subtree.

The content really should not change that much for public APIs.

> i think having the man pages refer to the public docbook kernel.org pages should 
> be fine.

Pointing to kernel.org posted html renderings sounds perfectly fine to
me.  The reference to files inside a kernel source tree is what I object
to.
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Handling of updates to kernel Documentation/ tree
       [not found]         ` <20150310141104.GA17228-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org>
@ 2015-03-12  9:56           ` Stephan Mueller
  0 siblings, 0 replies; 10+ messages in thread
From: Stephan Mueller @ 2015-03-12  9:56 UTC (permalink / raw)
  To: Christoph Hellwig; +Cc: Michael Kerrisk, linux-man-u79uwXL29TY76Z2rM5mHXA

Am Dienstag, 10. März 2015, 07:11:04 schrieb Christoph Hellwig:

Hi Christoph,

>On Mon, Mar 09, 2015 at 01:40:57PM -0400, Mike Frysinger wrote:
>> > Referencing a kernel Documentation file from a man page sounds like
>> > a bad idea to me.  Why can't we include a nroff-yfied version of
>> > the
>> > content in the man-pages repository?
>> 
>> isn't that way worse ?  now we have to keep the man pages git repo in
>> sync with the kernel Documentation/ subtree.
>
>The content really should not change that much for public APIs.
>
>> i think having the man pages refer to the public docbook kernel.org
>> pages should be fine.
>
>Pointing to kernel.org posted html renderings sounds perfectly fine to
>me.  The reference to files inside a kernel source tree is what I
>object to.
>--
>To unsubscribe from this list: send the line "unsubscribe linux-man" in
>the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
>More majordomo info at  http://vger.kernel.org/majordomo-info.html

If this is the consensus, then I will wait with a patch to the man page 
until the code is merged into Linus' tree and the DocBook at kernel.org 
is updated.

The patch will then refer to the precise kernel.org web page.


Ciao
Stephan
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2015-03-12  9:56 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-09 14:17 Handling of updates to kernel Documentation/ tree Stephan Mueller
2015-03-09 15:07 ` Christoph Hellwig
     [not found]   ` <20150309150739.GA6131-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org>
2015-03-09 16:03     ` Michael Kerrisk (man-pages)
     [not found]       ` <54FDC468.40503-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2015-03-09 16:05         ` Christoph Hellwig
     [not found]           ` <20150309160520.GA28067-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org>
2015-03-10  5:56             ` Michael Kerrisk (man-pages)
2015-03-09 16:16     ` Stephan Mueller
2015-03-09 17:40     ` Mike Frysinger
2015-03-10  5:56       ` Michael Kerrisk (man-pages)
2015-03-10 14:11       ` Christoph Hellwig
     [not found]         ` <20150310141104.GA17228-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org>
2015-03-12  9:56           ` Stephan Mueller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).