tech@mandoc.bsd.lv
 help / color / mirror / Atom feed
* fill gaps in arch.in and lib.in
@ 2011-10-16 15:06 Ingo Schwarze
       [not found] ` <20111016155419.GC8820@harkle.home.gateway>
  0 siblings, 1 reply; 6+ messages in thread
From: Ingo Schwarze @ 2011-10-16 15:06 UTC (permalink / raw)
  To: tech; +Cc: jmc

Hi,

while looking at groff, i noticed that our arch.in is swiss cheese.
I'm quite sure we want to be able to properly render manuals from
other operating systems, even on platforms that OpenBSD does not
run on, so i'm asking for OKs for the patch below.

What i added here is:
 - missing OpenBSD architectures, even if they are still
   work in progress (beagle, ia64, palm)
 - tier I and II NetBSD architectures
 - architectures listed in current groff

However, i'm not quite sure what to do about the documentation.
Adding all these to mdoc(7) seems clearly excessive; there is no
need to advertise stuff like "pc532", that's merely needed for
groff compatibility.

Stripping down the list to what OpenBSD currently supports is
not a good choice either; that would require maintaining multiple
copies of mdoc.7, since NetBSD probably wants a longer list.
Maybe, in place of "It must be one of...":

  The mandoc(1) utility supports a fixed list of architectures;
  manuals for all architectures can be formatted on any architecture
  and operating system.  Writing manuals, however, requires
  sticking to the architectures supported by the respective
  operating system.
  To provide some examples, the following are common architectures:
  alpha, amd64, hp300, i386, ia64, landisk, mac68k, macppc, mvme68k,
  sparc, sparc64, vax, zaurus.
  In addition to these, the following are valid for OpenBSD:
  armish, aviion, beagle, hppa, hppa64, loongson, mvme88k, palm,
  sgi, socppc, solbourne.
  And the following are valid for NetBSD: acorn26, acorn32, algor,
  amiga, amigappc, arc, atari, bebox, cats, cesfic, cobalt, dreamcast,
  emips, evbarm, evbmips, evbppc, evbsh3, ews4800mips, hp700, hpcarm,
  hpcmips, hpcsh, ibmnws, iyonix, luna68k, mipsco, mmeye, mvmeppc,
  netwinder, news68k, newsmips, next68k, ofppc, pmax, prep, rs6000,
  sandpoint, sbmips, sgimips, shark, sun2, sun3, x68k, xen.

I'm not completely convinced of that approach either, but can't think
of anything better.  Or should we just drop the whole list?  I don't
like that idea either...

Thoughts?
  Ingo


Index: arch.in
===================================================================
RCS file: /cvs/src/usr.bin/mandoc/arch.in,v
retrieving revision 1.5
diff -u -p -r1.5 arch.in
--- arch.in	26 Sep 2010 15:10:20 -0000	1.5
+++ arch.in	16 Oct 2011 14:13:20 -0000
@@ -26,31 +26,85 @@
  * REMEMBER TO ADD NEW ARCHITECTURES TO MDOC.7!
  */
 
+LINE("acorn26",		"Acorn26")
+LINE("acorn32",		"Acorn32")
+LINE("algor",		"Algor")
 LINE("alpha",		"Alpha")
 LINE("amd64",		"AMD64")
 LINE("amiga",		"Amiga")
+LINE("amigappc",	"AmigaPPC")
 LINE("arc",		"ARC")
 LINE("arm",		"ARM")
+LINE("arm26",		"ARM26")
+LINE("arm32",		"ARM32")
 LINE("armish",		"ARMISH")
 LINE("aviion",		"AViiON")
+LINE("atari",		"ATARI")
+LINE("beagle",		"Beagle")
+LINE("bebox",		"BeBox")
+LINE("cats",		"cats")
+LINE("cesfic",		"CESFIC")
+LINE("cobalt",		"Cobalt")
+LINE("dreamcast",	"Dreamcast")
+LINE("emips",		"EMIPS")
+LINE("evbarm",		"evbARM")
+LINE("evbmips",		"evbMIPS")
+LINE("evbppc",		"evbPPC")
+LINE("evbsh3",		"evbSH3")
+LINE("ews4800mips",	"EWS4800MIPS")
 LINE("hp300",		"HP300")
+LINE("hp700",		"HP700")
+LINE("hpcarm",		"HPCARM")
+LINE("hpcmips",		"HPCMIPS")
+LINE("hpcsh",		"HPCSH")
 LINE("hppa",		"HPPA")
 LINE("hppa64",		"HPPA64")
+LINE("ia64",		"ia64")
 LINE("i386",		"i386")
+LINE("ibmnws",		"IBMNWS")
+LINE("iyonix",		"Iyonix")
 LINE("landisk",		"LANDISK")
 LINE("loongson",	"Loongson")
+LINE("luna68k",		"Luna68k")
 LINE("luna88k",		"Luna88k")
+LINE("m68k",		"m68k")
 LINE("mac68k",		"Mac68k")
 LINE("macppc",		"MacPPC")
+LINE("mips",		"MIPS")
 LINE("mips64",		"MIPS64")
+LINE("mipsco",		"MIPSCo")
+LINE("mmeye",		"mmEye")
 LINE("mvme68k",		"MVME68k")
 LINE("mvme88k",		"MVME88k")
 LINE("mvmeppc",		"MVMEPPC")
+LINE("netwinder",	"NetWinder")
+LINE("news68k",		"NeWS68k")
+LINE("newsmips",	"NeWSMIPS")
+LINE("next68k",		"NeXT68k")
+LINE("ofppc",		"OFPPC")
+LINE("palm",		"Palm")
+LINE("pc532",		"PC532")
+LINE("playstation2",	"PlayStation2")
 LINE("pmax",		"PMAX")
+LINE("pmppc",		"pmPPC")
+LINE("powerpc",		"PowerPC")
+LINE("prep",		"PReP")
+LINE("rs6000",		"RS6000")
+LINE("sandpoint",	"Sandpoint")
+LINE("sbmips",		"SBMIPS")
 LINE("sgi",		"SGI")
+LINE("sgimips",		"SGIMIPS")
+LINE("sh3",		"SH3")
+LINE("shark",		"Shark")
 LINE("socppc",		"SOCPPC")
+LINE("solbourne",	"Solbourne")
 LINE("sparc",		"SPARC")
 LINE("sparc64",		"SPARC64")
+LINE("sun2",		"Sun2")
 LINE("sun3",		"Sun3")
+LINE("tahoe",		"Tahoe")
 LINE("vax",		"VAX")
+LINE("x68k",		"X68k")
+LINE("x86_64",		"x86_64")
+LINE("xen",		"Xen")
 LINE("zaurus",		"Zaurus")
Index: lib.in
===================================================================
RCS file: /cvs/src/usr.bin/mandoc/lib.in,v
retrieving revision 1.6
diff -u -p -r1.6 lib.in
--- lib.in	20 Sep 2011 23:36:22 -0000	1.6
+++ lib.in	16 Oct 2011 14:13:20 -0000
@@ -81,6 +81,7 @@ LINE("librpcsvc",	"RPC Service Library (
 LINE("librt",		"POSIX Real\\-time Library (librt, -lrt)")
 LINE("libsdp",		"Bluetooth Service Discovery Protocol User Library (libsdp, \\-lsdp)")
 LINE("libssp",		"Buffer Overflow Protection Library (libssp, \\-lssp)")
+LINE("libSystem",	"System Library (libSystem, \\-lSystem)")
 LINE("libtermcap",	"Termcap Access Library (libtermcap, \\-ltermcap)")
 LINE("libterminfo",	"Terminal Information Library (libterminfo, \\-lterminfo)")
 LINE("libthr",		"1:1 Threading Library (libthr, \\-lthr)")
--
 To unsubscribe send an email to tech+unsubscribe@mdocml.bsd.lv

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

end of thread, other threads:[~2011-10-24 22:32 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-16 15:06 fill gaps in arch.in and lib.in Ingo Schwarze
     [not found] ` <20111016155419.GC8820@harkle.home.gateway>
2011-10-16 16:10   ` Ingo Schwarze
2011-10-16 16:14     ` Kristaps Dzonsons
2011-10-16 16:42       ` Ingo Schwarze
2011-10-24 16:30         ` Kristaps Dzonsons
2011-10-24 22:25           ` Ingo Schwarze

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).