From c566d4623bac8bacb1dd80e215c52380a9daa2f1 Mon Sep 17 00:00:00 2001 From: Lionel Sambuc Date: Wed, 10 Apr 2013 18:13:48 +0200 Subject: [PATCH] Allow install of binutils and import texinfo - Enable installing binutils from the base system. - Import texinfo which is required for the binutils tools to be compiled. - Also adapted the fetch rules to correctly generate the gitignore files for gcc, and allow the case of multiple modules in the same directory, as found in gnu/dist. Warning: This patch has an entry in docs/UPDATING Change-Id: Ib781734e8fd7f9c6265fa65d62ba2cf3fccbc5ba --- Makefile | 2 - distrib/sets/lists/minix/md.evbarm | 4 +- distrib/sets/lists/minix/md.i386 | 16 +- distrib/sets/lists/minix/mi | 69 +- docs/UPDATING | 10 + etc/mtree/NetBSD.dist.base | 1 + external/gpl3/binutils/Makefile | 3 +- .../gpl3/binutils/lib/libbfd/arch/earm/bfd.h | 342 +- .../lib/libbfd/arch/earm/bfd_stdint.h | 2 +- .../binutils/lib/libbfd/arch/earm/bfdver.h | 6 +- .../binutils/lib/libbfd/arch/earm/config.h | 20 +- .../binutils/lib/libbfd/arch/earm/defs.mk | 6 +- .../gpl3/binutils/lib/libbfd/arch/i386/bfd.h | 342 +- .../lib/libbfd/arch/i386/bfd_stdint.h | 2 +- .../binutils/lib/libbfd/arch/i386/bfdver.h | 6 +- .../binutils/lib/libbfd/arch/i386/config.h | 24 +- .../binutils/lib/libbfd/arch/i386/defs.mk | 6 +- .../binutils/lib/libiberty/arch/earm/config.h | 32 +- .../binutils/lib/libiberty/arch/i386/config.h | 32 +- .../binutils/lib/libiberty/arch/i386/defs.mk | 4 +- .../lib/libopcodes/arch/earm/config.h | 10 +- .../lib/libopcodes/arch/i386/config.h | 10 +- .../gpl3/binutils/patches/0001-minix.patch | 5 +- external/gpl3/binutils/usr.bin/Makefile.inc | 5 + .../binutils/usr.bin/common/Makefile.prog | 2 + .../usr.bin/common/arch/earm/config.h | 20 +- .../binutils/usr.bin/common/arch/earm/defs.mk | 28 +- .../usr.bin/common/arch/i386/config.h | 16 +- .../binutils/usr.bin/common/arch/i386/defs.mk | 28 +- external/gpl3/binutils/usr.bin/gas/Makefile | 2 + .../binutils/usr.bin/gas/arch/earm/config.h | 26 +- .../binutils/usr.bin/gas/arch/earm/itbl-cpu.h | 3 +- .../usr.bin/gas/arch/earm/obj-format.h | 3 +- .../binutils/usr.bin/gas/arch/earm/targ-cpu.h | 3 +- .../binutils/usr.bin/gas/arch/i386/config.h | 22 +- .../binutils/usr.bin/gas/arch/i386/defs.mk | 2 +- .../binutils/usr.bin/gas/arch/i386/targ-env.h | 5 +- external/gpl3/binutils/usr.bin/gprof/Makefile | 2 + .../usr.bin/gprof/arch/earm/gconfig.h | 10 +- .../usr.bin/gprof/arch/i386/gconfig.h | 10 +- external/gpl3/binutils/usr.bin/ld/Makefile | 12 +- .../binutils/usr.bin/ld/arch/earm/config.h | 19 +- .../binutils/usr.bin/ld/arch/earm/defs.mk | 8 +- .../usr.bin/ld/arch/earm/ldemul-list.h | 8 +- .../binutils/usr.bin/ld/arch/i386/config.h | 15 +- .../binutils/usr.bin/ld/arch/i386/defs.mk | 8 +- .../usr.bin/ld/arch/i386/ldemul-list.h | 7 +- .../gpl3/binutils/usr.bin/objdump/Makefile | 4 + gnu/Makefile | 9 + gnu/README | 34 + gnu/dist/Makefile | 14 + gnu/dist/fetch.sh | 32 +- gnu/usr.bin/Makefile | 36 + gnu/usr.bin/Makefile.inc | 3 + gnu/usr.bin/texinfo/Makefile | 46 + gnu/usr.bin/texinfo/Makefile.inc | 32 + gnu/usr.bin/texinfo/common/Makefile | 36 + gnu/usr.bin/texinfo/common/config.h | 423 ++ gnu/usr.bin/texinfo/info/Makefile | 20 + gnu/usr.bin/texinfo/infokey/Makefile | 10 + gnu/usr.bin/texinfo/install-info/Makefile | 14 + gnu/usr.bin/texinfo/makedoc/Makefile | 15 + gnu/usr.bin/texinfo/makeinfo/Makefile | 15 + .../texinfo/patches/0000-texinfo-nbsd.patch | 4097 +++++++++++++++++ gnu/usr.bin/texinfo/texi2dvi/Makefile | 9 + gnu/usr.bin/texinfo/texindex/Makefile | 8 + releasetools/nbsd_ports | 5 + share/mk/bsd.own.mk | 2 +- tools/Makefile | 1 + tools/Makefile.gnuhost | 2 +- tools/texinfo/Makefile | 7 + 71 files changed, 5804 insertions(+), 288 deletions(-) create mode 100644 gnu/Makefile create mode 100644 gnu/README create mode 100644 gnu/dist/Makefile create mode 100644 gnu/usr.bin/Makefile create mode 100644 gnu/usr.bin/Makefile.inc create mode 100644 gnu/usr.bin/texinfo/Makefile create mode 100644 gnu/usr.bin/texinfo/Makefile.inc create mode 100644 gnu/usr.bin/texinfo/common/Makefile create mode 100644 gnu/usr.bin/texinfo/common/config.h create mode 100644 gnu/usr.bin/texinfo/info/Makefile create mode 100644 gnu/usr.bin/texinfo/infokey/Makefile create mode 100644 gnu/usr.bin/texinfo/install-info/Makefile create mode 100644 gnu/usr.bin/texinfo/makedoc/Makefile create mode 100644 gnu/usr.bin/texinfo/makeinfo/Makefile create mode 100644 gnu/usr.bin/texinfo/patches/0000-texinfo-nbsd.patch create mode 100644 gnu/usr.bin/texinfo/texi2dvi/Makefile create mode 100644 gnu/usr.bin/texinfo/texindex/Makefile create mode 100644 tools/texinfo/Makefile diff --git a/Makefile b/Makefile index bbe2ccdb4..85a9c96b7 100644 --- a/Makefile +++ b/Makefile @@ -172,11 +172,9 @@ afterinstall: .PHONY .MAKE ${MAKEDIRTARGET} man makedb .endif # !defined(__MINIX) .endif -.if !defined(__MINIX) .if (${MKUNPRIVED} != "no" && ${MKINFO} != "no") ${MAKEDIRTARGET} gnu/usr.bin/texinfo/install-info infodir-meta .endif -.endif # !defined(__MINIX) .if !defined(NOPOSTINSTALL) ${MAKEDIRTARGET} . postinstall-check .endif diff --git a/distrib/sets/lists/minix/md.evbarm b/distrib/sets/lists/minix/md.evbarm index fab0b0f55..a9c9df252 100644 --- a/distrib/sets/lists/minix/md.evbarm +++ b/distrib/sets/lists/minix/md.evbarm @@ -10,6 +10,7 @@ ./multiboot/mod10_vm minix-sys ./multiboot/mod11_pfs minix-sys ./multiboot/mod12_init minix-sys +./usr/include/arm minix-sys ./usr/include/arm/aeabi.h minix-sys ./usr/include/arm/ansi.h minix-sys ./usr/include/arm/arm26 minix-sys @@ -39,7 +40,6 @@ ./usr/include/arm/lock.h minix-sys ./usr/include/arm/math.h minix-sys ./usr/include/arm/mcontext.h minix-sys -./usr/include/arm minix-sys ./usr/include/arm/mutex.h minix-sys ./usr/include/arm/param.h minix-sys ./usr/include/arm/profile.h minix-sys @@ -48,6 +48,7 @@ ./usr/include/arm/signal.h minix-sys ./usr/include/arm/types.h minix-sys ./usr/include/arm/wchar_limits.h minix-sys +./usr/include/evbarm minix-sys ./usr/include/evbarm/ansi.h minix-sys ./usr/include/evbarm/archconst.h minix-sys ./usr/include/evbarm/archtypes.h minix-sys @@ -77,7 +78,6 @@ ./usr/include/evbarm/math.h minix-sys ./usr/include/evbarm/mcontext.h minix-sys ./usr/include/evbarm/memory.h minix-sys -./usr/include/evbarm minix-sys ./usr/include/evbarm/multiboot.h minix-sys ./usr/include/evbarm/mutex.h minix-sys ./usr/include/evbarm/param.h minix-sys diff --git a/distrib/sets/lists/minix/md.i386 b/distrib/sets/lists/minix/md.i386 index e64397bd7..1256cd01d 100644 --- a/distrib/sets/lists/minix/md.i386 +++ b/distrib/sets/lists/minix/md.i386 @@ -32,12 +32,13 @@ ./usr/bin/doswrite minix-sys ./usr/bin/fdisk minix-sys ./usr/bin/loadfont minix-sys -./usr/bin/partition minix-sys ./usr/bin/part minix-sys +./usr/bin/partition minix-sys ./usr/bin/playwave minix-sys ./usr/bin/recwave minix-sys ./usr/bin/repartition minix-sys ./usr/bin/screendump minix-sys +./usr/include/i386 minix-sys ./usr/include/i386/ansi.h minix-sys ./usr/include/i386/archconst.h minix-sys ./usr/include/i386/archtypes.h minix-sys @@ -73,7 +74,6 @@ ./usr/include/i386/math.h minix-sys ./usr/include/i386/mcontext.h minix-sys ./usr/include/i386/memory.h minix-sys -./usr/include/i386 minix-sys ./usr/include/i386/multiboot.h minix-sys ./usr/include/i386/mutex.h minix-sys ./usr/include/i386/npx.h minix-sys @@ -96,6 +96,7 @@ ./usr/include/i386/vmparam.h minix-sys ./usr/include/i386/wchar_limits.h minix-sys ./usr/include/minix/vassert.h minix-sys +./usr/include/x86 minix-sys ./usr/include/x86/aout_machdep.h minix-sys ./usr/include/x86/bootinfo.h minix-sys ./usr/include/x86/cacheinfo.h minix-sys @@ -110,7 +111,6 @@ ./usr/include/x86/intr.h minix-sys ./usr/include/x86/lock.h minix-sys ./usr/include/x86/math.h minix-sys -./usr/include/x86 minix-sys ./usr/include/x86/mtrr.h minix-sys ./usr/include/x86/mutex.h minix-sys ./usr/include/x86/pio.h minix-sys @@ -135,17 +135,17 @@ ./usr/lib/libvboxfs_pic.a minix-sys ./usr/lib/libvirtio.a minix-sys ./usr/lib/libvirtio_pic.a minix-sys +./usr/mdec minix-sys ./usr/mdec/boot_monitor minix-sys ./usr/mdec/bootxx_cd9660 minix-sys ./usr/mdec/bootxx_ext2fs minix-sys ./usr/mdec/bootxx_minixfs3 minix-sys ./usr/mdec/gptmbr.bin minix-sys -./usr/mdec/mbr_bootsel minix-sys -./usr/mdec/mbr_com0_9600 minix-sys -./usr/mdec/mbr_com0 minix-sys -./usr/mdec/mbr_ext minix-sys ./usr/mdec/mbr minix-sys -./usr/mdec minix-sys +./usr/mdec/mbr_bootsel minix-sys +./usr/mdec/mbr_com0 minix-sys +./usr/mdec/mbr_com0_9600 minix-sys +./usr/mdec/mbr_ext minix-sys ./usr/sbin/acpi minix-sys ./usr/sbin/amddev minix-sys ./usr/sbin/atl2 minix-sys diff --git a/distrib/sets/lists/minix/mi b/distrib/sets/lists/minix/mi index ad332a942..a645ab866 100644 --- a/distrib/sets/lists/minix/mi +++ b/distrib/sets/lists/minix/mi @@ -128,8 +128,6 @@ ./lib minix-sys ./lib/cpp minix-sys ./libexec minix-sys -./usr/libexec/fingerd minix-sys -./usr/libexec/ftpd minix-sys ./libexec/ld.elf_so minix-sys ./libexec/ld-elf.so.1 minix-sys ./mnt minix-sys @@ -210,10 +208,13 @@ ./usr/bin minix-sys ./usr/bin/acknm minix-sys ./usr/bin/acksize minix-sys +./usr/bin/addr2line minix-sys binutils ./usr/bin/add_route minix-sys ./usr/bin/apropos minix-sys +./usr/bin/ar minix-sys binutils ./usr/bin/arch minix-sys ./usr/bin/arp minix-sys +./usr/bin/as minix-sys binutils ./usr/bin/at minix-sys ./usr/bin/awk minix-sys ./usr/bin/backup minix-sys @@ -232,6 +233,7 @@ ./usr/bin/cawf minix-sys ./usr/bin/cc minix-sys ./usr/bin/cdprobe minix-sys +./usr/bin/c++filt minix-sys binutils ./usr/bin/checkhier minix-sys obsolete ./usr/bin/chfn minix-sys ./usr/bin/chgrp minix-sys @@ -273,6 +275,7 @@ ./usr/bin/dumpcore minix-sys ./usr/bin/egrep minix-sys ./usr/bin/eject minix-sys +./usr/bin/elfedit minix-sys binutils ./usr/bin/elvis minix-sys obsolete ./usr/bin/elvprsv minix-sys obsolete ./usr/bin/elvrec minix-sys obsolete @@ -300,6 +303,7 @@ ./usr/bin/gcov-pull minix-sys ./usr/bin/genassym minix-sys ./usr/bin/getopt minix-sys +./usr/bin/gprof minix-sys binutils ./usr/bin/grep minix-sys ./usr/bin/groups minix-sys ./usr/bin/gunzip minix-sys @@ -316,9 +320,12 @@ ./usr/bin/ifdef minix-sys ./usr/bin/indent minix-sys ./usr/bin/in.fingerd minix-sys obsolete +./usr/bin/info minix-sys ./usr/bin/infocmp minix-sys +./usr/bin/infokey minix-sys ./usr/bin/in.rshd minix-sys ./usr/bin/install minix-sys +./usr/bin/install-info minix-sys ./usr/bin/in.telnetd minix-sys ./usr/bin/ipcrm minix-sys ./usr/bin/ipcs minix-sys @@ -329,6 +336,7 @@ ./usr/bin/join minix-sys ./usr/bin/kill minix-sys obsolete ./usr/bin/last minix-sys +./usr/bin/ld minix-sys binutils ./usr/bin/ldd minix-sys ./usr/bin/less minix-sys ./usr/bin/lessecho minix-sys @@ -348,6 +356,7 @@ ./usr/bin/mail minix-sys ./usr/bin/make minix-sys ./usr/bin/MAKEDEV minix-sys +./usr/bin/makeinfo minix-sys ./usr/bin/man minix-sys ./usr/bin/mandoc minix-sys ./usr/bin/md2 minix-sys @@ -366,9 +375,12 @@ ./usr/bin/nbperf minix-sys ./usr/bin/newgrp minix-sys ./usr/bin/nice minix-sys +./usr/bin/nm minix-sys binutils ./usr/bin/nohup minix-sys ./usr/bin/nonamed minix-sys ./usr/bin/nroff minix-sys +./usr/bin/objcopy minix-sys binutils +./usr/bin/objdump minix-sys binutils ./usr/bin/od minix-sys ./usr/bin/page minix-sys ./usr/bin/passwd minix-sys @@ -389,11 +401,13 @@ ./usr/bin/pr_routes minix-sys ./usr/bin/ps minix-sys ./usr/bin/ramdisk minix-sys +./usr/bin/ranlib minix-sys binutils ./usr/bin/rarpd minix-sys ./usr/bin/rawspeed minix-sys ./usr/bin/rcp minix-sys ./usr/bin/rdate minix-sys obsolete ./usr/bin/readall minix-sys obsolete +./usr/bin/readelf minix-sys binutils ./usr/bin/readlink minix-sys ./usr/bin/reboot minix-sys ./usr/bin/ref minix-sys obsolete @@ -413,6 +427,7 @@ ./usr/bin/shar minix-sys ./usr/bin/shuffle minix-sys ./usr/bin/shutdown minix-sys +./usr/bin/size minix-sys binutils ./usr/bin/sleep minix-sys ./usr/bin/slip minix-sys ./usr/bin/sort minix-sys @@ -422,6 +437,7 @@ ./usr/bin/sprofdiff minix-sys ./usr/bin/srccrc minix-sys ./usr/bin/stat minix-sys +./usr/bin/strings minix-sys binutils ./usr/bin/strip minix-sys ./usr/bin/stty minix-sys ./usr/bin/su minix-sys @@ -440,6 +456,8 @@ ./usr/bin/tee minix-sys ./usr/bin/term minix-sys ./usr/bin/termcap minix-sys +./usr/bin/texi2dvi minix-sys +./usr/bin/texindex minix-sys ./usr/bin/tget minix-sys ./usr/bin/tic minix-sys ./usr/bin/time minix-sys @@ -1058,6 +1076,8 @@ ./usr/lib/libaudiodriver_pic.a minix-sys ./usr/lib/libbdev.a minix-sys ./usr/lib/libbdev_pic.a minix-sys +./usr/lib/libbfd.so.12.0 minix-sys binutils +./usr/lib/libbfd.so.12 minix-sys binutils ./usr/lib/libblockdriver.a minix-sys ./usr/lib/libblockdriver_pic.a minix-sys ./usr/lib/libbz2.a minix-sys @@ -1143,6 +1163,8 @@ ./usr/lib/libnetdriver_pic.a minix-sys ./usr/lib/libnetsock.a minix-sys ./usr/lib/libnetsock_pic.a minix-sys +./usr/lib/libopcodes.so.5.0 minix-sys binutils +./usr/lib/libopcodes.so.5 minix-sys binutils ./usr/lib/libprop.a minix-sys ./usr/lib/libprop_pic.a minix-sys ./usr/lib/libprop.so.0.0 minix-sys @@ -1200,6 +1222,8 @@ ./usr/lib/minlib.pc minix-sys ./usr/lib/pwdauth minix-sys ./usr/libexec minix-sys +./usr/libexec/fingerd minix-sys +./usr/libexec/ftpd minix-sys ./usr/libexec/ld.elf_so minix-sys ./usr/libexec/makewhatis minix-sys ./usr/log minix-sys @@ -1209,7 +1233,10 @@ ./usr/man/man1/..1 minix-sys ./usr/man/man1/[.1 minix-sys ./usr/man/man1/acksize.1 minix-sys +./usr/man/man1/addr2line.1 minix-sys binutils ./usr/man/man1/apropos.1 minix-sys +./usr/man/man1/ar.1 minix-sys binutils +./usr/man/man1/as.1 minix-sys binutils ./usr/man/man1/ash.1 minix-sys ./usr/man/man1/at.1 minix-sys ./usr/man/man1/awk.1 minix-sys @@ -1228,6 +1255,7 @@ ./usr/man/man1/cat.1 minix-sys ./usr/man/man1/cawf.1 minix-sys ./usr/man/man1/cd.1 minix-sys +./usr/man/man1/c++filt.1 minix-sys binutils ./usr/man/man1/chfn.1 minix-sys ./usr/man/man1/chgrp.1 minix-sys ./usr/man/man1/chmod.1 minix-sys @@ -1265,6 +1293,7 @@ ./usr/man/man1/ed.1 minix-sys ./usr/man/man1/egrep.1 minix-sys ./usr/man/man1/eject.1 minix-sys +./usr/man/man1/elfedit.1 minix-sys binutils ./usr/man/man1/elvis.1 minix-sys obsolete ./usr/man/man1/elvrec.1 minix-sys obsolete ./usr/man/man1/env.1 minix-sys @@ -1294,6 +1323,7 @@ ./usr/man/man1/genassym.1 minix-sys ./usr/man/man1/getopt.1 minix-sys ./usr/man/man1/getopts.1 minix-sys +./usr/man/man1/gprof.1 minix-sys binutils ./usr/man/man1/grep.1 minix-sys ./usr/man/man1/groups.1 minix-sys ./usr/man/man1/gunzip.1 minix-sys @@ -1309,8 +1339,11 @@ ./usr/man/man1/if.1 minix-sys ./usr/man/man1/ifdef.1 minix-sys ./usr/man/man1/indent.1 minix-sys +./usr/man/man1/info.1 minix-sys ./usr/man/man1/infocmp.1 minix-sys +./usr/man/man1/infokey.1 minix-sys ./usr/man/man1/install.1 minix-sys +./usr/man/man1/install-info.1 minix-sys ./usr/man/man1/isodir.1 minix-sys ./usr/man/man1/isoinfo.1 minix-sys ./usr/man/man1/isoread.1 minix-sys @@ -1319,6 +1352,7 @@ ./usr/man/man1/kill.1 minix-sys ./usr/man/man1/ksh.1 minix-sys ./usr/man/man1/last.1 minix-sys +./usr/man/man1/ld.1 minix-sys binutils ./usr/man/man1/ldd.1 minix-sys ./usr/man/man1/ld.elf_so.1 minix-sys ./usr/man/man1/less.1 minix-sys @@ -1340,6 +1374,7 @@ ./usr/man/man1/m4.1 minix-sys ./usr/man/man1/mail.1 minix-sys ./usr/man/man1/make.1 minix-sys +./usr/man/man1/makeinfo.1 minix-sys ./usr/man/man1/man.1 minix-sys ./usr/man/man1/mandoc.1 minix-sys ./usr/man/man1/md2.1 minix-sys @@ -1364,6 +1399,8 @@ ./usr/man/man1/nice.1 minix-sys ./usr/man/man1/nm.1 minix-sys ./usr/man/man1/nohup.1 minix-sys +./usr/man/man1/objcopy.1 minix-sys binutils +./usr/man/man1/objdump.1 minix-sys binutils ./usr/man/man1/od.1 minix-sys ./usr/man/man1/page.1 minix-sys ./usr/man/man1/passwd.1 minix-sys @@ -1379,9 +1416,11 @@ ./usr/man/man1/profile.1 minix-sys ./usr/man/man1/ps.1 minix-sys ./usr/man/man1/pwd.1 minix-sys +./usr/man/man1/ranlib.1 minix-sys binutils ./usr/man/man1/rcp.1 minix-sys ./usr/man/man1/read.1 minix-sys ./usr/man/man1/readall.1 minix-sys obsolete +./usr/man/man1/readelf.1 minix-sys binutils ./usr/man/man1/readlink.1 minix-sys ./usr/man/man1/readonly.1 minix-sys ./usr/man/man1/recwave.1 minix-sys @@ -1404,11 +1443,14 @@ ./usr/man/man1/shar.1 minix-sys ./usr/man/man1/shift.1 minix-sys ./usr/man/man1/shuffle.1 minix-sys +./usr/man/man1/size.1 minix-sys binutils ./usr/man/man1/sleep.1 minix-sys ./usr/man/man1/sort.1 minix-sys ./usr/man/man1/spell.1 minix-sys ./usr/man/man1/split.1 minix-sys ./usr/man/man1/stat.1 minix-sys +./usr/man/man1/strings.1 minix-sys binutils +./usr/man/man1/strip.1 minix-sys binutils ./usr/man/man1/stty.1 minix-sys ./usr/man/man1/su.1 minix-sys ./usr/man/man1/sum.1 minix-sys @@ -1425,6 +1467,8 @@ ./usr/man/man1/term.1 minix-sys ./usr/man/man1/termcap.1 minix-sys ./usr/man/man1/test.1 minix-sys +./usr/man/man1/texi2dvi.1 minix-sys +./usr/man/man1/texindex.1 minix-sys ./usr/man/man1/tget.1 minix-sys ./usr/man/man1/tic.1 minix-sys ./usr/man/man1/time.1 minix-sys @@ -3684,11 +3728,11 @@ ./usr/man/man5/ftpchroot.5 minix-sys ./usr/man/man5/ftpd.conf.5 minix-sys ./usr/man/man5/ftpusers.5 minix-sys -./usr/man/man8/ftpd.8 minix-sys ./usr/man/man5/group.5 minix-sys ./usr/man/man5/hosts.5 minix-sys ./usr/man/man5/httpd.conf.5 minix-sys ./usr/man/man5/http_status.5 minix-sys +./usr/man/man5/info.5 minix-sys ./usr/man/man5/keymap.5 minix-sys ./usr/man/man5/libarchive-formats.5 minix-sys ./usr/man/man5/magic.5 minix-sys @@ -3707,6 +3751,7 @@ ./usr/man/man5/tar.5 minix-sys ./usr/man/man5/termcap.5 minix-sys ./usr/man/man5/terminfo.5 minix-sys +./usr/man/man5/texinfo.5 minix-sys ./usr/man/man5/ttytab.5 minix-sys ./usr/man/man5/TZ.5 minix-sys ./usr/man/man5/tzfile.5 minix-sys @@ -3747,6 +3792,7 @@ ./usr/man/man8/fingerd.8 minix-sys ./usr/man/man8/fsck.8 minix-sys ./usr/man/man8/fsck_ext2fs.8 minix-sys +./usr/man/man8/ftpd.8 minix-sys ./usr/man/man8/getty.8 minix-sys ./usr/man/man8/group.8 minix-sys ./usr/man/man8/groupadd.8 minix-sys @@ -3891,6 +3937,16 @@ ./usr/share/doc/psd/19.curses/twinkle1.c minix-sys ./usr/share/doc/psd/19.curses/twinkle2.c minix-sys ./usr/share/doc/psd/19.curses/win_st.c minix-sys +./usr/share/info minix-sys +./usr/share/info/as.info minix-sys binutils +./usr/share/info/bfd.info minix-sys binutils +./usr/share/info/binutils.info minix-sys binutils +./usr/share/info/dir minix-sys +./usr/share/info/gprof.info minix-sys binutils +./usr/share/info/info.info minix-sys +./usr/share/info/info-stnd.info minix-sys +./usr/share/info/ld.info minix-sys binutils +./usr/share/info/texinfo.info minix-sys ./usr/share/misc minix-sys ./usr/share/misc/acronyms minix-sys ./usr/share/misc/acronyms.comp minix-sys @@ -3900,6 +3956,7 @@ ./usr/share/misc/bsd-family-tree minix-sys ./usr/share/misc/country minix-sys ./usr/share/misc/domains minix-sys +./usr/share/misc/epsf.tex minix-sys ./usr/share/misc/eqnchar minix-sys ./usr/share/misc/flowers minix-sys ./usr/share/misc/indent.pro minix-sys @@ -3913,6 +3970,10 @@ ./usr/share/misc/NetBSD.el minix-sys ./usr/share/misc/operator minix-sys ./usr/share/misc/style minix-sys +./usr/share/misc/texinfo.cat minix-sys +./usr/share/misc/texinfo.dtd minix-sys +./usr/share/misc/texinfo.tex minix-sys +./usr/share/misc/texinfo.xsl minix-sys ./usr/share/misc/zipcodes minix-sys ./usr/share/mk minix-sys ./usr/share/mk/bsd.clang-analyze.mk minix-sys @@ -4651,12 +4712,12 @@ ./usr/tests/minix-posix/test68 minix-sys ./usr/tests/minix-posix/test69 minix-sys ./usr/tests/minix-posix/test70 minix-sys +./usr/tests/minix-posix/test7 minix-sys ./usr/tests/minix-posix/test71 minix-sys ./usr/tests/minix-posix/test72 minix-sys ./usr/tests/minix-posix/test73 minix-sys ./usr/tests/minix-posix/test74 minix-sys ./usr/tests/minix-posix/test75 minix-sys -./usr/tests/minix-posix/test7 minix-sys ./usr/tests/minix-posix/test8 minix-sys ./usr/tests/minix-posix/test9 minix-sys ./usr/tests/minix-posix/testinterp minix-sys diff --git a/docs/UPDATING b/docs/UPDATING index d2e72bd20..d45b6a93b 100644 --- a/docs/UPDATING +++ b/docs/UPDATING @@ -1,3 +1,13 @@ +20130711: + Texinfo needs itself to generate its manual pages. As it is not + yet installed on the system it fails to find the default makeinfo + tool. So we have to first compile it, then install it will specifying + the full path to makeinfo (Both commands have to be run, in the given + sequence): + + # make -C gnu/usr.bin/texinfo all + # make -C gnu/usr.bin/texinfo all install TOOL_MAKEINFO=/usr/src/gnu/usr.bin/texinfo/makeinfo/makeinfo + 20130422: The ARM build no longer requires you to build as root user you therefore need to wipe (or chmod) your build generated files diff --git a/etc/mtree/NetBSD.dist.base b/etc/mtree/NetBSD.dist.base index ff4712b85..bf2a102dd 100644 --- a/etc/mtree/NetBSD.dist.base +++ b/etc/mtree/NetBSD.dist.base @@ -100,6 +100,7 @@ ./usr/share/doc/html/bzip2 ./usr/share/doc/psd ./usr/share/doc/psd/19.curses +./usr/share/info ./usr/share/misc ./usr/share/mk ./usr/share/terminfo diff --git a/external/gpl3/binutils/Makefile b/external/gpl3/binutils/Makefile index a2ee173cc..f8ece0415 100644 --- a/external/gpl3/binutils/Makefile +++ b/external/gpl3/binutils/Makefile @@ -1,6 +1,7 @@ # $NetBSD: Makefile,v 1.1 2009/08/18 20:21:58 skrll Exp $ -SUBDIR+= lib .WAIT usr.bin usr.sbin +# LSC: NetBSD-specific tools: usr.sbin +SUBDIR+= lib .WAIT usr.bin # Speedup stubs for some subtrees that don't need to run these rules includes-libexec: diff --git a/external/gpl3/binutils/lib/libbfd/arch/earm/bfd.h b/external/gpl3/binutils/lib/libbfd/arch/earm/bfd.h index b511736cc..532278325 100644 --- a/external/gpl3/binutils/lib/libbfd/arch/earm/bfd.h +++ b/external/gpl3/binutils/lib/libbfd/arch/earm/bfd.h @@ -11,8 +11,8 @@ /* Main header file for the bfd library -- portable access to object files. - Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, - 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 + Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, + 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc. Contributed by Cygnus Support. @@ -191,8 +191,8 @@ typedef bfd_vma bfd_uint64_t; /* An offset into a file. BFD always uses the largest possible offset based on the build time availability of fseek, fseeko, or fseeko64. */ -typedef BFD_HOST_64_BIT file_ptr; -typedef unsigned BFD_HOST_64_BIT ufile_ptr; +typedef long file_ptr; +typedef unsigned long ufile_ptr; extern void bfd_sprintf_vma (bfd *, char *, bfd_vma); extern void bfd_fprintf_vma (bfd *, void *, bfd_vma); @@ -302,8 +302,8 @@ typedef struct bfd_section *sec_ptr; #define bfd_set_section_userdata(bfd, ptr, val) (((ptr)->userdata = (val)),TRUE) /* Find the address one past the end of SEC. */ #define bfd_get_section_limit(bfd, sec) \ - (((sec)->rawsize ? (sec)->rawsize : (sec)->size) \ - / bfd_octets_per_byte (bfd)) + (((bfd)->direction != write_direction && (sec)->rawsize != 0 \ + ? (sec)->rawsize : (sec)->size) / bfd_octets_per_byte (bfd)) /* Return TRUE if input section SEC has been discarded. */ #define elf_discarded_section(sec) \ @@ -443,7 +443,7 @@ extern void bfd_hash_traverse /* Allows the default size of a hash table to be configured. New hash tables allocated using bfd_hash_table_init will be created with this size. */ -extern void bfd_hash_set_default_size (bfd_size_type); +extern unsigned long bfd_hash_set_default_size (unsigned long); /* This structure is used to keep track of stabs in sections information while linking. */ @@ -563,11 +563,6 @@ void bfd_putl16 (bfd_vma, void *); bfd_uint64_t bfd_get_bits (const void *, int, bfd_boolean); void bfd_put_bits (bfd_uint64_t, void *, int, bfd_boolean); -extern bfd_boolean bfd_section_already_linked_table_init (void); -extern void bfd_section_already_linked_table_free (void); - -/* Externally visible ECOFF routines. */ - #if defined(__STDC__) || defined(ALMOST_STDC) struct ecoff_debug_info; struct ecoff_debug_swap; @@ -575,8 +570,18 @@ struct ecoff_extr; struct bfd_symbol; struct bfd_link_info; struct bfd_link_hash_entry; +struct bfd_section_already_linked; struct bfd_elf_version_tree; #endif + +extern bfd_boolean bfd_section_already_linked_table_init (void); +extern void bfd_section_already_linked_table_free (void); +extern bfd_boolean _bfd_handle_already_linked + (struct bfd_section *, struct bfd_section_already_linked *, + struct bfd_link_info *); + +/* Externally visible ECOFF routines. */ + extern bfd_vma bfd_ecoff_get_gp_value (bfd * abfd); extern bfd_boolean bfd_ecoff_set_gp_value @@ -651,8 +656,7 @@ extern bfd_boolean bfd_elf_get_bfd_needed_list (bfd *, struct bfd_link_needed_list **); extern bfd_boolean bfd_elf_size_dynamic_sections (bfd *, const char *, const char *, const char *, const char *, const char *, - const char * const *, struct bfd_link_info *, struct bfd_section **, - struct bfd_elf_version_tree *); + const char * const *, struct bfd_link_info *, struct bfd_section **); extern bfd_boolean bfd_elf_size_dynsym_hash_dynstr (bfd *, struct bfd_link_info *); extern void bfd_elf_set_dt_needed_name @@ -880,7 +884,7 @@ extern bfd_boolean bfd_elf32_arm_process_before_allocation void bfd_elf32_arm_set_target_relocs (bfd *, struct bfd_link_info *, int, char *, int, int, bfd_arm_vfp11_fix, - int, int, int, int); + int, int, int, int, int); extern bfd_boolean bfd_elf32_arm_get_bfd_for_interworking (bfd *, struct bfd_link_info *); @@ -923,6 +927,10 @@ extern bfd_boolean elf32_arm_build_stubs extern bfd_boolean elf32_arm_fix_exidx_coverage (struct bfd_section **, unsigned int, struct bfd_link_info *, bfd_boolean); +/* C6x unwind section editing support. */ +extern bfd_boolean elf32_tic6x_fix_exidx_coverage +(struct bfd_section **, unsigned int, struct bfd_link_info *, bfd_boolean); + /* PowerPC @tls opcode transform/validate. */ extern unsigned int _bfd_elf_ppc_at_tls_transform (unsigned int, unsigned int); @@ -1143,7 +1151,8 @@ long bfd_get_mtime (bfd *abfd); file_ptr bfd_get_size (bfd *abfd); void *bfd_mmap (bfd *abfd, void *addr, bfd_size_type len, - int prot, int flags, file_ptr offset); + int prot, int flags, file_ptr offset, + void **map_addr, bfd_size_type *map_len); /* Extracted from bfdwin.c. */ /* Extracted from section.c. */ @@ -1324,6 +1333,11 @@ typedef struct bfd_section sections. */ #define SEC_COFF_SHARED_LIBRARY 0x4000000 + /* This input section should be copied to output in reverse order + as an array of pointers. This is for ELF linker internal use + only. */ +#define SEC_ELF_REVERSE_COPY 0x4000000 + /* This section contains data which may be shared with other executables or shared objects. This is for COFF only. */ #define SEC_COFF_SHARED 0x8000000 @@ -1508,6 +1522,9 @@ typedef struct bfd_section /* The BFD which owns the section. */ bfd *owner; + /* INPUT_SECTION_FLAGS if specified in the linker script. */ + struct flag_info *section_flag_info; + /* A symbol which points at this section only. */ struct bfd_symbol *symbol; struct bfd_symbol **symbol_ptr_ptr; @@ -1686,6 +1703,9 @@ extern asection bfd_ind_section; /* target_index, used_by_bfd, constructor_chain, owner, */ \ 0, NULL, NULL, NULL, \ \ + /* flag_info, */ \ + NULL, \ + \ /* symbol, symbol_ptr_ptr, */ \ (struct bfd_symbol *) SYM, &SEC.symbol, \ \ @@ -1864,6 +1884,7 @@ enum bfd_architecture #define bfd_mach_mips5 5 #define bfd_mach_mips_loongson_2e 3001 #define bfd_mach_mips_loongson_2f 3002 +#define bfd_mach_mips_loongson_3a 3003 #define bfd_mach_mips_sb1 12310201 /* octal 'SB', 01 */ #define bfd_mach_mips_octeon 6501 #define bfd_mach_mips_xlr 887682 /* decimal 'XLR' */ @@ -1871,15 +1892,22 @@ enum bfd_architecture #define bfd_mach_mipsisa32r2 33 #define bfd_mach_mipsisa64 64 #define bfd_mach_mipsisa64r2 65 +#define bfd_mach_mips_micromips 96 bfd_arch_i386, /* Intel 386 */ -#define bfd_mach_i386_i386 1 -#define bfd_mach_i386_i8086 2 -#define bfd_mach_i386_i386_intel_syntax 3 -#define bfd_mach_x86_64 64 -#define bfd_mach_x86_64_intel_syntax 65 +#define bfd_mach_i386_intel_syntax (1 << 0) +#define bfd_mach_i386_i8086 (1 << 1) +#define bfd_mach_i386_i386 (1 << 2) +#define bfd_mach_x86_64 (1 << 3) +#define bfd_mach_x64_32 (1 << 4) +#define bfd_mach_i386_i386_intel_syntax (bfd_mach_i386_i386 | bfd_mach_i386_intel_syntax) +#define bfd_mach_x86_64_intel_syntax (bfd_mach_x86_64 | bfd_mach_i386_intel_syntax) +#define bfd_mach_x64_32_intel_syntax (bfd_mach_x64_32 | bfd_mach_i386_intel_syntax) bfd_arch_l1om, /* Intel L1OM */ -#define bfd_mach_l1om 66 -#define bfd_mach_l1om_intel_syntax 67 +#define bfd_mach_l1om (1 << 5) +#define bfd_mach_l1om_intel_syntax (bfd_mach_l1om | bfd_mach_i386_intel_syntax) + bfd_arch_k1om, /* Intel K1OM */ +#define bfd_mach_k1om (1 << 6) +#define bfd_mach_k1om_intel_syntax (bfd_mach_k1om | bfd_mach_i386_intel_syntax) bfd_arch_we32k, /* AT&T WE32xxx */ bfd_arch_tahoe, /* CCI/Harris Tahoe */ bfd_arch_i860, /* Intel 860 */ @@ -2064,6 +2092,13 @@ enum bfd_architecture #define bfd_mach_avr5 5 #define bfd_mach_avr51 51 #define bfd_mach_avr6 6 +#define bfd_mach_avrxmega1 101 +#define bfd_mach_avrxmega2 102 +#define bfd_mach_avrxmega3 103 +#define bfd_mach_avrxmega4 104 +#define bfd_mach_avrxmega5 105 +#define bfd_mach_avrxmega6 106 +#define bfd_mach_avrxmega7 107 bfd_arch_bfin, /* ADI Blackfin */ #define bfd_mach_bfin 1 bfd_arch_cr16, /* National Semiconductor CompactRISC (ie CR16). */ @@ -2118,6 +2153,10 @@ enum bfd_architecture bfd_arch_lm32, /* Lattice Mico32 */ #define bfd_mach_lm32 1 bfd_arch_microblaze,/* Xilinx MicroBlaze. */ + bfd_arch_tilepro, /* Tilera TILEPro */ + bfd_arch_tilegx, /* Tilera TILE-Gx */ +#define bfd_mach_tilepro 1 +#define bfd_mach_tilegx 1 bfd_arch_last }; @@ -2697,9 +2736,9 @@ between two procedure entry points is < 2^21, or else a hint. */ BFD_RELOC_ALPHA_TPREL_LO16, BFD_RELOC_ALPHA_TPREL16, -/* Bits 27..2 of the relocation address shifted right 2 bits; -simple reloc otherwise. */ +/* The MIPS jump instruction. */ BFD_RELOC_MIPS_JMP, + BFD_RELOC_MICROMIPS_JMP, /* The MIPS16 jump instruction. */ BFD_RELOC_MIPS16_JMP, @@ -2747,42 +2786,75 @@ to compensate for the borrow when the low bits are added. */ /* Relocation against a MIPS literal section. */ BFD_RELOC_MIPS_LITERAL, + BFD_RELOC_MICROMIPS_LITERAL, + +/* microMIPS PC-relative relocations. */ + BFD_RELOC_MICROMIPS_7_PCREL_S1, + BFD_RELOC_MICROMIPS_10_PCREL_S1, + BFD_RELOC_MICROMIPS_16_PCREL_S1, + +/* microMIPS versions of generic BFD relocs. */ + BFD_RELOC_MICROMIPS_GPREL16, + BFD_RELOC_MICROMIPS_HI16, + BFD_RELOC_MICROMIPS_HI16_S, + BFD_RELOC_MICROMIPS_LO16, /* MIPS ELF relocations. */ BFD_RELOC_MIPS_GOT16, + BFD_RELOC_MICROMIPS_GOT16, BFD_RELOC_MIPS_CALL16, + BFD_RELOC_MICROMIPS_CALL16, BFD_RELOC_MIPS_GOT_HI16, + BFD_RELOC_MICROMIPS_GOT_HI16, BFD_RELOC_MIPS_GOT_LO16, + BFD_RELOC_MICROMIPS_GOT_LO16, BFD_RELOC_MIPS_CALL_HI16, + BFD_RELOC_MICROMIPS_CALL_HI16, BFD_RELOC_MIPS_CALL_LO16, + BFD_RELOC_MICROMIPS_CALL_LO16, BFD_RELOC_MIPS_SUB, + BFD_RELOC_MICROMIPS_SUB, BFD_RELOC_MIPS_GOT_PAGE, + BFD_RELOC_MICROMIPS_GOT_PAGE, BFD_RELOC_MIPS_GOT_OFST, + BFD_RELOC_MICROMIPS_GOT_OFST, BFD_RELOC_MIPS_GOT_DISP, + BFD_RELOC_MICROMIPS_GOT_DISP, BFD_RELOC_MIPS_SHIFT5, BFD_RELOC_MIPS_SHIFT6, BFD_RELOC_MIPS_INSERT_A, BFD_RELOC_MIPS_INSERT_B, BFD_RELOC_MIPS_DELETE, BFD_RELOC_MIPS_HIGHEST, + BFD_RELOC_MICROMIPS_HIGHEST, BFD_RELOC_MIPS_HIGHER, + BFD_RELOC_MICROMIPS_HIGHER, BFD_RELOC_MIPS_SCN_DISP, + BFD_RELOC_MICROMIPS_SCN_DISP, BFD_RELOC_MIPS_REL16, BFD_RELOC_MIPS_RELGOT, BFD_RELOC_MIPS_JALR, + BFD_RELOC_MICROMIPS_JALR, BFD_RELOC_MIPS_TLS_DTPMOD32, BFD_RELOC_MIPS_TLS_DTPREL32, BFD_RELOC_MIPS_TLS_DTPMOD64, BFD_RELOC_MIPS_TLS_DTPREL64, BFD_RELOC_MIPS_TLS_GD, + BFD_RELOC_MICROMIPS_TLS_GD, BFD_RELOC_MIPS_TLS_LDM, + BFD_RELOC_MICROMIPS_TLS_LDM, BFD_RELOC_MIPS_TLS_DTPREL_HI16, + BFD_RELOC_MICROMIPS_TLS_DTPREL_HI16, BFD_RELOC_MIPS_TLS_DTPREL_LO16, + BFD_RELOC_MICROMIPS_TLS_DTPREL_LO16, BFD_RELOC_MIPS_TLS_GOTTPREL, + BFD_RELOC_MICROMIPS_TLS_GOTTPREL, BFD_RELOC_MIPS_TLS_TPREL32, BFD_RELOC_MIPS_TLS_TPREL64, BFD_RELOC_MIPS_TLS_TPREL_HI16, + BFD_RELOC_MICROMIPS_TLS_TPREL_HI16, BFD_RELOC_MIPS_TLS_TPREL_LO16, + BFD_RELOC_MICROMIPS_TLS_TPREL_LO16, /* MIPS ELF relocations (VxWorks and PLT extensions). */ @@ -3147,6 +3219,12 @@ pc-relative or some form of GOT-indirect relocation. */ BFD_RELOC_ARM_TLS_TPOFF32, BFD_RELOC_ARM_TLS_IE32, BFD_RELOC_ARM_TLS_LE32, + BFD_RELOC_ARM_TLS_GOTDESC, + BFD_RELOC_ARM_TLS_CALL, + BFD_RELOC_ARM_THM_TLS_CALL, + BFD_RELOC_ARM_TLS_DESCSEQ, + BFD_RELOC_ARM_THM_TLS_DESCSEQ, + BFD_RELOC_ARM_TLS_DESC, /* ARM group relocations. */ BFD_RELOC_ARM_ALU_PC_G0_NC, @@ -3181,6 +3259,9 @@ pc-relative or some form of GOT-indirect relocation. */ /* Annotation of BX instructions. */ BFD_RELOC_ARM_V4BX, +/* ARM support for STT_GNU_IFUNC. */ + BFD_RELOC_ARM_IRELATIVE, + /* These relocs are only used within the ARM assembler. They are not (at present) written to any object files. */ BFD_RELOC_ARM_IMMEDIATE, @@ -3759,6 +3840,10 @@ the opcode. */ BFD_RELOC_C6000_DSBT_INDEX, BFD_RELOC_C6000_PREL31, BFD_RELOC_C6000_COPY, + BFD_RELOC_C6000_JUMP_SLOT, + BFD_RELOC_C6000_EHTYPE, + BFD_RELOC_C6000_PCR_H16, + BFD_RELOC_C6000_PCR_L16, BFD_RELOC_C6000_ALIGN, BFD_RELOC_C6000_FPHEAD, BFD_RELOC_C6000_NOCMP, @@ -3992,9 +4077,12 @@ instructions */ BFD_RELOC_RX_GPRELL, BFD_RELOC_RX_SYM, BFD_RELOC_RX_OP_SUBTRACT, + BFD_RELOC_RX_OP_NEG, BFD_RELOC_RX_ABS8, BFD_RELOC_RX_ABS16, + BFD_RELOC_RX_ABS16_REV, BFD_RELOC_RX_ABS32, + BFD_RELOC_RX_ABS32_REV, BFD_RELOC_RX_ABS16U, BFD_RELOC_RX_ABS16UW, BFD_RELOC_RX_ABS16UL, @@ -4768,6 +4856,178 @@ value in a word. The relocation is relative offset from */ /* This is used to tell the dynamic linker to copy the value out of the dynamic object into the runtime process image. */ BFD_RELOC_MICROBLAZE_COPY, + +/* Tilera TILEPro Relocations. */ + BFD_RELOC_TILEPRO_COPY, + BFD_RELOC_TILEPRO_GLOB_DAT, + BFD_RELOC_TILEPRO_JMP_SLOT, + BFD_RELOC_TILEPRO_RELATIVE, + BFD_RELOC_TILEPRO_BROFF_X1, + BFD_RELOC_TILEPRO_JOFFLONG_X1, + BFD_RELOC_TILEPRO_JOFFLONG_X1_PLT, + BFD_RELOC_TILEPRO_IMM8_X0, + BFD_RELOC_TILEPRO_IMM8_Y0, + BFD_RELOC_TILEPRO_IMM8_X1, + BFD_RELOC_TILEPRO_IMM8_Y1, + BFD_RELOC_TILEPRO_DEST_IMM8_X1, + BFD_RELOC_TILEPRO_MT_IMM15_X1, + BFD_RELOC_TILEPRO_MF_IMM15_X1, + BFD_RELOC_TILEPRO_IMM16_X0, + BFD_RELOC_TILEPRO_IMM16_X1, + BFD_RELOC_TILEPRO_IMM16_X0_LO, + BFD_RELOC_TILEPRO_IMM16_X1_LO, + BFD_RELOC_TILEPRO_IMM16_X0_HI, + BFD_RELOC_TILEPRO_IMM16_X1_HI, + BFD_RELOC_TILEPRO_IMM16_X0_HA, + BFD_RELOC_TILEPRO_IMM16_X1_HA, + BFD_RELOC_TILEPRO_IMM16_X0_PCREL, + BFD_RELOC_TILEPRO_IMM16_X1_PCREL, + BFD_RELOC_TILEPRO_IMM16_X0_LO_PCREL, + BFD_RELOC_TILEPRO_IMM16_X1_LO_PCREL, + BFD_RELOC_TILEPRO_IMM16_X0_HI_PCREL, + BFD_RELOC_TILEPRO_IMM16_X1_HI_PCREL, + BFD_RELOC_TILEPRO_IMM16_X0_HA_PCREL, + BFD_RELOC_TILEPRO_IMM16_X1_HA_PCREL, + BFD_RELOC_TILEPRO_IMM16_X0_GOT, + BFD_RELOC_TILEPRO_IMM16_X1_GOT, + BFD_RELOC_TILEPRO_IMM16_X0_GOT_LO, + BFD_RELOC_TILEPRO_IMM16_X1_GOT_LO, + BFD_RELOC_TILEPRO_IMM16_X0_GOT_HI, + BFD_RELOC_TILEPRO_IMM16_X1_GOT_HI, + BFD_RELOC_TILEPRO_IMM16_X0_GOT_HA, + BFD_RELOC_TILEPRO_IMM16_X1_GOT_HA, + BFD_RELOC_TILEPRO_MMSTART_X0, + BFD_RELOC_TILEPRO_MMEND_X0, + BFD_RELOC_TILEPRO_MMSTART_X1, + BFD_RELOC_TILEPRO_MMEND_X1, + BFD_RELOC_TILEPRO_SHAMT_X0, + BFD_RELOC_TILEPRO_SHAMT_X1, + BFD_RELOC_TILEPRO_SHAMT_Y0, + BFD_RELOC_TILEPRO_SHAMT_Y1, + BFD_RELOC_TILEPRO_IMM16_X0_TLS_GD, + BFD_RELOC_TILEPRO_IMM16_X1_TLS_GD, + BFD_RELOC_TILEPRO_IMM16_X0_TLS_GD_LO, + BFD_RELOC_TILEPRO_IMM16_X1_TLS_GD_LO, + BFD_RELOC_TILEPRO_IMM16_X0_TLS_GD_HI, + BFD_RELOC_TILEPRO_IMM16_X1_TLS_GD_HI, + BFD_RELOC_TILEPRO_IMM16_X0_TLS_GD_HA, + BFD_RELOC_TILEPRO_IMM16_X1_TLS_GD_HA, + BFD_RELOC_TILEPRO_IMM16_X0_TLS_IE, + BFD_RELOC_TILEPRO_IMM16_X1_TLS_IE, + BFD_RELOC_TILEPRO_IMM16_X0_TLS_IE_LO, + BFD_RELOC_TILEPRO_IMM16_X1_TLS_IE_LO, + BFD_RELOC_TILEPRO_IMM16_X0_TLS_IE_HI, + BFD_RELOC_TILEPRO_IMM16_X1_TLS_IE_HI, + BFD_RELOC_TILEPRO_IMM16_X0_TLS_IE_HA, + BFD_RELOC_TILEPRO_IMM16_X1_TLS_IE_HA, + BFD_RELOC_TILEPRO_TLS_DTPMOD32, + BFD_RELOC_TILEPRO_TLS_DTPOFF32, + BFD_RELOC_TILEPRO_TLS_TPOFF32, + +/* Tilera TILE-Gx Relocations. */ + BFD_RELOC_TILEGX_HW0, + BFD_RELOC_TILEGX_HW1, + BFD_RELOC_TILEGX_HW2, + BFD_RELOC_TILEGX_HW3, + BFD_RELOC_TILEGX_HW0_LAST, + BFD_RELOC_TILEGX_HW1_LAST, + BFD_RELOC_TILEGX_HW2_LAST, + BFD_RELOC_TILEGX_COPY, + BFD_RELOC_TILEGX_GLOB_DAT, + BFD_RELOC_TILEGX_JMP_SLOT, + BFD_RELOC_TILEGX_RELATIVE, + BFD_RELOC_TILEGX_BROFF_X1, + BFD_RELOC_TILEGX_JUMPOFF_X1, + BFD_RELOC_TILEGX_JUMPOFF_X1_PLT, + BFD_RELOC_TILEGX_IMM8_X0, + BFD_RELOC_TILEGX_IMM8_Y0, + BFD_RELOC_TILEGX_IMM8_X1, + BFD_RELOC_TILEGX_IMM8_Y1, + BFD_RELOC_TILEGX_DEST_IMM8_X1, + BFD_RELOC_TILEGX_MT_IMM14_X1, + BFD_RELOC_TILEGX_MF_IMM14_X1, + BFD_RELOC_TILEGX_MMSTART_X0, + BFD_RELOC_TILEGX_MMEND_X0, + BFD_RELOC_TILEGX_SHAMT_X0, + BFD_RELOC_TILEGX_SHAMT_X1, + BFD_RELOC_TILEGX_SHAMT_Y0, + BFD_RELOC_TILEGX_SHAMT_Y1, + BFD_RELOC_TILEGX_IMM16_X0_HW0, + BFD_RELOC_TILEGX_IMM16_X1_HW0, + BFD_RELOC_TILEGX_IMM16_X0_HW1, + BFD_RELOC_TILEGX_IMM16_X1_HW1, + BFD_RELOC_TILEGX_IMM16_X0_HW2, + BFD_RELOC_TILEGX_IMM16_X1_HW2, + BFD_RELOC_TILEGX_IMM16_X0_HW3, + BFD_RELOC_TILEGX_IMM16_X1_HW3, + BFD_RELOC_TILEGX_IMM16_X0_HW0_LAST, + BFD_RELOC_TILEGX_IMM16_X1_HW0_LAST, + BFD_RELOC_TILEGX_IMM16_X0_HW1_LAST, + BFD_RELOC_TILEGX_IMM16_X1_HW1_LAST, + BFD_RELOC_TILEGX_IMM16_X0_HW2_LAST, + BFD_RELOC_TILEGX_IMM16_X1_HW2_LAST, + BFD_RELOC_TILEGX_IMM16_X0_HW0_PCREL, + BFD_RELOC_TILEGX_IMM16_X1_HW0_PCREL, + BFD_RELOC_TILEGX_IMM16_X0_HW1_PCREL, + BFD_RELOC_TILEGX_IMM16_X1_HW1_PCREL, + BFD_RELOC_TILEGX_IMM16_X0_HW2_PCREL, + BFD_RELOC_TILEGX_IMM16_X1_HW2_PCREL, + BFD_RELOC_TILEGX_IMM16_X0_HW3_PCREL, + BFD_RELOC_TILEGX_IMM16_X1_HW3_PCREL, + BFD_RELOC_TILEGX_IMM16_X0_HW0_LAST_PCREL, + BFD_RELOC_TILEGX_IMM16_X1_HW0_LAST_PCREL, + BFD_RELOC_TILEGX_IMM16_X0_HW1_LAST_PCREL, + BFD_RELOC_TILEGX_IMM16_X1_HW1_LAST_PCREL, + BFD_RELOC_TILEGX_IMM16_X0_HW2_LAST_PCREL, + BFD_RELOC_TILEGX_IMM16_X1_HW2_LAST_PCREL, + BFD_RELOC_TILEGX_IMM16_X0_HW0_GOT, + BFD_RELOC_TILEGX_IMM16_X1_HW0_GOT, + BFD_RELOC_TILEGX_IMM16_X0_HW1_GOT, + BFD_RELOC_TILEGX_IMM16_X1_HW1_GOT, + BFD_RELOC_TILEGX_IMM16_X0_HW2_GOT, + BFD_RELOC_TILEGX_IMM16_X1_HW2_GOT, + BFD_RELOC_TILEGX_IMM16_X0_HW3_GOT, + BFD_RELOC_TILEGX_IMM16_X1_HW3_GOT, + BFD_RELOC_TILEGX_IMM16_X0_HW0_LAST_GOT, + BFD_RELOC_TILEGX_IMM16_X1_HW0_LAST_GOT, + BFD_RELOC_TILEGX_IMM16_X0_HW1_LAST_GOT, + BFD_RELOC_TILEGX_IMM16_X1_HW1_LAST_GOT, + BFD_RELOC_TILEGX_IMM16_X0_HW2_LAST_GOT, + BFD_RELOC_TILEGX_IMM16_X1_HW2_LAST_GOT, + BFD_RELOC_TILEGX_IMM16_X0_HW0_TLS_GD, + BFD_RELOC_TILEGX_IMM16_X1_HW0_TLS_GD, + BFD_RELOC_TILEGX_IMM16_X0_HW1_TLS_GD, + BFD_RELOC_TILEGX_IMM16_X1_HW1_TLS_GD, + BFD_RELOC_TILEGX_IMM16_X0_HW2_TLS_GD, + BFD_RELOC_TILEGX_IMM16_X1_HW2_TLS_GD, + BFD_RELOC_TILEGX_IMM16_X0_HW3_TLS_GD, + BFD_RELOC_TILEGX_IMM16_X1_HW3_TLS_GD, + BFD_RELOC_TILEGX_IMM16_X0_HW0_LAST_TLS_GD, + BFD_RELOC_TILEGX_IMM16_X1_HW0_LAST_TLS_GD, + BFD_RELOC_TILEGX_IMM16_X0_HW1_LAST_TLS_GD, + BFD_RELOC_TILEGX_IMM16_X1_HW1_LAST_TLS_GD, + BFD_RELOC_TILEGX_IMM16_X0_HW2_LAST_TLS_GD, + BFD_RELOC_TILEGX_IMM16_X1_HW2_LAST_TLS_GD, + BFD_RELOC_TILEGX_IMM16_X0_HW0_TLS_IE, + BFD_RELOC_TILEGX_IMM16_X1_HW0_TLS_IE, + BFD_RELOC_TILEGX_IMM16_X0_HW1_TLS_IE, + BFD_RELOC_TILEGX_IMM16_X1_HW1_TLS_IE, + BFD_RELOC_TILEGX_IMM16_X0_HW2_TLS_IE, + BFD_RELOC_TILEGX_IMM16_X1_HW2_TLS_IE, + BFD_RELOC_TILEGX_IMM16_X0_HW3_TLS_IE, + BFD_RELOC_TILEGX_IMM16_X1_HW3_TLS_IE, + BFD_RELOC_TILEGX_IMM16_X0_HW0_LAST_TLS_IE, + BFD_RELOC_TILEGX_IMM16_X1_HW0_LAST_TLS_IE, + BFD_RELOC_TILEGX_IMM16_X0_HW1_LAST_TLS_IE, + BFD_RELOC_TILEGX_IMM16_X1_HW1_LAST_TLS_IE, + BFD_RELOC_TILEGX_IMM16_X0_HW2_LAST_TLS_IE, + BFD_RELOC_TILEGX_IMM16_X1_HW2_LAST_TLS_IE, + BFD_RELOC_TILEGX_TLS_DTPMOD64, + BFD_RELOC_TILEGX_TLS_DTPOFF64, + BFD_RELOC_TILEGX_TLS_TPOFF64, + BFD_RELOC_TILEGX_TLS_DTPMOD32, + BFD_RELOC_TILEGX_TLS_DTPOFF32, + BFD_RELOC_TILEGX_TLS_TPOFF32, BFD_RELOC_UNUSED }; typedef enum bfd_reloc_code_real bfd_reloc_code_real_type; reloc_howto_type *bfd_reloc_type_lookup @@ -5076,11 +5336,6 @@ struct bfd /* This BFD has been created by the linker and doesn't correspond to any input file. */ #define BFD_LINKER_CREATED 0x2000 - /* This may be set before writing out a BFD to request that it - be written using values for UIDs, GIDs, timestamps, etc. that - will be consistent from run to run. */ -#define BFD_DETERMINISTIC_OUTPUT 0x4000 - /* This may be set before writing out a BFD to request that it be written using values for UIDs, GIDs, timestamps, etc. that @@ -5368,6 +5623,9 @@ bfd_boolean bfd_set_private_flags (bfd *abfd, flagword flags); #define bfd_gc_sections(abfd, link_info) \ BFD_SEND (abfd, _bfd_gc_sections, (abfd, link_info)) +#define bfd_lookup_section_flags(link_info, flag_info) \ + BFD_SEND (abfd, _bfd_lookup_section_flags, (link_info, flag_info)) + #define bfd_merge_sections(abfd, link_info) \ BFD_SEND (abfd, _bfd_merge_sections, (abfd, link_info)) @@ -5524,6 +5782,9 @@ enum bfd_endian { BFD_ENDIAN_BIG, BFD_ENDIAN_LITTLE, BFD_ENDIAN_UNKNOWN }; /* Forward declaration. */ typedef struct bfd_link_info _bfd_link_info; +/* Forward declaration. */ +typedef struct flag_info flag_info; + typedef struct bfd_target { /* Identifies the kind of target, e.g., SunOS4, Ultrix, etc. */ @@ -5555,7 +5816,11 @@ typedef struct bfd_target char ar_pad_char; /* The maximum number of characters in an archive header. */ - unsigned short ar_max_namelen; + unsigned char ar_max_namelen; + + /* How well this target matches, used to select between various + possible targets when more than one target matches. */ + unsigned char match_priority; /* Entries for byte swapping for data. These are different from the other entry points, since they don't take a BFD as the first argument. @@ -5789,6 +6054,7 @@ typedef struct bfd_target NAME##_bfd_final_link, \ NAME##_bfd_link_split_section, \ NAME##_bfd_gc_sections, \ + NAME##_bfd_lookup_section_flags, \ NAME##_bfd_merge_sections, \ NAME##_bfd_is_group_section, \ NAME##_bfd_discard_group, \ @@ -5833,6 +6099,10 @@ typedef struct bfd_target /* Remove sections that are not referenced from the output. */ bfd_boolean (*_bfd_gc_sections) (bfd *, struct bfd_link_info *); + /* Sets the bitmask of allowed and disallowed section flags. */ + void (*_bfd_lookup_section_flags) (struct bfd_link_info *, + struct flag_info *); + /* Attempt to merge SEC_MERGE sections. */ bfd_boolean (*_bfd_merge_sections) (bfd *, struct bfd_link_info *); @@ -5844,8 +6114,8 @@ typedef struct bfd_target /* Check if SEC has been already linked during a reloceatable or final link. */ - void (*_section_already_linked) (bfd *, struct bfd_section *, - struct bfd_link_info *); + bfd_boolean (*_section_already_linked) (bfd *, asection *, + struct bfd_link_info *); /* Define a common symbol. */ bfd_boolean (*_bfd_define_common_symbol) (bfd *, struct bfd_link_info *, @@ -5914,7 +6184,8 @@ bfd_boolean bfd_link_split_section (bfd *abfd, asection *sec); #define bfd_link_split_section(abfd, sec) \ BFD_SEND (abfd, _bfd_link_split_section, (abfd, sec)) -void bfd_section_already_linked (bfd *abfd, asection *sec, +bfd_boolean bfd_section_already_linked (bfd *abfd, + asection *sec, struct bfd_link_info *info); #define bfd_section_already_linked(abfd, sec, info) \ @@ -5931,6 +6202,9 @@ struct bfd_elf_version_tree * bfd_find_version_for_sym (struct bfd_elf_version_tree *verdefs, const char *sym_name, bfd_boolean *hide); +bfd_boolean bfd_hide_sym_by_version + (struct bfd_elf_version_tree *verdefs, const char *sym_name); + /* Extracted from simple.c. */ bfd_byte *bfd_simple_get_relocated_section_contents (bfd *abfd, asection *sec, bfd_byte *outbuf, asymbol **symbol_table); diff --git a/external/gpl3/binutils/lib/libbfd/arch/earm/bfd_stdint.h b/external/gpl3/binutils/lib/libbfd/arch/earm/bfd_stdint.h index f9c83e65a..bc3113d41 100644 --- a/external/gpl3/binutils/lib/libbfd/arch/earm/bfd_stdint.h +++ b/external/gpl3/binutils/lib/libbfd/arch/earm/bfd_stdint.h @@ -2,7 +2,7 @@ /* Generated from: NetBSD: mknative-binutils,v 1.8 2011/09/25 04:00:58 christos Exp */ /* Generated from: NetBSD: mknative.common,v 1.9 2007/02/05 18:26:01 apb Exp */ -/* generated for arm--netbsdelf-eabi-gcc (NetBSD nb2 20111202) 4.5.3 */ +/* generated for arm-elf32-minix-gcc (NetBSD nb1 20120916) 4.5.4 */ #ifndef GCC_GENERATED_STDINT_H #define GCC_GENERATED_STDINT_H 1 diff --git a/external/gpl3/binutils/lib/libbfd/arch/earm/bfdver.h b/external/gpl3/binutils/lib/libbfd/arch/earm/bfdver.h index 773501328..ac630b84b 100644 --- a/external/gpl3/binutils/lib/libbfd/arch/earm/bfdver.h +++ b/external/gpl3/binutils/lib/libbfd/arch/earm/bfdver.h @@ -2,7 +2,7 @@ /* Generated from: NetBSD: mknative-binutils,v 1.8 2011/09/25 04:00:58 christos Exp */ /* Generated from: NetBSD: mknative.common,v 1.9 2007/02/05 18:26:01 apb Exp */ -#define BFD_VERSION_DATE 20110627 -#define BFD_VERSION 221010000 -#define BFD_VERSION_STRING "(NetBSD Binutils nb1) " "2.21.1" +#define BFD_VERSION_DATE 20111121 +#define BFD_VERSION 222000000 +#define BFD_VERSION_STRING "(NetBSD Binutils nb1)" "2.22" #define REPORT_BUGS_TO "" diff --git a/external/gpl3/binutils/lib/libbfd/arch/earm/config.h b/external/gpl3/binutils/lib/libbfd/arch/earm/config.h index b24b1d2d2..ca35904a3 100644 --- a/external/gpl3/binutils/lib/libbfd/arch/earm/config.h +++ b/external/gpl3/binutils/lib/libbfd/arch/earm/config.h @@ -10,7 +10,7 @@ /* Define to 1 if translation of program messages to the user's native language is requested. */ -#define ENABLE_NLS 1 +/* #undef ENABLE_NLS */ /* Define to 1 if you have the header file. */ /* #undef HAVE_ALLOCA_H */ @@ -132,16 +132,16 @@ /* #undef HAVE_LWPXSTATUS_T */ /* Define to 1 if you have the `madvise' function. */ -#define HAVE_MADVISE 1 +/* #undef HAVE_MADVISE */ /* Define to 1 if you have the header file. */ #define HAVE_MEMORY_H 1 /* Define to 1 if you have a working `mmap' system call. */ -#define HAVE_MMAP 1 +/* #undef HAVE_MMAP */ /* Define to 1 if you have the `mprotect' function. */ -#define HAVE_MPROTECT 1 +/* #undef HAVE_MPROTECT */ /* Define to 1 if you have the header file, and it defines `DIR'. */ /* #undef HAVE_NDIR_H */ @@ -251,7 +251,7 @@ /* #undef HAVE_WIN32_PSTATUS_T */ /* Define to 1 if you have the header file. */ -/* #undef HAVE_ZLIB_H */ +#define HAVE_ZLIB_H 1 /* Define to the sub-directory in which libtool stores uninstalled libraries. */ @@ -291,7 +291,7 @@ #define SIZEOF_LONG_LONG 8 /* The size of `off_t', as computed by sizeof. */ -#define SIZEOF_OFF_T 8 +#define SIZEOF_OFF_T 4 /* The size of `short', as computed by sizeof. */ /* #undef SIZEOF_SHORT */ @@ -349,7 +349,7 @@ /* Version number of package */ -#define VERSION "2.21.1" +#define VERSION "2.22" /* Number of bits in a file offset, on hosts where this is settable. */ /* #undef _FILE_OFFSET_BITS */ @@ -358,11 +358,11 @@ /* #undef _LARGE_FILES */ /* Define to 1 if on MINIX. */ -/* #undef _MINIX */ +#define _MINIX 1 /* Define to 2 if the system does not provide POSIX.1 features except with this defined. */ -/* #undef _POSIX_1_SOURCE */ +#define _POSIX_1_SOURCE 2 /* Define to 1 if you need to in order for `stat' and other things to work. */ -/* #undef _POSIX_SOURCE */ +#define _POSIX_SOURCE 1 diff --git a/external/gpl3/binutils/lib/libbfd/arch/earm/defs.mk b/external/gpl3/binutils/lib/libbfd/arch/earm/defs.mk index bb9ab6db8..a10b1e29d 100644 --- a/external/gpl3/binutils/lib/libbfd/arch/earm/defs.mk +++ b/external/gpl3/binutils/lib/libbfd/arch/earm/defs.mk @@ -2,8 +2,8 @@ # Generated from: NetBSD: mknative-binutils,v 1.8 2011/09/25 04:00:58 christos Exp # Generated from: NetBSD: mknative.common,v 1.9 2007/02/05 18:26:01 apb Exp # -G_libbfd_la_DEPENDENCIES=elf32-arm.lo elf32.lo elf-vxworks.lo elf.lo elflink.lo elf-attrs.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo armnetbsd.lo aout32.lo coff-arm.lo cofflink.lo elf32-gen.lo cpu-arm.lo netbsd-core.lo ofiles +G_libbfd_la_DEPENDENCIES=elf32-arm.lo elf32.lo elf-vxworks.lo elf.lo elflink.lo elf-attrs.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo elf32-gen.lo cpu-arm.lo archive64.lo ofiles G_libbfd_la_OBJECTS=archive.lo archures.lo bfd.lo bfdio.lo bfdwin.lo cache.lo coffgen.lo corefile.lo format.lo init.lo libbfd.lo opncls.lo reloc.lo section.lo syms.lo targets.lo hash.lo linker.lo srec.lo binary.lo tekhex.lo ihex.lo stabs.lo stab-syms.lo merge.lo dwarf2.lo simple.lo compress.lo verilog.lo G_DEFS=-DHAVE_CONFIG_H -G_INCLUDES=-DNETBSD_CORE -I. -I${GNUHOSTDIST}/bfd -I${GNUHOSTDIST}/bfd/../include -DHAVE_bfd_elf32_littlearm_vec -DHAVE_bfd_elf32_bigarm_vec -DHAVE_armnetbsd_vec -DHAVE_armcoff_little_vec -DHAVE_armcoff_big_vec -DHAVE_bfd_elf32_little_generic_vec -DHAVE_bfd_elf32_big_generic_vec -I./../intl -G_TDEFAULTS=-DDEFAULT_VECTOR=bfd_elf32_littlearm_vec -DSELECT_VECS='&bfd_elf32_littlearm_vec,&bfd_elf32_bigarm_vec,&armnetbsd_vec,&armcoff_little_vec,&armcoff_big_vec,&bfd_elf32_little_generic_vec,&bfd_elf32_big_generic_vec' -DSELECT_ARCHITECTURES='&bfd_arm_arch' +G_INCLUDES=-I. -I${GNUHOSTDIST}/bfd -I${GNUHOSTDIST}/bfd/../include -DHAVE_bfd_elf32_littlearm_vec -DHAVE_bfd_elf32_bigarm_vec -DHAVE_bfd_elf32_little_generic_vec -DHAVE_bfd_elf32_big_generic_vec +G_TDEFAULTS=-DDEFAULT_VECTOR=bfd_elf32_littlearm_vec -DSELECT_VECS='&bfd_elf32_littlearm_vec,&bfd_elf32_bigarm_vec,&bfd_elf32_little_generic_vec,&bfd_elf32_big_generic_vec' -DSELECT_ARCHITECTURES='&bfd_arm_arch' diff --git a/external/gpl3/binutils/lib/libbfd/arch/i386/bfd.h b/external/gpl3/binutils/lib/libbfd/arch/i386/bfd.h index b511736cc..532278325 100644 --- a/external/gpl3/binutils/lib/libbfd/arch/i386/bfd.h +++ b/external/gpl3/binutils/lib/libbfd/arch/i386/bfd.h @@ -11,8 +11,8 @@ /* Main header file for the bfd library -- portable access to object files. - Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, - 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 + Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, + 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc. Contributed by Cygnus Support. @@ -191,8 +191,8 @@ typedef bfd_vma bfd_uint64_t; /* An offset into a file. BFD always uses the largest possible offset based on the build time availability of fseek, fseeko, or fseeko64. */ -typedef BFD_HOST_64_BIT file_ptr; -typedef unsigned BFD_HOST_64_BIT ufile_ptr; +typedef long file_ptr; +typedef unsigned long ufile_ptr; extern void bfd_sprintf_vma (bfd *, char *, bfd_vma); extern void bfd_fprintf_vma (bfd *, void *, bfd_vma); @@ -302,8 +302,8 @@ typedef struct bfd_section *sec_ptr; #define bfd_set_section_userdata(bfd, ptr, val) (((ptr)->userdata = (val)),TRUE) /* Find the address one past the end of SEC. */ #define bfd_get_section_limit(bfd, sec) \ - (((sec)->rawsize ? (sec)->rawsize : (sec)->size) \ - / bfd_octets_per_byte (bfd)) + (((bfd)->direction != write_direction && (sec)->rawsize != 0 \ + ? (sec)->rawsize : (sec)->size) / bfd_octets_per_byte (bfd)) /* Return TRUE if input section SEC has been discarded. */ #define elf_discarded_section(sec) \ @@ -443,7 +443,7 @@ extern void bfd_hash_traverse /* Allows the default size of a hash table to be configured. New hash tables allocated using bfd_hash_table_init will be created with this size. */ -extern void bfd_hash_set_default_size (bfd_size_type); +extern unsigned long bfd_hash_set_default_size (unsigned long); /* This structure is used to keep track of stabs in sections information while linking. */ @@ -563,11 +563,6 @@ void bfd_putl16 (bfd_vma, void *); bfd_uint64_t bfd_get_bits (const void *, int, bfd_boolean); void bfd_put_bits (bfd_uint64_t, void *, int, bfd_boolean); -extern bfd_boolean bfd_section_already_linked_table_init (void); -extern void bfd_section_already_linked_table_free (void); - -/* Externally visible ECOFF routines. */ - #if defined(__STDC__) || defined(ALMOST_STDC) struct ecoff_debug_info; struct ecoff_debug_swap; @@ -575,8 +570,18 @@ struct ecoff_extr; struct bfd_symbol; struct bfd_link_info; struct bfd_link_hash_entry; +struct bfd_section_already_linked; struct bfd_elf_version_tree; #endif + +extern bfd_boolean bfd_section_already_linked_table_init (void); +extern void bfd_section_already_linked_table_free (void); +extern bfd_boolean _bfd_handle_already_linked + (struct bfd_section *, struct bfd_section_already_linked *, + struct bfd_link_info *); + +/* Externally visible ECOFF routines. */ + extern bfd_vma bfd_ecoff_get_gp_value (bfd * abfd); extern bfd_boolean bfd_ecoff_set_gp_value @@ -651,8 +656,7 @@ extern bfd_boolean bfd_elf_get_bfd_needed_list (bfd *, struct bfd_link_needed_list **); extern bfd_boolean bfd_elf_size_dynamic_sections (bfd *, const char *, const char *, const char *, const char *, const char *, - const char * const *, struct bfd_link_info *, struct bfd_section **, - struct bfd_elf_version_tree *); + const char * const *, struct bfd_link_info *, struct bfd_section **); extern bfd_boolean bfd_elf_size_dynsym_hash_dynstr (bfd *, struct bfd_link_info *); extern void bfd_elf_set_dt_needed_name @@ -880,7 +884,7 @@ extern bfd_boolean bfd_elf32_arm_process_before_allocation void bfd_elf32_arm_set_target_relocs (bfd *, struct bfd_link_info *, int, char *, int, int, bfd_arm_vfp11_fix, - int, int, int, int); + int, int, int, int, int); extern bfd_boolean bfd_elf32_arm_get_bfd_for_interworking (bfd *, struct bfd_link_info *); @@ -923,6 +927,10 @@ extern bfd_boolean elf32_arm_build_stubs extern bfd_boolean elf32_arm_fix_exidx_coverage (struct bfd_section **, unsigned int, struct bfd_link_info *, bfd_boolean); +/* C6x unwind section editing support. */ +extern bfd_boolean elf32_tic6x_fix_exidx_coverage +(struct bfd_section **, unsigned int, struct bfd_link_info *, bfd_boolean); + /* PowerPC @tls opcode transform/validate. */ extern unsigned int _bfd_elf_ppc_at_tls_transform (unsigned int, unsigned int); @@ -1143,7 +1151,8 @@ long bfd_get_mtime (bfd *abfd); file_ptr bfd_get_size (bfd *abfd); void *bfd_mmap (bfd *abfd, void *addr, bfd_size_type len, - int prot, int flags, file_ptr offset); + int prot, int flags, file_ptr offset, + void **map_addr, bfd_size_type *map_len); /* Extracted from bfdwin.c. */ /* Extracted from section.c. */ @@ -1324,6 +1333,11 @@ typedef struct bfd_section sections. */ #define SEC_COFF_SHARED_LIBRARY 0x4000000 + /* This input section should be copied to output in reverse order + as an array of pointers. This is for ELF linker internal use + only. */ +#define SEC_ELF_REVERSE_COPY 0x4000000 + /* This section contains data which may be shared with other executables or shared objects. This is for COFF only. */ #define SEC_COFF_SHARED 0x8000000 @@ -1508,6 +1522,9 @@ typedef struct bfd_section /* The BFD which owns the section. */ bfd *owner; + /* INPUT_SECTION_FLAGS if specified in the linker script. */ + struct flag_info *section_flag_info; + /* A symbol which points at this section only. */ struct bfd_symbol *symbol; struct bfd_symbol **symbol_ptr_ptr; @@ -1686,6 +1703,9 @@ extern asection bfd_ind_section; /* target_index, used_by_bfd, constructor_chain, owner, */ \ 0, NULL, NULL, NULL, \ \ + /* flag_info, */ \ + NULL, \ + \ /* symbol, symbol_ptr_ptr, */ \ (struct bfd_symbol *) SYM, &SEC.symbol, \ \ @@ -1864,6 +1884,7 @@ enum bfd_architecture #define bfd_mach_mips5 5 #define bfd_mach_mips_loongson_2e 3001 #define bfd_mach_mips_loongson_2f 3002 +#define bfd_mach_mips_loongson_3a 3003 #define bfd_mach_mips_sb1 12310201 /* octal 'SB', 01 */ #define bfd_mach_mips_octeon 6501 #define bfd_mach_mips_xlr 887682 /* decimal 'XLR' */ @@ -1871,15 +1892,22 @@ enum bfd_architecture #define bfd_mach_mipsisa32r2 33 #define bfd_mach_mipsisa64 64 #define bfd_mach_mipsisa64r2 65 +#define bfd_mach_mips_micromips 96 bfd_arch_i386, /* Intel 386 */ -#define bfd_mach_i386_i386 1 -#define bfd_mach_i386_i8086 2 -#define bfd_mach_i386_i386_intel_syntax 3 -#define bfd_mach_x86_64 64 -#define bfd_mach_x86_64_intel_syntax 65 +#define bfd_mach_i386_intel_syntax (1 << 0) +#define bfd_mach_i386_i8086 (1 << 1) +#define bfd_mach_i386_i386 (1 << 2) +#define bfd_mach_x86_64 (1 << 3) +#define bfd_mach_x64_32 (1 << 4) +#define bfd_mach_i386_i386_intel_syntax (bfd_mach_i386_i386 | bfd_mach_i386_intel_syntax) +#define bfd_mach_x86_64_intel_syntax (bfd_mach_x86_64 | bfd_mach_i386_intel_syntax) +#define bfd_mach_x64_32_intel_syntax (bfd_mach_x64_32 | bfd_mach_i386_intel_syntax) bfd_arch_l1om, /* Intel L1OM */ -#define bfd_mach_l1om 66 -#define bfd_mach_l1om_intel_syntax 67 +#define bfd_mach_l1om (1 << 5) +#define bfd_mach_l1om_intel_syntax (bfd_mach_l1om | bfd_mach_i386_intel_syntax) + bfd_arch_k1om, /* Intel K1OM */ +#define bfd_mach_k1om (1 << 6) +#define bfd_mach_k1om_intel_syntax (bfd_mach_k1om | bfd_mach_i386_intel_syntax) bfd_arch_we32k, /* AT&T WE32xxx */ bfd_arch_tahoe, /* CCI/Harris Tahoe */ bfd_arch_i860, /* Intel 860 */ @@ -2064,6 +2092,13 @@ enum bfd_architecture #define bfd_mach_avr5 5 #define bfd_mach_avr51 51 #define bfd_mach_avr6 6 +#define bfd_mach_avrxmega1 101 +#define bfd_mach_avrxmega2 102 +#define bfd_mach_avrxmega3 103 +#define bfd_mach_avrxmega4 104 +#define bfd_mach_avrxmega5 105 +#define bfd_mach_avrxmega6 106 +#define bfd_mach_avrxmega7 107 bfd_arch_bfin, /* ADI Blackfin */ #define bfd_mach_bfin 1 bfd_arch_cr16, /* National Semiconductor CompactRISC (ie CR16). */ @@ -2118,6 +2153,10 @@ enum bfd_architecture bfd_arch_lm32, /* Lattice Mico32 */ #define bfd_mach_lm32 1 bfd_arch_microblaze,/* Xilinx MicroBlaze. */ + bfd_arch_tilepro, /* Tilera TILEPro */ + bfd_arch_tilegx, /* Tilera TILE-Gx */ +#define bfd_mach_tilepro 1 +#define bfd_mach_tilegx 1 bfd_arch_last }; @@ -2697,9 +2736,9 @@ between two procedure entry points is < 2^21, or else a hint. */ BFD_RELOC_ALPHA_TPREL_LO16, BFD_RELOC_ALPHA_TPREL16, -/* Bits 27..2 of the relocation address shifted right 2 bits; -simple reloc otherwise. */ +/* The MIPS jump instruction. */ BFD_RELOC_MIPS_JMP, + BFD_RELOC_MICROMIPS_JMP, /* The MIPS16 jump instruction. */ BFD_RELOC_MIPS16_JMP, @@ -2747,42 +2786,75 @@ to compensate for the borrow when the low bits are added. */ /* Relocation against a MIPS literal section. */ BFD_RELOC_MIPS_LITERAL, + BFD_RELOC_MICROMIPS_LITERAL, + +/* microMIPS PC-relative relocations. */ + BFD_RELOC_MICROMIPS_7_PCREL_S1, + BFD_RELOC_MICROMIPS_10_PCREL_S1, + BFD_RELOC_MICROMIPS_16_PCREL_S1, + +/* microMIPS versions of generic BFD relocs. */ + BFD_RELOC_MICROMIPS_GPREL16, + BFD_RELOC_MICROMIPS_HI16, + BFD_RELOC_MICROMIPS_HI16_S, + BFD_RELOC_MICROMIPS_LO16, /* MIPS ELF relocations. */ BFD_RELOC_MIPS_GOT16, + BFD_RELOC_MICROMIPS_GOT16, BFD_RELOC_MIPS_CALL16, + BFD_RELOC_MICROMIPS_CALL16, BFD_RELOC_MIPS_GOT_HI16, + BFD_RELOC_MICROMIPS_GOT_HI16, BFD_RELOC_MIPS_GOT_LO16, + BFD_RELOC_MICROMIPS_GOT_LO16, BFD_RELOC_MIPS_CALL_HI16, + BFD_RELOC_MICROMIPS_CALL_HI16, BFD_RELOC_MIPS_CALL_LO16, + BFD_RELOC_MICROMIPS_CALL_LO16, BFD_RELOC_MIPS_SUB, + BFD_RELOC_MICROMIPS_SUB, BFD_RELOC_MIPS_GOT_PAGE, + BFD_RELOC_MICROMIPS_GOT_PAGE, BFD_RELOC_MIPS_GOT_OFST, + BFD_RELOC_MICROMIPS_GOT_OFST, BFD_RELOC_MIPS_GOT_DISP, + BFD_RELOC_MICROMIPS_GOT_DISP, BFD_RELOC_MIPS_SHIFT5, BFD_RELOC_MIPS_SHIFT6, BFD_RELOC_MIPS_INSERT_A, BFD_RELOC_MIPS_INSERT_B, BFD_RELOC_MIPS_DELETE, BFD_RELOC_MIPS_HIGHEST, + BFD_RELOC_MICROMIPS_HIGHEST, BFD_RELOC_MIPS_HIGHER, + BFD_RELOC_MICROMIPS_HIGHER, BFD_RELOC_MIPS_SCN_DISP, + BFD_RELOC_MICROMIPS_SCN_DISP, BFD_RELOC_MIPS_REL16, BFD_RELOC_MIPS_RELGOT, BFD_RELOC_MIPS_JALR, + BFD_RELOC_MICROMIPS_JALR, BFD_RELOC_MIPS_TLS_DTPMOD32, BFD_RELOC_MIPS_TLS_DTPREL32, BFD_RELOC_MIPS_TLS_DTPMOD64, BFD_RELOC_MIPS_TLS_DTPREL64, BFD_RELOC_MIPS_TLS_GD, + BFD_RELOC_MICROMIPS_TLS_GD, BFD_RELOC_MIPS_TLS_LDM, + BFD_RELOC_MICROMIPS_TLS_LDM, BFD_RELOC_MIPS_TLS_DTPREL_HI16, + BFD_RELOC_MICROMIPS_TLS_DTPREL_HI16, BFD_RELOC_MIPS_TLS_DTPREL_LO16, + BFD_RELOC_MICROMIPS_TLS_DTPREL_LO16, BFD_RELOC_MIPS_TLS_GOTTPREL, + BFD_RELOC_MICROMIPS_TLS_GOTTPREL, BFD_RELOC_MIPS_TLS_TPREL32, BFD_RELOC_MIPS_TLS_TPREL64, BFD_RELOC_MIPS_TLS_TPREL_HI16, + BFD_RELOC_MICROMIPS_TLS_TPREL_HI16, BFD_RELOC_MIPS_TLS_TPREL_LO16, + BFD_RELOC_MICROMIPS_TLS_TPREL_LO16, /* MIPS ELF relocations (VxWorks and PLT extensions). */ @@ -3147,6 +3219,12 @@ pc-relative or some form of GOT-indirect relocation. */ BFD_RELOC_ARM_TLS_TPOFF32, BFD_RELOC_ARM_TLS_IE32, BFD_RELOC_ARM_TLS_LE32, + BFD_RELOC_ARM_TLS_GOTDESC, + BFD_RELOC_ARM_TLS_CALL, + BFD_RELOC_ARM_THM_TLS_CALL, + BFD_RELOC_ARM_TLS_DESCSEQ, + BFD_RELOC_ARM_THM_TLS_DESCSEQ, + BFD_RELOC_ARM_TLS_DESC, /* ARM group relocations. */ BFD_RELOC_ARM_ALU_PC_G0_NC, @@ -3181,6 +3259,9 @@ pc-relative or some form of GOT-indirect relocation. */ /* Annotation of BX instructions. */ BFD_RELOC_ARM_V4BX, +/* ARM support for STT_GNU_IFUNC. */ + BFD_RELOC_ARM_IRELATIVE, + /* These relocs are only used within the ARM assembler. They are not (at present) written to any object files. */ BFD_RELOC_ARM_IMMEDIATE, @@ -3759,6 +3840,10 @@ the opcode. */ BFD_RELOC_C6000_DSBT_INDEX, BFD_RELOC_C6000_PREL31, BFD_RELOC_C6000_COPY, + BFD_RELOC_C6000_JUMP_SLOT, + BFD_RELOC_C6000_EHTYPE, + BFD_RELOC_C6000_PCR_H16, + BFD_RELOC_C6000_PCR_L16, BFD_RELOC_C6000_ALIGN, BFD_RELOC_C6000_FPHEAD, BFD_RELOC_C6000_NOCMP, @@ -3992,9 +4077,12 @@ instructions */ BFD_RELOC_RX_GPRELL, BFD_RELOC_RX_SYM, BFD_RELOC_RX_OP_SUBTRACT, + BFD_RELOC_RX_OP_NEG, BFD_RELOC_RX_ABS8, BFD_RELOC_RX_ABS16, + BFD_RELOC_RX_ABS16_REV, BFD_RELOC_RX_ABS32, + BFD_RELOC_RX_ABS32_REV, BFD_RELOC_RX_ABS16U, BFD_RELOC_RX_ABS16UW, BFD_RELOC_RX_ABS16UL, @@ -4768,6 +4856,178 @@ value in a word. The relocation is relative offset from */ /* This is used to tell the dynamic linker to copy the value out of the dynamic object into the runtime process image. */ BFD_RELOC_MICROBLAZE_COPY, + +/* Tilera TILEPro Relocations. */ + BFD_RELOC_TILEPRO_COPY, + BFD_RELOC_TILEPRO_GLOB_DAT, + BFD_RELOC_TILEPRO_JMP_SLOT, + BFD_RELOC_TILEPRO_RELATIVE, + BFD_RELOC_TILEPRO_BROFF_X1, + BFD_RELOC_TILEPRO_JOFFLONG_X1, + BFD_RELOC_TILEPRO_JOFFLONG_X1_PLT, + BFD_RELOC_TILEPRO_IMM8_X0, + BFD_RELOC_TILEPRO_IMM8_Y0, + BFD_RELOC_TILEPRO_IMM8_X1, + BFD_RELOC_TILEPRO_IMM8_Y1, + BFD_RELOC_TILEPRO_DEST_IMM8_X1, + BFD_RELOC_TILEPRO_MT_IMM15_X1, + BFD_RELOC_TILEPRO_MF_IMM15_X1, + BFD_RELOC_TILEPRO_IMM16_X0, + BFD_RELOC_TILEPRO_IMM16_X1, + BFD_RELOC_TILEPRO_IMM16_X0_LO, + BFD_RELOC_TILEPRO_IMM16_X1_LO, + BFD_RELOC_TILEPRO_IMM16_X0_HI, + BFD_RELOC_TILEPRO_IMM16_X1_HI, + BFD_RELOC_TILEPRO_IMM16_X0_HA, + BFD_RELOC_TILEPRO_IMM16_X1_HA, + BFD_RELOC_TILEPRO_IMM16_X0_PCREL, + BFD_RELOC_TILEPRO_IMM16_X1_PCREL, + BFD_RELOC_TILEPRO_IMM16_X0_LO_PCREL, + BFD_RELOC_TILEPRO_IMM16_X1_LO_PCREL, + BFD_RELOC_TILEPRO_IMM16_X0_HI_PCREL, + BFD_RELOC_TILEPRO_IMM16_X1_HI_PCREL, + BFD_RELOC_TILEPRO_IMM16_X0_HA_PCREL, + BFD_RELOC_TILEPRO_IMM16_X1_HA_PCREL, + BFD_RELOC_TILEPRO_IMM16_X0_GOT, + BFD_RELOC_TILEPRO_IMM16_X1_GOT, + BFD_RELOC_TILEPRO_IMM16_X0_GOT_LO, + BFD_RELOC_TILEPRO_IMM16_X1_GOT_LO, + BFD_RELOC_TILEPRO_IMM16_X0_GOT_HI, + BFD_RELOC_TILEPRO_IMM16_X1_GOT_HI, + BFD_RELOC_TILEPRO_IMM16_X0_GOT_HA, + BFD_RELOC_TILEPRO_IMM16_X1_GOT_HA, + BFD_RELOC_TILEPRO_MMSTART_X0, + BFD_RELOC_TILEPRO_MMEND_X0, + BFD_RELOC_TILEPRO_MMSTART_X1, + BFD_RELOC_TILEPRO_MMEND_X1, + BFD_RELOC_TILEPRO_SHAMT_X0, + BFD_RELOC_TILEPRO_SHAMT_X1, + BFD_RELOC_TILEPRO_SHAMT_Y0, + BFD_RELOC_TILEPRO_SHAMT_Y1, + BFD_RELOC_TILEPRO_IMM16_X0_TLS_GD, + BFD_RELOC_TILEPRO_IMM16_X1_TLS_GD, + BFD_RELOC_TILEPRO_IMM16_X0_TLS_GD_LO, + BFD_RELOC_TILEPRO_IMM16_X1_TLS_GD_LO, + BFD_RELOC_TILEPRO_IMM16_X0_TLS_GD_HI, + BFD_RELOC_TILEPRO_IMM16_X1_TLS_GD_HI, + BFD_RELOC_TILEPRO_IMM16_X0_TLS_GD_HA, + BFD_RELOC_TILEPRO_IMM16_X1_TLS_GD_HA, + BFD_RELOC_TILEPRO_IMM16_X0_TLS_IE, + BFD_RELOC_TILEPRO_IMM16_X1_TLS_IE, + BFD_RELOC_TILEPRO_IMM16_X0_TLS_IE_LO, + BFD_RELOC_TILEPRO_IMM16_X1_TLS_IE_LO, + BFD_RELOC_TILEPRO_IMM16_X0_TLS_IE_HI, + BFD_RELOC_TILEPRO_IMM16_X1_TLS_IE_HI, + BFD_RELOC_TILEPRO_IMM16_X0_TLS_IE_HA, + BFD_RELOC_TILEPRO_IMM16_X1_TLS_IE_HA, + BFD_RELOC_TILEPRO_TLS_DTPMOD32, + BFD_RELOC_TILEPRO_TLS_DTPOFF32, + BFD_RELOC_TILEPRO_TLS_TPOFF32, + +/* Tilera TILE-Gx Relocations. */ + BFD_RELOC_TILEGX_HW0, + BFD_RELOC_TILEGX_HW1, + BFD_RELOC_TILEGX_HW2, + BFD_RELOC_TILEGX_HW3, + BFD_RELOC_TILEGX_HW0_LAST, + BFD_RELOC_TILEGX_HW1_LAST, + BFD_RELOC_TILEGX_HW2_LAST, + BFD_RELOC_TILEGX_COPY, + BFD_RELOC_TILEGX_GLOB_DAT, + BFD_RELOC_TILEGX_JMP_SLOT, + BFD_RELOC_TILEGX_RELATIVE, + BFD_RELOC_TILEGX_BROFF_X1, + BFD_RELOC_TILEGX_JUMPOFF_X1, + BFD_RELOC_TILEGX_JUMPOFF_X1_PLT, + BFD_RELOC_TILEGX_IMM8_X0, + BFD_RELOC_TILEGX_IMM8_Y0, + BFD_RELOC_TILEGX_IMM8_X1, + BFD_RELOC_TILEGX_IMM8_Y1, + BFD_RELOC_TILEGX_DEST_IMM8_X1, + BFD_RELOC_TILEGX_MT_IMM14_X1, + BFD_RELOC_TILEGX_MF_IMM14_X1, + BFD_RELOC_TILEGX_MMSTART_X0, + BFD_RELOC_TILEGX_MMEND_X0, + BFD_RELOC_TILEGX_SHAMT_X0, + BFD_RELOC_TILEGX_SHAMT_X1, + BFD_RELOC_TILEGX_SHAMT_Y0, + BFD_RELOC_TILEGX_SHAMT_Y1, + BFD_RELOC_TILEGX_IMM16_X0_HW0, + BFD_RELOC_TILEGX_IMM16_X1_HW0, + BFD_RELOC_TILEGX_IMM16_X0_HW1, + BFD_RELOC_TILEGX_IMM16_X1_HW1, + BFD_RELOC_TILEGX_IMM16_X0_HW2, + BFD_RELOC_TILEGX_IMM16_X1_HW2, + BFD_RELOC_TILEGX_IMM16_X0_HW3, + BFD_RELOC_TILEGX_IMM16_X1_HW3, + BFD_RELOC_TILEGX_IMM16_X0_HW0_LAST, + BFD_RELOC_TILEGX_IMM16_X1_HW0_LAST, + BFD_RELOC_TILEGX_IMM16_X0_HW1_LAST, + BFD_RELOC_TILEGX_IMM16_X1_HW1_LAST, + BFD_RELOC_TILEGX_IMM16_X0_HW2_LAST, + BFD_RELOC_TILEGX_IMM16_X1_HW2_LAST, + BFD_RELOC_TILEGX_IMM16_X0_HW0_PCREL, + BFD_RELOC_TILEGX_IMM16_X1_HW0_PCREL, + BFD_RELOC_TILEGX_IMM16_X0_HW1_PCREL, + BFD_RELOC_TILEGX_IMM16_X1_HW1_PCREL, + BFD_RELOC_TILEGX_IMM16_X0_HW2_PCREL, + BFD_RELOC_TILEGX_IMM16_X1_HW2_PCREL, + BFD_RELOC_TILEGX_IMM16_X0_HW3_PCREL, + BFD_RELOC_TILEGX_IMM16_X1_HW3_PCREL, + BFD_RELOC_TILEGX_IMM16_X0_HW0_LAST_PCREL, + BFD_RELOC_TILEGX_IMM16_X1_HW0_LAST_PCREL, + BFD_RELOC_TILEGX_IMM16_X0_HW1_LAST_PCREL, + BFD_RELOC_TILEGX_IMM16_X1_HW1_LAST_PCREL, + BFD_RELOC_TILEGX_IMM16_X0_HW2_LAST_PCREL, + BFD_RELOC_TILEGX_IMM16_X1_HW2_LAST_PCREL, + BFD_RELOC_TILEGX_IMM16_X0_HW0_GOT, + BFD_RELOC_TILEGX_IMM16_X1_HW0_GOT, + BFD_RELOC_TILEGX_IMM16_X0_HW1_GOT, + BFD_RELOC_TILEGX_IMM16_X1_HW1_GOT, + BFD_RELOC_TILEGX_IMM16_X0_HW2_GOT, + BFD_RELOC_TILEGX_IMM16_X1_HW2_GOT, + BFD_RELOC_TILEGX_IMM16_X0_HW3_GOT, + BFD_RELOC_TILEGX_IMM16_X1_HW3_GOT, + BFD_RELOC_TILEGX_IMM16_X0_HW0_LAST_GOT, + BFD_RELOC_TILEGX_IMM16_X1_HW0_LAST_GOT, + BFD_RELOC_TILEGX_IMM16_X0_HW1_LAST_GOT, + BFD_RELOC_TILEGX_IMM16_X1_HW1_LAST_GOT, + BFD_RELOC_TILEGX_IMM16_X0_HW2_LAST_GOT, + BFD_RELOC_TILEGX_IMM16_X1_HW2_LAST_GOT, + BFD_RELOC_TILEGX_IMM16_X0_HW0_TLS_GD, + BFD_RELOC_TILEGX_IMM16_X1_HW0_TLS_GD, + BFD_RELOC_TILEGX_IMM16_X0_HW1_TLS_GD, + BFD_RELOC_TILEGX_IMM16_X1_HW1_TLS_GD, + BFD_RELOC_TILEGX_IMM16_X0_HW2_TLS_GD, + BFD_RELOC_TILEGX_IMM16_X1_HW2_TLS_GD, + BFD_RELOC_TILEGX_IMM16_X0_HW3_TLS_GD, + BFD_RELOC_TILEGX_IMM16_X1_HW3_TLS_GD, + BFD_RELOC_TILEGX_IMM16_X0_HW0_LAST_TLS_GD, + BFD_RELOC_TILEGX_IMM16_X1_HW0_LAST_TLS_GD, + BFD_RELOC_TILEGX_IMM16_X0_HW1_LAST_TLS_GD, + BFD_RELOC_TILEGX_IMM16_X1_HW1_LAST_TLS_GD, + BFD_RELOC_TILEGX_IMM16_X0_HW2_LAST_TLS_GD, + BFD_RELOC_TILEGX_IMM16_X1_HW2_LAST_TLS_GD, + BFD_RELOC_TILEGX_IMM16_X0_HW0_TLS_IE, + BFD_RELOC_TILEGX_IMM16_X1_HW0_TLS_IE, + BFD_RELOC_TILEGX_IMM16_X0_HW1_TLS_IE, + BFD_RELOC_TILEGX_IMM16_X1_HW1_TLS_IE, + BFD_RELOC_TILEGX_IMM16_X0_HW2_TLS_IE, + BFD_RELOC_TILEGX_IMM16_X1_HW2_TLS_IE, + BFD_RELOC_TILEGX_IMM16_X0_HW3_TLS_IE, + BFD_RELOC_TILEGX_IMM16_X1_HW3_TLS_IE, + BFD_RELOC_TILEGX_IMM16_X0_HW0_LAST_TLS_IE, + BFD_RELOC_TILEGX_IMM16_X1_HW0_LAST_TLS_IE, + BFD_RELOC_TILEGX_IMM16_X0_HW1_LAST_TLS_IE, + BFD_RELOC_TILEGX_IMM16_X1_HW1_LAST_TLS_IE, + BFD_RELOC_TILEGX_IMM16_X0_HW2_LAST_TLS_IE, + BFD_RELOC_TILEGX_IMM16_X1_HW2_LAST_TLS_IE, + BFD_RELOC_TILEGX_TLS_DTPMOD64, + BFD_RELOC_TILEGX_TLS_DTPOFF64, + BFD_RELOC_TILEGX_TLS_TPOFF64, + BFD_RELOC_TILEGX_TLS_DTPMOD32, + BFD_RELOC_TILEGX_TLS_DTPOFF32, + BFD_RELOC_TILEGX_TLS_TPOFF32, BFD_RELOC_UNUSED }; typedef enum bfd_reloc_code_real bfd_reloc_code_real_type; reloc_howto_type *bfd_reloc_type_lookup @@ -5076,11 +5336,6 @@ struct bfd /* This BFD has been created by the linker and doesn't correspond to any input file. */ #define BFD_LINKER_CREATED 0x2000 - /* This may be set before writing out a BFD to request that it - be written using values for UIDs, GIDs, timestamps, etc. that - will be consistent from run to run. */ -#define BFD_DETERMINISTIC_OUTPUT 0x4000 - /* This may be set before writing out a BFD to request that it be written using values for UIDs, GIDs, timestamps, etc. that @@ -5368,6 +5623,9 @@ bfd_boolean bfd_set_private_flags (bfd *abfd, flagword flags); #define bfd_gc_sections(abfd, link_info) \ BFD_SEND (abfd, _bfd_gc_sections, (abfd, link_info)) +#define bfd_lookup_section_flags(link_info, flag_info) \ + BFD_SEND (abfd, _bfd_lookup_section_flags, (link_info, flag_info)) + #define bfd_merge_sections(abfd, link_info) \ BFD_SEND (abfd, _bfd_merge_sections, (abfd, link_info)) @@ -5524,6 +5782,9 @@ enum bfd_endian { BFD_ENDIAN_BIG, BFD_ENDIAN_LITTLE, BFD_ENDIAN_UNKNOWN }; /* Forward declaration. */ typedef struct bfd_link_info _bfd_link_info; +/* Forward declaration. */ +typedef struct flag_info flag_info; + typedef struct bfd_target { /* Identifies the kind of target, e.g., SunOS4, Ultrix, etc. */ @@ -5555,7 +5816,11 @@ typedef struct bfd_target char ar_pad_char; /* The maximum number of characters in an archive header. */ - unsigned short ar_max_namelen; + unsigned char ar_max_namelen; + + /* How well this target matches, used to select between various + possible targets when more than one target matches. */ + unsigned char match_priority; /* Entries for byte swapping for data. These are different from the other entry points, since they don't take a BFD as the first argument. @@ -5789,6 +6054,7 @@ typedef struct bfd_target NAME##_bfd_final_link, \ NAME##_bfd_link_split_section, \ NAME##_bfd_gc_sections, \ + NAME##_bfd_lookup_section_flags, \ NAME##_bfd_merge_sections, \ NAME##_bfd_is_group_section, \ NAME##_bfd_discard_group, \ @@ -5833,6 +6099,10 @@ typedef struct bfd_target /* Remove sections that are not referenced from the output. */ bfd_boolean (*_bfd_gc_sections) (bfd *, struct bfd_link_info *); + /* Sets the bitmask of allowed and disallowed section flags. */ + void (*_bfd_lookup_section_flags) (struct bfd_link_info *, + struct flag_info *); + /* Attempt to merge SEC_MERGE sections. */ bfd_boolean (*_bfd_merge_sections) (bfd *, struct bfd_link_info *); @@ -5844,8 +6114,8 @@ typedef struct bfd_target /* Check if SEC has been already linked during a reloceatable or final link. */ - void (*_section_already_linked) (bfd *, struct bfd_section *, - struct bfd_link_info *); + bfd_boolean (*_section_already_linked) (bfd *, asection *, + struct bfd_link_info *); /* Define a common symbol. */ bfd_boolean (*_bfd_define_common_symbol) (bfd *, struct bfd_link_info *, @@ -5914,7 +6184,8 @@ bfd_boolean bfd_link_split_section (bfd *abfd, asection *sec); #define bfd_link_split_section(abfd, sec) \ BFD_SEND (abfd, _bfd_link_split_section, (abfd, sec)) -void bfd_section_already_linked (bfd *abfd, asection *sec, +bfd_boolean bfd_section_already_linked (bfd *abfd, + asection *sec, struct bfd_link_info *info); #define bfd_section_already_linked(abfd, sec, info) \ @@ -5931,6 +6202,9 @@ struct bfd_elf_version_tree * bfd_find_version_for_sym (struct bfd_elf_version_tree *verdefs, const char *sym_name, bfd_boolean *hide); +bfd_boolean bfd_hide_sym_by_version + (struct bfd_elf_version_tree *verdefs, const char *sym_name); + /* Extracted from simple.c. */ bfd_byte *bfd_simple_get_relocated_section_contents (bfd *abfd, asection *sec, bfd_byte *outbuf, asymbol **symbol_table); diff --git a/external/gpl3/binutils/lib/libbfd/arch/i386/bfd_stdint.h b/external/gpl3/binutils/lib/libbfd/arch/i386/bfd_stdint.h index 52ef23e03..adc0c967f 100644 --- a/external/gpl3/binutils/lib/libbfd/arch/i386/bfd_stdint.h +++ b/external/gpl3/binutils/lib/libbfd/arch/i386/bfd_stdint.h @@ -2,7 +2,7 @@ /* Generated from: NetBSD: mknative-binutils,v 1.8 2011/09/25 04:00:58 christos Exp */ /* Generated from: NetBSD: mknative.common,v 1.9 2007/02/05 18:26:01 apb Exp */ -/* generated for i486--netbsdelf-gcc (NetBSD nb1 20110620) 4.5.3 */ +/* generated for i586-elf32-minix-gcc (NetBSD nb1 20120916) 4.5.4 */ #ifndef GCC_GENERATED_STDINT_H #define GCC_GENERATED_STDINT_H 1 diff --git a/external/gpl3/binutils/lib/libbfd/arch/i386/bfdver.h b/external/gpl3/binutils/lib/libbfd/arch/i386/bfdver.h index 773501328..ac630b84b 100644 --- a/external/gpl3/binutils/lib/libbfd/arch/i386/bfdver.h +++ b/external/gpl3/binutils/lib/libbfd/arch/i386/bfdver.h @@ -2,7 +2,7 @@ /* Generated from: NetBSD: mknative-binutils,v 1.8 2011/09/25 04:00:58 christos Exp */ /* Generated from: NetBSD: mknative.common,v 1.9 2007/02/05 18:26:01 apb Exp */ -#define BFD_VERSION_DATE 20110627 -#define BFD_VERSION 221010000 -#define BFD_VERSION_STRING "(NetBSD Binutils nb1) " "2.21.1" +#define BFD_VERSION_DATE 20111121 +#define BFD_VERSION 222000000 +#define BFD_VERSION_STRING "(NetBSD Binutils nb1)" "2.22" #define REPORT_BUGS_TO "" diff --git a/external/gpl3/binutils/lib/libbfd/arch/i386/config.h b/external/gpl3/binutils/lib/libbfd/arch/i386/config.h index 29064cfd0..13a77cba2 100644 --- a/external/gpl3/binutils/lib/libbfd/arch/i386/config.h +++ b/external/gpl3/binutils/lib/libbfd/arch/i386/config.h @@ -10,7 +10,7 @@ /* Define to 1 if translation of program messages to the user's native language is requested. */ -#define ENABLE_NLS 1 +/* #undef ENABLE_NLS */ /* Define to 1 if you have the header file. */ /* #undef HAVE_ALLOCA_H */ @@ -132,16 +132,16 @@ /* #undef HAVE_LWPXSTATUS_T */ /* Define to 1 if you have the `madvise' function. */ -#define HAVE_MADVISE 1 +/* #undef HAVE_MADVISE */ /* Define to 1 if you have the header file. */ #define HAVE_MEMORY_H 1 /* Define to 1 if you have a working `mmap' system call. */ -#define HAVE_MMAP 1 +/* #undef HAVE_MMAP */ /* Define to 1 if you have the `mprotect' function. */ -#define HAVE_MPROTECT 1 +/* #undef HAVE_MPROTECT */ /* Define to 1 if you have the header file, and it defines `DIR'. */ /* #undef HAVE_NDIR_H */ @@ -153,7 +153,7 @@ /* #undef HAVE_PRPSINFO32_T_PR_PID */ /* Define if has prpsinfo_t. */ -/* #undef HAVE_PRPSINFO_T */ +#define HAVE_PRPSINFO_T 1 /* Define if has prpsinfo_t.pr_pid. */ /* #undef HAVE_PRPSINFO_T_PR_PID */ @@ -165,7 +165,7 @@ /* #undef HAVE_PRSTATUS32_T_PR_WHO */ /* Define if has prstatus_t. */ -/* #undef HAVE_PRSTATUS_T */ +#define HAVE_PRSTATUS_T 1 /* Define if has prstatus_t.pr_who. */ /* #undef HAVE_PRSTATUS_T_PR_WHO */ @@ -230,7 +230,7 @@ /* #undef HAVE_SYS_NDIR_H */ /* Define to 1 if you have the header file. */ -/* #undef HAVE_SYS_PROCFS_H */ +#define HAVE_SYS_PROCFS_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_STAT_H 1 @@ -291,7 +291,7 @@ #define SIZEOF_LONG_LONG 8 /* The size of `off_t', as computed by sizeof. */ -#define SIZEOF_OFF_T 8 +#define SIZEOF_OFF_T 4 /* The size of `short', as computed by sizeof. */ /* #undef SIZEOF_SHORT */ @@ -349,7 +349,7 @@ /* Version number of package */ -#define VERSION "2.21.1" +#define VERSION "2.22" /* Number of bits in a file offset, on hosts where this is settable. */ /* #undef _FILE_OFFSET_BITS */ @@ -358,11 +358,11 @@ /* #undef _LARGE_FILES */ /* Define to 1 if on MINIX. */ -/* #undef _MINIX */ +#define _MINIX 1 /* Define to 2 if the system does not provide POSIX.1 features except with this defined. */ -/* #undef _POSIX_1_SOURCE */ +#define _POSIX_1_SOURCE 2 /* Define to 1 if you need to in order for `stat' and other things to work. */ -/* #undef _POSIX_SOURCE */ +#define _POSIX_SOURCE 1 diff --git a/external/gpl3/binutils/lib/libbfd/arch/i386/defs.mk b/external/gpl3/binutils/lib/libbfd/arch/i386/defs.mk index d44d0560a..7230b030f 100644 --- a/external/gpl3/binutils/lib/libbfd/arch/i386/defs.mk +++ b/external/gpl3/binutils/lib/libbfd/arch/i386/defs.mk @@ -2,8 +2,8 @@ # Generated from: NetBSD: mknative-binutils,v 1.8 2011/09/25 04:00:58 christos Exp # Generated from: NetBSD: mknative.common,v 1.9 2007/02/05 18:26:01 apb Exp # -G_libbfd_la_DEPENDENCIES=elf32-i386.lo elf-ifunc.lo elf-vxworks.lo elf32.lo elf.lo elflink.lo elf-attrs.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo i386netbsd.lo aout32.lo elf32-gen.lo cpu-i386.lo netbsd-core.lo ofiles +G_libbfd_la_DEPENDENCIES=elf32-i386.lo elf-ifunc.lo elf-vxworks.lo elf32.lo elf.lo elflink.lo elf-attrs.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo elf32-gen.lo cpu-i386.lo ofiles G_libbfd_la_OBJECTS=archive.lo archures.lo bfd.lo bfdio.lo bfdwin.lo cache.lo coffgen.lo corefile.lo format.lo init.lo libbfd.lo opncls.lo reloc.lo section.lo syms.lo targets.lo hash.lo linker.lo srec.lo binary.lo tekhex.lo ihex.lo stabs.lo stab-syms.lo merge.lo dwarf2.lo simple.lo compress.lo verilog.lo G_DEFS=-DHAVE_CONFIG_H -G_INCLUDES=-DNETBSD_CORE -I. -I${GNUHOSTDIST}/bfd -I${GNUHOSTDIST}/bfd/../include -DHAVE_bfd_elf32_i386_vec -DHAVE_i386netbsd_vec -DHAVE_bfd_elf32_little_generic_vec -DHAVE_bfd_elf32_big_generic_vec -I./../intl -G_TDEFAULTS=-DDEFAULT_VECTOR=bfd_elf32_i386_vec -DSELECT_VECS='&bfd_elf32_i386_vec,&i386netbsd_vec,&bfd_elf32_little_generic_vec,&bfd_elf32_big_generic_vec' -DSELECT_ARCHITECTURES='&bfd_i386_arch' +G_INCLUDES=-I. -I${GNUHOSTDIST}/bfd -I${GNUHOSTDIST}/bfd/../include -DHAVE_bfd_elf32_i386_minix_vec -DHAVE_bfd_elf32_little_generic_vec -DHAVE_bfd_elf32_big_generic_vec +G_TDEFAULTS=-DDEFAULT_VECTOR=bfd_elf32_i386_minix_vec -DSELECT_VECS='&bfd_elf32_i386_minix_vec,&bfd_elf32_little_generic_vec,&bfd_elf32_big_generic_vec' -DSELECT_ARCHITECTURES='&bfd_i386_arch' diff --git a/external/gpl3/binutils/lib/libiberty/arch/earm/config.h b/external/gpl3/binutils/lib/libiberty/arch/earm/config.h index 5bed8f290..bd9a7175d 100644 --- a/external/gpl3/binutils/lib/libiberty/arch/earm/config.h +++ b/external/gpl3/binutils/lib/libiberty/arch/earm/config.h @@ -97,7 +97,7 @@ #define HAVE_DECL_VSNPRINTF 1 /* Define to 1 if you have the `dup3' function. */ -#define HAVE_DUP3 1 +/* #undef HAVE_DUP3 */ /* Define to 1 if you have the header file. */ #define HAVE_FCNTL_H 1 @@ -114,8 +114,11 @@ /* Define to 1 if you have the `getpagesize' function. */ #define HAVE_GETPAGESIZE 1 +/* Define to 1 if you have the `getrlimit' function. */ +#define HAVE_GETRLIMIT 1 + /* Define to 1 if you have the `getrusage' function. */ -#define HAVE_GETRUSAGE 1 +/* #undef HAVE_GETRUSAGE */ /* Define to 1 if you have the `getsysinfo' function. */ /* #undef HAVE_GETSYSINFO */ @@ -174,9 +177,6 @@ /* Define to 1 if you have the `on_exit' function. */ /* #undef HAVE_ON_EXIT */ -/* Define if you have prctl PR_SET_NAME */ -/* #undef HAVE_PRCTL_SET_NAME */ - /* Define to 1 if you have the header file. */ /* #undef HAVE_PROCESS_H */ @@ -211,10 +211,13 @@ #define HAVE_SETENV 1 /* Define to 1 if you have the `setproctitle' function. */ -#define HAVE_SETPROCTITLE 1 +/* #undef HAVE_SETPROCTITLE */ + +/* Define to 1 if you have the `setrlimit' function. */ +/* #undef HAVE_SETRLIMIT */ /* Define to 1 if you have the `sigsetmask' function. */ -#define HAVE_SIGSETMASK 1 +/* #undef HAVE_SIGSETMASK */ /* Define to 1 if you have the `snprintf' function. */ #define HAVE_SNPRINTF 1 @@ -289,13 +292,13 @@ #define HAVE_SYSCONF 1 /* Define to 1 if you have the `sysctl' function. */ -#define HAVE_SYSCTL 1 +/* #undef HAVE_SYSCTL */ /* Define to 1 if you have the `sysmp' function. */ /* #undef HAVE_SYSMP */ /* Define if you have the sys_errlist variable. */ -#define HAVE_SYS_ERRLIST 1 +/* #undef HAVE_SYS_ERRLIST */ /* Define to 1 if you have the header file. */ #define HAVE_SYS_FILE_H 1 @@ -304,11 +307,14 @@ #define HAVE_SYS_MMAN_H 1 /* Define if you have the sys_nerr variable. */ -#define HAVE_SYS_NERR 1 +/* #undef HAVE_SYS_NERR */ /* Define to 1 if you have the header file. */ #define HAVE_SYS_PARAM_H 1 +/* Define to 1 if you have the header file. */ +/* #undef HAVE_SYS_PRCTL_H */ + /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_PSTAT_H */ @@ -316,7 +322,7 @@ #define HAVE_SYS_RESOURCE_H 1 /* Define if you have the sys_siglist variable. */ -#define HAVE_SYS_SIGLIST 1 +/* #undef HAVE_SYS_SIGLIST */ /* Define to 1 if you have the header file. */ #define HAVE_SYS_STAT_H 1 @@ -382,10 +388,10 @@ #define HAVE_VSPRINTF 1 /* Define to 1 if you have the `wait3' function. */ -#define HAVE_WAIT3 1 +/* #undef HAVE_WAIT3 */ /* Define to 1 if you have the `wait4' function. */ -#define HAVE_WAIT4 1 +/* #undef HAVE_WAIT4 */ /* Define to 1 if you have the `waitpid' function. */ #define HAVE_WAITPID 1 diff --git a/external/gpl3/binutils/lib/libiberty/arch/i386/config.h b/external/gpl3/binutils/lib/libiberty/arch/i386/config.h index 5bed8f290..bd9a7175d 100644 --- a/external/gpl3/binutils/lib/libiberty/arch/i386/config.h +++ b/external/gpl3/binutils/lib/libiberty/arch/i386/config.h @@ -97,7 +97,7 @@ #define HAVE_DECL_VSNPRINTF 1 /* Define to 1 if you have the `dup3' function. */ -#define HAVE_DUP3 1 +/* #undef HAVE_DUP3 */ /* Define to 1 if you have the header file. */ #define HAVE_FCNTL_H 1 @@ -114,8 +114,11 @@ /* Define to 1 if you have the `getpagesize' function. */ #define HAVE_GETPAGESIZE 1 +/* Define to 1 if you have the `getrlimit' function. */ +#define HAVE_GETRLIMIT 1 + /* Define to 1 if you have the `getrusage' function. */ -#define HAVE_GETRUSAGE 1 +/* #undef HAVE_GETRUSAGE */ /* Define to 1 if you have the `getsysinfo' function. */ /* #undef HAVE_GETSYSINFO */ @@ -174,9 +177,6 @@ /* Define to 1 if you have the `on_exit' function. */ /* #undef HAVE_ON_EXIT */ -/* Define if you have prctl PR_SET_NAME */ -/* #undef HAVE_PRCTL_SET_NAME */ - /* Define to 1 if you have the header file. */ /* #undef HAVE_PROCESS_H */ @@ -211,10 +211,13 @@ #define HAVE_SETENV 1 /* Define to 1 if you have the `setproctitle' function. */ -#define HAVE_SETPROCTITLE 1 +/* #undef HAVE_SETPROCTITLE */ + +/* Define to 1 if you have the `setrlimit' function. */ +/* #undef HAVE_SETRLIMIT */ /* Define to 1 if you have the `sigsetmask' function. */ -#define HAVE_SIGSETMASK 1 +/* #undef HAVE_SIGSETMASK */ /* Define to 1 if you have the `snprintf' function. */ #define HAVE_SNPRINTF 1 @@ -289,13 +292,13 @@ #define HAVE_SYSCONF 1 /* Define to 1 if you have the `sysctl' function. */ -#define HAVE_SYSCTL 1 +/* #undef HAVE_SYSCTL */ /* Define to 1 if you have the `sysmp' function. */ /* #undef HAVE_SYSMP */ /* Define if you have the sys_errlist variable. */ -#define HAVE_SYS_ERRLIST 1 +/* #undef HAVE_SYS_ERRLIST */ /* Define to 1 if you have the header file. */ #define HAVE_SYS_FILE_H 1 @@ -304,11 +307,14 @@ #define HAVE_SYS_MMAN_H 1 /* Define if you have the sys_nerr variable. */ -#define HAVE_SYS_NERR 1 +/* #undef HAVE_SYS_NERR */ /* Define to 1 if you have the header file. */ #define HAVE_SYS_PARAM_H 1 +/* Define to 1 if you have the header file. */ +/* #undef HAVE_SYS_PRCTL_H */ + /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_PSTAT_H */ @@ -316,7 +322,7 @@ #define HAVE_SYS_RESOURCE_H 1 /* Define if you have the sys_siglist variable. */ -#define HAVE_SYS_SIGLIST 1 +/* #undef HAVE_SYS_SIGLIST */ /* Define to 1 if you have the header file. */ #define HAVE_SYS_STAT_H 1 @@ -382,10 +388,10 @@ #define HAVE_VSPRINTF 1 /* Define to 1 if you have the `wait3' function. */ -#define HAVE_WAIT3 1 +/* #undef HAVE_WAIT3 */ /* Define to 1 if you have the `wait4' function. */ -#define HAVE_WAIT4 1 +/* #undef HAVE_WAIT4 */ /* Define to 1 if you have the `waitpid' function. */ #define HAVE_WAITPID 1 diff --git a/external/gpl3/binutils/lib/libiberty/arch/i386/defs.mk b/external/gpl3/binutils/lib/libiberty/arch/i386/defs.mk index 42bb137aa..73218ff16 100644 --- a/external/gpl3/binutils/lib/libiberty/arch/i386/defs.mk +++ b/external/gpl3/binutils/lib/libiberty/arch/i386/defs.mk @@ -4,5 +4,5 @@ # G_ALLOCA= G_EXTRA_OFILES= -G_LIBOBJS=mempcpy.o mkstemps.o strverscmp.o strncmp.o -G_REQUIRED_OFILES=regex.o cplus-dem.o cp-demangle.o md5.o sha1.o alloca.o argv.o choose-temp.o concat.o cp-demint.o crc32.o dyn-string.o fdmatch.o fibheap.o filename_cmp.o floatformat.o fnmatch.o fopen_unlocked.o getopt.o getopt1.o getpwd.o getruntime.o hashtab.o hex.o lbasename.o lrealpath.o make-relative-prefix.o make-temp-file.o objalloc.o obstack.o partition.o pexecute.o physmem.o pex-common.o pex-one.o pex-unix.o safe-ctype.o simple-object.o simple-object-coff.o simple-object-elf.o simple-object-mach-o.o sort.o spaces.o splay-tree.o strerror.o strsignal.o unlink-if-ordinary.o xatexit.o xexit.o xmalloc.o xmemdup.o xstrdup.o xstrerror.o xstrndup.o +G_LIBOBJS=mempcpy.o mkstemps.o sigsetmask.o strverscmp.o setproctitle.o strncmp.o +G_REQUIRED_OFILES=regex.o cplus-dem.o cp-demangle.o md5.o sha1.o alloca.o argv.o choose-temp.o concat.o cp-demint.o crc32.o dyn-string.o fdmatch.o fibheap.o filename_cmp.o floatformat.o fnmatch.o fopen_unlocked.o getopt.o getopt1.o getpwd.o getruntime.o hashtab.o hex.o lbasename.o lrealpath.o make-relative-prefix.o make-temp-file.o objalloc.o obstack.o partition.o pexecute.o physmem.o pex-common.o pex-one.o pex-unix.o safe-ctype.o simple-object.o simple-object-coff.o simple-object-elf.o simple-object-mach-o.o sort.o spaces.o splay-tree.o strerror.o strsignal.o unlink-if-ordinary.o xatexit.o xexit.o xmalloc.o xmemdup.o xstrdup.o xstrerror.o xstrndup.o diff --git a/external/gpl3/binutils/lib/libopcodes/arch/earm/config.h b/external/gpl3/binutils/lib/libopcodes/arch/earm/config.h index 7247ccf1f..56b727e01 100644 --- a/external/gpl3/binutils/lib/libopcodes/arch/earm/config.h +++ b/external/gpl3/binutils/lib/libopcodes/arch/earm/config.h @@ -7,7 +7,7 @@ /* Define to 1 if translation of program messages to the user's native language is requested. */ -#define ENABLE_NLS 1 +/* #undef ENABLE_NLS */ /* Define to 1 if you have the declaration of `basename', and to 0 if you don't. */ @@ -101,14 +101,14 @@ /* Version number of package */ -#define VERSION "2.21.1" +#define VERSION "2.22" /* Define to 1 if on MINIX. */ -/* #undef _MINIX */ +#define _MINIX 1 /* Define to 2 if the system does not provide POSIX.1 features except with this defined. */ -/* #undef _POSIX_1_SOURCE */ +#define _POSIX_1_SOURCE 2 /* Define to 1 if you need to in order for `stat' and other things to work. */ -/* #undef _POSIX_SOURCE */ +#define _POSIX_SOURCE 1 diff --git a/external/gpl3/binutils/lib/libopcodes/arch/i386/config.h b/external/gpl3/binutils/lib/libopcodes/arch/i386/config.h index 7247ccf1f..56b727e01 100644 --- a/external/gpl3/binutils/lib/libopcodes/arch/i386/config.h +++ b/external/gpl3/binutils/lib/libopcodes/arch/i386/config.h @@ -7,7 +7,7 @@ /* Define to 1 if translation of program messages to the user's native language is requested. */ -#define ENABLE_NLS 1 +/* #undef ENABLE_NLS */ /* Define to 1 if you have the declaration of `basename', and to 0 if you don't. */ @@ -101,14 +101,14 @@ /* Version number of package */ -#define VERSION "2.21.1" +#define VERSION "2.22" /* Define to 1 if on MINIX. */ -/* #undef _MINIX */ +#define _MINIX 1 /* Define to 2 if the system does not provide POSIX.1 features except with this defined. */ -/* #undef _POSIX_1_SOURCE */ +#define _POSIX_1_SOURCE 2 /* Define to 1 if you need to in order for `stat' and other things to work. */ -/* #undef _POSIX_SOURCE */ +#define _POSIX_SOURCE 1 diff --git a/external/gpl3/binutils/patches/0001-minix.patch b/external/gpl3/binutils/patches/0001-minix.patch index f983ad283..fa183257b 100644 --- a/external/gpl3/binutils/patches/0001-minix.patch +++ b/external/gpl3/binutils/patches/0001-minix.patch @@ -133,11 +133,12 @@ diff -rNU3 dist.nbsd/gas/configure dist/gas/configure diff -rNU3 dist.nbsd/gas/configure.tgt dist/gas/configure.tgt --- dist.nbsd/gas/configure.tgt 2013-04-08 23:50:58.000000000 +0200 +++ dist/gas/configure.tgt 2013-04-09 00:31:05.000000000 +0200 -@@ -426,6 +426,7 @@ +@@ -426,6 +426,8 @@ *-*-elf | *-*-sysv4*) fmt=elf ;; *-*-solaris*) fmt=elf em=solaris ;; *-*-aros*) fmt=elf em=linux ;; -+ *-*-minix*) fmt=elf em=minix ;; ++ i*-*-minix*) fmt=elf em=minix ;; ++ arm*-*-minix*) fmt=elf em=armeabi ;; *-*-vxworks* | *-*-windiss) fmt=elf em=vxworks ;; *-*-netware) fmt=elf em=netware ;; esac diff --git a/external/gpl3/binutils/usr.bin/Makefile.inc b/external/gpl3/binutils/usr.bin/Makefile.inc index d12c4112e..be291f35a 100644 --- a/external/gpl3/binutils/usr.bin/Makefile.inc +++ b/external/gpl3/binutils/usr.bin/Makefile.inc @@ -16,6 +16,11 @@ CPPFLAGS+= ${GNUCPPFLAGS:M-D*:N-DLOCALEDIR*} ${GNUCPPFLAGS:M-I*:N-I.*} \ LDADD+=-lz DPADD+=${LIBZ} +.if defined(__MINIX) +LDADD+= -lm +DPADD+= ${LIBM} +.endif + NOGCCERROR= # defined .endif # __MAKEFILE_INC_INCLUDED__ diff --git a/external/gpl3/binutils/usr.bin/common/Makefile.prog b/external/gpl3/binutils/usr.bin/common/Makefile.prog index 2450b91b0..73c0cc6c9 100644 --- a/external/gpl3/binutils/usr.bin/common/Makefile.prog +++ b/external/gpl3/binutils/usr.bin/common/Makefile.prog @@ -20,8 +20,10 @@ MAN= ${G_man_MANS:M${PROG}.1} CPPFLAGS+= -I${.CURDIR}/../common/arch/${MACHINE_ARCH} +.if !defined(__MINIX) LDADD+= -lintl DPADD+= ${LIBINTL} +.endif # !defined(__MINIX) .if !empty(G_${BUPROG}_DEPENDENCIES:M*/libopcodes*) OPCODESOBJ!= cd ${TOP}/${BFDSUBDIR}/libopcodes && ${PRINTOBJDIR} diff --git a/external/gpl3/binutils/usr.bin/common/arch/earm/config.h b/external/gpl3/binutils/usr.bin/common/arch/earm/config.h index 2dc5eef41..49b43d8fc 100644 --- a/external/gpl3/binutils/usr.bin/common/arch/earm/config.h +++ b/external/gpl3/binutils/usr.bin/common/arch/earm/config.h @@ -15,13 +15,13 @@ /* Define to 1 if translation of program messages to the user's native language is requested. */ -#define ENABLE_NLS 1 +/* #undef ENABLE_NLS */ /* Suffix used for executables, if any. */ #define EXECUTABLE_SUFFIX "" /* Define to 1 if you have `alloca', as a function or macro. */ -#define HAVE_ALLOCA 1 +/* #undef HAVE_ALLOCA */ /* Define to 1 if you have and it should be used (not on Ultrix). */ @@ -145,10 +145,10 @@ #define HAVE_UNISTD_H 1 /* Define to 1 if you have the `utimes' function. */ -#define HAVE_UTIMES 1 +/* #undef HAVE_UTIMES */ /* Define to 1 if you have the header file. */ -/* #undef HAVE_ZLIB_H */ +#define HAVE_ZLIB_H 1 /* Define as const if the declaration of iconv() needs const. */ #define ICONV_CONST const @@ -190,7 +190,7 @@ #define STDC_HEADERS 1 /* Configured target name. */ -#define TARGET "arm--netbsdelf-eabi" +#define TARGET "arm-elf32-minix" /* Define to 1 if user symbol names have a leading underscore, 0 if not. */ #define TARGET_PREPENDS_UNDERSCORE 0 @@ -221,11 +221,11 @@ /* Version number of package */ -#define VERSION "2.21.1" +#define VERSION "2.22" /* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a `char[]'. */ -/* #undef YYTEXT_POINTER */ +#define YYTEXT_POINTER 1 /* Number of bits in a file offset, on hosts where this is settable. */ /* #undef _FILE_OFFSET_BITS */ @@ -234,11 +234,11 @@ /* #undef _LARGE_FILES */ /* Define to 1 if on MINIX. */ -/* #undef _MINIX */ +#define _MINIX 1 /* Define to 2 if the system does not provide POSIX.1 features except with this defined. */ -/* #undef _POSIX_1_SOURCE */ +#define _POSIX_1_SOURCE 2 /* Define to 1 if you need to in order for `stat' and other things to work. */ -/* #undef _POSIX_SOURCE */ +#define _POSIX_SOURCE 1 diff --git a/external/gpl3/binutils/usr.bin/common/arch/earm/defs.mk b/external/gpl3/binutils/usr.bin/common/arch/earm/defs.mk index 85a04576e..fd92161b7 100644 --- a/external/gpl3/binutils/usr.bin/common/arch/earm/defs.mk +++ b/external/gpl3/binutils/usr.bin/common/arch/earm/defs.mk @@ -2,35 +2,35 @@ # Generated from: NetBSD: mknative-binutils,v 1.8 2011/09/25 04:00:58 christos Exp # Generated from: NetBSD: mknative.common,v 1.9 2007/02/05 18:26:01 apb Exp # -G_VERSION=2.21.1 +G_VERSION=2.22 G_DEFS=-DHAVE_CONFIG_H G_INCLUDES= G_PROGRAMS=size objdump ar strings ranlib objcopy addr2line readelf elfedit nm-new strip-new cxxfilt G_man_MANS=addr2line.1 ar.1 dlltool.1 nlmconv.1 nm.1 objcopy.1 objdump.1 ranlib.1 readelf.1 size.1 strings.1 strip.1 elfedit.1 windres.1 windmc.1 c++filt.1 G_TEXINFOS=binutils.texi -G_PKGVERSION=(NetBSD Binutils nb1) +G_PKGVERSION=(NetBSD Binutils nb1) G_REPORT_BUGS_TEXI=@uref{http://www.NetBSD.org/support/send-pr.html} G_size_OBJECTS=size.o bucomm.o version.o filemode.o -G_size_DEPENDENCIES=./../intl/libintl.a ../libiberty/libiberty.a ../bfd/libbfd.la +G_size_DEPENDENCIES= ../libiberty/libiberty.a ../bfd/libbfd.la G_objdump_OBJECTS=objdump.o dwarf.o prdbg.o rddbg.o debug.o stabs.o ieee.o rdcoff.o bucomm.o version.o filemode.o elfcomm.o -G_objdump_DEPENDENCIES=./../intl/libintl.a ../libiberty/libiberty.a ../bfd/libbfd.la ../opcodes/libopcodes.la +G_objdump_DEPENDENCIES= ../libiberty/libiberty.a ../bfd/libbfd.la ../opcodes/libopcodes.la G_ar_OBJECTS=arparse.o arlex.o ar.o not-ranlib.o arsup.o rename.o binemul.o emul_vanilla.o bucomm.o version.o filemode.o -G_ar_DEPENDENCIES=./../intl/libintl.a ../libiberty/libiberty.a ../bfd/libbfd.la +G_ar_DEPENDENCIES= ../libiberty/libiberty.a ../bfd/libbfd.la G_strings_OBJECTS=strings.o bucomm.o version.o filemode.o -G_strings_DEPENDENCIES=./../intl/libintl.a ../libiberty/libiberty.a ../bfd/libbfd.la +G_strings_DEPENDENCIES= ../libiberty/libiberty.a ../bfd/libbfd.la G_ranlib_OBJECTS=ar.o is-ranlib.o arparse.o arlex.o arsup.o rename.o binemul.o emul_vanilla.o bucomm.o version.o filemode.o -G_ranlib_DEPENDENCIES=./../intl/libintl.a ../libiberty/libiberty.a ../bfd/libbfd.la +G_ranlib_DEPENDENCIES= ../libiberty/libiberty.a ../bfd/libbfd.la G_objcopy_OBJECTS=objcopy.o not-strip.o rename.o rddbg.o debug.o stabs.o ieee.o rdcoff.o wrstabs.o bucomm.o version.o filemode.o -G_objcopy_DEPENDENCIES=./../intl/libintl.a ../libiberty/libiberty.a ../bfd/libbfd.la +G_objcopy_DEPENDENCIES= ../libiberty/libiberty.a ../bfd/libbfd.la G_addr2line_OBJECTS=addr2line.o bucomm.o version.o filemode.o -G_addr2line_DEPENDENCIES=./../intl/libintl.a ../libiberty/libiberty.a ../bfd/libbfd.la +G_addr2line_DEPENDENCIES= ../libiberty/libiberty.a ../bfd/libbfd.la G_readelf_OBJECTS=readelf.o version.o unwind-ia64.o dwarf.o elfcomm.o -G_readelf_DEPENDENCIES=./../intl/libintl.a ../libiberty/libiberty.a +G_readelf_DEPENDENCIES= ../libiberty/libiberty.a G_elfedit_OBJECTS=elfedit.o version.o elfcomm.o -G_elfedit_DEPENDENCIES=./../intl/libintl.a ../libiberty/libiberty.a +G_elfedit_DEPENDENCIES= ../libiberty/libiberty.a G_nm_new_OBJECTS=nm.o bucomm.o version.o filemode.o -G_nm_new_DEPENDENCIES=./../intl/libintl.a ../libiberty/libiberty.a ../bfd/libbfd.la +G_nm_new_DEPENDENCIES= ../libiberty/libiberty.a ../bfd/libbfd.la G_strip_new_OBJECTS=objcopy.o is-strip.o rename.o rddbg.o debug.o stabs.o ieee.o rdcoff.o wrstabs.o bucomm.o version.o filemode.o -G_strip_new_DEPENDENCIES=./../intl/libintl.a ../libiberty/libiberty.a ../bfd/libbfd.la +G_strip_new_DEPENDENCIES= ../libiberty/libiberty.a ../bfd/libbfd.la G_cxxfilt_OBJECTS=cxxfilt.o bucomm.o version.o filemode.o -G_cxxfilt_DEPENDENCIES=./../intl/libintl.a ../libiberty/libiberty.a ../bfd/libbfd.la +G_cxxfilt_DEPENDENCIES= ../libiberty/libiberty.a ../bfd/libbfd.la diff --git a/external/gpl3/binutils/usr.bin/common/arch/i386/config.h b/external/gpl3/binutils/usr.bin/common/arch/i386/config.h index 774041d0a..9ae00ee37 100644 --- a/external/gpl3/binutils/usr.bin/common/arch/i386/config.h +++ b/external/gpl3/binutils/usr.bin/common/arch/i386/config.h @@ -15,13 +15,13 @@ /* Define to 1 if translation of program messages to the user's native language is requested. */ -#define ENABLE_NLS 1 +/* #undef ENABLE_NLS */ /* Suffix used for executables, if any. */ #define EXECUTABLE_SUFFIX "" /* Define to 1 if you have `alloca', as a function or macro. */ -#define HAVE_ALLOCA 1 +/* #undef HAVE_ALLOCA */ /* Define to 1 if you have and it should be used (not on Ultrix). */ @@ -145,7 +145,7 @@ #define HAVE_UNISTD_H 1 /* Define to 1 if you have the `utimes' function. */ -#define HAVE_UTIMES 1 +/* #undef HAVE_UTIMES */ /* Define to 1 if you have the header file. */ #define HAVE_ZLIB_H 1 @@ -190,7 +190,7 @@ #define STDC_HEADERS 1 /* Configured target name. */ -#define TARGET "i486--netbsdelf" +#define TARGET "i586-elf32-minix" /* Define to 1 if user symbol names have a leading underscore, 0 if not. */ #define TARGET_PREPENDS_UNDERSCORE 0 @@ -221,7 +221,7 @@ /* Version number of package */ -#define VERSION "2.21.1" +#define VERSION "2.22" /* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a `char[]'. */ @@ -234,11 +234,11 @@ /* #undef _LARGE_FILES */ /* Define to 1 if on MINIX. */ -/* #undef _MINIX */ +#define _MINIX 1 /* Define to 2 if the system does not provide POSIX.1 features except with this defined. */ -/* #undef _POSIX_1_SOURCE */ +#define _POSIX_1_SOURCE 2 /* Define to 1 if you need to in order for `stat' and other things to work. */ -/* #undef _POSIX_SOURCE */ +#define _POSIX_SOURCE 1 diff --git a/external/gpl3/binutils/usr.bin/common/arch/i386/defs.mk b/external/gpl3/binutils/usr.bin/common/arch/i386/defs.mk index 85a04576e..fd92161b7 100644 --- a/external/gpl3/binutils/usr.bin/common/arch/i386/defs.mk +++ b/external/gpl3/binutils/usr.bin/common/arch/i386/defs.mk @@ -2,35 +2,35 @@ # Generated from: NetBSD: mknative-binutils,v 1.8 2011/09/25 04:00:58 christos Exp # Generated from: NetBSD: mknative.common,v 1.9 2007/02/05 18:26:01 apb Exp # -G_VERSION=2.21.1 +G_VERSION=2.22 G_DEFS=-DHAVE_CONFIG_H G_INCLUDES= G_PROGRAMS=size objdump ar strings ranlib objcopy addr2line readelf elfedit nm-new strip-new cxxfilt G_man_MANS=addr2line.1 ar.1 dlltool.1 nlmconv.1 nm.1 objcopy.1 objdump.1 ranlib.1 readelf.1 size.1 strings.1 strip.1 elfedit.1 windres.1 windmc.1 c++filt.1 G_TEXINFOS=binutils.texi -G_PKGVERSION=(NetBSD Binutils nb1) +G_PKGVERSION=(NetBSD Binutils nb1) G_REPORT_BUGS_TEXI=@uref{http://www.NetBSD.org/support/send-pr.html} G_size_OBJECTS=size.o bucomm.o version.o filemode.o -G_size_DEPENDENCIES=./../intl/libintl.a ../libiberty/libiberty.a ../bfd/libbfd.la +G_size_DEPENDENCIES= ../libiberty/libiberty.a ../bfd/libbfd.la G_objdump_OBJECTS=objdump.o dwarf.o prdbg.o rddbg.o debug.o stabs.o ieee.o rdcoff.o bucomm.o version.o filemode.o elfcomm.o -G_objdump_DEPENDENCIES=./../intl/libintl.a ../libiberty/libiberty.a ../bfd/libbfd.la ../opcodes/libopcodes.la +G_objdump_DEPENDENCIES= ../libiberty/libiberty.a ../bfd/libbfd.la ../opcodes/libopcodes.la G_ar_OBJECTS=arparse.o arlex.o ar.o not-ranlib.o arsup.o rename.o binemul.o emul_vanilla.o bucomm.o version.o filemode.o -G_ar_DEPENDENCIES=./../intl/libintl.a ../libiberty/libiberty.a ../bfd/libbfd.la +G_ar_DEPENDENCIES= ../libiberty/libiberty.a ../bfd/libbfd.la G_strings_OBJECTS=strings.o bucomm.o version.o filemode.o -G_strings_DEPENDENCIES=./../intl/libintl.a ../libiberty/libiberty.a ../bfd/libbfd.la +G_strings_DEPENDENCIES= ../libiberty/libiberty.a ../bfd/libbfd.la G_ranlib_OBJECTS=ar.o is-ranlib.o arparse.o arlex.o arsup.o rename.o binemul.o emul_vanilla.o bucomm.o version.o filemode.o -G_ranlib_DEPENDENCIES=./../intl/libintl.a ../libiberty/libiberty.a ../bfd/libbfd.la +G_ranlib_DEPENDENCIES= ../libiberty/libiberty.a ../bfd/libbfd.la G_objcopy_OBJECTS=objcopy.o not-strip.o rename.o rddbg.o debug.o stabs.o ieee.o rdcoff.o wrstabs.o bucomm.o version.o filemode.o -G_objcopy_DEPENDENCIES=./../intl/libintl.a ../libiberty/libiberty.a ../bfd/libbfd.la +G_objcopy_DEPENDENCIES= ../libiberty/libiberty.a ../bfd/libbfd.la G_addr2line_OBJECTS=addr2line.o bucomm.o version.o filemode.o -G_addr2line_DEPENDENCIES=./../intl/libintl.a ../libiberty/libiberty.a ../bfd/libbfd.la +G_addr2line_DEPENDENCIES= ../libiberty/libiberty.a ../bfd/libbfd.la G_readelf_OBJECTS=readelf.o version.o unwind-ia64.o dwarf.o elfcomm.o -G_readelf_DEPENDENCIES=./../intl/libintl.a ../libiberty/libiberty.a +G_readelf_DEPENDENCIES= ../libiberty/libiberty.a G_elfedit_OBJECTS=elfedit.o version.o elfcomm.o -G_elfedit_DEPENDENCIES=./../intl/libintl.a ../libiberty/libiberty.a +G_elfedit_DEPENDENCIES= ../libiberty/libiberty.a G_nm_new_OBJECTS=nm.o bucomm.o version.o filemode.o -G_nm_new_DEPENDENCIES=./../intl/libintl.a ../libiberty/libiberty.a ../bfd/libbfd.la +G_nm_new_DEPENDENCIES= ../libiberty/libiberty.a ../bfd/libbfd.la G_strip_new_OBJECTS=objcopy.o is-strip.o rename.o rddbg.o debug.o stabs.o ieee.o rdcoff.o wrstabs.o bucomm.o version.o filemode.o -G_strip_new_DEPENDENCIES=./../intl/libintl.a ../libiberty/libiberty.a ../bfd/libbfd.la +G_strip_new_DEPENDENCIES= ../libiberty/libiberty.a ../bfd/libbfd.la G_cxxfilt_OBJECTS=cxxfilt.o bucomm.o version.o filemode.o -G_cxxfilt_DEPENDENCIES=./../intl/libintl.a ../libiberty/libiberty.a ../bfd/libbfd.la +G_cxxfilt_DEPENDENCIES= ../libiberty/libiberty.a ../bfd/libbfd.la diff --git a/external/gpl3/binutils/usr.bin/gas/Makefile b/external/gpl3/binutils/usr.bin/gas/Makefile index f61b3843a..85121db9f 100644 --- a/external/gpl3/binutils/usr.bin/gas/Makefile +++ b/external/gpl3/binutils/usr.bin/gas/Makefile @@ -24,8 +24,10 @@ CPPFLAGS+= -I${.CURDIR}/arch/${MACHINE_ARCH} CPPFLAGS+= -I${DIST}/gas -I${DIST}/gas/config CPPFLAGS+= -I${DIST} +.if !defined(__MINIX) LDADD= -lintl DPADD= ${LIBINTL} +.endif # !defined(__MINIX) OPCODESOBJ!= cd ${TOP}/${BFDSUBDIR}/libopcodes && ${PRINTOBJDIR} LDADD+= -L${OPCODESOBJ} -lopcodes diff --git a/external/gpl3/binutils/usr.bin/gas/arch/earm/config.h b/external/gpl3/binutils/usr.bin/gas/arch/earm/config.h index 7aa14e9cc..585787221 100644 --- a/external/gpl3/binutils/usr.bin/gas/arch/earm/config.h +++ b/external/gpl3/binutils/usr.bin/gas/arch/earm/config.h @@ -42,10 +42,10 @@ /* Define to 1 if translation of program messages to the user's native language is requested. */ -#define ENABLE_NLS 1 +/* #undef ENABLE_NLS */ /* Define to 1 if you have `alloca', as a function or macro. */ -#define HAVE_ALLOCA 1 +/* #undef HAVE_ALLOCA */ /* Define to 1 if you have and it should be used (not on Ultrix). */ @@ -120,7 +120,7 @@ #define HAVE_UNLINK 1 /* Define to 1 if you have the header file. */ -/* #undef HAVE_ZLIB_H */ +#define HAVE_ZLIB_H 1 /* Using i386 COFF? */ /* #undef I386COFF */ @@ -225,19 +225,19 @@ /* #undef STRICTCOFF */ /* Target alias. */ -#define TARGET_ALIAS "arm--netbsdelf-eabi" +#define TARGET_ALIAS "arm-elf32-minix" /* Define as 1 if big endian. */ -#define TARGET_BYTES_BIG_ENDIAN 0 +/* #undef TARGET_BYTES_BIG_ENDIAN */ /* Canonical target. */ -#define TARGET_CANONICAL "arm--netbsdelf-eabi" +#define TARGET_CANONICAL "arm-elf32-minix" /* Target CPU. */ #define TARGET_CPU "arm" /* Target OS. */ -#define TARGET_OS "netbsdelf-eabi" +#define TARGET_OS "minix" /* Define if default target is PowerPC Solaris. */ /* #undef TARGET_SOLARIS_COMMENT */ @@ -246,7 +246,7 @@ /* #undef TARGET_SYMBIAN */ /* Target vendor. */ -#define TARGET_VENDOR "" +#define TARGET_VENDOR "elf32" /* Use b modifier when opening binary files? */ /* #undef USE_BINARY_FOPEN */ @@ -283,7 +283,7 @@ /* #undef USING_CGEN */ /* Version number of package */ -#define VERSION "2.21.1" +#define VERSION "2.22" /* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most significant byte first (like Motorola and SPARC, unlike Intel). */ @@ -299,7 +299,7 @@ /* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a `char[]'. */ -/* #undef YYTEXT_POINTER */ +#define YYTEXT_POINTER 1 /* Number of bits in a file offset, on hosts where this is settable. */ /* #undef _FILE_OFFSET_BITS */ @@ -308,14 +308,14 @@ /* #undef _LARGE_FILES */ /* Define to 1 if on MINIX. */ -/* #undef _MINIX */ +#define _MINIX 1 /* Define to 2 if the system does not provide POSIX.1 features except with this defined. */ -/* #undef _POSIX_1_SOURCE */ +#define _POSIX_1_SOURCE 2 /* Define to 1 if you need to in order for `stat' and other things to work. */ -/* #undef _POSIX_SOURCE */ +#define _POSIX_SOURCE 1 /* Define to `__inline__' or `__inline' if that's what the C compiler calls it, or to nothing if 'inline' is not supported under any name. */ diff --git a/external/gpl3/binutils/usr.bin/gas/arch/earm/itbl-cpu.h b/external/gpl3/binutils/usr.bin/gas/arch/earm/itbl-cpu.h index fe08ae726..7d06e4fe4 100644 --- a/external/gpl3/binutils/usr.bin/gas/arch/earm/itbl-cpu.h +++ b/external/gpl3/binutils/usr.bin/gas/arch/earm/itbl-cpu.h @@ -1,5 +1,4 @@ /* This file is automatically generated. DO NOT EDIT! */ -/* Generated from: NetBSD: mknative-binutils,v 1.8 2011/09/25 04:00:58 christos Exp */ -/* Generated from: NetBSD: mknative.common,v 1.9 2007/02/05 18:26:01 apb Exp */ +/* Generated from: NetBSD: mknative,v 1.9 2003/02/07 01:52:54 lukem Exp */ #include "itbl-arm.h" diff --git a/external/gpl3/binutils/usr.bin/gas/arch/earm/obj-format.h b/external/gpl3/binutils/usr.bin/gas/arch/earm/obj-format.h index 3a987c4eb..3f86faea6 100644 --- a/external/gpl3/binutils/usr.bin/gas/arch/earm/obj-format.h +++ b/external/gpl3/binutils/usr.bin/gas/arch/earm/obj-format.h @@ -1,5 +1,4 @@ /* This file is automatically generated. DO NOT EDIT! */ -/* Generated from: NetBSD: mknative-binutils,v 1.8 2011/09/25 04:00:58 christos Exp */ -/* Generated from: NetBSD: mknative.common,v 1.9 2007/02/05 18:26:01 apb Exp */ +/* Generated from: NetBSD: mknative,v 1.9 2003/02/07 01:52:54 lukem Exp */ #include "obj-elf.h" diff --git a/external/gpl3/binutils/usr.bin/gas/arch/earm/targ-cpu.h b/external/gpl3/binutils/usr.bin/gas/arch/earm/targ-cpu.h index a6be7b4db..5cec8f385 100644 --- a/external/gpl3/binutils/usr.bin/gas/arch/earm/targ-cpu.h +++ b/external/gpl3/binutils/usr.bin/gas/arch/earm/targ-cpu.h @@ -1,5 +1,4 @@ /* This file is automatically generated. DO NOT EDIT! */ -/* Generated from: NetBSD: mknative-binutils,v 1.8 2011/09/25 04:00:58 christos Exp */ -/* Generated from: NetBSD: mknative.common,v 1.9 2007/02/05 18:26:01 apb Exp */ +/* Generated from: NetBSD: mknative,v 1.9 2003/02/07 01:52:54 lukem Exp */ #include "tc-arm.h" diff --git a/external/gpl3/binutils/usr.bin/gas/arch/i386/config.h b/external/gpl3/binutils/usr.bin/gas/arch/i386/config.h index e4d24248c..2d510d32c 100644 --- a/external/gpl3/binutils/usr.bin/gas/arch/i386/config.h +++ b/external/gpl3/binutils/usr.bin/gas/arch/i386/config.h @@ -42,10 +42,10 @@ /* Define to 1 if translation of program messages to the user's native language is requested. */ -#define ENABLE_NLS 1 +/* #undef ENABLE_NLS */ /* Define to 1 if you have `alloca', as a function or macro. */ -#define HAVE_ALLOCA 1 +/* #undef HAVE_ALLOCA */ /* Define to 1 if you have and it should be used (not on Ultrix). */ @@ -225,19 +225,19 @@ /* #undef STRICTCOFF */ /* Target alias. */ -#define TARGET_ALIAS "i486--netbsdelf" +#define TARGET_ALIAS "i586-elf32-minix" /* Define as 1 if big endian. */ /* #undef TARGET_BYTES_BIG_ENDIAN */ /* Canonical target. */ -#define TARGET_CANONICAL "i486--netbsdelf" +#define TARGET_CANONICAL "i586-elf32-minix" /* Target CPU. */ -#define TARGET_CPU "i486" +#define TARGET_CPU "i586" /* Target OS. */ -#define TARGET_OS "netbsdelf" +#define TARGET_OS "minix" /* Define if default target is PowerPC Solaris. */ /* #undef TARGET_SOLARIS_COMMENT */ @@ -246,7 +246,7 @@ /* #undef TARGET_SYMBIAN */ /* Target vendor. */ -#define TARGET_VENDOR "" +#define TARGET_VENDOR "elf32" /* Use b modifier when opening binary files? */ /* #undef USE_BINARY_FOPEN */ @@ -283,7 +283,7 @@ /* #undef USING_CGEN */ /* Version number of package */ -#define VERSION "2.21.1" +#define VERSION "2.22" /* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most significant byte first (like Motorola and SPARC, unlike Intel). */ @@ -308,14 +308,14 @@ /* #undef _LARGE_FILES */ /* Define to 1 if on MINIX. */ -/* #undef _MINIX */ +#define _MINIX 1 /* Define to 2 if the system does not provide POSIX.1 features except with this defined. */ -/* #undef _POSIX_1_SOURCE */ +#define _POSIX_1_SOURCE 2 /* Define to 1 if you need to in order for `stat' and other things to work. */ -/* #undef _POSIX_SOURCE */ +#define _POSIX_SOURCE 1 /* Define to `__inline__' or `__inline' if that's what the C compiler calls it, or to nothing if 'inline' is not supported under any name. */ diff --git a/external/gpl3/binutils/usr.bin/gas/arch/i386/defs.mk b/external/gpl3/binutils/usr.bin/gas/arch/i386/defs.mk index 9409985f4..84ef77e86 100644 --- a/external/gpl3/binutils/usr.bin/gas/arch/i386/defs.mk +++ b/external/gpl3/binutils/usr.bin/gas/arch/i386/defs.mk @@ -5,4 +5,4 @@ G_DEFS=-DHAVE_CONFIG_H G_INCLUDES= G_OBJS=app.o as.o atof-generic.o compress-debug.o cond.o depend.o dwarf2dbg.o dw2gencfi.o ecoff.o ehopt.o expr.o flonum-copy.o flonum-konst.o flonum-mult.o frags.o hash.o input-file.o input-scrub.o listing.o literal.o macro.o messages.o output-file.o read.o remap.o sb.o stabs.o subsegs.o symbols.o write.o -G_OBJS+=tc-i386.o obj-elf.o atof-ieee.o +G_OBJS+=tc-i386.o obj-elf.o atof-ieee.o diff --git a/external/gpl3/binutils/usr.bin/gas/arch/i386/targ-env.h b/external/gpl3/binutils/usr.bin/gas/arch/i386/targ-env.h index 1182f9522..35fceb235 100644 --- a/external/gpl3/binutils/usr.bin/gas/arch/i386/targ-env.h +++ b/external/gpl3/binutils/usr.bin/gas/arch/i386/targ-env.h @@ -1,4 +1,5 @@ /* This file is automatically generated. DO NOT EDIT! */ -/* Generated from: NetBSD: mknative,v 1.9 2003/02/07 01:52:54 lukem Exp */ +/* Generated from: NetBSD: mknative-binutils,v 1.8 2011/09/25 04:00:58 christos Exp */ +/* Generated from: NetBSD: mknative.common,v 1.9 2007/02/05 18:26:01 apb Exp */ -#include "te-nbsd.h" +#include "te-minix.h" diff --git a/external/gpl3/binutils/usr.bin/gprof/Makefile b/external/gpl3/binutils/usr.bin/gprof/Makefile index 3ffa92859..31a39cc96 100644 --- a/external/gpl3/binutils/usr.bin/gprof/Makefile +++ b/external/gpl3/binutils/usr.bin/gprof/Makefile @@ -11,8 +11,10 @@ PROG= gprof SRCS= ${G_gprof_OBJECTS:.o=.c} CPPFLAGS+= -I${.CURDIR}/arch/${MACHINE_ARCH} +.if !defined(__MINIX) LDADD= -lintl DPADD= ${LIBINTL} +.endif # !defined(__MINIX) BFDOBJ!= cd ${TOP}/${BFDSUBDIR}/libbfd && ${PRINTOBJDIR} LDADD+= -L${BFDOBJ} -lbfd diff --git a/external/gpl3/binutils/usr.bin/gprof/arch/earm/gconfig.h b/external/gpl3/binutils/usr.bin/gprof/arch/earm/gconfig.h index bbe3443aa..808bead94 100644 --- a/external/gpl3/binutils/usr.bin/gprof/arch/earm/gconfig.h +++ b/external/gpl3/binutils/usr.bin/gprof/arch/earm/gconfig.h @@ -7,7 +7,7 @@ /* Define to 1 if translation of program messages to the user's native language is requested. */ -#define ENABLE_NLS 1 +/* #undef ENABLE_NLS */ /* Is the prototype for getopt in in the expected format? */ #define HAVE_DECL_GETOPT 1 @@ -99,7 +99,7 @@ /* Version number of package */ -#define VERSION "2.21.1" +#define VERSION "2.22" /* Number of bits in a file offset, on hosts where this is settable. */ /* #undef _FILE_OFFSET_BITS */ @@ -108,11 +108,11 @@ /* #undef _LARGE_FILES */ /* Define to 1 if on MINIX. */ -/* #undef _MINIX */ +#define _MINIX 1 /* Define to 2 if the system does not provide POSIX.1 features except with this defined. */ -/* #undef _POSIX_1_SOURCE */ +#define _POSIX_1_SOURCE 2 /* Define to 1 if you need to in order for `stat' and other things to work. */ -/* #undef _POSIX_SOURCE */ +#define _POSIX_SOURCE 1 diff --git a/external/gpl3/binutils/usr.bin/gprof/arch/i386/gconfig.h b/external/gpl3/binutils/usr.bin/gprof/arch/i386/gconfig.h index bbe3443aa..808bead94 100644 --- a/external/gpl3/binutils/usr.bin/gprof/arch/i386/gconfig.h +++ b/external/gpl3/binutils/usr.bin/gprof/arch/i386/gconfig.h @@ -7,7 +7,7 @@ /* Define to 1 if translation of program messages to the user's native language is requested. */ -#define ENABLE_NLS 1 +/* #undef ENABLE_NLS */ /* Is the prototype for getopt in in the expected format? */ #define HAVE_DECL_GETOPT 1 @@ -99,7 +99,7 @@ /* Version number of package */ -#define VERSION "2.21.1" +#define VERSION "2.22" /* Number of bits in a file offset, on hosts where this is settable. */ /* #undef _FILE_OFFSET_BITS */ @@ -108,11 +108,11 @@ /* #undef _LARGE_FILES */ /* Define to 1 if on MINIX. */ -/* #undef _MINIX */ +#define _MINIX 1 /* Define to 2 if the system does not provide POSIX.1 features except with this defined. */ -/* #undef _POSIX_1_SOURCE */ +#define _POSIX_1_SOURCE 2 /* Define to 1 if you need to in order for `stat' and other things to work. */ -/* #undef _POSIX_SOURCE */ +#define _POSIX_SOURCE 1 diff --git a/external/gpl3/binutils/usr.bin/ld/Makefile b/external/gpl3/binutils/usr.bin/ld/Makefile index 8e1c248e8..4e9bd9c0d 100644 --- a/external/gpl3/binutils/usr.bin/ld/Makefile +++ b/external/gpl3/binutils/usr.bin/ld/Makefile @@ -20,8 +20,14 @@ CPPFLAGS+= -I${.CURDIR}/arch/${MACHINE_ARCH} \ -DTOOLBINDIR=\"/usr/bin\" \ -DENABLE_PLUGINS +.if !defined(__MINIX) LDADD= -lintl DPADD= ${LIBINTL} +.else +CPPFLAGS+= \ + -DTARGET_SYSTEM_ROOT=\"/usr/${G_target_alias}/sys-root\" \ + -DTARGET_SYSTEM_ROOT_RELOCATABLE +.endif # !defined(__MINIX COPTS.ldgram.c = -Wno-stack-protector @@ -94,15 +100,15 @@ EMUL_LIB_PATH.${f}=/usr/lib EMUL_LIB_PATH.${f}=/usr/lib . endif -#GENSCRIPTS = LIB_PATH='${LIB_PATH}' $(SHELL) $(srcdir)/genscripts.sh "${srcdir}" "${libdir}" "${prefix}" "${exec_prefix}" @host@ @target@ @ta rget_alias@ "@EMULATION_LIBPATH@" "@NATIVE_LIB_DIRS@" @use_sysroot@ - +# Binutils 2.22: the arguments have slightly changed. +#ENSCRIPTS = LIB_PATH='${LIB_PATH}' $(SHELL) $(srcdir)/genscripts.sh "${srcdir}" "${libdir}" "${prefix}" "${exec_prefix}" @host@ @target@ @target_alias@ "@EMULATION_LIBPATH@" "@NATIVE_LIB_DIRS@" @use_sysroot@ @enable_initfini_array@ @EMULATION_NAME@ e${f}.c: ${DIST}/ld/genscripts.sh ${.CURDIR}/Makefile stringify.sed ${_MKTARGET_CREATE} unset MACHINE || true; \ LIB_PATH=${EMUL_LIB_PATH.${f}} NATIVE=yes \ ${HOST_SH} ${DIST}/ld/genscripts.sh ${DIST}/ld ${LIBDIR} "/usr" "/usr/bin" \ ${G_target_alias} ${G_target_alias} ${G_target_alias} \ - ${G_EMUL} ${LIBDIR} yes ${f} "${G_target_alias}" + ${G_EMUL} ${LIBDIR} yes no ${f} .if ${MACHINE_ARCH} == "x86_64" || ${MACHINE_ARCH} == "sparc64" || \ ${MACHINE_ARCH} == "mips64el" || ${MACHINE_ARCH} == "mips64eb" diff --git a/external/gpl3/binutils/usr.bin/ld/arch/earm/config.h b/external/gpl3/binutils/usr.bin/ld/arch/earm/config.h index acff0fc43..54ee4f925 100644 --- a/external/gpl3/binutils/usr.bin/ld/arch/earm/config.h +++ b/external/gpl3/binutils/usr.bin/ld/arch/earm/config.h @@ -7,7 +7,7 @@ /* Define to 1 if translation of program messages to the user's native language is requested. */ -#define ENABLE_NLS 1 +/* #undef ENABLE_NLS */ /* Additional extension a shared object might have. */ /* #undef EXTRA_SHLIB_EXTENSION */ @@ -66,6 +66,9 @@ /* Define to 1 if you have the `glob' function. */ #define HAVE_GLOB 1 +/* Define .init_array/.fini_array sections are available and working. */ +#define HAVE_INITFINI_ARRAY 1 + /* Define to 1 if you have the header file. */ #define HAVE_INTTYPES_H 1 @@ -134,11 +137,11 @@ /* Define to 1 if you have the `waitpid' function. */ #define HAVE_WAITPID 1 -/* Define to 1 if you have the header file. */ +/* Define to 1 if you have the header file. */ /* #undef HAVE_WINDOWS_H */ /* Define to 1 if you have the header file. */ -/* #undef HAVE_ZLIB_H */ +#define HAVE_ZLIB_H 1 /* Define to the sub-directory in which libtool stores uninstalled libraries. */ @@ -197,11 +200,11 @@ /* Version number of package */ -#define VERSION "2.21.1" +#define VERSION "2.22" /* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a `char[]'. */ -/* #undef YYTEXT_POINTER */ +#define YYTEXT_POINTER 1 /* Number of bits in a file offset, on hosts where this is settable. */ /* #undef _FILE_OFFSET_BITS */ @@ -210,11 +213,11 @@ /* #undef _LARGE_FILES */ /* Define to 1 if on MINIX. */ -/* #undef _MINIX */ +#define _MINIX 1 /* Define to 2 if the system does not provide POSIX.1 features except with this defined. */ -/* #undef _POSIX_1_SOURCE */ +#define _POSIX_1_SOURCE 2 /* Define to 1 if you need to in order for `stat' and other things to work. */ -/* #undef _POSIX_SOURCE */ +#define _POSIX_SOURCE 1 diff --git a/external/gpl3/binutils/usr.bin/ld/arch/earm/defs.mk b/external/gpl3/binutils/usr.bin/ld/arch/earm/defs.mk index 3fd8723e9..f7265c3af 100644 --- a/external/gpl3/binutils/usr.bin/ld/arch/earm/defs.mk +++ b/external/gpl3/binutils/usr.bin/ld/arch/earm/defs.mk @@ -3,10 +3,10 @@ # Generated from: NetBSD: mknative.common,v 1.9 2007/02/05 18:26:01 apb Exp # G_DEFS=-DHAVE_CONFIG_H -G_EMUL=armelf_nbsd_eabi -G_EMULATION_OFILES=earmelf_nbsd_eabi.o earmelfb_nbsd_eabi.o earmelf.o earmnbsd.o +G_EMUL=armelf_minix +G_EMULATION_OFILES=earmelf_minix.o earmelf.o G_INCLUDES= -G_OFILES=ldgram.o ldlex-wrapper.o lexsup.o ldlang.o mri.o ldctor.o ldmain.o plugin.o ldwrite.o ldexp.o ldemul.o ldver.o ldmisc.o ldfile.o ldcref.o earmelf_nbsd_eabi.o earmelfb_nbsd_eabi.o earmelf.o earmnbsd.o +G_OFILES=ldgram.o ldlex-wrapper.o lexsup.o ldlang.o mri.o ldctor.o ldmain.o plugin.o ldwrite.o ldexp.o ldemul.o ldver.o ldmisc.o ldfile.o ldcref.o earmelf_minix.o earmelf.o G_STRINGIFY=astring.sed G_TEXINFOS=ld.texinfo -G_target_alias=arm--netbsdelf-eabi +G_target_alias=arm-elf32-minix diff --git a/external/gpl3/binutils/usr.bin/ld/arch/earm/ldemul-list.h b/external/gpl3/binutils/usr.bin/ld/arch/earm/ldemul-list.h index 59a6f9cbd..2344f001f 100644 --- a/external/gpl3/binutils/usr.bin/ld/arch/earm/ldemul-list.h +++ b/external/gpl3/binutils/usr.bin/ld/arch/earm/ldemul-list.h @@ -3,14 +3,10 @@ /* Generated from: NetBSD: mknative.common,v 1.9 2007/02/05 18:26:01 apb Exp */ /* This file is automatically generated. DO NOT EDIT! */ -extern ld_emulation_xfer_type ld_armelf_nbsd_eabi_emulation; -extern ld_emulation_xfer_type ld_armelfb_nbsd_eabi_emulation; +extern ld_emulation_xfer_type ld_armelf_minix_emulation; extern ld_emulation_xfer_type ld_armelf_emulation; -extern ld_emulation_xfer_type ld_armnbsd_emulation; #define EMULATION_LIST \ - &ld_armelf_nbsd_eabi_emulation, \ - &ld_armelfb_nbsd_eabi_emulation, \ + &ld_armelf_minix_emulation, \ &ld_armelf_emulation, \ - &ld_armnbsd_emulation, \ 0 diff --git a/external/gpl3/binutils/usr.bin/ld/arch/i386/config.h b/external/gpl3/binutils/usr.bin/ld/arch/i386/config.h index ffe99e71b..14a57574e 100644 --- a/external/gpl3/binutils/usr.bin/ld/arch/i386/config.h +++ b/external/gpl3/binutils/usr.bin/ld/arch/i386/config.h @@ -7,7 +7,7 @@ /* Define to 1 if translation of program messages to the user's native language is requested. */ -#define ENABLE_NLS 1 +/* #undef ENABLE_NLS */ /* Additional extension a shared object might have. */ /* #undef EXTRA_SHLIB_EXTENSION */ @@ -66,6 +66,9 @@ /* Define to 1 if you have the `glob' function. */ #define HAVE_GLOB 1 +/* Define .init_array/.fini_array sections are available and working. */ +/* #undef HAVE_INITFINI_ARRAY */ + /* Define to 1 if you have the header file. */ #define HAVE_INTTYPES_H 1 @@ -134,7 +137,7 @@ /* Define to 1 if you have the `waitpid' function. */ #define HAVE_WAITPID 1 -/* Define to 1 if you have the header file. */ +/* Define to 1 if you have the header file. */ /* #undef HAVE_WINDOWS_H */ /* Define to 1 if you have the header file. */ @@ -197,7 +200,7 @@ /* Version number of package */ -#define VERSION "2.21.1" +#define VERSION "2.22" /* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a `char[]'. */ @@ -210,11 +213,11 @@ /* #undef _LARGE_FILES */ /* Define to 1 if on MINIX. */ -/* #undef _MINIX */ +#define _MINIX 1 /* Define to 2 if the system does not provide POSIX.1 features except with this defined. */ -/* #undef _POSIX_1_SOURCE */ +#define _POSIX_1_SOURCE 2 /* Define to 1 if you need to in order for `stat' and other things to work. */ -/* #undef _POSIX_SOURCE */ +#define _POSIX_SOURCE 1 diff --git a/external/gpl3/binutils/usr.bin/ld/arch/i386/defs.mk b/external/gpl3/binutils/usr.bin/ld/arch/i386/defs.mk index 4b8265cce..5fc4f5a90 100644 --- a/external/gpl3/binutils/usr.bin/ld/arch/i386/defs.mk +++ b/external/gpl3/binutils/usr.bin/ld/arch/i386/defs.mk @@ -3,10 +3,10 @@ # Generated from: NetBSD: mknative.common,v 1.9 2007/02/05 18:26:01 apb Exp # G_DEFS=-DHAVE_CONFIG_H -G_EMUL=elf_i386 -G_EMULATION_OFILES=eelf_i386.o ei386nbsd.o +G_EMUL=elf_i386_minix +G_EMULATION_OFILES=eelf_i386_minix.o eelf_i386.o G_INCLUDES= -G_OFILES=ldgram.o ldlex-wrapper.o lexsup.o ldlang.o mri.o ldctor.o ldmain.o plugin.o ldwrite.o ldexp.o ldemul.o ldver.o ldmisc.o ldfile.o ldcref.o eelf_i386.o ei386nbsd.o +G_OFILES=ldgram.o ldlex-wrapper.o lexsup.o ldlang.o mri.o ldctor.o ldmain.o plugin.o ldwrite.o ldexp.o ldemul.o ldver.o ldmisc.o ldfile.o ldcref.o eelf_i386_minix.o eelf_i386.o G_STRINGIFY=astring.sed G_TEXINFOS=ld.texinfo -G_target_alias=i486--netbsdelf +G_target_alias=i586-elf32-minix diff --git a/external/gpl3/binutils/usr.bin/ld/arch/i386/ldemul-list.h b/external/gpl3/binutils/usr.bin/ld/arch/i386/ldemul-list.h index ac40beb92..36b793f54 100644 --- a/external/gpl3/binutils/usr.bin/ld/arch/i386/ldemul-list.h +++ b/external/gpl3/binutils/usr.bin/ld/arch/i386/ldemul-list.h @@ -1,11 +1,12 @@ /* This file is automatically generated. DO NOT EDIT! */ -/* Generated from: NetBSD: mknative,v 1.9 2003/02/07 01:52:54 lukem Exp */ +/* Generated from: NetBSD: mknative-binutils,v 1.8 2011/09/25 04:00:58 christos Exp */ +/* Generated from: NetBSD: mknative.common,v 1.9 2007/02/05 18:26:01 apb Exp */ /* This file is automatically generated. DO NOT EDIT! */ +extern ld_emulation_xfer_type ld_elf_i386_minix_emulation; extern ld_emulation_xfer_type ld_elf_i386_emulation; -extern ld_emulation_xfer_type ld_i386nbsd_emulation; #define EMULATION_LIST \ + &ld_elf_i386_minix_emulation, \ &ld_elf_i386_emulation, \ - &ld_i386nbsd_emulation, \ 0 diff --git a/external/gpl3/binutils/usr.bin/objdump/Makefile b/external/gpl3/binutils/usr.bin/objdump/Makefile index e58742549..b188e3d7d 100644 --- a/external/gpl3/binutils/usr.bin/objdump/Makefile +++ b/external/gpl3/binutils/usr.bin/objdump/Makefile @@ -2,6 +2,10 @@ PROG= objdump +.if defined(__MINIX) +CPPFLAGS.objdump.c+= -DOBJDUMP_PRIVATE_VECTORS="" +.endif # defined(__MINIX) + .include .include "${.CURDIR}/../common/Makefile.prog" diff --git a/gnu/Makefile b/gnu/Makefile new file mode 100644 index 000000000..9b3f36e82 --- /dev/null +++ b/gnu/Makefile @@ -0,0 +1,9 @@ +# $NetBSD: Makefile,v 1.17 2010/12/03 21:38:47 plunky Exp $ + +SUBDIR+= dist .WAIT usr.bin + +# Speedup stubs for some subtrees that don't need to run these rules +includes-libexec: + @true + +.include diff --git a/gnu/README b/gnu/README new file mode 100644 index 000000000..313c537cc --- /dev/null +++ b/gnu/README @@ -0,0 +1,34 @@ +$NetBSD: README,v 1.5 2003/12/04 23:32:37 keihan Exp $ + +Organization of Sources: + +This directory hierarchy is using a new organization that +separates the GNU sources from the BSD-style infrastructure +used to build the GNU sources. The GNU sources are kept in +the standard GNU source tree layout under: + + dist/* + +The build infrastructure uses the normal BSD way under: + + lib/* + usr.bin/* + +The makefiles in the above hierarchy will "reach over" into +the GNU sources (src/gnu/dist) for everything they need. + + +Maintenance Strategy: + +The sources under src/gnu/dist are generally a combination of +some published distribution plus changes that we submit to the +maintainers and that are not yet published by them. There are +a few files that are never expected to be submitted to the FSF, +(i.e. BSD-style makefiles and such) and those generally should +stay in src/gnu/lib or src/gnu/usr.bin (the BSD build areas). + +Make sure all changes made to the GNU sources are submitted to +the appropriate maintainer, but only after coordinating with the +NetBSD maintainers by sending your proposed submission to the + mailing list. Only send the changes +to the third-party maintainers after consensus has been reached. diff --git a/gnu/dist/Makefile b/gnu/dist/Makefile new file mode 100644 index 000000000..8c83ba84e --- /dev/null +++ b/gnu/dist/Makefile @@ -0,0 +1,14 @@ +# LSC FIXME: Hackish way to trigger the fetch phase from here +# in the same way as from tools. + +.include + +MODULE= texinfo + +.include "${.CURDIR}/../../tools/Makefile.gnuhost" + +# Force the mapping to standard targets even when not building tools +.if ${USETOOLS} != "yes" +realall: .build_done +realinstall: .install_done +.endif diff --git a/gnu/dist/fetch.sh b/gnu/dist/fetch.sh index 76af90e12..ba74f088f 100755 --- a/gnu/dist/fetch.sh +++ b/gnu/dist/fetch.sh @@ -4,7 +4,7 @@ echo $0 cd `dirname $0` -# Configure fetch method +# Configure fetch method - GMAKE URL="http://www.minix3.org/distfiles-minix/make-3.80.tar.bz2" BACKUP_URL="ftp://ftp.gnu.org/gnu/make/make-3.80.tar.bz2" FETCH=wget @@ -24,6 +24,34 @@ then fi tar -xjf make-3.80.tar.bz2 && \ - mv make-3.80 gmake + mv make-3.80 gmake && \ + echo "make*" >> .gitignore + echo "gmake*" >> .gitignore +fi + +# Configure fetch method - TEXINFO +URL="http://www.minix3.org/distfiles-minix/texinfo-4.8.tar.bz2" +BACKUP_URL="ftp://ftp.gnu.org/gnu/texinfo/texinfo-4.8.tar.bz2" +FETCH=wget +which curl >/dev/null +if [ $? -eq 0 ]; then + FETCH="curl -O -f" +fi + +# Fetch sources if not available +if [ ! -d texinfo ]; +then + if [ ! -f texinfo-4.8.tar.bz2 ]; then + $FETCH $URL + if [ $? -ne 0 ]; then + $FETCH $BACKUP_URL + fi + fi + + tar -xjf texinfo-4.8.tar.bz2 && \ + cd texinfo-4.8 && \ + cat ../../usr.bin/texinfo/patches/* | patch -p1 && \ + cd - && \ + mv texinfo-4.8 texinfo fi diff --git a/gnu/usr.bin/Makefile b/gnu/usr.bin/Makefile new file mode 100644 index 000000000..663c1c7ba --- /dev/null +++ b/gnu/usr.bin/Makefile @@ -0,0 +1,36 @@ +# $NetBSD: Makefile,v 1.136 2012/08/10 12:11:30 joerg Exp $ + +.include + +#SUBDIR+= bc +#SUBDIR+= c89 c99 +#SUBDIR+= dc diffutils gkermit +SUBDIR+= texinfo + +.if !defined(__MINIX) +.if ${MKBSDGREP} == "no" +SUBDIR+= grep +.endif + +.if ${MKGROFF} != "no" +SUBDIR+= groff +.endif + +SUBDIR+= gettext + +.if ${MKGDB} != "no" +.if ${HAVE_GDB} == "6" +SUBDIR+= gdb6 +.endif +.endif + +.if ${MKGCC} != "no" +.if ${HAVE_GCC} == 4 +.if ${MKGCCCMDS} != "no" +SUBDIR+= gcc4 +.endif +.endif +.endif +.endif #!defined(__MINIX) + +.include diff --git a/gnu/usr.bin/Makefile.inc b/gnu/usr.bin/Makefile.inc new file mode 100644 index 000000000..4075a0818 --- /dev/null +++ b/gnu/usr.bin/Makefile.inc @@ -0,0 +1,3 @@ +# $NetBSD: Makefile.inc,v 1.3 1997/10/25 10:10:19 lukem Exp $ + +BINDIR?= /usr/bin diff --git a/gnu/usr.bin/texinfo/Makefile b/gnu/usr.bin/texinfo/Makefile new file mode 100644 index 000000000..64b1d26be --- /dev/null +++ b/gnu/usr.bin/texinfo/Makefile @@ -0,0 +1,46 @@ +# $NetBSD: Makefile,v 1.23 2008/10/25 22:35:36 apb Exp $ + +.include + +SUBDIR= makedoc .WAIT common .WAIT info infokey install-info makeinfo \ + texi2dvi texindex + +.if ${MKSHARE} != "no" +FILESDIR= /usr/share/misc +FILES= epsf.tex texinfo.cat texinfo.dtd texinfo.tex texinfo.xsl +VERSION!= ${TOOL_SED} -n "s/^\#define VERSION \"\(.*\)\"/\1/p" \ + ${NETBSDSRCDIR}/gnu/usr.bin/texinfo/common/config.h + +texinfo.cat: texinfo-cat.in + ${TOOL_SED} 's/__VERSION__/${VERSION}/g' ${.ALLSRC} >${.TARGET} + +realall: texinfo.cat + +CLEANFILES+= texinfo.cat +.endif + +.if ${MKNLS} != "no" +.for F in cs.gmo da.gmo de.gmo de_AT.gmo eo.gmo fr.gmo he.gmo hr.gmo ja.gmo \ + nb.gmo nl.gmo no.gmo pl.gmo ro.gmo ru.gmo sv.gmo tr.gmo zh_CN.gmo zh_TW.gmo +FILES+= ${F} +FILESDIR_${F}= /usr/share/locale/${F:.gmo=}/LC_MESSAGES +FILESNAME_${F}= texinfo.mo +.endfor +# XXX: Do we want to install the following files too? +#FILES+= txi-cs.tex txi-de.tex txi-en.tex txi-es.tex txi-fr.tex txi-it.tex \ +# txi-nl.tex txi-no.tex txi-pt.tex txi-tr.tex +.endif + +MAN= info.5 texinfo.5 + +TEXINFO= info-stnd.texi info.texi texinfo.txi + +DIST= ${NETBSDSRCDIR}/gnu/dist +IDIST= ${DIST}/texinfo +INFOFLAGS= -I${IDIST}/doc + +.PATH: ${IDIST} ${IDIST}/doc ${IDIST}/po ${IDIST}/util + +.include +.include +.include diff --git a/gnu/usr.bin/texinfo/Makefile.inc b/gnu/usr.bin/texinfo/Makefile.inc new file mode 100644 index 000000000..1af33838e --- /dev/null +++ b/gnu/usr.bin/texinfo/Makefile.inc @@ -0,0 +1,32 @@ +# $NetBSD: Makefile.inc,v 1.10 2011/05/26 12:56:29 joerg Exp $ + +.if !defined(__MAKEFILE_INC_INCLUDED__) +__MAKEFILE_INC_INCLUDED__=1 + +.include + +DIST= ${NETBSDSRCDIR}/gnu/dist +IDIST= ${DIST}/texinfo + +CPPFLAGS+= -I${.CURDIR}/../common -I${IDIST}/lib \ + -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H + +CWARNFLAGS.clang+= -Wno-format-security + +.if !defined(MAKEDOC) +DPADD+= ${LIBCOMMONDIR}/libcommon.a +LDADD+= -L${LIBCOMMONDIR} -lcommon + +.if !defined(__MINIX) +DPADD+= ${LIBINTL} +LDADD+= -lintl +.endif # !defined(__MINIX) + +LIBCOMMONDIR!= cd ${.CURDIR}/../common && ${PRINTOBJDIR} +.endif + +.if exists(${.CURDIR}/../../Makefile.inc) +.include "${.CURDIR}/../../Makefile.inc" +.endif + +.endif # __MAKEFILE_INC_INCLUDED__ diff --git a/gnu/usr.bin/texinfo/common/Makefile b/gnu/usr.bin/texinfo/common/Makefile new file mode 100644 index 000000000..4e52abddf --- /dev/null +++ b/gnu/usr.bin/texinfo/common/Makefile @@ -0,0 +1,36 @@ +# $NetBSD: Makefile,v 1.13 2008/09/03 11:58:30 lukem Exp $ + +.include "../Makefile.inc" +LIBISPRIVATE= yes + +LIB= common +SRCS+= substring.c xexit.c xmalloc.c xstrdup.c key.c doc.c + +CPPFLAGS+= -DGNULOCALEDIR=\"/usr/share/locale\" \ + -DLOCALE_ALIAS_PATH=\"/usr/share/locale:.\" \ + -I${IDIST}/info + +.include + +.PATH: ${IDIST}/lib ${IDIST}/po + +all: ${FILES} +.SUFFIXES: .gmo .mo +.gmo.mo: + ${_MKTARGET_CREATE} + @cp $< $@ + +GEN_SRCS = funs.h key.c doc.c +CLEANFILES+= ${GEN_SRCS} + +CMD_SRCS = session.c echo-area.c infodoc.c m-x.c indices.c nodemenu.c \ + footnotes.c variables.c + +MAKEDOCDIR!=cd ${.CURDIR}/../makedoc && ${PRINTOBJDIR} +MAKEDOC=${MAKEDOCDIR}/makedoc + +${GEN_SRCS}: ${MAKEDOC} ${CMD_SRCS} + ${_MKMSG_CREATE} ${GEN_SRCS} + ${.ALLSRC} + +.PATH: ${IDIST}/info ${IDIST}/doc diff --git a/gnu/usr.bin/texinfo/common/config.h b/gnu/usr.bin/texinfo/common/config.h new file mode 100644 index 000000000..4b5f57a6e --- /dev/null +++ b/gnu/usr.bin/texinfo/common/config.h @@ -0,0 +1,423 @@ +/* config.h. Generated by configure. */ +/* config.in. Generated from configure.ac by autoheader. */ + +/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP + systems. This function is required for `alloca.c' support on those systems. + */ +/* #undef CRAY_STACKSEG_END */ + +/* Define to 1 if using `alloca.c'. */ +/* #undef C_ALLOCA */ + +/* Define to 1 if translation of program messages to the user's native + language is requested. */ +#ifndef HOSTTOOL +/* #undef ENABLE_NLS */ +#endif + +/* Define to 1 if `TIOCGWINSZ' requires . */ +/* #undef GWINSZ_IN_SYS_IOCTL */ + +/* Define to 1 if you have `alloca', as a function or macro. */ +/* #undef HAVE_ALLOCA */ + +/* Define to 1 if you have and it should be used (not on Ultrix). + */ +/* #undef HAVE_ALLOCA_H */ + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_ARGZ_H */ + +/* Define to 1 if you have the `asprintf' function. */ +#define HAVE_ASPRINTF 1 + +/* Define to 1 if you have the `bzero' function. */ +#define HAVE_BZERO 1 + +/* Define if the GNU dcgettext() function is already present or preinstalled. + */ +/* #undef HAVE_DCGETTEXT */ + +/* Define to 1 if you have the declaration of `feof_unlocked', and to 0 if you + don't. */ +#define HAVE_DECL_FEOF_UNLOCKED 0 + +/* Define to 1 if you have the declaration of `fgets_unlocked', and to 0 if + you don't. */ +#define HAVE_DECL_FGETS_UNLOCKED 0 + +/* Define to 1 if you have the declaration of `getc_unlocked', and to 0 if you + don't. */ +#define HAVE_DECL_GETC_UNLOCKED 1 + +/* Define to 1 if you have the declaration of `getenv', and to 0 if you don't. + */ +#define HAVE_DECL_GETENV 1 + +/* Define to 1 if you have the declaration of `memchr', and to 0 if you don't. + */ +#define HAVE_DECL_MEMCHR 1 + +/* Define to 1 if you have the declaration of `strcoll', and to 0 if you + don't. */ +#define HAVE_DECL_STRCOLL 1 + +/* Define to 1 if you have the declaration of `strerror', and to 0 if you + don't. */ +#define HAVE_DECL_STRERROR 1 + +/* Define to 1 if you have the declaration of `_snprintf', and to 0 if you + don't. */ +#define HAVE_DECL__SNPRINTF 0 + +/* Define to 1 if you have the declaration of `_snwprintf', and to 0 if you + don't. */ +#define HAVE_DECL__SNWPRINTF 0 + +/* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */ +/* #undef HAVE_DOPRNT */ + +/* Define to 1 if you have the header file. */ +#define HAVE_FCNTL_H 1 + +/* Define to 1 if you have the `fwprintf' function. */ +#define HAVE_FWPRINTF 1 + +/* Define to 1 if you have the `getcwd' function. */ +#define HAVE_GETCWD 1 + +/* Define to 1 if you have the `getegid' function. */ +#define HAVE_GETEGID 1 + +/* Define to 1 if you have the `geteuid' function. */ +#define HAVE_GETEUID 1 + +/* Define to 1 if you have the `getgid' function. */ +#define HAVE_GETGID 1 + +/* Define to 1 if you have the `getpagesize' function. */ +#define HAVE_GETPAGESIZE 1 + +/* Define if the GNU gettext() function is already present or preinstalled. */ +/* #undef HAVE_GETTEXT */ + +/* Define to 1 if you have the `gettimeofday' function. */ +/* #undef HAVE_GETTIMEOFDAY */ + +/* Define to 1 if you have the `getuid' function. */ +#define HAVE_GETUID 1 + +/* Define if you have the iconv() function. */ +#define HAVE_ICONV 1 + +/* Define if you have the 'intmax_t' type in or . */ +#define HAVE_INTMAX_T 1 + +/* Define if exists and doesn't clash with . */ +#define HAVE_INTTYPES_H 1 + +/* Define if exists, doesn't clash with , and + declares uintmax_t. */ +#define HAVE_INTTYPES_H_WITH_UINTMAX 1 + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_IO_H */ + +/* Define if you have and nl_langinfo(CODESET). */ +#define HAVE_LANGINFO_CODESET 1 + +/* Define if your file defines LC_MESSAGES. */ +#define HAVE_LC_MESSAGES 1 + +/* Define to 1 if you have the `bsd' library (-lbsd). */ +/* #undef HAVE_LIBBSD */ + +/* Define to 1 if you have the header file. */ +#define HAVE_LIMITS_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_LOCALE_H 1 + +/* Define if you have the 'long double' type. */ +#define HAVE_LONG_DOUBLE 1 + +/* Define if you have the 'long long' type. */ +#define HAVE_LONG_LONG 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_MALLOC_H 1 + +/* Define to 1 if you have the `memcpy' function. */ +#define HAVE_MEMCPY 1 + +/* Define to 1 if you have the `memmove' function. */ +#define HAVE_MEMMOVE 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_MEMORY_H 1 + +/* Define to 1 if you have the `mempcpy' function. */ +/* #undef HAVE_MEMPCPY */ + +/* Define to 1 if you have the `memset' function. */ +#define HAVE_MEMSET 1 + +/* Define to 1 if you have the `mkstemp' function. */ +#define HAVE_MKSTEMP 1 + +/* Define to 1 if you have a working `mmap' system call. */ +/* #undef HAVE_MMAP */ + +/* Define to 1 if you have the `munmap' function. */ +/* #undef HAVE_MUNMAP */ + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_NCURSES_TERMCAP_H */ + +/* Define to 1 if you have the header file. */ +#define HAVE_NL_TYPES_H 1 + +/* Define if your printf() function supports format strings with positions. */ +#define HAVE_POSIX_PRINTF 1 + +/* Define to 1 if you have the `putenv' function. */ +#define HAVE_PUTENV 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_PWD_H 1 + +/* Define to 1 if you have the `setenv' function. */ +#define HAVE_SETENV 1 + +/* Define to 1 if you have the `setlocale' function. */ +#define HAVE_SETLOCALE 1 + +/* Define to 1 if you have the `setvbuf' function. */ +#define HAVE_SETVBUF 1 + +/* Define to 1 if you have the `sigaction' function. */ +#define HAVE_SIGACTION 1 + +/* Define to 1 if you have the `sigprocmask' function. */ +#define HAVE_SIGPROCMASK 1 + +/* Define to 1 if you have the `sigsetmask' function. */ +#define HAVE_SIGSETMASK 1 + +/* Define to 1 if you have the `snprintf' function. */ +#define HAVE_SNPRINTF 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STDDEF_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STDINT_H 1 + +/* Define if exists, doesn't clash with , and declares + uintmax_t. */ +#define HAVE_STDINT_H_WITH_UINTMAX 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STDLIB_H 1 + +/* Define to 1 if you have the `stpcpy' function. */ +/* #undef HAVE_STPCPY */ + +/* Define to 1 if you have the `strcasecmp' function. */ +#define HAVE_STRCASECMP 1 + +/* Define to 1 if you have the `strchr' function. */ +#define HAVE_STRCHR 1 + +/* Define to 1 if you have the `strcoll' function and it is properly defined. + */ +#define HAVE_STRCOLL 1 + +/* Define to 1 if you have the `strdup' function. */ +#define HAVE_STRDUP 1 + +/* Define to 1 if you have the `strerror' function. */ +#define HAVE_STRERROR 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STRINGS_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STRING_H 1 + +/* Define to 1 if you have the `strncasecmp' function. */ +#define HAVE_STRNCASECMP 1 + +/* Define to 1 if you have the `strtoul' function. */ +#define HAVE_STRTOUL 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_FCNTL_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_FILE_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_PARAM_H 1 + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_SYS_PTEM_H */ + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_STAT_H 1 + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_SYS_STREAM_H */ + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_TIME_H 1 + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_SYS_TTOLD_H */ + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_TYPES_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_WAIT_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_TERMCAP_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_TERMIOS_H 1 + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_TERMIO_H */ + +/* Define to 1 if you have the `tsearch' function. */ +#define HAVE_TSEARCH 1 + +/* Define if you have the 'uintmax_t' type in or . */ +#define HAVE_UINTMAX_T 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_UNISTD_H 1 + +/* Define if you have the 'unsigned long long' type. */ +#define HAVE_UNSIGNED_LONG_LONG 1 + +/* Define to 1 if you have the `vprintf' function. */ +#define HAVE_VPRINTF 1 + +/* Define if you have the 'wchar_t' type. */ +#define HAVE_WCHAR_T 1 + +/* Define to 1 if you have the `wcslen' function. */ +#define HAVE_WCSLEN 1 + +/* Define if you have the 'wint_t' type. */ +#define HAVE_WINT_T 1 + +/* Define to 1 if you have the `__argz_count' function. */ +/* #undef HAVE___ARGZ_COUNT */ + +/* Define to 1 if you have the `__argz_next' function. */ +/* #undef HAVE___ARGZ_NEXT */ + +/* Define to 1 if you have the `__argz_stringify' function. */ +/* #undef HAVE___ARGZ_STRINGIFY */ + +/* Define to 1 if you have the `__fsetlocking' function. */ +/* #undef HAVE___FSETLOCKING */ + +/* Define to 1 if you have the `__secure_getenv' function. */ +/* #undef HAVE___SECURE_GETENV */ + +/* Define as const if the declaration of iconv() needs const. */ +#define ICONV_CONST const + +/* Define if integer division by zero raises signal SIGFPE. */ +#define INTDIV0_RAISES_SIGFPE 1 + +/* Name of package */ +#define PACKAGE "texinfo" + +/* Define to the address where bug reports for this package should be sent. */ +#define PACKAGE_BUGREPORT "" + +/* Define to the full name of this package. */ +#define PACKAGE_NAME "GNU Texinfo" + +/* Define to the full name and version of this package. */ +#define PACKAGE_STRING "GNU Texinfo 4.8" + +/* Define to the one symbol short name of this package. */ +#define PACKAGE_TARNAME "texinfo" + +/* Define to the version of this package. */ +#define PACKAGE_VERSION "4.8" + +/* Define if exists and defines unusable PRI* macros. */ +/* #undef PRI_MACROS_BROKEN */ + +/* Define as the return type of signal handlers (`int' or `void'). */ +#define RETSIGTYPE void + +/* Define as the maximum value of type 'size_t', if the system doesn't define + it. */ +/* #undef SIZE_MAX */ + +/* If using the C implementation of alloca, define if you know the + direction of stack growth for your system; otherwise it will be + automatically deduced at run-time. + STACK_DIRECTION > 0 => grows toward higher addresses + STACK_DIRECTION < 0 => grows toward lower addresses + STACK_DIRECTION = 0 => direction of growth unknown */ +/* #undef STACK_DIRECTION */ + +/* Define to 1 if the `S_IS*' macros in do not work properly. */ +/* #undef STAT_MACROS_BROKEN */ + +/* Define to 1 if you have the ANSI C header files. */ +#define STDC_HEADERS 1 + +/* Define to 1 if your declares `struct tm'. */ +/* #undef TM_IN_SYS_TIME */ + +/* Version number of package */ +#define VERSION "4.8" + +/* Define to 1 if on MINIX. */ +/* #undef _MINIX */ + +/* Define to 2 if the system does not provide POSIX.1 features except with + this defined. */ +/* #undef _POSIX_1_SOURCE */ + +/* Define to 1 if you need to in order for `stat' and other things to work. */ +/* #undef _POSIX_SOURCE */ + +/* Define to empty if `const' does not conform to ANSI C. */ +/* #undef const */ + +/* Define to `__inline__' or `__inline' if that's what the C compiler + calls it, or to nothing if 'inline' is not supported under any name. */ +#ifndef __cplusplus +/* #undef inline */ +#endif + +/* Define to rpl_mkstemp if the replacement function should be used. */ +/* #undef mkstemp */ + +/* Define to `long' if does not define. */ +/* #undef off_t */ + +/* Define as the type of the result of subtracting two pointers, if the system + doesn't define it. */ +/* #undef ptrdiff_t */ + +/* Define to empty if the C compiler doesn't support this keyword. */ +/* #undef signed */ + +/* Define to `unsigned' if does not define. */ +/* #undef size_t */ + +/* Define to unsigned long or unsigned long long if and + don't define. */ +/* #undef uintmax_t */ diff --git a/gnu/usr.bin/texinfo/info/Makefile b/gnu/usr.bin/texinfo/info/Makefile new file mode 100644 index 000000000..3ad88df65 --- /dev/null +++ b/gnu/usr.bin/texinfo/info/Makefile @@ -0,0 +1,20 @@ +# $NetBSD: Makefile,v 1.6 2010/02/03 15:34:39 roy Exp $ + +.include + +PROG= info +SRCS= dir.c display.c dribble.c echo-area.c filesys.c \ + footnotes.c gc.c indices.c info-utils.c info.c infodoc.c \ + infomap.c m-x.c man.c nodemenu.c nodes.c search.c session.c \ + signals.c terminal.c tilde.c variables.c window.c + +COMMONDIR!=cd ${.CURDIR}/../common && ${PRINTOBJDIR} + +CPPFLAGS+= -I${IDIST}/info -I${COMMONDIR} \ + -DDEFAULT_INFOPATH=\"/usr/pkg/info:/usr/X11R6/info:/usr/X11/info:/usr/local/info:/usr/share/info:/usr/info\" +LDADD+= -lterminfo +DPADD+= ${LIBTERMINFO} + +.include + +.PATH: ${IDIST}/info ${IDIST}/doc diff --git a/gnu/usr.bin/texinfo/infokey/Makefile b/gnu/usr.bin/texinfo/infokey/Makefile new file mode 100644 index 000000000..2554f5ad6 --- /dev/null +++ b/gnu/usr.bin/texinfo/infokey/Makefile @@ -0,0 +1,10 @@ +# $NetBSD: Makefile,v 1.3 2008/09/02 08:38:36 christos Exp $ + +PROG= infokey +SRCS= infokey.c + +CPPFLAGS+= -I${IDIST}/info + +.include + +.PATH: ${IDIST}/info ${IDIST}/doc diff --git a/gnu/usr.bin/texinfo/install-info/Makefile b/gnu/usr.bin/texinfo/install-info/Makefile new file mode 100644 index 000000000..cd8225b2a --- /dev/null +++ b/gnu/usr.bin/texinfo/install-info/Makefile @@ -0,0 +1,14 @@ +# $NetBSD: Makefile,v 1.10 2004/02/09 06:52:34 lukem Exp $ + +PROG= install-info +SRCS= install-info.c + +.include + +.PATH: ${IDIST}/util ${IDIST}/doc + +infodir-meta: +.if (${MKUNPRIVED} != "no" && ${MKINFO} != "no") + echo "./usr/share/info/dir type=file mode=0644 uname=${BINOWN} gname=${BINGRP}" \ + | ${METALOG.add} +.endif diff --git a/gnu/usr.bin/texinfo/makedoc/Makefile b/gnu/usr.bin/texinfo/makedoc/Makefile new file mode 100644 index 000000000..ea7e579a3 --- /dev/null +++ b/gnu/usr.bin/texinfo/makedoc/Makefile @@ -0,0 +1,15 @@ +# $NetBSD: Makefile,v 1.4 2008/09/09 06:31:33 lukem Exp $ + +NOMAN= +MAKEDOC= + +.include "../Makefile.inc" + +HOSTPROG= makedoc +SRCS= makedoc.c xexit.c xmalloc.c xstrdup.c + +.PATH: ${IDIST}/info ${IDIST}/lib +HOST_CPPFLAGS+= -I${IDIST}/info -I${IDIST}/lib -I${.CURDIR}/../common +HOST_CPPFLAGS+= -DHOSTTOOL + +.include diff --git a/gnu/usr.bin/texinfo/makeinfo/Makefile b/gnu/usr.bin/texinfo/makeinfo/Makefile new file mode 100644 index 000000000..94e81e906 --- /dev/null +++ b/gnu/usr.bin/texinfo/makeinfo/Makefile @@ -0,0 +1,15 @@ +# $NetBSD: Makefile,v 1.7 2011/05/26 12:56:29 joerg Exp $ + +PROG= makeinfo +SRCS= cmds.c defun.c files.c float.c footnote.c \ + html.c index.c insertion.c lang.c \ + macro.c makeinfo.c multi.c node.c \ + sectioning.c toc.c xml.c xref.c + +CPPFLAGS+= -I${IDIST}/makeinfo + +WARNS?= 0 # pointer sign issues + +.include + +.PATH: ${IDIST}/makeinfo ${IDIST}/doc diff --git a/gnu/usr.bin/texinfo/patches/0000-texinfo-nbsd.patch b/gnu/usr.bin/texinfo/patches/0000-texinfo-nbsd.patch new file mode 100644 index 000000000..b67aa18d2 --- /dev/null +++ b/gnu/usr.bin/texinfo/patches/0000-texinfo-nbsd.patch @@ -0,0 +1,4097 @@ +diff -r -x CVS -N -U 3 texinfo.orig/AUTHORS texinfo.nbsd/AUTHORS +--- texinfo.orig/AUTHORS 2004-04-11 19:56:45.000000000 +0200 ++++ texinfo.nbsd/AUTHORS 2013-04-10 22:45:11.330839295 +0200 +@@ -1,4 +1,4 @@ +-$Id: AUTHORS,v 1.10 2004/04/11 17:56:45 karl Exp $ ++Id: AUTHORS,v 1.10 2004/04/11 17:56:45 karl Exp + Texinfo authors. + + Copyright (C) 2003 Free Software Foundation, Inc. +diff -r -x CVS -N -U 3 texinfo.orig/config.guess texinfo.nbsd/config.guess +--- texinfo.orig/config.guess 2004-11-14 14:10:31.000000000 +0100 ++++ texinfo.nbsd/config.guess 2013-04-10 22:45:11.334172695 +0200 +@@ -923,6 +923,9 @@ + sparc:Linux:*:* | sparc64:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit 0 ;; ++ tile*:Linux:*:*) ++ echo ${UNAME_MACHINE}-unknown-linux-gnu ++ exit 0 ;; + x86_64:Linux:*:*) + echo x86_64-unknown-linux-gnu + exit 0 ;; +diff -r -x CVS -N -U 3 texinfo.orig/configure texinfo.nbsd/configure +--- texinfo.orig/configure 2004-12-31 19:01:50.000000000 +0100 ++++ texinfo.nbsd/configure 2013-04-10 22:45:11.334172695 +0200 +@@ -1771,6 +1771,30 @@ + + + ++echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 ++echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 ++ # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. ++if test "${enable_maintainer_mode+set}" = set; then ++ enableval="$enable_maintainer_mode" ++ USE_MAINTAINER_MODE=$enableval ++else ++ USE_MAINTAINER_MODE=no ++fi; ++ echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 ++echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 ++ ++ ++if test $USE_MAINTAINER_MODE = yes; then ++ MAINTAINER_MODE_TRUE= ++ MAINTAINER_MODE_FALSE='#' ++else ++ MAINTAINER_MODE_TRUE='#' ++ MAINTAINER_MODE_FALSE= ++fi ++ ++ MAINT=$MAINTAINER_MODE_TRUE ++ ++ + + # When the Texinfo source is imported into other repositories + # (NetBSD and TeX Live), timestamps are generally not preserved. This +diff -r -x CVS -N -U 3 texinfo.orig/configure.ac texinfo.nbsd/configure.ac +--- texinfo.orig/configure.ac 2004-12-31 19:00:48.000000000 +0100 ++++ texinfo.nbsd/configure.ac 2013-04-10 22:45:11.334172695 +0200 +@@ -1,5 +1,5 @@ + # Process this file with autoconf to produce a configure script. +-# $Id: configure.ac,v 1.50 2004/12/22 13:29:44 karl Exp $ ++# Id: configure.ac,v 1.50 2004/12/22 13:29:44 karl Exp + # + # This file is free software; as a special exception the author gives + # unlimited permission to copy and/or distribute it, with or without +diff -r -x CVS -N -U 3 texinfo.orig/djgpp/config.bat texinfo.nbsd/djgpp/config.bat +--- texinfo.orig/djgpp/config.bat 2004-12-17 23:47:55.000000000 +0100 ++++ texinfo.nbsd/djgpp/config.bat 1970-01-01 01:00:00.000000000 +0100 +@@ -1,240 +0,0 @@ +-@echo off +- +-echo Configuring GNU Texinfo for DJGPP v2.x... +- +-Rem The small_env tests protect against fixed and too small size +-Rem of the environment in stock DOS shell. +- +-Rem Find out if NLS is wanted or not, if dependency-tracking is +-Rem wanted or not, if cache is wanted or not, and where the sources are. +-set ARGS= +-set NLS=disabled +-if not "%NLS%" == "disabled" goto small_env +-set CACHE=enabled +-if not "%CACHE%" == "enabled" goto small_env +-set DEPTRAK=disabled +-if not "%DEPTRAK%" == "disabled" goto small_env +-set XSRC=. +-if not "%XSRC%" == "." goto small_env +- +-Rem Loop over all arguments. +-Rem Special arguments are: NLS, XSRC CACHE and DEPS. +-Rem All other arguments are stored into ARGS. +-:arg_loop +-set SPECARG=0 +-if not "%SPECARG%" == "0" goto small_env +-if not "%1" == "NLS" if not "%1" == "nls" goto cache_opt +-if "%1" == "nls" set NLS=enabled +-if "%1" == "NLS" set NLS=enabled +-if not "%NLS%" == "enabled" goto small_env +-set SPECARG=1 +-if not "%SPECARG%" == "1" goto small_env +-shift +-:cache_opt +-set SPECARG=0 +-if not "%SPECARG%" == "0" goto small_env +-if "%1" == "no-cache" goto cache_off +-if "%1" == "no-CACHE" goto cache_off +-if not "%1" == "NO-CACHE" goto dependency_opt +-:cache_off +-if "%1" == "no-cache" set CACHE=disabled +-if "%1" == "no-CACHE" set CACHE=disabled +-if "%1" == "NO-CACHE" set CACHE=disabled +-if not "%CACHE%" == "disabled" goto small_env +-set SPECARG=1 +-if not "%SPECARG%" == "1" goto small_env +-shift +-:dependency_opt +-set SPECARG=0 +-if not "%SPECARG%" == "0" goto small_env +-if "%1" == "dep" goto dep_off +-if not "%1" == "DEP" goto src_dir_opt +-:dep_off +-if "%1" == "dep" set DEPTRAK=enabled +-if "%1" == "DEP" set DEPTRAK=enabled +-if not "%DEPTRAK%" == "enabled" goto small_env +-set SPECARG=1 +-if not "%SPECARG%" == "1" goto small_env +-shift +-:src_dir_opt +-set SPECARG=0 +-if not "%SPECARG%" == "0" goto small_env +-echo %1 | grep -q "/" +-if errorlevel 1 goto collect_arg +-set XSRC=%1 +-if not "%XSRC%" == "%1" goto small_env +-set SPECARG=1 +-if not "%SPECARG%" == "1" goto small_env +-:collect_arg +-if "%SPECARG%" == "0" set _ARGS=%ARGS% %1 +-if "%SPECARG%" == "0" if not "%_ARGS%" == "%ARGS% %1" goto small_env +-echo %_ARGS% | grep -q "[^ ]" +-if not errorlevel 0 set ARGS=%_ARGS% +-set _ARGS= +-shift +-if not "%1" == "" goto arg_loop +-set SPECARG= +- +-Rem Create a response file for the configure script. +-echo --srcdir=%XSRC% > arguments +-if "%CACHE%" == "enabled" echo --config-cache >>arguments +-if "%DEPTRAK%" == "enabled" echo --enable-dependency-tracking >>arguments +-if "%DEPTRAK%" == "disabled" echo --disable-dependency-tracking >>arguments +-if not "%ARGS%" == "" echo %ARGS% >>arguments +-set ARGS= +-set CACHE= +-set DEPTRAK= +- +-if "%XSRC%" == "." goto in_place +- +-:not_in_place +-redir -e /dev/null update %XSRC%/configure.orig ./configure +-test -f ./configure +-if errorlevel 1 update %XSRC%/configure ./configure +- +-:in_place +-Rem Update configuration files +-echo Updating configuration scripts... +-test -f ./configure.orig +-if errorlevel 1 update configure configure.orig +-sed -f %XSRC%/djgpp/config.sed configure.orig > configure +-if errorlevel 1 goto sed_error +- +-Rem Make sure they have a config.site file +-set CONFIG_SITE=%XSRC%/djgpp/config.site +-if not "%CONFIG_SITE%" == "%XSRC%/djgpp/config.site" goto small_env +- +-Rem Make sure crucial file names are not munged by unpacking +-test -f %XSRC%/po/Makefile.in.in +-if not errorlevel 1 mv -f %XSRC%/po/Makefile.in.in %XSRC%/po/Makefile.in-in +-test -f %XSRC%/po/Makefile.am.in +-if not errorlevel 1 mv -f %XSRC%/po/Makefile.am.in %XSRC%/po/Makefile.am-in +- +-Rem This is required because DOS/Windows are case-insensitive +-Rem to file names, and "make install" will do nothing if Make +-Rem finds a file called `install'. +-if exist INSTALL ren INSTALL INSTALL.txt +- +-Rem Set HOME to a sane default so configure stops complaining. +-if not "%HOME%" == "" goto host_name +-set HOME=%XSRC%/djgpp +-if not "%HOME%" == "%XSRC%/djgpp" goto small_env +-echo No HOME found in the environment, using default value +- +-:host_name +-Rem Set HOSTNAME so it shows in config.status +-if not "%HOSTNAME%" == "" goto hostdone +-if "%windir%" == "" goto msdos +-set OS=MS-Windows +-if not "%OS%" == "MS-Windows" goto small_env +-goto haveos +-:msdos +-set OS=MS-DOS +-if not "%OS%" == "MS-DOS" goto small_env +-:haveos +-if not "%USERNAME%" == "" goto haveuname +-if not "%USER%" == "" goto haveuser +-echo No USERNAME and no USER found in the environment, using default values +-set HOSTNAME=Unknown PC +-if not "%HOSTNAME%" == "Unknown PC" goto small_env +-goto userdone +-:haveuser +-set HOSTNAME=%USER%'s PC +-if not "%HOSTNAME%" == "%USER%'s PC" goto small_env +-goto userdone +-:haveuname +-set HOSTNAME=%USERNAME%'s PC +-if not "%HOSTNAME%" == "%USERNAME%'s PC" goto small_env +-:userdone +-set _HOSTNAME=%HOSTNAME%, %OS% +-if not "%_HOSTNAME%" == "%HOSTNAME%, %OS%" goto small_env +-set HOSTNAME=%_HOSTNAME% +-:hostdone +-set _HOSTNAME= +-set OS= +- +-Rem install-sh is required by the configure script but clashes with the +-Rem various Makefile install-foo targets, so we MUST have it before the +-Rem script runs and rename it afterwards +-test -f %XSRC%/install-sh +-if not errorlevel 1 goto no_ren0 +-test -f %XSRC%/install-sh.sh +-if not errorlevel 1 mv -f %XSRC%/install-sh.sh %XSRC%/install-sh +-:no_ren0 +- +-if "%NLS%" == "disabled" goto without_NLS +- +-:with_NLS +-Rem Check for the needed libraries and binaries. +-test -x /dev/env/DJDIR/bin/msgfmt.exe +-if not errorlevel 0 goto missing_NLS_tools +-test -x /dev/env/DJDIR/bin/xgettext.exe +-if not errorlevel 0 goto missing_NLS_tools +-test -f /dev/env/DJDIR/include/libcharset.h +-if not errorlevel 0 goto missing_NLS_tools +-test -f /dev/env/DJDIR/lib/libcharset.a +-if not errorlevel 0 goto missing_NLS_tools +-test -f /dev/env/DJDIR/include/iconv.h +-if not errorlevel 0 goto missing_NLS_tools +-test -f /dev/env/DJDIR/lib/libiconv.a +-if not errorlevel 0 goto missing_NLS_tools +-test -f /dev/env/DJDIR/include/libintl.h +-if not errorlevel 0 goto missing_NLS_tools +-test -f /dev/env/DJDIR/lib/libintl.a +-if not errorlevel 0 goto missing_NLS_tools +- +-Rem Recreate the files in the %XSRC%/po subdir with our ported tools. +-redir -e /dev/null rm %XSRC%/po/*.gmo +-redir -e /dev/null rm %XSRC%/po/diffutil*.pot +-redir -e /dev/null rm %XSRC%/po/cat-id-tbl.c +-redir -e /dev/null rm %XSRC%/po/stamp-cat-id +- +-Rem Update the arguments file for the configure script. +-Rem We prefer without-included-gettext because libintl.a from gettext package +-Rem is the only one that is guaranteed to have been ported to DJGPP. +-echo --enable-nls --without-included-gettext >> arguments +-goto configure_package +- +-:missing_NLS_tools +-echo Needed libs/tools for NLS not found. Configuring without NLS. +-:without_NLS +-Rem Update the arguments file for the configure script. +-echo --disable-nls >> arguments +- +-:configure_package +-echo Running the ./configure script... +-sh ./configure @arguments +-if errorlevel 1 goto cfg_error +-rm arguments +- +-Rem Remove files created by the gl_FUNC_MKSTEMP test. +-rm co*.tmp +-echo Done. +-goto End +- +-:sed_error +-echo ./configure script editing failed! +-goto End +- +-:cfg_error +-echo ./configure script exited abnormally! +-goto End +- +-:small_env +-echo Your environment size is too small. Enlarge it and run me again. +-echo Configuration NOT done! +- +-:End +-test -f %XSRC%/install-sh.sh +-if not errorlevel 1 goto no_ren1 +-test -f %XSRC%/install-sh +-if not errorlevel 1 mv -f %XSRC%/install-sh %XSRC%/install-sh.sh +-:no_ren1 +-if "%HOME%" == "%XSRC%/djgpp" set HOME= +-set ARGS= +-set CONFIG_SITE= +-set HOSTNAME= +-set NLS= +-set CACHE= +-set DEPTRAK= +-set XSRC= +diff -r -x CVS -N -U 3 texinfo.orig/djgpp/config.sed texinfo.nbsd/djgpp/config.sed +--- texinfo.orig/djgpp/config.sed 2004-12-15 15:59:22.000000000 +0100 ++++ texinfo.nbsd/djgpp/config.sed 1970-01-01 01:00:00.000000000 +0100 +@@ -1,67 +0,0 @@ +-# Additional editing of configure and Makefiles for DJGPP +- +-/(echo[ ]*':t/ a\ +-# DJGPP specific Makefile changes.\ +- /^aliaspath * *=/s,:,";",g;t t\ +- /TEXINPUTS=/s,:,";",g;t t\ +- /PATH=/s,:,";",g;t t\ +- s,\\.deps,_deps,g;t t\ +- s,\\.new\\.,_new.,g;t t\ +- s,\\.old\\.,_old.,g;t t\ +- s,\\.tab\\.,_tab.,g;t t\ +- s,Makefile\\.in\\.in,Makefile.in-in,g;t t\ +- s,Makefile\\.am\\.in,Makefile.am-in,g;t t\ +- /^install-info-am:/,/^$/ {\ +- /@list=.\\\$(INFO_DEPS)\[^ \]/s,DEPS),& texinf- texin- info-stn.i info.inf,\ +- s,\\(\\\$\\\$d/\\\$\\\$file-\\[0-9\\]\\[0-9\\]\\)\\(\[^ \]\\),\\1 \\$\\$d/\\$\\$file[0-9] \\$\\$d/\\$\\$file[0-9][0-9]\\2,\ +- s,\\( \\\$\\\$file-\\[0-9\\]\\[0-9\\]\\)\\(\[^ \]\\),\\1 \\$\\$file[0-9] \\$\\$file[0-9][0-9]\\2,\ +- }\ +- /^uninstall-info-am:/,/^$/ {\ +- /@list=.\\\$(INFO_DEPS)\[^ \]/s,DEPS),& texinf- texin- info-stn.i info.inf,\ +- s,\\(file-\\[0-9\\]\\[0-9\\]\\)\\(\[^ \]\\),\\1 \\$\\$file[0-9] \\$\\$file[0-9][0-9]\\2,\ +- } +- +-# Makefile.in.in is renamed to Makefile.in-in. +-/ac_config_files=/,/_ACEOF/ { +- s|po/Makefile\.in|&:po/Makefile.in-in| +-} +-/CONFIG_FILES=/ s|po/Makefile\.in|&:po/Makefile.in-in|2 +- +-# We always use _deps instead of .deps, because the latter is an +-# invalid name on 8+3 MS-DOS filesystem. This makes the generated +-# Makefiles good for every DJGPP installation, not only the one +-# where the package was configured (which could happen to be a +-# Windows box, where leading dots in file names are allowed). +-s,\.deps,_deps,g +- +-# The following two items are changes needed for configuring +-# and compiling across partitions. +-# The given srcdir value is always translated from the +-# "x:" syntax into "/dev/x" syntax while we run configure. +-/^[ ]*-srcdir=\*.*$/ a\ +- ac_optarg=`echo "$ac_optarg" | sed "s,^\\([A-Za-z]\\):,/dev/\\1,"` +-/set X `ls -Lt \$srcdir/ i\ +- if `echo $srcdir | grep "^/dev/" - > /dev/null`; then\ +- srcdir=`echo "$srcdir" | sed -e "s%^/dev/%%" -e "s%/%:/%"`\ +- fi +- +-# Autoconf 2.52e generated configure scripts +-# write absolute paths into Makefiles making +-# them useless for DJGPP installations for which +-# the package has not been configured for. +-/MISSING=/,/^$/ { +- /^fi$/ a\ +-am_missing_run=`echo "$am_missing_run" | sed 's%/dev.*/texinfo-\\{0,1\\}4\\.[0-9][a-z]\\{0,1\\}%${top_srcdir}%;s%.:.*/texinfo-\\{0,1\\}4\\.[0-9][a-z]\\{0,1\\}%${top_srcdir}%'` +-} +-/^install_sh=/a\ +-install_sh=`echo "$install_sh" | sed 's%/dev.*/texinfo-\\{0,1\\}4\\.[0-9][a-z]\\{0,1\\}%${top_srcdir}%;s%.:.*/texinfo-\\{0,1\\}4\\.[0-9][a-z]\\{0,1\\}%${top_srcdir}%'` +- +-# The following makes sure we are not going to remove a directory +-# which is the cwd on its drive (DOS doesn't allow to remove such +-# a directory). The trick is to chdir to the root directory on +-# temp directory's drive before removing $tmp. +-/^ *trap 'exit_status=\$\?; rm -rf/s%rm -rf%cd $tmp; cd /; &% +- +-# AC_CONFIG_LINKS fails if the source and destination are on +-# different file systems and symlinks don't work. +-/^ ln \$srcdir/s%||%|| cp -pf $srcdir/$ac_source $ac_dest ||% +diff -r -x CVS -N -U 3 texinfo.orig/djgpp/config.site texinfo.nbsd/djgpp/config.site +--- texinfo.orig/djgpp/config.site 2002-09-27 00:01:10.000000000 +0200 ++++ texinfo.nbsd/djgpp/config.site 1970-01-01 01:00:00.000000000 +0100 +@@ -1,53 +0,0 @@ +-#! /bin/sh +-# Site defaults for the DJGPP configuration +- +-# These two variables are required, otherwise looking for +-# programs along the PATH will not work. +-PATH_SEPARATOR=: +-PATH_EXPAND=y +- +-# This is required in for "test -f foo" to find foo.exe. +-export TEST_FINDS_EXE=y +- +-# The root of the DJGPP tree serves as the default prefix +-# for all paths that are hardcoded in the binaries. +-# When installing the installation prefix must be supplied. +-test "x$prefix" = xNONE && prefix='/dev/env/DJDIR' +- +-# This is required for config.status script to be run, since +-# ./configure runs it by invoking ${CONFIG_SHELL-/bin/sh} +-# CONFIG_SHELL=${CONFIG_SHELL='sh'} +- +-# These are set here so the generated Makefile's will be good +-# for every DJGPP installation, not only the one where the +-# package was configured. +-# $INSTALL must be an absolute path name, otherwise config.status +-# will try to prepend ./ and ../ to it when it goes into subdirs. +-INSTALL=${INSTALL='/dev/env/DJDIR/bin/ginstall -c'} +-RANLIB=${RANLIB='ranlib'} +-GMSGFMT=${GMSGFMT='/dev/env/DJDIR/bin/msgfmt'} +-MSGFMT=${MSGFMT='/dev/env/DJDIR/bin/msgfmt'} +-XGETTEXT=${XGETTEXT='/dev/env/DJDIR/bin/xgettext'} +- +-# Sane defaults for standard programs used by the build process. +-# We force the values of these variables so that the resultant +-# Makefile's will work on any DJGPP platform, not only on the +-# machine where the package was configured. +-ac_cv_prog_AWK=${AWK='gawk'} +-ac_cv_prog_INTLBISON=${INTLBISON='bison'} +-ac_cv_prog_CC=${CC='gcc'} +- +-# These are set here so the generated libtool/Makefile's will +-# be good for every DJGPP installation, not only the one where +-# the package was configured. +-NM=${NM='nm'} +-LD=${LD='ld'} +-MAKEINFO=${MAKEINFO='makeinfo'} +- +-# Force the test for 'ln -s' to report 'cp -pf'. +-ac_cv_prog_LN_S='cp -pf' +- +-# We have `fork', but it always fails. Don't trust Autoconf to be +-# smart enough to detect that... +-ac_cv_func_fork=no +-ac_cv_func_vfork=no +diff -r -x CVS -N -U 3 texinfo.orig/djgpp/README texinfo.nbsd/djgpp/README +--- texinfo.orig/djgpp/README 2002-09-27 00:01:10.000000000 +0200 ++++ texinfo.nbsd/djgpp/README 1970-01-01 01:00:00.000000000 +0100 +@@ -1,431 +0,0 @@ +-Building and installing GNU Texinfo with DJGPP v2.x +-=================================================== +- +-This directory holds files required for building Texinfo with DJGPP +-tools for MS-DOS and MS-Windows. If you got this file with a binary +-distribution, look for the "Installation" section below. +- +- +-1. Building Texinfo +- ---------------- +- +- a. To compile Texinfo, you will need the following tools: +- +- - basic DJGPP development environment: GCC, Binutils and djdev; +- - a DJGPP port of GNU Make version 3.78 or later; +- - a DJGPP port of Bash 2.04 or later; +- - a port of GNU Sed 3.02 or later; +- - DJGPP ports of Fileutils, Textutils, Sh-utils, Diffutils, +- Gawk and Grep; +- - etags (from the Emacs distribution) and mkid (from ID-utils) +- if you need the TAGS and ID targets of the Makefile's. +- +- All of the above are available from the DJGPP ftp sites on +- SimTel.NET mirrors, in the v2gnu directory. +- +- b. From the root of your DJGPP installation, unzip the source package: +- +- - if you are unpacking the official GNU source distribution: +- +- tar -xvzf texinfo-X.YZ.tar.gz +- +- or +- +- djtar -x texinfo-X.YZ.tar.gz +- +- where X.YZ is the version number. (Users of MS-DOS and +- MS-Windows 3.X, which don't support long file names, will need +- to rename the archive to something like texi-XYZ.tgz.) +- +- - if you are unpacking a source distribution from a DJGPP ftp +- site: +- +- unzip txiXYZs +- +- or +- +- pkunzip -d txiXYZs +- +- If you build Texinfo on Windows 9X, Windows ME, Windows 2000 or +- Windows XP, you are advised to use a version of Unzip which +- supports long filenames, so that the original long filenames of +- the source files will be preserved. Otherwise, the build +- procedure will most probably fail. +- +- Do NOT use an unzip program which supports long file names on +- Windows NT 4, as DJGPP doesn't support long names there. +- +- The program unzip32.exe, available from the SimTel.NET site, +- will deal correctly with long file names on any platform, so it +- is the recommended way of unzipping txiXYZs.zip archives. +- +- c. If the source distribution comes with a ready Makefile (this is +- usually the case with archives downloaded from the DJGPP sites), +- and all you need is to build Texinfo, you may skip the configure +- step below and go directly to step e. +- +- d. To build the official GNU distribution, or to configure Texinfo +- for any environment but stock DJGPP v2.x, run djgpp\config.bat +- first, like this: +- +- SRCDIR\djgpp\config SRCDIR +- +- Here SRCDIR is the directory where you unpacked the sources. If +- you are configuring from the source directory itself, you may +- omit the argument to the config.bat file. If you do supply the +- argument, you MUST use forward slashes in it, or else the batch +- file might fail. +- +- config.bat sets some environment variables, then invokes the +- configure script. The script will run for a few minutes and +- create Makefile's in all the directories, and the config.h file. +- +- e. Run `Make'. This builds the programs and the Info files. +- +- +- +-2. Installation +- ------------ +- +- a. If you are installing the binary distribution, then go to your +- main DJGPP directory and unzip the files. For instance, if your +- DJGPP installation is rooted on C:\DJGPP, then type this (XYZ is +- the version number): +- +- cd c:\djgpp +- unzip txiXYZb +- +- or, if you prefer `pkunzip': +- +- pkunzip -d txiXYZb +- +- b. If you downloaded and built Texinfo from sources, install by +- invoking Make: +- +- make install +- +- This requires a port of Unix-like program `install.exe'. It is +- available from the DJGPP port of GNU Fileutils on SimTel.NET. +- +- c. Info needs a file named DIR with the top-level menu of all the +- Info files installed on your system. If you installed the DJGPP +- development environment (djdevNN.zip), then you already have +- this file in the info/ subdirectory of your DJGPP installation. +- Otherwise, you will need to create it. A minimal DIR file is +- available in this distribution under the name `dir-example', +- which you can use as a starting point. Copy it to the directory +- where you install the Info files from this distribution. +- +- Even if you already have a DIR file, you should review it to +- make sure it is consistent with the names of the Info file you +- are installing. Here's how your Texinfo-related entries in DIR +- should look like: +- +- * Info: (info). +- Documentation browsing system. This topic teaches you about +- how to use the online help information. +- +- * Info-Standalone: (info-stnd). +- This topic helps you use the standalone Info-Program (info.exe) +- +- * infokey: (info-stnd)Invoking infokey. +- Compile Info key customizations. +- +- * Makeinfo: (texinfo)Invoking makeinfo. +- Convert a .texinfo file (.txi) to an info file suitable for the +- info reader or Emacs, into plain ASCII, into HTML, into XML, +- or into DocBook. +- +- * Texinfo: (texinfo). +- With one source file, make either a printed manual (through TeX) +- or an on-line manual (through makeinfo). This topic includes +- a full description of the Texinfo language and related +- facilities, including Emacs commands to work with Texinfo files. +- +- * install-info: (texinfo)Invoking install-info. +- How to update info/dir entries when installing GNU packages. +- +- * texi2dvi: (texinfo)Format with texi2dvi. +- Printing Texinfo documentation with TeX. +- +- * texindex: (texinfo)Format with tex/texindex. +- Sorting Texinfo index files automatically. +- +- +- Note that the asterisk `*' should be flushed all the way to the +- left, it is indented here just to make reading more convenient. +- +- If your DIR file entries differ from these, I suggest to edit them +- so they are as shown above. Otherwise, Info might not be able to +- find some of the files. You HAVE been warned! +- +- d. Optionally, set up environment variables for Info. These are: +- +- * INFO_LINES -- screen size for Info. +- * INFO_COLORS -- screen colors for Info. +- +- (If you have DJGPP installed on your system, the file djgpp.env +- which comes with it already has entries for Info, see the [info] +- section there.) +- +- INFO_LINES can be one of 25 (the default), 28, 35, 40, 43, or 50 +- (that's if you have a VGA; EGAs only support 25, 35 and 43 lines). +- I recommend 40 if your monitor is 17" or larger, and at least 28 +- lines for smaller monitors (I work with 40 lines even on 14" +- monitors). +- +- INFO_COLORS should have the following syntax: +- +- set INFO_COLORS=XX.YY +- +- where XX is the text attribute for text displayed in the text +- windows and the echo area, and YY is the text attribute for the +- modeline (aka the status line). Each attribute is a numeric +- value of a byte which describes the desired combination of +- foreground and background colors. The individual bits in the +- attribute byte are defined as follows: +- +- bBBBFFFF +- +- where `b' is the blink bit, `BBB' are the 3 bits for background +- color and `FFFF' are the 4 bits for the foreground color. This is +- the usual PC text attribute byte structure, and is further explained +- in any standard reference on text-mode programming for the PC. +- +- My favorite setting for INFO_COLORS is `0x1e.0x31'. This makes +- Info use yellow foreground on blue background for the text and +- blue foreground on cyan background for the modelines. +- +- After you've played with these variables and have chosen the values +- you like, it's a good idea to put them on the DJGPP.ENV file, in the +- [info] section. +- +- e. Beginning with version 3.6, GNU Info can read Unix man pages. If +- you have a `man' clone on your system and would like to be able to +- read man pages with Info, read the chapter ``Reading Man Pages'' +- below. One such clone is available as v2apps/manXYb.zip from +- the DJGPP sites (XY is the version number). +- +- f. This port supports compressed Info files, like what Info under Unix +- gives you. For this to work, you will need to install a DOS port of +- GNU `Gzip' package and to observe certain rules of file naming, so +- that Info will find the compressed files working around the DOS 8.3 +- filename restriction. The chapter ``Compressed Info Files'' below +- explains the details of this. +- +- g. If you need to use the `print-node' command, read the chapter +- ``Printing Nodes'' below. +- +- h. That's it! You are now ready to use Info, Makeinfo, and Texindex. +- To learn about them, type `Info' and press [Enter]. You will be +- presented with the top-level menu of GNU/DJGPP hypertext +- documentation. If you are unfamiliar with Info, press `?' to see +- the available commands. Pressing `h' will cause Info to take you on +- a guided tour through its features (recommended for first-time +- users). +- +- i. If you are used to Info ports of versions before 3.6, you should +- know that the command bindings to PC-specific keys has changed: the +- numeric keypad keys invoke the same commands as their extended +- namesakes. That is, e.g., the key `PgUp' on the numeric keypad +- invokes the same command as the grey `PgUp' key on the extended +- keypad. This was done at DJ's request, because laptop machines +- don't have extended keys. Commands to move between nodes +- (previously bound to numeric keypad) are now bound to Ctrl- +- varieties of numeric keypad keys (e.g., `next-node' is on +- `Ctrl-PgDn', `prev-node' is on `Ctrl-PgUp', etc.). You can use +- the `Alt-x describe-key' command to see which command is invoked +- by a particular key. +- +- j. There are several MSDOS-specific changes in Texinfo, relative to +- previous Texinfo ports (for other changes, see the file NEWS): +- +- * Full support for both forward and backslashes in all file +- names. Previously, Info was sensitive to the style of +- slashes in directories mentioned in the INFOPATH environment +- variable. +- +- * The default operation of the `print-node' command has been +- changed so that it automatically prints to the local printer +- device connected to the PRN port. (If your printer is +- connected to another port, set the INFO_PRINT_COMMAND +- environment variable like this: +- +- set INFO_PRINT_COMMAND=>LPT2 +- +- In other words, if the value of INFO_PRINT_COMMAND begins +- wih a `>' character, Info will write to the file or device +- whose name follows the `>' character. (Don't leave any +- blanks between `>' and the device name!). +- +- Note that some old versions of stock DOS shell won't let you +- use the `>' character in environment variables set from the +- DOS prompt or batch files, but you can set it in the [info] +- section of your DJGPP.ENV file. +- +- * The `set-screen-height' command now actually changes the +- screen dimensions from within Info if you specify one of the +- sizes supported by your video hardware. +- +- * If you don't have a `man' clone installed, and you invoke +- Info with a name of a document which Info cannot find, it +- will no longer wait for 15 seconds. +- +- * Several bugs in handling of man pages were corrected. +- +- * Info opens the dribble and input files in BINARY mode. This +- allows to record keystrokes and restore them in another Info +- session, thus using dribble files as a startup or init file +- which changes default behavior, binds keys, etc. +- +- * Info recognizes a new DOS-specific command-line option `-b' +- or `--speech-friendly'. This option causes Info to use DOS +- I/O functions (`printf', `puts', etc.) instead of direct +- screen writes, which is required to enable speech +- synthesizer software (used by visually-impaired people) to +- grab the output. When this option is given, the screen +- colors defined by the `INFO_COLORS' environment variable and +- the visible-bell feature will be disabled, because stdio +- functions don't support neither color text nor inverting +- screen colors. This improvement was suggested and +- originally implemented by Hans-Bernhard Broeker +- . +- +- * Makeinfo now generates full .info-NN filenames when long +- filenames are supported (e.g. on Win9x) and short .iNN +- filenames otherwise. When the Texinfo source or the +- command-line parameter -o specify an output file with no +- extension (like `texinfo'), and long filenames aren't +- supported, Makeinfo will make sure the generated names will +- be unique (it will create e.g. `texinf-1', `texin-10' etc.). +- +- * The texi2dvi script is now fully compatible with +- MS-DOS/MS-Windows and with the DJGPP port of TeX. +- +- +-3. Reading Man Pages +- ----------------- +- +- Yes, Info can now read man pages! This port supports that feature, +- but for it to work, you will have to make sure your `man' clone is +- set up correctly: +- +- a. You should have an executable file named `man.exe', `man.com' +- etc. somewhere on your PATH. +- +- b. When invoked with redirected stdout, that executable should +- print the contents of the file it gets as its argument to stdout +- and exit. If your man command calls some pager, that pager +- should have this behavior (various ports of Unix command `more' +- and the DJGPP port of GNU Less behave that way). +- +- One `man' clone is available as v2apps/manNNb.zip from the DJGPP +- sites on SimTel.NET. +- +- +-4. Compressed Info Files +- --------------------- +- +- Info allows you to hold your Info files in compressed form, to save +- disk space. When a file Info wants cannot be found, it will +- automatically try to find that file in compressed form. Info does +- this by trying to find the original file with specific extensions. +- Each extension tells Info which program should be called to +- decompress the file. +- +- This port supports compression by the GNU Gzip program. When Info +- cannot find a file `foo', it will first try to find `foo.z' or +- `foo.gz'. If this fails, and the file has an extension, the last +- one or two characters of the extension are replaced by `z' and `gz' +- respectively, and Info tries again. If it finds any of these, it +- will call the `GUnzip' program to decompress the file, catch its +- output and display it. (The original compressed file stays +- intact.) +- +- So, to use this feature, compress your files with Gzip and call the +- compressed files using the following as guidelines: +- +- foo --> foo.gz +- foo.inf --> foo.igz +- foo.i5 --> foo.i5z +- foo.25 --> foo.25z +- +- If you have a package whose Info docs are split into more than 9 +- sub-files and you need to compress those files, you will have to +- rename the sub-files from `foo.iNN' to `foo.NN' so that there will +- be place for the trailing `z' in the compressed names. Don't +- forget to edit the indirect file table in the main Info file and +- change the sub-file filenames there too! +- +- An alternative for those packages which have more than 99 Info +- sub-files is to generate them from the Texinfo sources and force +- Makeinfo to produce files without the .iNN extensions, like this: +- +- makeinfo -o foo foo.txi +- +- This causes Makeinfo to generate file names like foo-1, foo-2, +- etc., which leave more place for the numeric index. If necessary, +- Makeinfo will automatically remove characters from the end of the +- argument to `-o'. For example, "-o texinfo" produces files +- texinf-1, ..., texin-10, ..., texi-100, etc. on platforms which +- only support 8+3 file names. +- +- Saying "@setfilename foo" near the beginning of the Texinfo source +- file is another way of forcing Makeinfo to produce files without +- the .iNN extensions. +- +- Using Makeinfo to produce files whose names are "compression-ready" +- is more convenient, since you don't need to edit the the indirect +- file table to reflect the changes in file names. +- +- On platforms which support long filenames, the usual Info behavior +- of appending `.gz' or `.Z' to the original filename also works; +- this is done *before* Info checks the above butchered names. +- +- Special considerations apply if you are installing Info on dual +- DOS/Windows 9X/ME/2K/XP system, where you'd like Info to work with +- the same files both in plain DOS and from the Windows DOS box. In +- this case, you should make sure your compressed Info files follow +- the 8+3 DOS naming conventions outlined above, even though Info +- supports long file names on Windows 9X. Also, you need to turn off +- the generation of numeric tails in short 8+3 aliases Windows +- creates for long names (if you don't know how, the DJGPP FAQ list +- explains it). +- +- Please note: for the automatic decompression to work, Info must be +- able to find the file it looks for with an extension which +- indicates that the file is compressed. Do NOT call the compressed +- files as the original uncompressed files were called, or Info +- won't be able to find them! File names like bison-1, gcc.i10 or +- make.info-3 have nothing in them to suggest that they are +- compressed, so don't expect Info to uncompress them. +- +- +-5. Printing Nodes +- -------------- +- +- Info has a `print-node' command. It works by piping the contents of +- the current node through a program which is named by the environment +- variable INFO_PRINT_COMMAND. That command should read its standard +- input and write it to your printer. Find any such program, put its +- name into the above environment variable, and you can print nodes from +- within Info. +- +- If the value of INFO_PRINT_COMMAND begins with a redirection +- character `>', Info will write the contents of the node to the file +- whose name follows the `>' character. +- +- If INFO_PRINT_COMMAND is not defined, the DJGPP port will use +- ">PRN" as the default, which causes it to print to the local printer +- device, PRN. +- +-6. Bug Reports +- ----------- +- +- If you see any bugs which seem specific to this DOS port, please tell +- me about them. +- +- +- Enjoy, +- +- Eli Zaretskii +diff -r -x CVS -N -U 3 texinfo.orig/doc/fdl.texi texinfo.nbsd/doc/fdl.texi +--- texinfo.orig/doc/fdl.texi 2003-03-19 02:29:34.000000000 +0100 ++++ texinfo.nbsd/doc/fdl.texi 2013-04-10 22:45:11.337506095 +0200 +@@ -1,4 +1,5 @@ + ++@c $NetBSD: fdl.texi,v 1.1.1.3 2003/07/03 14:58:45 wiz Exp $ + @node GNU Free Documentation License + @appendixsec GNU Free Documentation License + +diff -r -x CVS -N -U 3 texinfo.orig/doc/info.1 texinfo.nbsd/doc/info.1 +--- texinfo.orig/doc/info.1 2004-12-31 19:02:15.000000000 +0100 ++++ texinfo.nbsd/doc/info.1 2013-04-10 22:45:11.337506095 +0200 +@@ -1,3 +1,5 @@ ++.\" $NetBSD: info.1,v 1.1.1.6 2008/09/02 07:51:56 christos Exp $ ++.\" + .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.34. + .TH INFO "1" "December 2004" "info 4.8" "User Commands" + .SH NAME +diff -r -x CVS -N -U 3 texinfo.orig/doc/info.5 texinfo.nbsd/doc/info.5 +--- texinfo.orig/doc/info.5 2004-04-11 19:56:45.000000000 +0200 ++++ texinfo.nbsd/doc/info.5 2013-04-10 22:45:11.337506095 +0200 +@@ -1,5 +1,7 @@ ++.\" $NetBSD: info.5,v 1.1.1.4 2008/09/02 07:51:56 christos Exp $ ++.\" + .\" info(5) +-.\" $Id: info.5,v 1.2 2004/04/11 17:56:45 karl Exp $ ++.\" Id: info.5,v 1.2 2004/04/11 17:56:45 karl Exp + .\" + .\" Copyright (C) 1998 Free Software Foundation, Inc. + .\" +diff -r -x CVS -N -U 3 texinfo.orig/doc/infokey.1 texinfo.nbsd/doc/infokey.1 +--- texinfo.orig/doc/infokey.1 2004-12-31 19:02:16.000000000 +0100 ++++ texinfo.nbsd/doc/infokey.1 2013-04-10 22:45:11.337506095 +0200 +@@ -1,3 +1,5 @@ ++.\" $NetBSD: infokey.1,v 1.1.1.2 2008/09/02 07:51:56 christos Exp $ ++.\" + .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.34. + .TH INFOKEY "1" "December 2004" "infokey 4.8" "User Commands" + .SH NAME +diff -r -x CVS -N -U 3 texinfo.orig/doc/info-stnd.texi texinfo.nbsd/doc/info-stnd.texi +--- texinfo.orig/doc/info-stnd.texi 2004-12-14 17:58:15.000000000 +0100 ++++ texinfo.nbsd/doc/info-stnd.texi 2013-04-10 22:45:11.337506095 +0200 +@@ -1,5 +1,6 @@ + \input texinfo.tex @c -*-texinfo-*- +-@comment $Id: info-stnd.texi,v 1.9 2004/12/14 16:58:15 karl Exp $ ++@c $NetBSD: info-stnd.texi,v 1.1.1.6 2008/09/02 07:51:41 christos Exp $ ++@comment Id: info-stnd.texi,v 1.9 2004/12/14 16:58:15 karl Exp + @c We must \input texinfo.tex instead of texinfo, otherwise make + @c distcheck in the Texinfo distribution fails, because the texinfo Info + @c file is made first, and texi2dvi must include . first in the path. +diff -r -x CVS -N -U 3 texinfo.orig/doc/info.texi texinfo.nbsd/doc/info.texi +--- texinfo.orig/doc/info.texi 2004-10-06 23:29:48.000000000 +0200 ++++ texinfo.nbsd/doc/info.texi 2013-04-10 22:45:11.337506095 +0200 +@@ -1,4 +1,5 @@ + \input texinfo.tex @c -*-texinfo-*- ++@c $NetBSD: info.texi,v 1.1.1.5 2008/09/02 07:51:43 christos Exp $ + @c We must \input texinfo.tex instead of texinfo, otherwise make + @c distcheck in the Texinfo distribution fails, because the texinfo Info + @c file is made first, and texi2dvi must include . first in the path. +diff -r -x CVS -N -U 3 texinfo.orig/doc/install-info.1 texinfo.nbsd/doc/install-info.1 +--- texinfo.orig/doc/install-info.1 2004-12-31 19:02:16.000000000 +0100 ++++ texinfo.nbsd/doc/install-info.1 2013-04-10 22:45:11.337506095 +0200 +@@ -1,3 +1,5 @@ ++.\" $NetBSD: install-info.1,v 1.1.1.6 2008/09/02 07:51:46 christos Exp $ ++.\" + .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.34. + .TH INSTALL-INFO "1" "December 2004" "install-info 4.8" "User Commands" + .SH NAME +diff -r -x CVS -N -U 3 texinfo.orig/doc/Makefile.am texinfo.nbsd/doc/Makefile.am +--- texinfo.orig/doc/Makefile.am 2004-11-18 02:10:59.000000000 +0100 ++++ texinfo.nbsd/doc/Makefile.am 2013-04-10 22:45:11.337506095 +0200 +@@ -1,4 +1,4 @@ +-# $Id: Makefile.am,v 1.20 2004/11/18 01:10:59 karl Exp $ ++# Id: Makefile.am,v 1.20 2004/11/18 01:10:59 karl Exp + # Makefile.am for texinfo/doc. + # Run automake in .. to produce Makefile.in from this. + # +diff -r -x CVS -N -U 3 texinfo.orig/doc/Makefile.in texinfo.nbsd/doc/Makefile.in +--- texinfo.orig/doc/Makefile.in 2004-12-31 19:01:47.000000000 +0100 ++++ texinfo.nbsd/doc/Makefile.in 2013-04-10 22:45:11.337506095 +0200 +@@ -14,7 +14,7 @@ + + @SET_MAKE@ + +-# $Id: Makefile.am,v 1.20 2004/11/18 01:10:59 karl Exp $ ++# Id: Makefile.am,v 1.20 2004/11/18 01:10:59 karl Exp + # Makefile.am for texinfo/doc. + # Run automake in .. to produce Makefile.in from this. + # +diff -r -x CVS -N -U 3 texinfo.orig/doc/makeinfo.1 texinfo.nbsd/doc/makeinfo.1 +--- texinfo.orig/doc/makeinfo.1 2004-12-31 19:02:16.000000000 +0100 ++++ texinfo.nbsd/doc/makeinfo.1 2013-04-10 22:45:11.337506095 +0200 +@@ -1,3 +1,5 @@ ++.\" $NetBSD: makeinfo.1,v 1.2 2009/02/28 19:14:15 joerg Exp $ ++.\" + .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.34. + .TH MAKEINFO "1" "December 2004" "makeinfo 4.8" "User Commands" + .SH NAME +@@ -62,6 +64,9 @@ + suppress splitting of Info or HTML output, + generate only one output file. + .TP ++\fB\-\-no\-version\-header\fR ++suppress header with makeinfo version and source path. ++.TP + \fB\-\-number\-sections\fR + output chapter and sectioning numbers. + .TP +diff -r -x CVS -N -U 3 texinfo.orig/doc/README texinfo.nbsd/doc/README +--- texinfo.orig/doc/README 2004-04-11 19:56:45.000000000 +0200 ++++ texinfo.nbsd/doc/README 2013-04-10 22:45:11.337506095 +0200 +@@ -1,4 +1,4 @@ +-$Id: README,v 1.4 2004/04/11 17:56:45 karl Exp $ ++Id: README,v 1.4 2004/04/11 17:56:45 karl Exp + texinfo/doc/README + + Copyright (C) 2002 Free Software Foundation, Inc. +diff -r -x CVS -N -U 3 texinfo.orig/doc/texi2dvi.1 texinfo.nbsd/doc/texi2dvi.1 +--- texinfo.orig/doc/texi2dvi.1 2004-12-31 19:03:11.000000000 +0100 ++++ texinfo.nbsd/doc/texi2dvi.1 2013-04-10 22:45:11.337506095 +0200 +@@ -1,3 +1,5 @@ ++.\" $NetBSD: texi2dvi.1,v 1.1.1.6 2008/09/02 07:51:56 christos Exp $ ++.\" + .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.34. + .TH TEXI2DVI "1" "December 2004" "texi2dvi 1.34" "User Commands" + .SH NAME +diff -r -x CVS -N -U 3 texinfo.orig/doc/texindex.1 texinfo.nbsd/doc/texindex.1 +--- texinfo.orig/doc/texindex.1 2004-12-31 19:02:16.000000000 +0100 ++++ texinfo.nbsd/doc/texindex.1 2013-04-10 22:45:11.337506095 +0200 +@@ -1,3 +1,5 @@ ++.\" $NetBSD: texindex.1,v 1.3 2008/09/02 08:00:24 christos Exp $ ++.\" + .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.34. + .TH TEXINDEX "1" "December 2004" "texindex 4.8" "User Commands" + .SH NAME +@@ -13,12 +15,6 @@ + \fB\-h\fR, \fB\-\-help\fR + display this help and exit + .TP +-\fB\-k\fR, \fB\-\-keep\fR +-keep temporary files around after processing +-.TP +-\fB\-\-no\-keep\fR +-do not keep temporary files around after processing (default) +-.TP + \fB\-o\fR, \fB\-\-output\fR FILE + send output to FILE + .TP +diff -r -x CVS -N -U 3 texinfo.orig/doc/texinfo.5 texinfo.nbsd/doc/texinfo.5 +--- texinfo.orig/doc/texinfo.5 2004-04-11 19:56:45.000000000 +0200 ++++ texinfo.nbsd/doc/texinfo.5 2013-04-10 22:45:11.337506095 +0200 +@@ -1,5 +1,7 @@ ++.\" $NetBSD: texinfo.5,v 1.1.1.4 2008/09/02 07:51:56 christos Exp $ ++.\" + .\" texinfo(5) +-.\" $Id: texinfo.5,v 1.2 2004/04/11 17:56:45 karl Exp $ ++.\" Id: texinfo.5,v 1.2 2004/04/11 17:56:45 karl Exp + .\" + .\" Copyright (C) 1998, 1999, 2002 Free Software Foundation, Inc. + .\" +diff -r -x CVS -N -U 3 texinfo.orig/doc/texinfo.txi texinfo.nbsd/doc/texinfo.txi +--- texinfo.orig/doc/texinfo.txi 2004-12-29 16:06:41.000000000 +0100 ++++ texinfo.nbsd/doc/texinfo.txi 2013-04-10 22:45:11.337506095 +0200 +@@ -1,5 +1,5 @@ + \input texinfo.tex @c -*-texinfo-*- +-@c $Id: texinfo.txi,v 1.128 2004/12/29 15:06:41 karl Exp $ ++@c Id: texinfo.txi,v 1.128 2004/12/29 15:06:41 karl Exp + @c Ordinarily, Texinfo files have the extension .texi. But texinfo.texi + @c clashes with texinfo.tex on 8.3 filesystems, so we use texinfo.txi. + +@@ -12782,7 +12782,7 @@ + + @table @code + @item @@set @var{flag} [@var{value}] +-Set the variable @var{flag}, to the optional @var{value} if specifed. ++Set the variable @var{flag}, to the optional @var{value} if specified. + + @item @@clear @var{flag} + Undefine the variable @var{flag}, whether or not it was previously defined. +@@ -18451,7 +18451,7 @@ + Concurrent Versions System}) or RCS (see rcsintro(1)) version control + systems, which expand it into a string such as: + @example +-$Id: texinfo.txi,v 1.128 2004/12/29 15:06:41 karl Exp $ ++Id: texinfo.txi,v 1.128 2004/12/29 15:06:41 karl Exp + @end example + (This is useful in all sources that use version control, not just manuals.) + You may wish to include the @samp{$Id:} comment in the @code{@@copying} +@@ -18517,7 +18517,7 @@ + + @verbatim + \input texinfo @c -*-texinfo-*- +-@comment $Id: texinfo.txi,v 1.128 2004/12/29 15:06:41 karl Exp $ ++@comment Id: texinfo.txi,v 1.128 2004/12/29 15:06:41 karl Exp + @comment %**start of header + @setfilename sample.info + @include version.texi +diff -r -x CVS -N -U 3 texinfo.orig/doc/txi-cs.tex texinfo.nbsd/doc/txi-cs.tex +--- texinfo.orig/doc/txi-cs.tex 2004-04-11 19:56:45.000000000 +0200 ++++ texinfo.nbsd/doc/txi-cs.tex 2013-04-10 22:45:11.340839495 +0200 +@@ -1,4 +1,4 @@ +-% $Id: txi-cs.tex,v 1.3 2004/04/11 17:56:45 karl Exp $ ++% Id: txi-cs.tex,v 1.3 2004/04/11 17:56:45 karl Exp + % Czech translation for texinfo.tex. + % + % Copyright (C) 1999, 2000 Free Software Foundation. +diff -r -x CVS -N -U 3 texinfo.orig/doc/txi-de.tex texinfo.nbsd/doc/txi-de.tex +--- texinfo.orig/doc/txi-de.tex 2004-04-11 19:56:45.000000000 +0200 ++++ texinfo.nbsd/doc/txi-de.tex 2013-04-10 22:45:11.340839495 +0200 +@@ -1,5 +1,5 @@ + % txi-de.tex -- adaptation to German for texinfo.tex. +-% $Id: txi-de.tex,v 1.3 2004/04/11 17:56:45 karl Exp $ ++% Id: txi-de.tex,v 1.3 2004/04/11 17:56:45 karl Exp + % + % Copyright (C) 1999 Free Software Foundation, Inc. + % +diff -r -x CVS -N -U 3 texinfo.orig/doc/txi-en.tex texinfo.nbsd/doc/txi-en.tex +--- texinfo.orig/doc/txi-en.tex 2004-04-11 19:56:45.000000000 +0200 ++++ texinfo.nbsd/doc/txi-en.tex 2013-04-10 22:45:11.340839495 +0200 +@@ -1,7 +1,7 @@ + % English non-translation for texinfo.tex. This is read when a source + % document says @documentlanguage en (which might happen after another + % @documentlanguage). The actual values are the same as defaults. +-% $Id: txi-en.tex,v 1.3 2004/04/11 17:56:45 karl Exp $ ++% Id: txi-en.tex,v 1.3 2004/04/11 17:56:45 karl Exp + % + % Copyright (C) 1999 Free Software Foundation. + % +diff -r -x CVS -N -U 3 texinfo.orig/doc/txi-fr.tex texinfo.nbsd/doc/txi-fr.tex +--- texinfo.orig/doc/txi-fr.tex 2004-04-11 19:56:45.000000000 +0200 ++++ texinfo.nbsd/doc/txi-fr.tex 2013-04-10 22:45:11.340839495 +0200 +@@ -1,5 +1,5 @@ + % txi-fr.tex -- TeX macros to handle French language for texinfo.tex documents. +-% $Id: txi-fr.tex,v 1.3 2004/04/11 17:56:45 karl Exp $ ++% Id: txi-fr.tex,v 1.3 2004/04/11 17:56:45 karl Exp + % + % Copyright (C) 1999 Free Software Foundation. + % +diff -r -x CVS -N -U 3 texinfo.orig/doc/txi-it.tex texinfo.nbsd/doc/txi-it.tex +--- texinfo.orig/doc/txi-it.tex 2004-04-11 19:56:45.000000000 +0200 ++++ texinfo.nbsd/doc/txi-it.tex 2013-04-10 22:45:11.340839495 +0200 +@@ -1,7 +1,7 @@ + % English non-translation for texinfo.tex. This is read when a source + % document says @documentlanguage en (which might happen after another + % @documentlanguage). The actual values are the same as defaults. +-% $Id: txi-it.tex,v 1.3 2004/04/11 17:56:45 karl Exp $ ++% Id: txi-it.tex,v 1.3 2004/04/11 17:56:45 karl Exp + % + % Copyright (C) 1999 Free Software Foundation. + % +diff -r -x CVS -N -U 3 texinfo.orig/doc/txi-nl.tex texinfo.nbsd/doc/txi-nl.tex +--- texinfo.orig/doc/txi-nl.tex 2004-04-11 19:56:45.000000000 +0200 ++++ texinfo.nbsd/doc/txi-nl.tex 2013-04-10 22:45:11.340839495 +0200 +@@ -1,5 +1,5 @@ + % Dutch translation for texinfo.tex. +-% $Id: txi-nl.tex,v 1.3 2004/04/11 17:56:45 karl Exp $ ++% Id: txi-nl.tex,v 1.3 2004/04/11 17:56:45 karl Exp + % + % Copyright (C) 1999 Free Software Foundation. + % +diff -r -x CVS -N -U 3 texinfo.orig/doc/txi-pl.tex texinfo.nbsd/doc/txi-pl.tex +--- texinfo.orig/doc/txi-pl.tex 2004-04-11 19:56:45.000000000 +0200 ++++ texinfo.nbsd/doc/txi-pl.tex 2013-04-10 22:45:11.340839495 +0200 +@@ -1,5 +1,5 @@ + % txi-pl.tex -- adaptation to Polish for texinfo.tex. +-% $Id: txi-pl.tex,v 1.3 2004/04/11 17:56:45 karl Exp $ ++% Id: txi-pl.tex,v 1.3 2004/04/11 17:56:45 karl Exp + % + % Copyright (C) 2003 Free Software Foundation. + % +diff -r -x CVS -N -U 3 texinfo.orig/doc/txi-tr.tex texinfo.nbsd/doc/txi-tr.tex +--- texinfo.orig/doc/txi-tr.tex 2004-04-11 19:56:45.000000000 +0200 ++++ texinfo.nbsd/doc/txi-tr.tex 2013-04-10 22:45:11.340839495 +0200 +@@ -1,5 +1,5 @@ + % txi-en.tex -- adaptation to Turkish for texinfo.tex. +-% $Id: txi-tr.tex,v 1.3 2004/04/11 17:56:45 karl Exp $ ++% Id: txi-tr.tex,v 1.3 2004/04/11 17:56:45 karl Exp + % + % Copyright (C) 2003 Free Software Foundation, Inc. + % +diff -r -x CVS -N -U 3 texinfo.orig/doc/version-stnd.texi texinfo.nbsd/doc/version-stnd.texi +--- texinfo.orig/doc/version-stnd.texi 2004-12-31 19:02:15.000000000 +0100 ++++ texinfo.nbsd/doc/version-stnd.texi 2013-04-10 22:45:11.340839495 +0200 +@@ -1,4 +1,5 @@ + @set UPDATED 14 December 2004 ++@c $NetBSD: version-stnd.texi,v 1.1.1.5 2008/09/02 07:51:36 christos Exp $ + @set UPDATED-MONTH December 2004 + @set EDITION 4.8 + @set VERSION 4.8 +diff -r -x CVS -N -U 3 texinfo.orig/doc/version.texi texinfo.nbsd/doc/version.texi +--- texinfo.orig/doc/version.texi 2004-12-31 19:02:15.000000000 +0100 ++++ texinfo.nbsd/doc/version.texi 2013-04-10 22:45:11.340839495 +0200 +@@ -1,4 +1,5 @@ + @set UPDATED 29 December 2004 ++@c $NetBSD: version.texi,v 1.1.1.6 2008/09/02 07:51:46 christos Exp $ + @set UPDATED-MONTH December 2004 + @set EDITION 4.8 + @set VERSION 4.8 +diff -r -x CVS -N -U 3 texinfo.orig/info/dir.c texinfo.nbsd/info/dir.c +--- texinfo.orig/info/dir.c 2004-04-11 19:56:45.000000000 +0200 ++++ texinfo.nbsd/info/dir.c 2013-04-10 22:45:11.340839495 +0200 +@@ -1,5 +1,7 @@ ++/* $NetBSD: dir.c,v 1.1.1.5 2008/09/02 07:49:33 christos Exp $ */ ++ + /* dir.c -- how to build a special "dir" node from "localdir" files. +- $Id: dir.c,v 1.3 2004/04/11 17:56:45 karl Exp $ ++ Id: dir.c,v 1.3 2004/04/11 17:56:45 karl Exp + + Copyright (C) 1993, 1997, 1998, 2004 Free Software Foundation, Inc. + +diff -r -x CVS -N -U 3 texinfo.orig/info/display.c texinfo.nbsd/info/display.c +--- texinfo.orig/info/display.c 2004-04-11 19:56:45.000000000 +0200 ++++ texinfo.nbsd/info/display.c 2013-04-10 22:45:11.340839495 +0200 +@@ -1,5 +1,7 @@ ++/* $NetBSD: display.c,v 1.1.1.5 2008/09/02 07:49:34 christos Exp $ */ ++ + /* display.c -- How to display Info windows. +- $Id: display.c,v 1.7 2004/04/11 17:56:45 karl Exp $ ++ Id: display.c,v 1.7 2004/04/11 17:56:45 karl Exp + + Copyright (C) 1993, 1997, 2003, 2004 Free Software Foundation, Inc. + +diff -r -x CVS -N -U 3 texinfo.orig/info/display.h texinfo.nbsd/info/display.h +--- texinfo.orig/info/display.h 2004-04-11 19:56:45.000000000 +0200 ++++ texinfo.nbsd/info/display.h 2013-04-10 22:45:11.340839495 +0200 +@@ -1,5 +1,7 @@ ++/* $NetBSD: display.h,v 1.1.1.4 2008/09/02 07:49:34 christos Exp $ */ ++ + /* display.h -- How the display in Info is done. +- $Id: display.h,v 1.3 2004/04/11 17:56:45 karl Exp $ ++ Id: display.h,v 1.3 2004/04/11 17:56:45 karl Exp + + This file is part of GNU Info, a program for reading online documentation + stored in Info format. +diff -r -x CVS -N -U 3 texinfo.orig/info/doc.h texinfo.nbsd/info/doc.h +--- texinfo.orig/info/doc.h 2004-04-11 19:56:45.000000000 +0200 ++++ texinfo.nbsd/info/doc.h 2013-04-10 22:45:11.340839495 +0200 +@@ -1,5 +1,7 @@ ++/* $NetBSD: doc.h,v 1.1.1.4 2008/09/02 07:49:34 christos Exp $ */ ++ + /* doc.h -- Structures associating function pointers with documentation. +- $Id: doc.h,v 1.3 2004/04/11 17:56:45 karl Exp $ ++ Id: doc.h,v 1.3 2004/04/11 17:56:45 karl Exp + + Copyright (C) 1993, 2001, 2004 Free Software Foundation, Inc. + +diff -r -x CVS -N -U 3 texinfo.orig/info/dribble.c texinfo.nbsd/info/dribble.c +--- texinfo.orig/info/dribble.c 2004-04-11 19:56:45.000000000 +0200 ++++ texinfo.nbsd/info/dribble.c 2013-04-10 22:45:11.340839495 +0200 +@@ -1,5 +1,7 @@ ++/* $NetBSD: dribble.c,v 1.1.1.5 2008/09/02 07:49:34 christos Exp $ */ ++ + /* dribble.c -- dribble files for Info. +- $Id: dribble.c,v 1.3 2004/04/11 17:56:45 karl Exp $ ++ Id: dribble.c,v 1.3 2004/04/11 17:56:45 karl Exp + + Copyright (C) 1993, 1998, 2004 Free Software Foundation, Inc. + +diff -r -x CVS -N -U 3 texinfo.orig/info/dribble.h texinfo.nbsd/info/dribble.h +--- texinfo.orig/info/dribble.h 2004-04-11 19:56:45.000000000 +0200 ++++ texinfo.nbsd/info/dribble.h 2013-04-10 22:45:11.340839495 +0200 +@@ -1,3 +1,5 @@ ++/* $NetBSD: dribble.h,v 1.1.1.3 2004/07/12 23:26:56 wiz Exp $ */ ++ + /* dribble.h -- Functions and vars declared in dribble.c. */ + + /* This file is part of GNU Info, a program for reading online documentation +diff -r -x CVS -N -U 3 texinfo.orig/info/echo-area.c texinfo.nbsd/info/echo-area.c +--- texinfo.orig/info/echo-area.c 2004-12-14 01:15:36.000000000 +0100 ++++ texinfo.nbsd/info/echo-area.c 2013-04-10 22:45:11.340839495 +0200 +@@ -1,5 +1,7 @@ ++/* $NetBSD: echo-area.c,v 1.4 2008/09/02 08:41:51 christos Exp $ */ ++ + /* echo-area.c -- how to read a line in the echo area. +- $Id: echo-area.c,v 1.7 2004/12/14 00:15:36 karl Exp $ ++ Id: echo-area.c,v 1.7 2004/12/14 00:15:36 karl Exp + + Copyright (C) 1993, 1997, 1998, 1999, 2001, 2004 Free Software + Foundation, Inc. +@@ -936,7 +938,7 @@ + printf_to_message_buffer (completions_found_index == 1 + ? (char *) _("One completion:\n") + : (char *) _("%d completions:\n"), +- (void *) (long) completions_found_index, ++ (void*)((intptr_t)completions_found_index), + NULL, NULL); + + /* Find the maximum length of a label. */ +diff -r -x CVS -N -U 3 texinfo.orig/info/echo-area.h texinfo.nbsd/info/echo-area.h +--- texinfo.orig/info/echo-area.h 2004-08-08 00:03:08.000000000 +0200 ++++ texinfo.nbsd/info/echo-area.h 2013-04-10 22:45:11.340839495 +0200 +@@ -1,5 +1,7 @@ ++/* $NetBSD: echo-area.h,v 1.1.1.4 2008/09/02 07:49:37 christos Exp $ */ ++ + /* echo-area.h -- Functions used in reading information from the echo area. +- $Id: echo-area.h,v 1.4 2004/08/07 22:03:08 karl Exp $ ++ Id: echo-area.h,v 1.4 2004/08/07 22:03:08 karl Exp + + This file is part of GNU Info, a program for reading online documentation + stored in Info format. +diff -r -x CVS -N -U 3 texinfo.orig/info/filesys.c texinfo.nbsd/info/filesys.c +--- texinfo.orig/info/filesys.c 2004-07-30 19:17:40.000000000 +0200 ++++ texinfo.nbsd/info/filesys.c 2013-04-10 22:45:11.340839495 +0200 +@@ -1,5 +1,7 @@ ++/* $NetBSD: filesys.c,v 1.1.1.6 2008/09/02 07:49:37 christos Exp $ */ ++ + /* filesys.c -- filesystem specific functions. +- $Id: filesys.c,v 1.6 2004/07/30 17:17:40 karl Exp $ ++ Id: filesys.c,v 1.6 2004/07/30 17:17:40 karl Exp + + Copyright (C) 1993, 1997, 1998, 2000, 2002, 2003, 2004 Free Software + Foundation, Inc. +diff -r -x CVS -N -U 3 texinfo.orig/info/filesys.h texinfo.nbsd/info/filesys.h +--- texinfo.orig/info/filesys.h 2004-04-11 19:56:45.000000000 +0200 ++++ texinfo.nbsd/info/filesys.h 2013-04-10 22:45:11.340839495 +0200 +@@ -1,5 +1,7 @@ ++/* $NetBSD: filesys.h,v 1.1.1.5 2008/09/02 07:49:38 christos Exp $ */ ++ + /* filesys.h -- external declarations for filesys.c. +- $Id: filesys.h,v 1.3 2004/04/11 17:56:45 karl Exp $ ++ Id: filesys.h,v 1.3 2004/04/11 17:56:45 karl Exp + + Copyright (C) 1993, 1997, 1998, 2002, 2004 Free Software Foundation, Inc. + +diff -r -x CVS -N -U 3 texinfo.orig/info/footnotes.c texinfo.nbsd/info/footnotes.c +--- texinfo.orig/info/footnotes.c 2004-04-11 19:56:45.000000000 +0200 ++++ texinfo.nbsd/info/footnotes.c 2013-04-10 22:45:11.340839495 +0200 +@@ -1,5 +1,7 @@ ++/* $NetBSD: footnotes.c,v 1.1.1.5 2008/09/02 07:49:38 christos Exp $ */ ++ + /* footnotes.c -- Some functions for manipulating footnotes. +- $Id: footnotes.c,v 1.4 2004/04/11 17:56:45 karl Exp $ ++ Id: footnotes.c,v 1.4 2004/04/11 17:56:45 karl Exp + + Copyright (C) 1993, 1997, 1998, 1999, 2002, 2004 Free Software + Foundation, Inc. +diff -r -x CVS -N -U 3 texinfo.orig/info/footnotes.h texinfo.nbsd/info/footnotes.h +--- texinfo.orig/info/footnotes.h 2004-04-11 19:56:45.000000000 +0200 ++++ texinfo.nbsd/info/footnotes.h 2013-04-10 22:45:11.340839495 +0200 +@@ -1,5 +1,7 @@ ++/* $NetBSD: footnotes.h,v 1.1.1.5 2008/09/02 07:49:38 christos Exp $ */ ++ + /* footnotes.h -- Some functions for manipulating footnotes. +- $Id: footnotes.h,v 1.3 2004/04/11 17:56:45 karl Exp $ ++ Id: footnotes.h,v 1.3 2004/04/11 17:56:45 karl Exp + + Copyright (C) 1993, 1997, 1998, 2002, 2004 Free Software Foundation, Inc. + +diff -r -x CVS -N -U 3 texinfo.orig/info/gc.c texinfo.nbsd/info/gc.c +--- texinfo.orig/info/gc.c 2004-04-11 19:56:45.000000000 +0200 ++++ texinfo.nbsd/info/gc.c 2013-04-10 22:45:11.340839495 +0200 +@@ -1,5 +1,7 @@ ++/* $NetBSD: gc.c,v 1.1.1.4 2008/09/02 07:49:38 christos Exp $ */ ++ + /* gc.c -- Functions to remember and garbage collect unused node contents. +- $Id: gc.c,v 1.3 2004/04/11 17:56:45 karl Exp $ ++ Id: gc.c,v 1.3 2004/04/11 17:56:45 karl Exp + + Copyright (C) 1993, 2004 Free Software Foundation, Inc. + +diff -r -x CVS -N -U 3 texinfo.orig/info/gc.h texinfo.nbsd/info/gc.h +--- texinfo.orig/info/gc.h 2004-04-11 19:56:45.000000000 +0200 ++++ texinfo.nbsd/info/gc.h 2013-04-10 22:45:11.340839495 +0200 +@@ -1,5 +1,7 @@ ++/* $NetBSD: gc.h,v 1.1.1.4 2008/09/02 07:49:38 christos Exp $ */ ++ + /* gc.h -- Functions for garbage collecting unused node contents. +- $Id: gc.h,v 1.3 2004/04/11 17:56:45 karl Exp $ ++ Id: gc.h,v 1.3 2004/04/11 17:56:45 karl Exp + + This file is part of GNU Info, a program for reading online documentation + stored in Info format. +diff -r -x CVS -N -U 3 texinfo.orig/info/indices.c texinfo.nbsd/info/indices.c +--- texinfo.orig/info/indices.c 2004-04-11 19:56:45.000000000 +0200 ++++ texinfo.nbsd/info/indices.c 2013-04-10 22:45:11.340839495 +0200 +@@ -1,5 +1,7 @@ ++/* $NetBSD: indices.c,v 1.1.1.6 2008/09/02 07:49:40 christos Exp $ */ ++ + /* indices.c -- deal with an Info file index. +- $Id: indices.c,v 1.5 2004/04/11 17:56:45 karl Exp $ ++ Id: indices.c,v 1.5 2004/04/11 17:56:45 karl Exp + + Copyright (C) 1993, 1997, 1998, 1999, 2002, 2003, 2004 Free Software + Foundation, Inc. +diff -r -x CVS -N -U 3 texinfo.orig/info/indices.h texinfo.nbsd/info/indices.h +--- texinfo.orig/info/indices.h 2004-04-11 19:56:45.000000000 +0200 ++++ texinfo.nbsd/info/indices.h 2013-04-10 22:45:11.340839495 +0200 +@@ -1,5 +1,7 @@ ++/* $NetBSD: indices.h,v 1.1.1.4 2008/09/02 07:49:40 christos Exp $ */ ++ + /* indices.h -- Functions defined in indices.c. +- $Id: indices.h,v 1.3 2004/04/11 17:56:45 karl Exp $ ++ Id: indices.h,v 1.3 2004/04/11 17:56:45 karl Exp + + This file is part of GNU Info, a program for reading online documentation + stored in Info format. +diff -r -x CVS -N -U 3 texinfo.orig/info/info.c texinfo.nbsd/info/info.c +--- texinfo.orig/info/info.c 2004-04-11 19:56:45.000000000 +0200 ++++ texinfo.nbsd/info/info.c 2013-04-10 22:45:11.340839495 +0200 +@@ -1,5 +1,7 @@ ++/* $NetBSD: info.c,v 1.12 2010/02/18 14:00:39 wiz Exp $ */ ++ + /* info.c -- Display nodes of Info files in multiple windows. +- $Id: info.c,v 1.11 2004/04/11 17:56:45 karl Exp $ ++ Id: info.c,v 1.11 2004/04/11 17:56:45 karl Exp + + Copyright (C) 1993, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, + 2004 Free Software Foundation, Inc. +@@ -356,7 +358,7 @@ + } + + /* Get the initial Info node. It is either "(dir)Top", or what the user +- specifed with values in user_filename and user_nodenames. */ ++ specified with values in user_filename and user_nodenames. */ + initial_node = info_get_node (user_filename, + user_nodenames ? user_nodenames[0] : 0); + +diff -r -x CVS -N -U 3 texinfo.orig/info/infodoc.c texinfo.nbsd/info/infodoc.c +--- texinfo.orig/info/infodoc.c 2004-04-11 19:56:45.000000000 +0200 ++++ texinfo.nbsd/info/infodoc.c 2013-04-10 22:45:11.340839495 +0200 +@@ -1,5 +1,7 @@ ++/* $NetBSD: infodoc.c,v 1.1.1.6 2008/09/02 07:49:44 christos Exp $ */ ++ + /* infodoc.c -- functions which build documentation nodes. +- $Id: infodoc.c,v 1.8 2004/04/11 17:56:45 karl Exp $ ++ Id: infodoc.c,v 1.8 2004/04/11 17:56:45 karl Exp + + Copyright (C) 1993, 1997, 1998, 1999, 2001, 2002, 2003, 2004 Free Software + Foundation, Inc. +diff -r -x CVS -N -U 3 texinfo.orig/info/info.h texinfo.nbsd/info/info.h +--- texinfo.orig/info/info.h 2004-04-11 19:56:45.000000000 +0200 ++++ texinfo.nbsd/info/info.h 2013-04-10 22:45:11.340839495 +0200 +@@ -1,5 +1,7 @@ ++/* $NetBSD: info.h,v 1.1.1.6 2008/09/02 07:49:43 christos Exp $ */ ++ + /* info.h -- Header file which includes all of the other headers. +- $Id: info.h,v 1.4 2004/04/11 17:56:45 karl Exp $ ++ Id: info.h,v 1.4 2004/04/11 17:56:45 karl Exp + + Copyright (C) 1993, 1997, 1998, 1999, 2001, 2002, 2003, 2004 Free Software + Foundation, Inc. +diff -r -x CVS -N -U 3 texinfo.orig/info/infokey.c texinfo.nbsd/info/infokey.c +--- texinfo.orig/info/infokey.c 2004-12-14 01:15:36.000000000 +0100 ++++ texinfo.nbsd/info/infokey.c 2013-04-10 22:45:11.340839495 +0200 +@@ -1,5 +1,7 @@ ++/* $NetBSD: infokey.c,v 1.4 2008/09/02 08:41:51 christos Exp $ */ ++ + /* infokey.c -- compile ~/.infokey to ~/.info. +- $Id: infokey.c,v 1.9 2004/12/14 00:15:36 karl Exp $ ++ Id: infokey.c,v 1.9 2004/12/14 00:15:36 karl Exp + + Copyright (C) 1999, 2001, 2002, 2003, 2004 Free Software Foundation, Inc. + +@@ -639,7 +641,7 @@ + { + syntax_error (filename, lnum, + (char *) _("NUL character (^%c) not permitted"), +- (void *) (long) c, NULL, NULL, NULL); ++ (void *)((intptr_t)c), NULL, NULL, NULL); + error = 1; + } + seqstate = normal; +@@ -663,7 +665,7 @@ + if (alen == 0) + { + syntax_error (filename, lnum, (char *) _("missing action name"), +- (void *) (long) c, NULL, NULL, NULL); ++ (void *)((intptr_t)c), NULL, NULL, NULL); + error = 1; + } + else +diff -r -x CVS -N -U 3 texinfo.orig/info/infokey.h texinfo.nbsd/info/infokey.h +--- texinfo.orig/info/infokey.h 2004-04-11 19:56:45.000000000 +0200 ++++ texinfo.nbsd/info/infokey.h 2013-04-10 22:45:11.340839495 +0200 +@@ -1,5 +1,7 @@ ++/* $NetBSD: infokey.h,v 1.1.1.3 2008/09/02 07:50:15 christos Exp $ */ ++ + /* infokey.h -- Custom keystroke definition support. +- $Id: infokey.h,v 1.2 2004/04/11 17:56:45 karl Exp $ ++ Id: infokey.h,v 1.2 2004/04/11 17:56:45 karl Exp + + Copyright (C) 1999, 2002 Free Software Foundation, Inc. + +diff -r -x CVS -N -U 3 texinfo.orig/info/infomap.c texinfo.nbsd/info/infomap.c +--- texinfo.orig/info/infomap.c 2004-07-30 22:43:40.000000000 +0200 ++++ texinfo.nbsd/info/infomap.c 2013-04-10 22:45:11.340839495 +0200 +@@ -1,5 +1,7 @@ ++/* $NetBSD: infomap.c,v 1.1.1.7 2008/09/02 07:49:47 christos Exp $ */ ++ + /* infomap.c -- keymaps for Info. +- $Id: infomap.c,v 1.10 2004/07/30 20:43:40 karl Exp $ ++ Id: infomap.c,v 1.10 2004/07/30 20:43:40 karl Exp + + Copyright (C) 1993, 1997, 1998, 1999, 2001, 2002, 2003, 2004 Free Software + Foundation, Inc. +diff -r -x CVS -N -U 3 texinfo.orig/info/infomap.h texinfo.nbsd/info/infomap.h +--- texinfo.orig/info/infomap.h 2004-04-11 19:56:46.000000000 +0200 ++++ texinfo.nbsd/info/infomap.h 2013-04-10 22:45:11.340839495 +0200 +@@ -1,5 +1,7 @@ ++/* $NetBSD: infomap.h,v 1.1.1.4 2008/09/02 07:49:47 christos Exp $ */ ++ + /* infomap.h -- description of a keymap in Info and related functions. +- $Id: infomap.h,v 1.3 2004/04/11 17:56:46 karl Exp $ ++ Id: infomap.h,v 1.3 2004/04/11 17:56:46 karl Exp + + Copyright (C) 1993, 2001, 2004 Free Software Foundation, Inc. + +diff -r -x CVS -N -U 3 texinfo.orig/info/info-utils.c texinfo.nbsd/info/info-utils.c +--- texinfo.orig/info/info-utils.c 2004-04-11 19:56:45.000000000 +0200 ++++ texinfo.nbsd/info/info-utils.c 2013-04-10 22:45:11.340839495 +0200 +@@ -1,5 +1,7 @@ ++/* $NetBSD: info-utils.c,v 1.1.1.6 2008/09/02 07:49:40 christos Exp $ */ ++ + /* info-utils.c -- miscellanous. +- $Id: info-utils.c,v 1.4 2004/04/11 17:56:45 karl Exp $ ++ Id: info-utils.c,v 1.4 2004/04/11 17:56:45 karl Exp + + Copyright (C) 1993, 1998, 2003, 2004 Free Software Foundation, Inc. + +diff -r -x CVS -N -U 3 texinfo.orig/info/info-utils.h texinfo.nbsd/info/info-utils.h +--- texinfo.orig/info/info-utils.h 2004-04-11 19:56:45.000000000 +0200 ++++ texinfo.nbsd/info/info-utils.h 2013-04-10 22:45:11.340839495 +0200 +@@ -1,5 +1,7 @@ ++/* $NetBSD: info-utils.h,v 1.1.1.6 2008/09/02 07:49:40 christos Exp $ */ ++ + /* info-utils.h -- Exported functions and variables from info-utils.c. +- $Id: info-utils.h,v 1.4 2004/04/11 17:56:45 karl Exp $ ++ Id: info-utils.h,v 1.4 2004/04/11 17:56:45 karl Exp + + Copyright (C) 1993, 1996, 1998, 2002, 2003, 2004 Free Software + Foundation, Inc. +diff -r -x CVS -N -U 3 texinfo.orig/info/key.h texinfo.nbsd/info/key.h +--- texinfo.orig/info/key.h 2002-08-26 01:38:38.000000000 +0200 ++++ texinfo.nbsd/info/key.h 2013-04-10 22:45:11.340839495 +0200 +@@ -1,3 +1,5 @@ ++/* $NetBSD: key.h,v 1.1.1.1 2003/01/17 14:54:34 wiz Exp $ */ ++ + /* key.h -- Structure associating function names with numeric codes. */ + + /* This file is part of GNU Info, a program for reading online documentation +diff -r -x CVS -N -U 3 texinfo.orig/info/makedoc.c texinfo.nbsd/info/makedoc.c +--- texinfo.orig/info/makedoc.c 2004-04-11 19:56:46.000000000 +0200 ++++ texinfo.nbsd/info/makedoc.c 2013-04-10 22:45:11.340839495 +0200 +@@ -1,5 +1,7 @@ ++/* $NetBSD: makedoc.c,v 1.1.1.6 2008/09/02 07:50:15 christos Exp $ */ ++ + /* makedoc.c -- make doc.c and funs.h from input files. +- $Id: makedoc.c,v 1.4 2004/04/11 17:56:46 karl Exp $ ++ Id: makedoc.c,v 1.4 2004/04/11 17:56:46 karl Exp + + Copyright (C) 1993, 1997, 1998, 1999, 2001, 2002, 2003, 2004 Free Software + Foundation, Inc. +diff -r -x CVS -N -U 3 texinfo.orig/info/Makefile.am texinfo.nbsd/info/Makefile.am +--- texinfo.orig/info/Makefile.am 2004-10-28 16:03:27.000000000 +0200 ++++ texinfo.nbsd/info/Makefile.am 2013-04-10 22:45:11.340839495 +0200 +@@ -1,4 +1,4 @@ +-# $Id: Makefile.am,v 1.8 2004/10/28 14:03:27 karl Exp $ ++# Id: Makefile.am,v 1.8 2004/10/28 14:03:27 karl Exp + # Makefile.am for texinfo/info. + # Run automake in .. to produce Makefile.in from this. + # +diff -r -x CVS -N -U 3 texinfo.orig/info/Makefile.in texinfo.nbsd/info/Makefile.in +--- texinfo.orig/info/Makefile.in 2004-12-31 19:01:48.000000000 +0100 ++++ texinfo.nbsd/info/Makefile.in 2013-04-10 22:45:11.340839495 +0200 +@@ -14,7 +14,7 @@ + + @SET_MAKE@ + +-# $Id: Makefile.am,v 1.8 2004/10/28 14:03:27 karl Exp $ ++# Id: Makefile.am,v 1.8 2004/10/28 14:03:27 karl Exp + # Makefile.am for texinfo/info. + # Run automake in .. to produce Makefile.in from this. + # +diff -r -x CVS -N -U 3 texinfo.orig/info/man.c texinfo.nbsd/info/man.c +--- texinfo.orig/info/man.c 2004-04-11 19:56:46.000000000 +0200 ++++ texinfo.nbsd/info/man.c 2013-04-10 22:45:11.340839495 +0200 +@@ -1,5 +1,7 @@ ++/* $NetBSD: man.c,v 1.1.1.6 2008/09/02 07:49:49 christos Exp $ */ ++ + /* man.c: How to read and format man files. +- $Id: man.c,v 1.4 2004/04/11 17:56:46 karl Exp $ ++ Id: man.c,v 1.4 2004/04/11 17:56:46 karl Exp + + Copyright (C) 1995, 1997, 1998, 1999, 2000, 2002, 2003, 2004 Free Software + Foundation, Inc. +diff -r -x CVS -N -U 3 texinfo.orig/info/man.h texinfo.nbsd/info/man.h +--- texinfo.orig/info/man.h 2004-04-11 19:56:46.000000000 +0200 ++++ texinfo.nbsd/info/man.h 2013-04-10 22:45:11.340839495 +0200 +@@ -1,5 +1,7 @@ ++/* $NetBSD: man.h,v 1.1.1.4 2008/09/02 07:49:49 christos Exp $ */ ++ + /* man.h: Defines and external function declarations for man.c. +- $Id: man.h,v 1.3 2004/04/11 17:56:46 karl Exp $ ++ Id: man.h,v 1.3 2004/04/11 17:56:46 karl Exp + + This file is part of GNU Info, a program for reading online documentation + stored in Info format. +diff -r -x CVS -N -U 3 texinfo.orig/info/m-x.c texinfo.nbsd/info/m-x.c +--- texinfo.orig/info/m-x.c 2004-04-11 19:56:46.000000000 +0200 ++++ texinfo.nbsd/info/m-x.c 2013-04-10 22:45:11.340839495 +0200 +@@ -1,5 +1,7 @@ ++/* $NetBSD: m-x.c,v 1.1.1.5 2008/09/02 07:49:47 christos Exp $ */ ++ + /* m-x.c -- Meta-x minibuffer reader. +- $Id: m-x.c,v 1.3 2004/04/11 17:56:46 karl Exp $ ++ Id: m-x.c,v 1.3 2004/04/11 17:56:46 karl Exp + + Copyright (C) 1993, 1997, 1998, 2001, 2002, 2004 Free Software + Foundation, Inc. +diff -r -x CVS -N -U 3 texinfo.orig/info/nodemenu.c texinfo.nbsd/info/nodemenu.c +--- texinfo.orig/info/nodemenu.c 2004-04-11 19:56:46.000000000 +0200 ++++ texinfo.nbsd/info/nodemenu.c 2013-04-10 22:45:11.340839495 +0200 +@@ -1,5 +1,7 @@ ++/* $NetBSD: nodemenu.c,v 1.1.1.6 2008/09/02 07:49:49 christos Exp $ */ ++ + /* nodemenu.c -- produce a menu of all visited nodes. +- $Id: nodemenu.c,v 1.5 2004/04/11 17:56:46 karl Exp $ ++ Id: nodemenu.c,v 1.5 2004/04/11 17:56:46 karl Exp + + Copyright (C) 1993, 1997, 1998, 2002, 2003, 2004 Free Software + Foundation, Inc. +diff -r -x CVS -N -U 3 texinfo.orig/info/nodes.c texinfo.nbsd/info/nodes.c +--- texinfo.orig/info/nodes.c 2004-04-11 19:56:46.000000000 +0200 ++++ texinfo.nbsd/info/nodes.c 2013-04-10 22:45:11.340839495 +0200 +@@ -1,5 +1,7 @@ ++/* $NetBSD: nodes.c,v 1.7 2008/09/02 08:00:24 christos Exp $ */ ++ + /* nodes.c -- how to get an Info file and node. +- $Id: nodes.c,v 1.4 2004/04/11 17:56:46 karl Exp $ ++ Id: nodes.c,v 1.4 2004/04/11 17:56:46 karl Exp + + Copyright (C) 1993, 1998, 1999, 2000, 2002, 2003, 2004 Free Software + Foundation, Inc. +diff -r -x CVS -N -U 3 texinfo.orig/info/nodes.h texinfo.nbsd/info/nodes.h +--- texinfo.orig/info/nodes.h 2004-04-11 19:56:46.000000000 +0200 ++++ texinfo.nbsd/info/nodes.h 2013-04-10 22:45:11.340839495 +0200 +@@ -1,5 +1,7 @@ ++/* $NetBSD: nodes.h,v 1.1.1.5 2008/09/02 07:49:51 christos Exp $ */ ++ + /* nodes.h -- How we represent nodes internally. +- $Id: nodes.h,v 1.3 2004/04/11 17:56:46 karl Exp $ ++ Id: nodes.h,v 1.3 2004/04/11 17:56:46 karl Exp + + Copyright (C) 1993, 1997, 1998, 2002, 2004 Free Software Foundation, Inc. + +diff -r -x CVS -N -U 3 texinfo.orig/info/pcterm.c texinfo.nbsd/info/pcterm.c +--- texinfo.orig/info/pcterm.c 2004-04-11 19:56:46.000000000 +0200 ++++ texinfo.nbsd/info/pcterm.c 2013-04-10 22:45:11.340839495 +0200 +@@ -1,5 +1,7 @@ ++/* $NetBSD: pcterm.c,v 1.1.1.5 2008/09/02 07:50:19 christos Exp $ */ ++ + /* pcterm.c -- How to handle the PC terminal for Info under MS-DOS/MS-Windows. +- $Id: pcterm.c,v 1.4 2004/04/11 17:56:46 karl Exp $ ++ Id: pcterm.c,v 1.4 2004/04/11 17:56:46 karl Exp + + Copyright (C) 1998, 1999, 2003, 2004 Free Software Foundation, Inc. + +diff -r -x CVS -N -U 3 texinfo.orig/info/README texinfo.nbsd/info/README +--- texinfo.orig/info/README 2004-04-11 19:56:45.000000000 +0200 ++++ texinfo.nbsd/info/README 2013-04-10 22:45:11.340839495 +0200 +@@ -1,4 +1,4 @@ +-$Id: README,v 1.3 2004/04/11 17:56:45 karl Exp $ ++Id: README,v 1.3 2004/04/11 17:56:45 karl Exp + texinfo/info/README + + Copyright (C) 2002 Free Software Foundation, Inc. +diff -r -x CVS -N -U 3 texinfo.orig/info/search.c texinfo.nbsd/info/search.c +--- texinfo.orig/info/search.c 2004-04-11 19:56:46.000000000 +0200 ++++ texinfo.nbsd/info/search.c 2013-04-10 22:45:11.340839495 +0200 +@@ -1,5 +1,7 @@ ++/* $NetBSD: search.c,v 1.1.1.5 2008/09/02 07:49:51 christos Exp $ */ ++ + /* search.c -- searching large bodies of text. +- $Id: search.c,v 1.3 2004/04/11 17:56:46 karl Exp $ ++ Id: search.c,v 1.3 2004/04/11 17:56:46 karl Exp + + Copyright (C) 1993, 1997, 1998, 2002, 2004 Free Software Foundation, Inc. + +diff -r -x CVS -N -U 3 texinfo.orig/info/search.h texinfo.nbsd/info/search.h +--- texinfo.orig/info/search.h 2004-04-11 19:56:46.000000000 +0200 ++++ texinfo.nbsd/info/search.h 2013-04-10 22:45:11.340839495 +0200 +@@ -1,5 +1,7 @@ ++/* $NetBSD: search.h,v 1.1.1.5 2008/09/02 07:49:53 christos Exp $ */ ++ + /* search.h -- Structure used to search large bodies of text, with bounds. +- $Id: search.h,v 1.3 2004/04/11 17:56:46 karl Exp $ ++ Id: search.h,v 1.3 2004/04/11 17:56:46 karl Exp + + Copyright (C) 1993, 1997, 1998, 2002, 2004 Free Software Foundation, Inc. + +diff -r -x CVS -N -U 3 texinfo.orig/info/session.c texinfo.nbsd/info/session.c +--- texinfo.orig/info/session.c 2004-12-14 01:15:36.000000000 +0100 ++++ texinfo.nbsd/info/session.c 2013-04-10 22:45:11.340839495 +0200 +@@ -1,5 +1,7 @@ ++/* $NetBSD: session.c,v 1.5 2008/09/02 08:41:51 christos Exp $ */ ++ + /* session.c -- user windowing interface to Info. +- $Id: session.c,v 1.16 2004/12/14 00:15:36 karl Exp $ ++ Id: session.c,v 1.16 2004/12/14 00:15:36 karl Exp + + Copyright (C) 1993, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004 + Free Software Foundation, Inc. +@@ -962,7 +964,7 @@ + same as the first menu item found in this node. */ + window_message_in_echo_area + ((char *) _("Moving Up %d time(s), then Next."), +- (void *) (long) up_counter, NULL); ++ (void *)((intptr_t)up_counter), NULL); + + info_handle_pointer ("Next", window); + return; +@@ -1959,7 +1961,7 @@ + + /* Special case. Item "0" is the last item in this menu. */ + if (item == 0) +- for (i = 0; menu[i + 1]; i++); ++ for (i = 0; menu[i] && menu[i + 1]; i++); + else + { + for (i = 0; menu[i]; i++) +@@ -1975,7 +1977,7 @@ + } + else + info_error ((char *) _("There aren't %d items in this menu."), +- (void *) (long) item, NULL); ++ (void *)((intptr_t)item), NULL); + + info_free_references (menu); + return; +diff -r -x CVS -N -U 3 texinfo.orig/info/session.h texinfo.nbsd/info/session.h +--- texinfo.orig/info/session.h 2004-04-11 19:56:46.000000000 +0200 ++++ texinfo.nbsd/info/session.h 2013-04-10 22:45:11.344172895 +0200 +@@ -1,5 +1,7 @@ ++/* $NetBSD: session.h,v 1.1.1.5 2008/09/02 07:50:07 christos Exp $ */ ++ + /* session.h -- Functions found in session.c. +- $Id: session.h,v 1.3 2004/04/11 17:56:46 karl Exp $ ++ Id: session.h,v 1.3 2004/04/11 17:56:46 karl Exp + + Copyright (C) 1993, 1998, 1999, 2001, 2002, 2004 Free Software + Foundation, Inc. +diff -r -x CVS -N -U 3 texinfo.orig/info/signals.c texinfo.nbsd/info/signals.c +--- texinfo.orig/info/signals.c 2004-04-11 19:56:46.000000000 +0200 ++++ texinfo.nbsd/info/signals.c 2013-04-10 22:45:11.344172895 +0200 +@@ -1,5 +1,7 @@ ++/* $NetBSD: signals.c,v 1.1.1.6 2008/09/02 07:50:08 christos Exp $ */ ++ + /* signals.c -- install and maintain signal handlers. +- $Id: signals.c,v 1.7 2004/04/11 17:56:46 karl Exp $ ++ Id: signals.c,v 1.7 2004/04/11 17:56:46 karl Exp + + Copyright (C) 1993, 1994, 1995, 1998, 2002, 2003, 2004 Free Software + Foundation, Inc. +diff -r -x CVS -N -U 3 texinfo.orig/info/signals.h texinfo.nbsd/info/signals.h +--- texinfo.orig/info/signals.h 2004-04-11 19:56:46.000000000 +0200 ++++ texinfo.nbsd/info/signals.h 2013-04-10 22:45:11.344172895 +0200 +@@ -1,5 +1,7 @@ ++/* $NetBSD: signals.h,v 1.1.1.4 2008/09/02 07:50:08 christos Exp $ */ ++ + /* signals.h -- header to include system dependent signal definitions. +- $Id: signals.h,v 1.2 2004/04/11 17:56:46 karl Exp $ ++ Id: signals.h,v 1.2 2004/04/11 17:56:46 karl Exp + + Copyright (C) 1993, 1994, 1995, 1997, 2002, 2004 Free Software Foundation, Inc. + +diff -r -x CVS -N -U 3 texinfo.orig/info/termdep.h texinfo.nbsd/info/termdep.h +--- texinfo.orig/info/termdep.h 2004-04-11 19:56:46.000000000 +0200 ++++ texinfo.nbsd/info/termdep.h 2013-04-10 22:45:11.344172895 +0200 +@@ -1,5 +1,7 @@ ++/* $NetBSD: termdep.h,v 1.1.1.5 2008/09/02 07:50:08 christos Exp $ */ ++ + /* termdep.h -- system things that terminal.c depends on. +- $Id: termdep.h,v 1.2 2004/04/11 17:56:46 karl Exp $ ++ Id: termdep.h,v 1.2 2004/04/11 17:56:46 karl Exp + + Copyright (C) 1993, 1996, 1997, 1998, 2001, 2002 Free Software + Foundation, Inc. +diff -r -x CVS -N -U 3 texinfo.orig/info/terminal.c texinfo.nbsd/info/terminal.c +--- texinfo.orig/info/terminal.c 2004-04-11 19:56:46.000000000 +0200 ++++ texinfo.nbsd/info/terminal.c 2013-04-10 22:45:11.344172895 +0200 +@@ -1,5 +1,7 @@ ++/* $NetBSD: terminal.c,v 1.11 2011/05/15 14:35:47 christos Exp $ */ ++ + /* terminal.c -- how to handle the physical terminal for Info. +- $Id: terminal.c,v 1.3 2004/04/11 17:56:46 karl Exp $ ++ Id: terminal.c,v 1.3 2004/04/11 17:56:46 karl Exp + + Copyright (C) 1988, 1989, 1990, 1991, 1992, 1993, 1996, 1997, 1998, + 1999, 2001, 2002, 2004 Free Software Foundation, Inc. +@@ -25,6 +27,7 @@ + #include "termdep.h" + + #include ++#include + #include + + /* The Unix termcap interface code. */ +diff -r -x CVS -N -U 3 texinfo.orig/info/terminal.h texinfo.nbsd/info/terminal.h +--- texinfo.orig/info/terminal.h 2004-04-11 19:56:46.000000000 +0200 ++++ texinfo.nbsd/info/terminal.h 2013-04-10 22:45:11.344172895 +0200 +@@ -1,5 +1,7 @@ ++/* $NetBSD: terminal.h,v 1.1.1.4 2008/09/02 07:50:09 christos Exp $ */ ++ + /* terminal.h -- The external interface to terminal I/O. +- $Id: terminal.h,v 1.3 2004/04/11 17:56:46 karl Exp $ ++ Id: terminal.h,v 1.3 2004/04/11 17:56:46 karl Exp + + Copyright (C) 1993, 1996, 1997, 2001, 2002, 2004 Free Software + Foundation, Inc. +diff -r -x CVS -N -U 3 texinfo.orig/info/tilde.c texinfo.nbsd/info/tilde.c +--- texinfo.orig/info/tilde.c 2004-04-11 19:56:46.000000000 +0200 ++++ texinfo.nbsd/info/tilde.c 2013-04-10 22:45:11.344172895 +0200 +@@ -1,5 +1,7 @@ ++/* $NetBSD: tilde.c,v 1.1.1.5 2008/09/02 07:50:09 christos Exp $ */ ++ + /* tilde.c -- tilde expansion code (~/foo := $HOME/foo). +- $Id: tilde.c,v 1.3 2004/04/11 17:56:46 karl Exp $ ++ Id: tilde.c,v 1.3 2004/04/11 17:56:46 karl Exp + + Copyright (C) 1988, 1989, 1990, 1991, 1992, 1993, 1996, 1998, 1999, + 2002, 2004 Free Software Foundation, Inc. +diff -r -x CVS -N -U 3 texinfo.orig/info/tilde.h texinfo.nbsd/info/tilde.h +--- texinfo.orig/info/tilde.h 2004-04-11 19:56:46.000000000 +0200 ++++ texinfo.nbsd/info/tilde.h 2013-04-10 22:45:11.344172895 +0200 +@@ -1,5 +1,7 @@ ++/* $NetBSD: tilde.h,v 1.1.1.4 2008/09/02 07:50:10 christos Exp $ */ ++ + /* tilde.h: Externally available variables and function in libtilde.a. +- $Id: tilde.h,v 1.3 2004/04/11 17:56:46 karl Exp $ ++ Id: tilde.h,v 1.3 2004/04/11 17:56:46 karl Exp + + This file has appeared in prior works by the Free Software Foundation; + thus it carries copyright dates from 1988 through 1993. +diff -r -x CVS -N -U 3 texinfo.orig/info/variables.c texinfo.nbsd/info/variables.c +--- texinfo.orig/info/variables.c 2004-04-11 19:56:46.000000000 +0200 ++++ texinfo.nbsd/info/variables.c 2013-04-10 22:45:11.344172895 +0200 +@@ -1,5 +1,7 @@ ++/* $NetBSD: variables.c,v 1.1.1.5 2008/09/02 07:50:10 christos Exp $ */ ++ + /* variables.c -- how to manipulate user visible variables in Info. +- $Id: variables.c,v 1.3 2004/04/11 17:56:46 karl Exp $ ++ Id: variables.c,v 1.3 2004/04/11 17:56:46 karl Exp + + Copyright (C) 1993, 1997, 2001, 2002, 2004 Free Software Foundation, Inc. + +diff -r -x CVS -N -U 3 texinfo.orig/info/variables.h texinfo.nbsd/info/variables.h +--- texinfo.orig/info/variables.h 2004-04-11 19:56:46.000000000 +0200 ++++ texinfo.nbsd/info/variables.h 2013-04-10 22:45:11.344172895 +0200 +@@ -1,5 +1,7 @@ ++/* $NetBSD: variables.h,v 1.1.1.4 2008/09/02 07:50:10 christos Exp $ */ ++ + /* variables.h -- Description of user visible variables in Info. +- $Id: variables.h,v 1.3 2004/04/11 17:56:46 karl Exp $ ++ Id: variables.h,v 1.3 2004/04/11 17:56:46 karl Exp + + This file is part of GNU Info, a program for reading online documentation + stored in Info format. +diff -r -x CVS -N -U 3 texinfo.orig/info/window.c texinfo.nbsd/info/window.c +--- texinfo.orig/info/window.c 2004-04-11 19:56:46.000000000 +0200 ++++ texinfo.nbsd/info/window.c 2013-04-10 22:45:11.344172895 +0200 +@@ -1,5 +1,7 @@ ++/* $NetBSD: window.c,v 1.1.1.6 2008/09/02 07:50:14 christos Exp $ */ ++ + /* window.c -- windows in Info. +- $Id: window.c,v 1.4 2004/04/11 17:56:46 karl Exp $ ++ Id: window.c,v 1.4 2004/04/11 17:56:46 karl Exp + + Copyright (C) 1993, 1997, 1998, 2001, 2002, 2003, 2004 Free Software + Foundation, Inc. +diff -r -x CVS -N -U 3 texinfo.orig/info/window.h texinfo.nbsd/info/window.h +--- texinfo.orig/info/window.h 2004-04-11 19:56:46.000000000 +0200 ++++ texinfo.nbsd/info/window.h 2013-04-10 22:45:11.344172895 +0200 +@@ -1,5 +1,7 @@ ++/* $NetBSD: window.h,v 1.1.1.4 2008/09/02 07:50:14 christos Exp $ */ ++ + /* window.h -- Structure and flags used in manipulating Info windows. +- $Id: window.h,v 1.3 2004/04/11 17:56:46 karl Exp $ ++ Id: window.h,v 1.3 2004/04/11 17:56:46 karl Exp + + This file is part of GNU Info, a program for reading online documentation + stored in Info format. +diff -r -x CVS -N -U 3 texinfo.orig/INSTALL texinfo.nbsd/INSTALL +--- texinfo.orig/INSTALL 2004-11-19 14:08:47.000000000 +0100 ++++ texinfo.nbsd/INSTALL 2013-04-10 22:45:11.334172695 +0200 +@@ -1,4 +1,4 @@ +-$Id: INSTALL,v 1.5 2004/11/19 13:08:47 karl Exp $ ++Id: INSTALL,v 1.5 2004/11/19 13:08:47 karl Exp + + Copying and distribution of this file, with or without modification, + are permitted in any medium without royalty provided the copyright +diff -r -x CVS -N -U 3 texinfo.orig/intl/bindtextdom.c texinfo.nbsd/intl/bindtextdom.c +--- texinfo.orig/intl/bindtextdom.c 2003-12-24 16:12:48.000000000 +0100 ++++ texinfo.nbsd/intl/bindtextdom.c 2013-04-10 22:45:11.344172895 +0200 +@@ -1,3 +1,5 @@ ++/* $NetBSD: bindtextdom.c,v 1.1.1.5 2004/07/12 23:27:17 wiz Exp $ */ ++ + /* Implementation of the bindtextdomain(3) function + Copyright (C) 1995-1998, 2000-2003 Free Software Foundation, Inc. + +diff -r -x CVS -N -U 3 texinfo.orig/intl/dcgettext.c texinfo.nbsd/intl/dcgettext.c +--- texinfo.orig/intl/dcgettext.c 2003-12-24 16:12:48.000000000 +0100 ++++ texinfo.nbsd/intl/dcgettext.c 2013-04-10 22:45:11.344172895 +0200 +@@ -1,3 +1,5 @@ ++/* $NetBSD: dcgettext.c,v 1.1.1.4 2004/07/12 23:27:16 wiz Exp $ */ ++ + /* Implementation of the dcgettext(3) function. + Copyright (C) 1995-1999, 2000-2003 Free Software Foundation, Inc. + +diff -r -x CVS -N -U 3 texinfo.orig/intl/dcigettext.c texinfo.nbsd/intl/dcigettext.c +--- texinfo.orig/intl/dcigettext.c 2003-12-24 16:12:48.000000000 +0100 ++++ texinfo.nbsd/intl/dcigettext.c 2013-04-10 22:45:11.344172895 +0200 +@@ -1,3 +1,5 @@ ++/* $NetBSD: dcigettext.c,v 1.1.1.3 2004/07/12 23:27:16 wiz Exp $ */ ++ + /* Implementation of the internal dcigettext function. + Copyright (C) 1995-1999, 2000-2003 Free Software Foundation, Inc. + +diff -r -x CVS -N -U 3 texinfo.orig/intl/dcngettext.c texinfo.nbsd/intl/dcngettext.c +--- texinfo.orig/intl/dcngettext.c 2003-12-24 16:12:48.000000000 +0100 ++++ texinfo.nbsd/intl/dcngettext.c 2013-04-10 22:45:11.344172895 +0200 +@@ -1,3 +1,5 @@ ++/* $NetBSD: dcngettext.c,v 1.1.1.3 2004/07/12 23:27:16 wiz Exp $ */ ++ + /* Implementation of the dcngettext(3) function. + Copyright (C) 1995-1999, 2000-2003 Free Software Foundation, Inc. + +diff -r -x CVS -N -U 3 texinfo.orig/intl/dgettext.c texinfo.nbsd/intl/dgettext.c +--- texinfo.orig/intl/dgettext.c 2003-12-24 16:12:48.000000000 +0100 ++++ texinfo.nbsd/intl/dgettext.c 2013-04-10 22:45:11.344172895 +0200 +@@ -1,3 +1,5 @@ ++/* $NetBSD: dgettext.c,v 1.1.1.4 2004/07/12 23:27:16 wiz Exp $ */ ++ + /* Implementation of the dgettext(3) function. + Copyright (C) 1995-1997, 2000-2003 Free Software Foundation, Inc. + +diff -r -x CVS -N -U 3 texinfo.orig/intl/dngettext.c texinfo.nbsd/intl/dngettext.c +--- texinfo.orig/intl/dngettext.c 2003-12-24 16:12:48.000000000 +0100 ++++ texinfo.nbsd/intl/dngettext.c 2013-04-10 22:45:11.344172895 +0200 +@@ -1,3 +1,5 @@ ++/* $NetBSD: dngettext.c,v 1.1.1.3 2004/07/12 23:27:16 wiz Exp $ */ ++ + /* Implementation of the dngettext(3) function. + Copyright (C) 1995-1997, 2000-2003 Free Software Foundation, Inc. + +diff -r -x CVS -N -U 3 texinfo.orig/intl/eval-plural.h texinfo.nbsd/intl/eval-plural.h +--- texinfo.orig/intl/eval-plural.h 2003-12-24 16:12:48.000000000 +0100 ++++ texinfo.nbsd/intl/eval-plural.h 2013-04-10 22:45:11.344172895 +0200 +@@ -1,3 +1,5 @@ ++/* $NetBSD: eval-plural.h,v 1.1.1.2 2004/07/12 23:27:17 wiz Exp $ */ ++ + /* Plural expression evaluation. + Copyright (C) 2000-2003 Free Software Foundation, Inc. + +diff -r -x CVS -N -U 3 texinfo.orig/intl/explodename.c texinfo.nbsd/intl/explodename.c +--- texinfo.orig/intl/explodename.c 2003-12-24 16:12:48.000000000 +0100 ++++ texinfo.nbsd/intl/explodename.c 2013-04-10 22:45:11.344172895 +0200 +@@ -1,3 +1,5 @@ ++/* $NetBSD: explodename.c,v 1.1.1.4 2004/07/12 23:27:16 wiz Exp $ */ ++ + /* Copyright (C) 1995-1998, 2000-2001, 2003 Free Software Foundation, Inc. + Contributed by Ulrich Drepper , 1995. + +diff -r -x CVS -N -U 3 texinfo.orig/intl/finddomain.c texinfo.nbsd/intl/finddomain.c +--- texinfo.orig/intl/finddomain.c 2003-12-24 16:12:48.000000000 +0100 ++++ texinfo.nbsd/intl/finddomain.c 2013-04-10 22:45:11.344172895 +0200 +@@ -1,3 +1,5 @@ ++/* $NetBSD: finddomain.c,v 1.1.1.5 2004/07/12 23:27:16 wiz Exp $ */ ++ + /* Handle list of needed message catalogs + Copyright (C) 1995-1999, 2000-2001, 2003 Free Software Foundation, Inc. + Written by Ulrich Drepper , 1995. +diff -r -x CVS -N -U 3 texinfo.orig/intl/gettext.c texinfo.nbsd/intl/gettext.c +--- texinfo.orig/intl/gettext.c 2003-12-24 16:12:48.000000000 +0100 ++++ texinfo.nbsd/intl/gettext.c 2013-04-10 22:45:11.344172895 +0200 +@@ -1,3 +1,5 @@ ++/* $NetBSD: gettext.c,v 1.1.1.4 2004/07/12 23:27:16 wiz Exp $ */ ++ + /* Implementation of gettext(3) function. + Copyright (C) 1995, 1997, 2000-2003 Free Software Foundation, Inc. + +diff -r -x CVS -N -U 3 texinfo.orig/intl/gettextP.h texinfo.nbsd/intl/gettextP.h +--- texinfo.orig/intl/gettextP.h 2003-12-24 16:12:48.000000000 +0100 ++++ texinfo.nbsd/intl/gettextP.h 2013-04-10 22:45:11.344172895 +0200 +@@ -1,3 +1,5 @@ ++/* $NetBSD: gettextP.h,v 1.1.1.5 2004/07/12 23:27:17 wiz Exp $ */ ++ + /* Header describing internals of libintl library. + Copyright (C) 1995-1999, 2000-2003 Free Software Foundation, Inc. + Written by Ulrich Drepper , 1995. +diff -r -x CVS -N -U 3 texinfo.orig/intl/gmo.h texinfo.nbsd/intl/gmo.h +--- texinfo.orig/intl/gmo.h 2004-04-11 19:56:46.000000000 +0200 ++++ texinfo.nbsd/intl/gmo.h 2013-04-10 22:45:11.344172895 +0200 +@@ -1,3 +1,5 @@ ++/* $NetBSD: gmo.h,v 1.1.1.2 2004/07/12 23:27:17 wiz Exp $ */ ++ + /* Description of GNU message catalog format: general file layout. + Copyright (C) 1995, 1997, 2000-2002, 2004 Free Software Foundation, Inc. + +diff -r -x CVS -N -U 3 texinfo.orig/intl/hash-string.h texinfo.nbsd/intl/hash-string.h +--- texinfo.orig/intl/hash-string.h 2003-12-24 16:12:48.000000000 +0100 ++++ texinfo.nbsd/intl/hash-string.h 2013-04-10 22:45:11.344172895 +0200 +@@ -1,3 +1,5 @@ ++/* $NetBSD: hash-string.h,v 1.1.1.4 2004/07/12 23:27:17 wiz Exp $ */ ++ + /* Description of GNU message catalog format: string hashing function. + Copyright (C) 1995, 1997-1998, 2000-2003 Free Software Foundation, Inc. + +diff -r -x CVS -N -U 3 texinfo.orig/intl/intl-compat.c texinfo.nbsd/intl/intl-compat.c +--- texinfo.orig/intl/intl-compat.c 2003-12-24 16:12:48.000000000 +0100 ++++ texinfo.nbsd/intl/intl-compat.c 2013-04-10 22:45:11.344172895 +0200 +@@ -1,3 +1,5 @@ ++/* $NetBSD: intl-compat.c,v 1.1.1.4 2004/07/12 23:27:15 wiz Exp $ */ ++ + /* intl-compat.c - Stub functions to call gettext functions from GNU gettext + Library. + Copyright (C) 1995, 2000-2003 Software Foundation, Inc. +diff -r -x CVS -N -U 3 texinfo.orig/intl/l10nflist.c texinfo.nbsd/intl/l10nflist.c +--- texinfo.orig/intl/l10nflist.c 2003-12-24 16:12:48.000000000 +0100 ++++ texinfo.nbsd/intl/l10nflist.c 2013-04-10 22:45:11.344172895 +0200 +@@ -1,3 +1,5 @@ ++/* $NetBSD: l10nflist.c,v 1.1.1.4 2004/07/12 23:27:16 wiz Exp $ */ ++ + /* Copyright (C) 1995-1999, 2000-2003 Free Software Foundation, Inc. + Contributed by Ulrich Drepper , 1995. + +diff -r -x CVS -N -U 3 texinfo.orig/intl/loadinfo.h texinfo.nbsd/intl/loadinfo.h +--- texinfo.orig/intl/loadinfo.h 2003-12-24 16:12:48.000000000 +0100 ++++ texinfo.nbsd/intl/loadinfo.h 2013-04-10 22:45:11.344172895 +0200 +@@ -1,3 +1,5 @@ ++/* $NetBSD: loadinfo.h,v 1.1.1.4 2004/07/12 23:27:17 wiz Exp $ */ ++ + /* Copyright (C) 1996-1999, 2000-2003 Free Software Foundation, Inc. + This file is part of the GNU C Library. + Contributed by Ulrich Drepper , 1996. +diff -r -x CVS -N -U 3 texinfo.orig/intl/loadmsgcat.c texinfo.nbsd/intl/loadmsgcat.c +--- texinfo.orig/intl/loadmsgcat.c 2004-04-11 19:56:46.000000000 +0200 ++++ texinfo.nbsd/intl/loadmsgcat.c 2013-04-10 22:45:11.344172895 +0200 +@@ -1,3 +1,5 @@ ++/* $NetBSD: loadmsgcat.c,v 1.1.1.5 2004/07/12 23:27:16 wiz Exp $ */ ++ + /* Load needed message catalogs. + Copyright (C) 1995-1999, 2000-2004 Free Software Foundation, Inc. + +diff -r -x CVS -N -U 3 texinfo.orig/intl/localcharset.c texinfo.nbsd/intl/localcharset.c +--- texinfo.orig/intl/localcharset.c 2003-12-24 16:12:48.000000000 +0100 ++++ texinfo.nbsd/intl/localcharset.c 2013-04-10 22:45:11.344172895 +0200 +@@ -1,3 +1,5 @@ ++/* $NetBSD: localcharset.c,v 1.1.1.3 2004/07/12 23:27:16 wiz Exp $ */ ++ + /* Determine a canonical name for the current locale's character encoding. + + Copyright (C) 2000-2003 Free Software Foundation, Inc. +diff -r -x CVS -N -U 3 texinfo.orig/intl/localcharset.h texinfo.nbsd/intl/localcharset.h +--- texinfo.orig/intl/localcharset.h 2003-11-06 15:36:16.000000000 +0100 ++++ texinfo.nbsd/intl/localcharset.h 2013-04-10 22:45:11.344172895 +0200 +@@ -1,3 +1,5 @@ ++/* $NetBSD: localcharset.h,v 1.1.1.1 2003/07/03 14:59:13 wiz Exp $ */ ++ + /* Determine a canonical name for the current locale's character encoding. + Copyright (C) 2000-2003 Free Software Foundation, Inc. + This file is part of the GNU CHARSET Library. +diff -r -x CVS -N -U 3 texinfo.orig/intl/localealias.c texinfo.nbsd/intl/localealias.c +--- texinfo.orig/intl/localealias.c 2003-12-24 16:12:48.000000000 +0100 ++++ texinfo.nbsd/intl/localealias.c 2013-04-10 22:45:11.344172895 +0200 +@@ -1,3 +1,5 @@ ++/* $NetBSD: localealias.c,v 1.1.1.5 2004/07/12 23:27:16 wiz Exp $ */ ++ + /* Handle aliases for locale names. + Copyright (C) 1995-1999, 2000-2001, 2003 Free Software Foundation, Inc. + +diff -r -x CVS -N -U 3 texinfo.orig/intl/localename.c texinfo.nbsd/intl/localename.c +--- texinfo.orig/intl/localename.c 2004-04-11 19:56:46.000000000 +0200 ++++ texinfo.nbsd/intl/localename.c 2013-04-10 22:45:11.344172895 +0200 +@@ -1,3 +1,5 @@ ++/* $NetBSD: localename.c,v 1.1.1.2 2004/07/12 23:27:16 wiz Exp $ */ ++ + /* Determine the current selected locale. + Copyright (C) 1995-1999, 2000-2004 Free Software Foundation, Inc. + +diff -r -x CVS -N -U 3 texinfo.orig/intl/log.c texinfo.nbsd/intl/log.c +--- texinfo.orig/intl/log.c 2003-12-24 16:12:48.000000000 +0100 ++++ texinfo.nbsd/intl/log.c 2013-04-10 22:45:11.344172895 +0200 +@@ -1,3 +1,5 @@ ++/* $NetBSD: log.c,v 1.1.1.2 2004/07/12 23:27:15 wiz Exp $ */ ++ + /* Log file output. + Copyright (C) 2003 Free Software Foundation, Inc. + +diff -r -x CVS -N -U 3 texinfo.orig/intl/Makefile.in texinfo.nbsd/intl/Makefile.in +--- texinfo.orig/intl/Makefile.in 2004-04-11 19:56:46.000000000 +0200 ++++ texinfo.nbsd/intl/Makefile.in 2013-04-10 22:45:11.344172895 +0200 +@@ -19,7 +19,7 @@ + PACKAGE = @PACKAGE@ + VERSION = @VERSION@ + +-SHELL = /bin/sh ++SHELL = @SHELL@ + + srcdir = @srcdir@ + top_srcdir = @top_srcdir@ +diff -r -x CVS -N -U 3 texinfo.orig/intl/ngettext.c texinfo.nbsd/intl/ngettext.c +--- texinfo.orig/intl/ngettext.c 2003-12-24 16:12:48.000000000 +0100 ++++ texinfo.nbsd/intl/ngettext.c 2013-04-10 22:45:11.344172895 +0200 +@@ -1,3 +1,5 @@ ++/* $NetBSD: ngettext.c,v 1.1.1.3 2004/07/12 23:27:16 wiz Exp $ */ ++ + /* Implementation of ngettext(3) function. + Copyright (C) 1995, 1997, 2000-2003 Free Software Foundation, Inc. + +diff -r -x CVS -N -U 3 texinfo.orig/intl/os2compat.c texinfo.nbsd/intl/os2compat.c +--- texinfo.orig/intl/os2compat.c 2002-09-21 02:41:16.000000000 +0200 ++++ texinfo.nbsd/intl/os2compat.c 2013-04-10 22:45:11.344172895 +0200 +@@ -1,3 +1,5 @@ ++/* $NetBSD: os2compat.c,v 1.1.1.1 2003/01/17 14:54:20 wiz Exp $ */ ++ + /* OS/2 compatibility functions. + Copyright (C) 2001-2002 Free Software Foundation, Inc. + +diff -r -x CVS -N -U 3 texinfo.orig/intl/os2compat.h texinfo.nbsd/intl/os2compat.h +--- texinfo.orig/intl/os2compat.h 2002-09-21 02:41:16.000000000 +0200 ++++ texinfo.nbsd/intl/os2compat.h 2013-04-10 22:45:11.344172895 +0200 +@@ -1,3 +1,5 @@ ++/* $NetBSD: os2compat.h,v 1.1.1.1 2003/01/17 14:54:19 wiz Exp $ */ ++ + /* OS/2 compatibility defines. + This file is intended to be included from config.h + Copyright (C) 2001-2002 Free Software Foundation, Inc. +diff -r -x CVS -N -U 3 texinfo.orig/intl/osdep.c texinfo.nbsd/intl/osdep.c +--- texinfo.orig/intl/osdep.c 2002-09-03 17:51:40.000000000 +0200 ++++ texinfo.nbsd/intl/osdep.c 2013-04-10 22:45:11.344172895 +0200 +@@ -1,3 +1,5 @@ ++/* $NetBSD: osdep.c,v 1.1.1.1 2003/01/17 14:54:20 wiz Exp $ */ ++ + /* OS dependent parts of libintl. + Copyright (C) 2001-2002 Free Software Foundation, Inc. + +diff -r -x CVS -N -U 3 texinfo.orig/intl/plural.c texinfo.nbsd/intl/plural.c +--- texinfo.orig/intl/plural.c 2004-04-11 19:56:46.000000000 +0200 ++++ texinfo.nbsd/intl/plural.c 2013-04-10 22:45:11.344172895 +0200 +@@ -1,3 +1,5 @@ ++/* $NetBSD: plural.c,v 1.1.1.3 2004/07/12 23:27:15 wiz Exp $ */ ++ + /* A Bison parser, made from plural.y + by GNU bison 1.35. */ + +diff -r -x CVS -N -U 3 texinfo.orig/intl/plural-exp.c texinfo.nbsd/intl/plural-exp.c +--- texinfo.orig/intl/plural-exp.c 2003-12-24 16:12:48.000000000 +0100 ++++ texinfo.nbsd/intl/plural-exp.c 2013-04-10 22:45:11.344172895 +0200 +@@ -1,3 +1,5 @@ ++/* $NetBSD: plural-exp.c,v 1.1.1.2 2004/07/12 23:27:16 wiz Exp $ */ ++ + /* Expression parsing for plural form selection. + Copyright (C) 2000-2001, 2003 Free Software Foundation, Inc. + Written by Ulrich Drepper , 2000. +diff -r -x CVS -N -U 3 texinfo.orig/intl/plural-exp.h texinfo.nbsd/intl/plural-exp.h +--- texinfo.orig/intl/plural-exp.h 2003-12-24 16:12:48.000000000 +0100 ++++ texinfo.nbsd/intl/plural-exp.h 2013-04-10 22:45:11.344172895 +0200 +@@ -1,3 +1,5 @@ ++/* $NetBSD: plural-exp.h,v 1.1.1.2 2004/07/12 23:27:17 wiz Exp $ */ ++ + /* Expression parsing and evaluation for plural form selection. + Copyright (C) 2000-2003 Free Software Foundation, Inc. + Written by Ulrich Drepper , 2000. +diff -r -x CVS -N -U 3 texinfo.orig/intl/plural.y texinfo.nbsd/intl/plural.y +--- texinfo.orig/intl/plural.y 2003-12-24 16:12:48.000000000 +0100 ++++ texinfo.nbsd/intl/plural.y 2013-04-10 22:45:11.344172895 +0200 +@@ -1,3 +1,5 @@ ++/* $NetBSD: plural.y,v 1.1.1.2 2004/07/12 23:27:16 wiz Exp $ */ ++ + %{ + /* Expression parsing for plural form selection. + Copyright (C) 2000-2001, 2003 Free Software Foundation, Inc. +diff -r -x CVS -N -U 3 texinfo.orig/intl/printf-args.c texinfo.nbsd/intl/printf-args.c +--- texinfo.orig/intl/printf-args.c 2004-04-11 19:56:46.000000000 +0200 ++++ texinfo.nbsd/intl/printf-args.c 2013-04-10 22:45:11.344172895 +0200 +@@ -1,3 +1,5 @@ ++/* $NetBSD: printf-args.c,v 1.1.1.1 2004/07/12 23:27:17 wiz Exp $ */ ++ + /* Decomposed printf argument list. + Copyright (C) 1999, 2002-2003 Free Software Foundation, Inc. + +diff -r -x CVS -N -U 3 texinfo.orig/intl/printf-args.h texinfo.nbsd/intl/printf-args.h +--- texinfo.orig/intl/printf-args.h 2004-04-11 19:56:46.000000000 +0200 ++++ texinfo.nbsd/intl/printf-args.h 2013-04-10 22:45:11.344172895 +0200 +@@ -1,3 +1,5 @@ ++/* $NetBSD: printf-args.h,v 1.1.1.1 2004/07/12 23:27:17 wiz Exp $ */ ++ + /* Decomposed printf argument list. + Copyright (C) 1999, 2002-2003 Free Software Foundation, Inc. + +diff -r -x CVS -N -U 3 texinfo.orig/intl/printf.c texinfo.nbsd/intl/printf.c +--- texinfo.orig/intl/printf.c 2004-04-11 19:56:46.000000000 +0200 ++++ texinfo.nbsd/intl/printf.c 2013-04-10 22:45:11.344172895 +0200 +@@ -1,3 +1,5 @@ ++/* $NetBSD: printf.c,v 1.1.1.1 2004/07/12 23:27:15 wiz Exp $ */ ++ + /* Formatted output to strings, using POSIX/XSI format strings with positions. + Copyright (C) 2003 Free Software Foundation, Inc. + Written by Bruno Haible , 2003. +diff -r -x CVS -N -U 3 texinfo.orig/intl/printf-parse.c texinfo.nbsd/intl/printf-parse.c +--- texinfo.orig/intl/printf-parse.c 2004-04-11 19:56:46.000000000 +0200 ++++ texinfo.nbsd/intl/printf-parse.c 2013-04-10 22:45:11.344172895 +0200 +@@ -1,3 +1,5 @@ ++/* $NetBSD: printf-parse.c,v 1.1.1.1 2004/07/12 23:27:17 wiz Exp $ */ ++ + /* Formatted output to strings. + Copyright (C) 1999-2000, 2002-2003 Free Software Foundation, Inc. + +diff -r -x CVS -N -U 3 texinfo.orig/intl/printf-parse.h texinfo.nbsd/intl/printf-parse.h +--- texinfo.orig/intl/printf-parse.h 2004-04-11 19:56:46.000000000 +0200 ++++ texinfo.nbsd/intl/printf-parse.h 2013-04-10 22:45:11.344172895 +0200 +@@ -1,3 +1,5 @@ ++/* $NetBSD: printf-parse.h,v 1.1.1.1 2004/07/12 23:27:17 wiz Exp $ */ ++ + /* Parse printf format string. + Copyright (C) 1999, 2002-2003 Free Software Foundation, Inc. + +diff -r -x CVS -N -U 3 texinfo.orig/intl/relocatable.c texinfo.nbsd/intl/relocatable.c +--- texinfo.orig/intl/relocatable.c 2003-12-24 16:12:48.000000000 +0100 ++++ texinfo.nbsd/intl/relocatable.c 2013-04-10 22:45:11.344172895 +0200 +@@ -1,3 +1,5 @@ ++/* $NetBSD: relocatable.c,v 1.1.1.2 2004/07/12 23:27:15 wiz Exp $ */ ++ + /* Provide relocatable packages. + Copyright (C) 2003 Free Software Foundation, Inc. + Written by Bruno Haible , 2003. +diff -r -x CVS -N -U 3 texinfo.orig/intl/relocatable.h texinfo.nbsd/intl/relocatable.h +--- texinfo.orig/intl/relocatable.h 2003-12-24 16:12:48.000000000 +0100 ++++ texinfo.nbsd/intl/relocatable.h 2013-04-10 22:45:11.344172895 +0200 +@@ -1,3 +1,5 @@ ++/* $NetBSD: relocatable.h,v 1.1.1.2 2004/07/12 23:27:17 wiz Exp $ */ ++ + /* Provide relocatable packages. + Copyright (C) 2003 Free Software Foundation, Inc. + Written by Bruno Haible , 2003. +diff -r -x CVS -N -U 3 texinfo.orig/intl/textdomain.c texinfo.nbsd/intl/textdomain.c +--- texinfo.orig/intl/textdomain.c 2003-12-24 16:12:48.000000000 +0100 ++++ texinfo.nbsd/intl/textdomain.c 2013-04-10 22:45:11.344172895 +0200 +@@ -1,3 +1,5 @@ ++/* $NetBSD: textdomain.c,v 1.1.1.4 2004/07/12 23:27:16 wiz Exp $ */ ++ + /* Implementation of the textdomain(3) function. + Copyright (C) 1995-1998, 2000-2003 Free Software Foundation, Inc. + +diff -r -x CVS -N -U 3 texinfo.orig/intl/vasnprintf.c texinfo.nbsd/intl/vasnprintf.c +--- texinfo.orig/intl/vasnprintf.c 2004-04-11 19:56:46.000000000 +0200 ++++ texinfo.nbsd/intl/vasnprintf.c 2013-04-10 22:45:11.344172895 +0200 +@@ -1,3 +1,5 @@ ++/* $NetBSD: vasnprintf.c,v 1.1.1.1 2004/07/12 23:27:17 wiz Exp $ */ ++ + /* vsprintf with automatic memory allocation. + Copyright (C) 1999, 2002-2003 Free Software Foundation, Inc. + +diff -r -x CVS -N -U 3 texinfo.orig/intl/vasnprintf.h texinfo.nbsd/intl/vasnprintf.h +--- texinfo.orig/intl/vasnprintf.h 2004-04-11 19:56:46.000000000 +0200 ++++ texinfo.nbsd/intl/vasnprintf.h 2013-04-10 22:45:11.347506295 +0200 +@@ -1,3 +1,5 @@ ++/* $NetBSD: vasnprintf.h,v 1.1.1.1 2004/07/12 23:27:17 wiz Exp $ */ ++ + /* vsprintf with automatic memory allocation. + Copyright (C) 2002-2003 Free Software Foundation, Inc. + +diff -r -x CVS -N -U 3 texinfo.orig/intl/vasnwprintf.h texinfo.nbsd/intl/vasnwprintf.h +--- texinfo.orig/intl/vasnwprintf.h 2004-04-11 19:56:46.000000000 +0200 ++++ texinfo.nbsd/intl/vasnwprintf.h 2013-04-10 22:45:11.347506295 +0200 +@@ -1,3 +1,5 @@ ++/* $NetBSD: vasnwprintf.h,v 1.1.1.1 2004/07/12 23:27:17 wiz Exp $ */ ++ + /* vswprintf with automatic memory allocation. + Copyright (C) 2002-2003 Free Software Foundation, Inc. + +diff -r -x CVS -N -U 3 texinfo.orig/intl/wprintf-parse.h texinfo.nbsd/intl/wprintf-parse.h +--- texinfo.orig/intl/wprintf-parse.h 2004-04-11 19:56:46.000000000 +0200 ++++ texinfo.nbsd/intl/wprintf-parse.h 2013-04-10 22:45:11.347506295 +0200 +@@ -1,3 +1,5 @@ ++/* $NetBSD: wprintf-parse.h,v 1.1.1.1 2004/07/12 23:27:17 wiz Exp $ */ ++ + /* Parse printf format string. + Copyright (C) 1999, 2002-2003 Free Software Foundation, Inc. + +diff -r -x CVS -N -U 3 texinfo.orig/intl/xsize.h texinfo.nbsd/intl/xsize.h +--- texinfo.orig/intl/xsize.h 2004-04-11 19:56:46.000000000 +0200 ++++ texinfo.nbsd/intl/xsize.h 2013-04-10 22:45:11.347506295 +0200 +@@ -1,3 +1,5 @@ ++/* $NetBSD: xsize.h,v 1.1.1.1 2004/07/12 23:27:17 wiz Exp $ */ ++ + /* xsize.h -- Checked size_t computations. + + Copyright (C) 2003 Free Software Foundation, Inc. +diff -r -x CVS -N -U 3 texinfo.orig/INTRODUCTION texinfo.nbsd/INTRODUCTION +--- texinfo.orig/INTRODUCTION 2004-04-11 19:56:45.000000000 +0200 ++++ texinfo.nbsd/INTRODUCTION 2013-04-10 22:45:11.334172695 +0200 +@@ -1,4 +1,4 @@ +-$Id: INTRODUCTION,v 1.3 2004/04/11 17:56:45 karl Exp $ ++Id: INTRODUCTION,v 1.3 2004/04/11 17:56:45 karl Exp + Getting started with Texinfo. + + Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 +diff -r -x CVS -N -U 3 texinfo.orig/lib/alloca.c texinfo.nbsd/lib/alloca.c +--- texinfo.orig/lib/alloca.c 2004-05-17 14:59:20.000000000 +0200 ++++ texinfo.nbsd/lib/alloca.c 2013-04-10 22:45:11.347506295 +0200 +@@ -1,3 +1,5 @@ ++/* $NetBSD: alloca.c,v 1.1.1.5 2008/09/02 07:49:28 christos Exp $ */ ++ + /* alloca.c -- allocate automatically reclaimed memory + (Mostly) portable public-domain implementation -- D A Gwyn + +diff -r -x CVS -N -U 3 texinfo.orig/lib/getopt1.c texinfo.nbsd/lib/getopt1.c +--- texinfo.orig/lib/getopt1.c 2004-09-10 14:43:21.000000000 +0200 ++++ texinfo.nbsd/lib/getopt1.c 2013-04-10 22:45:11.347506295 +0200 +@@ -1,3 +1,5 @@ ++/* $NetBSD: getopt1.c,v 1.1.1.6 2008/09/02 07:49:29 christos Exp $ */ ++ + /* getopt_long and getopt_long_only entry points for GNU getopt. + Copyright (C) 1987,88,89,90,91,92,93,94,96,97,98,2004 + Free Software Foundation, Inc. +diff -r -x CVS -N -U 3 texinfo.orig/lib/getopt.c texinfo.nbsd/lib/getopt.c +--- texinfo.orig/lib/getopt.c 2004-09-10 14:43:21.000000000 +0200 ++++ texinfo.nbsd/lib/getopt.c 2013-04-10 22:45:11.347506295 +0200 +@@ -1,3 +1,5 @@ ++/* $NetBSD: getopt.c,v 1.7 2008/09/02 08:00:24 christos Exp $ */ ++ + /* Getopt for GNU. + NOTE: getopt is now part of the C library, so if you don't know what + "Keep this file name-space clean" means, talk to drepper@gnu.org +diff -r -x CVS -N -U 3 texinfo.orig/lib/getopt_.h texinfo.nbsd/lib/getopt_.h +--- texinfo.orig/lib/getopt_.h 2004-09-14 14:36:00.000000000 +0200 ++++ texinfo.nbsd/lib/getopt_.h 2013-04-10 22:45:11.347506295 +0200 +@@ -1,3 +1,5 @@ ++/* $NetBSD: getopt_.h,v 1.1.1.1 2008/09/02 07:49:31 christos Exp $ */ ++ + /* Declarations for getopt. + Copyright (C) 1989-1994,1996-1999,2001,2003,2004 + Free Software Foundation, Inc. +diff -r -x CVS -N -U 3 texinfo.orig/lib/getopt.h texinfo.nbsd/lib/getopt.h +--- texinfo.orig/lib/getopt.h 2004-09-14 14:36:00.000000000 +0200 ++++ texinfo.nbsd/lib/getopt.h 2013-04-10 22:45:11.347506295 +0200 +@@ -1,5 +1,7 @@ ++/* $NetBSD: getopt.h,v 1.1.1.6 2008/09/02 07:49:28 christos Exp $ */ ++ + /* getopt.h -- wrapper for gnulib getopt_.h. +- $Id: getopt.h,v 1.6 2004/09/14 12:36:00 karl Exp $ ++ Id: getopt.h,v 1.6 2004/09/14 12:36:00 karl Exp + Copyright (C) 2004 Free Software Foundation, Inc. + + Copying and distribution of this file, with or without modification, +diff -r -x CVS -N -U 3 texinfo.orig/lib/getopt_int.h texinfo.nbsd/lib/getopt_int.h +--- texinfo.orig/lib/getopt_int.h 2004-04-11 19:56:46.000000000 +0200 ++++ texinfo.nbsd/lib/getopt_int.h 2013-04-10 22:45:11.347506295 +0200 +@@ -1,3 +1,5 @@ ++/* $NetBSD: getopt_int.h,v 1.1.1.1 2004/07/12 23:26:57 wiz Exp $ */ ++ + /* Internal declarations for getopt. + Copyright (C) 1989-1994,1996-1999,2001,2003,2004 + Free Software Foundation, Inc. +diff -r -x CVS -N -U 3 texinfo.orig/lib/gettext.h texinfo.nbsd/lib/gettext.h +--- texinfo.orig/lib/gettext.h 2003-07-17 15:11:25.000000000 +0200 ++++ texinfo.nbsd/lib/gettext.h 2013-04-10 22:45:11.347506295 +0200 +@@ -1,3 +1,5 @@ ++/* $NetBSD: gettext.h,v 1.1.1.2 2004/07/12 23:26:56 wiz Exp $ */ ++ + /* Convenience header for conditional use of GNU . + Copyright (C) 1995-1998, 2000-2002 Free Software Foundation, Inc. + +diff -r -x CVS -N -U 3 texinfo.orig/lib/Makefile.am texinfo.nbsd/lib/Makefile.am +--- texinfo.orig/lib/Makefile.am 2004-11-06 23:05:59.000000000 +0100 ++++ texinfo.nbsd/lib/Makefile.am 2013-04-10 22:45:11.347506295 +0200 +@@ -1,4 +1,4 @@ +-# $Id: Makefile.am,v 1.7 2004/11/06 22:05:59 karl Exp $ ++# Id: Makefile.am,v 1.7 2004/11/06 22:05:59 karl Exp + # Makefile.am for texinfo/lib. + # Run automake in .. to produce Makefile.in from this. + # +diff -r -x CVS -N -U 3 texinfo.orig/lib/Makefile.in texinfo.nbsd/lib/Makefile.in +--- texinfo.orig/lib/Makefile.in 2004-12-31 19:01:48.000000000 +0100 ++++ texinfo.nbsd/lib/Makefile.in 2013-04-10 22:45:11.347506295 +0200 +@@ -14,7 +14,7 @@ + + @SET_MAKE@ + +-# $Id: Makefile.am,v 1.7 2004/11/06 22:05:59 karl Exp $ ++# Id: Makefile.am,v 1.7 2004/11/06 22:05:59 karl Exp + # Makefile.am for texinfo/lib. + # Run automake in .. to produce Makefile.in from this. + # +diff -r -x CVS -N -U 3 texinfo.orig/lib/memcpy.c texinfo.nbsd/lib/memcpy.c +--- texinfo.orig/lib/memcpy.c 2003-09-10 15:17:12.000000000 +0200 ++++ texinfo.nbsd/lib/memcpy.c 2013-04-10 22:45:11.347506295 +0200 +@@ -1,3 +1,5 @@ ++/* $NetBSD: memcpy.c,v 1.1.1.3 2004/07/12 23:26:57 wiz Exp $ */ ++ + /* Copyright (C) 1995, 1997, 2000, 2003 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify +diff -r -x CVS -N -U 3 texinfo.orig/lib/memmove.c texinfo.nbsd/lib/memmove.c +--- texinfo.orig/lib/memmove.c 2003-09-10 15:17:12.000000000 +0200 ++++ texinfo.nbsd/lib/memmove.c 2013-04-10 22:45:11.347506295 +0200 +@@ -1,3 +1,5 @@ ++/* $NetBSD: memmove.c,v 1.1.1.3 2004/07/12 23:26:57 wiz Exp $ */ ++ + /* memmove.c -- copy memory. + Copy LENGTH bytes from SOURCE to DEST. Does not null-terminate. + In the public domain. +diff -r -x CVS -N -U 3 texinfo.orig/lib/mkstemp.c texinfo.nbsd/lib/mkstemp.c +--- texinfo.orig/lib/mkstemp.c 2003-07-17 15:11:25.000000000 +0200 ++++ texinfo.nbsd/lib/mkstemp.c 2013-04-10 22:45:11.347506295 +0200 +@@ -1,3 +1,5 @@ ++/* $NetBSD: mkstemp.c,v 1.1.1.2 2004/07/12 23:26:57 wiz Exp $ */ ++ + /* Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc. + This file is derived from the one in the GNU C Library. + +diff -r -x CVS -N -U 3 texinfo.orig/lib/README texinfo.nbsd/lib/README +--- texinfo.orig/lib/README 2004-04-11 19:56:46.000000000 +0200 ++++ texinfo.nbsd/lib/README 2013-04-10 22:45:11.347506295 +0200 +@@ -1,4 +1,4 @@ +-$Id: README,v 1.3 2004/04/11 17:56:46 karl Exp $ ++Id: README,v 1.3 2004/04/11 17:56:46 karl Exp + texinfo/lib/README + + Copyright (C) 2002 Free Software Foundation, Inc. +diff -r -x CVS -N -U 3 texinfo.orig/lib/strcasecmp.c texinfo.nbsd/lib/strcasecmp.c +--- texinfo.orig/lib/strcasecmp.c 2003-06-06 14:19:59.000000000 +0200 ++++ texinfo.nbsd/lib/strcasecmp.c 2013-04-10 22:45:11.347506295 +0200 +@@ -1,3 +1,5 @@ ++/* $NetBSD: strcasecmp.c,v 1.1.1.3 2003/07/03 14:58:58 wiz Exp $ */ ++ + /* strcasecmp.c -- case insensitive string comparator + Copyright (C) 1998, 1999 Free Software Foundation, Inc. + +diff -r -x CVS -N -U 3 texinfo.orig/lib/strcase.h texinfo.nbsd/lib/strcase.h +--- texinfo.orig/lib/strcase.h 2004-04-11 20:13:34.000000000 +0200 ++++ texinfo.nbsd/lib/strcase.h 2013-04-10 22:45:11.347506295 +0200 +@@ -1,3 +1,5 @@ ++/* $NetBSD: strcase.h,v 1.1.1.1 2008/09/02 07:49:31 christos Exp $ */ ++ + /* Case-insensitive string comparison functions. + Copyright (C) 1995-1996, 2001, 2003 Free Software Foundation, Inc. + +diff -r -x CVS -N -U 3 texinfo.orig/lib/strdup.c texinfo.nbsd/lib/strdup.c +--- texinfo.orig/lib/strdup.c 2004-09-14 14:36:50.000000000 +0200 ++++ texinfo.nbsd/lib/strdup.c 2013-04-10 22:45:11.347506295 +0200 +@@ -1,3 +1,5 @@ ++/* $NetBSD: strdup.c,v 1.1.1.5 2008/09/02 07:49:28 christos Exp $ */ ++ + /* Copyright (C) 1991, 1996, 1997, 1998, 2002, 2003, 2004 Free Software + Foundation, Inc. + +diff -r -x CVS -N -U 3 texinfo.orig/lib/strdup.h texinfo.nbsd/lib/strdup.h +--- texinfo.orig/lib/strdup.h 2004-04-11 20:13:34.000000000 +0200 ++++ texinfo.nbsd/lib/strdup.h 2013-04-10 22:45:11.347506295 +0200 +@@ -1,3 +1,5 @@ ++/* $NetBSD: strdup.h,v 1.1.1.1 2008/09/02 07:49:31 christos Exp $ */ ++ + /* strdup.h -- duplicate a string + Copyright (C) 2004 Free Software Foundation, Inc. + +diff -r -x CVS -N -U 3 texinfo.orig/lib/strerror.c texinfo.nbsd/lib/strerror.c +--- texinfo.orig/lib/strerror.c 2003-08-03 15:09:35.000000000 +0200 ++++ texinfo.nbsd/lib/strerror.c 2013-04-10 22:45:11.347506295 +0200 +@@ -1,3 +1,5 @@ ++/* $NetBSD: strerror.c,v 1.1.1.3 2004/07/12 23:26:57 wiz Exp $ */ ++ + /* strerror.c --- ANSI C compatible system error routine + + Copyright (C) 1986, 1988, 1989, 1991, 2002, 2003 Free Software +diff -r -x CVS -N -U 3 texinfo.orig/lib/strncasecmp.c texinfo.nbsd/lib/strncasecmp.c +--- texinfo.orig/lib/strncasecmp.c 2002-09-03 17:51:40.000000000 +0200 ++++ texinfo.nbsd/lib/strncasecmp.c 2013-04-10 22:45:11.347506295 +0200 +@@ -1,2 +1,4 @@ ++/* $NetBSD: strncasecmp.c,v 1.1.1.2 2003/01/17 14:54:30 wiz Exp $ */ ++ + #define LENGTH_LIMIT + #include "strcasecmp.c" +diff -r -x CVS -N -U 3 texinfo.orig/lib/substring.c texinfo.nbsd/lib/substring.c +--- texinfo.orig/lib/substring.c 2004-04-11 19:56:46.000000000 +0200 ++++ texinfo.nbsd/lib/substring.c 2013-04-10 22:45:11.347506295 +0200 +@@ -1,5 +1,7 @@ ++/* $NetBSD: substring.c,v 1.1.1.4 2008/09/02 07:49:29 christos Exp $ */ ++ + /* substring.c -- extract substring. +- $Id: substring.c,v 1.2 2004/04/11 17:56:46 karl Exp $ ++ Id: substring.c,v 1.2 2004/04/11 17:56:46 karl Exp + + Copyright (C) 1999, 2004 Free Software Foundation, Inc. + +diff -r -x CVS -N -U 3 texinfo.orig/lib/system.h texinfo.nbsd/lib/system.h +--- texinfo.orig/lib/system.h 2004-04-26 15:56:57.000000000 +0200 ++++ texinfo.nbsd/lib/system.h 2013-04-10 22:45:11.347506295 +0200 +@@ -1,5 +1,7 @@ ++/* $NetBSD: system.h,v 1.11 2009/03/06 17:03:48 apb Exp $ */ ++ + /* system.h: system-dependent declarations; include this first. +- $Id: system.h,v 1.12 2004/04/26 13:56:57 karl Exp $ ++ Id: system.h,v 1.12 2004/04/26 13:56:57 karl Exp + + Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004 Free Software + Foundation, Inc. +@@ -267,6 +269,10 @@ + /* Some systems don't declare this function in pwd.h. */ + struct passwd *getpwnam (const char *name); + ++#ifdef HAVE_STDINT_H ++#include ++#endif ++ + /* Our library routines not included in any system library. */ + extern void *xmalloc (size_t), *xrealloc (void *, size_t); + extern char *xstrdup (const char *); +diff -r -x CVS -N -U 3 texinfo.orig/lib/tempname.c texinfo.nbsd/lib/tempname.c +--- texinfo.orig/lib/tempname.c 2003-09-15 15:25:45.000000000 +0200 ++++ texinfo.nbsd/lib/tempname.c 2013-04-10 22:45:11.347506295 +0200 +@@ -1,3 +1,5 @@ ++/* $NetBSD: tempname.c,v 1.1.1.4 2004/07/12 23:26:57 wiz Exp $ */ ++ + /* tempname.c - generate the name of a temporary file. + + Copyright (C) 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, +diff -r -x CVS -N -U 3 texinfo.orig/lib/xalloc.h texinfo.nbsd/lib/xalloc.h +--- texinfo.orig/lib/xalloc.h 2004-09-10 14:43:21.000000000 +0200 ++++ texinfo.nbsd/lib/xalloc.h 2013-04-10 22:45:11.347506295 +0200 +@@ -1,3 +1,5 @@ ++/* $NetBSD: xalloc.h,v 1.1.1.4 2008/09/02 07:49:31 christos Exp $ */ ++ + /* xalloc.h -- malloc with out-of-memory checking + + Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, +diff -r -x CVS -N -U 3 texinfo.orig/lib/xexit.c texinfo.nbsd/lib/xexit.c +--- texinfo.orig/lib/xexit.c 2004-04-11 19:56:46.000000000 +0200 ++++ texinfo.nbsd/lib/xexit.c 2013-04-10 22:45:11.347506295 +0200 +@@ -1,5 +1,7 @@ ++/* $NetBSD: xexit.c,v 1.1.1.5 2008/09/02 07:49:31 christos Exp $ */ ++ + /* xexit.c -- exit with attention to return values and closing stdout. +- $Id: xexit.c,v 1.5 2004/04/11 17:56:46 karl Exp $ ++ Id: xexit.c,v 1.5 2004/04/11 17:56:46 karl Exp + + Copyright (C) 1999, 2003, 2004 Free Software Foundation, Inc. + +diff -r -x CVS -N -U 3 texinfo.orig/lib/xmalloc.c texinfo.nbsd/lib/xmalloc.c +--- texinfo.orig/lib/xmalloc.c 2004-04-11 19:56:46.000000000 +0200 ++++ texinfo.nbsd/lib/xmalloc.c 2013-04-10 22:45:11.347506295 +0200 +@@ -1,3 +1,5 @@ ++/* $NetBSD: xmalloc.c,v 1.1.1.3 2004/07/12 23:26:56 wiz Exp $ */ ++ + /* xmalloc.c -- safe versions of malloc and realloc. + + Copyright (C) 1988, 1989, 1990, 1991, 1992, 1993, 2004 Free Software +diff -r -x CVS -N -U 3 texinfo.orig/lib/xstrdup.c texinfo.nbsd/lib/xstrdup.c +--- texinfo.orig/lib/xstrdup.c 2003-10-14 20:22:07.000000000 +0200 ++++ texinfo.nbsd/lib/xstrdup.c 2013-04-10 22:45:11.347506295 +0200 +@@ -1,3 +1,5 @@ ++/* $NetBSD: xstrdup.c,v 1.1.1.3 2004/07/12 23:26:56 wiz Exp $ */ ++ + /* xstrdup.c -- copy a string with out of memory checking + Copyright (C) 1990, 1996, 1998, 2001, 2003 Free Software Foundation, Inc. + +diff -r -x CVS -N -U 3 texinfo.orig/Makefile.am texinfo.nbsd/Makefile.am +--- texinfo.orig/Makefile.am 2004-12-15 19:14:56.000000000 +0100 ++++ texinfo.nbsd/Makefile.am 2013-04-10 22:45:11.334172695 +0200 +@@ -1,5 +1,5 @@ + # Makefile.am for texinfo. +-# $Id: Makefile.am,v 1.13 2004/12/15 16:53:59 kasal Exp $ ++# Id: Makefile.am,v 1.13 2004/12/15 16:53:59 kasal Exp + # Process this file with automake to produce Makefile.in in all directories. + # + # This file is free software; as a special exception the author gives +diff -r -x CVS -N -U 3 texinfo.orig/Makefile.in texinfo.nbsd/Makefile.in +--- texinfo.orig/Makefile.in 2004-12-31 19:01:49.000000000 +0100 ++++ texinfo.nbsd/Makefile.in 2013-04-10 22:45:11.334172695 +0200 +@@ -15,7 +15,7 @@ + @SET_MAKE@ + + # Makefile.am for texinfo. +-# $Id: Makefile.am,v 1.13 2004/12/15 16:53:59 kasal Exp $ ++# Id: Makefile.am,v 1.13 2004/12/15 16:53:59 kasal Exp + # Process this file with automake to produce Makefile.in in all directories. + # + # This file is free software; as a special exception the author gives +@@ -230,7 +230,7 @@ + # This is to prevent texinfo.tex from being included in the top-level + # distribution directory. + TEXINFO_TEX = doc/texinfo.tex +-@TOOLS_ONLY_FALSE@SUBDIRS = $(native_tools) intl m4 lib info makeinfo po util doc ++@TOOLS_ONLY_FALSE@SUBDIRS = $(native_tools) intl m4 lib makeinfo po util doc + @TOOLS_ONLY_TRUE@SUBDIRS = lib info makeinfo util + + # for gettext. +diff -r -x CVS -N -U 3 texinfo.orig/makeinfo/cmds.c texinfo.nbsd/makeinfo/cmds.c +--- texinfo.orig/makeinfo/cmds.c 2004-12-14 01:15:36.000000000 +0100 ++++ texinfo.nbsd/makeinfo/cmds.c 2013-04-10 22:45:11.347506295 +0200 +@@ -1,5 +1,7 @@ ++/* $NetBSD: cmds.c,v 1.3 2008/09/02 08:00:24 christos Exp $ */ ++ + /* cmds.c -- Texinfo commands. +- $Id: cmds.c,v 1.55 2004/12/14 00:15:36 karl Exp $ ++ Id: cmds.c,v 1.55 2004/12/14 00:15:36 karl Exp + + Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004 Free Software + Foundation, Inc. +diff -r -x CVS -N -U 3 texinfo.orig/makeinfo/cmds.h texinfo.nbsd/makeinfo/cmds.h +--- texinfo.orig/makeinfo/cmds.h 2004-11-26 01:48:35.000000000 +0100 ++++ texinfo.nbsd/makeinfo/cmds.h 2013-04-10 22:45:11.347506295 +0200 +@@ -1,5 +1,7 @@ ++/* $NetBSD: cmds.h,v 1.1.1.4 2008/09/02 07:50:24 christos Exp $ */ ++ + /* cmds.h -- declarations for cmds.c. +- $Id: cmds.h,v 1.9 2004/11/26 00:48:35 karl Exp $ ++ Id: cmds.h,v 1.9 2004/11/26 00:48:35 karl Exp + + Copyright (C) 1998, 1999, 2002, 2003, 2004 Free Software Foundation, + Inc. +diff -r -x CVS -N -U 3 texinfo.orig/makeinfo/defun.c texinfo.nbsd/makeinfo/defun.c +--- texinfo.orig/makeinfo/defun.c 2004-04-11 19:56:46.000000000 +0200 ++++ texinfo.nbsd/makeinfo/defun.c 2013-04-10 22:45:11.347506295 +0200 +@@ -1,5 +1,7 @@ ++/* $NetBSD: defun.c,v 1.1.1.5 2008/09/02 07:50:24 christos Exp $ */ ++ + /* defun.c -- @defun and friends. +- $Id: defun.c,v 1.11 2004/04/11 17:56:46 karl Exp $ ++ Id: defun.c,v 1.11 2004/04/11 17:56:46 karl Exp + + Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004 Free Software + Foundation, Inc. +diff -r -x CVS -N -U 3 texinfo.orig/makeinfo/defun.h texinfo.nbsd/makeinfo/defun.h +--- texinfo.orig/makeinfo/defun.h 2004-04-11 19:56:47.000000000 +0200 ++++ texinfo.nbsd/makeinfo/defun.h 2013-04-10 22:45:11.347506295 +0200 +@@ -1,5 +1,7 @@ ++/* $NetBSD: defun.h,v 1.1.1.4 2008/09/02 07:50:26 christos Exp $ */ ++ + /* defun.h -- declaration for defuns. +- $Id: defun.h,v 1.2 2004/04/11 17:56:47 karl Exp $ ++ Id: defun.h,v 1.2 2004/04/11 17:56:47 karl Exp + + Copyright (C) 1999 Free Software Foundation, Inc. + +diff -r -x CVS -N -U 3 texinfo.orig/makeinfo/files.c texinfo.nbsd/makeinfo/files.c +--- texinfo.orig/makeinfo/files.c 2004-07-27 02:06:31.000000000 +0200 ++++ texinfo.nbsd/makeinfo/files.c 2013-04-10 22:45:11.347506295 +0200 +@@ -1,5 +1,7 @@ ++/* $NetBSD: files.c,v 1.9 2008/09/02 08:41:51 christos Exp $ */ ++ + /* files.c -- file-related functions for makeinfo. +- $Id: files.c,v 1.5 2004/07/27 00:06:31 karl Exp $ ++ Id: files.c,v 1.5 2004/07/27 00:06:31 karl Exp + + Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004 Free Software + Foundation, Inc. +diff -r -x CVS -N -U 3 texinfo.orig/makeinfo/files.h texinfo.nbsd/makeinfo/files.h +--- texinfo.orig/makeinfo/files.h 2004-07-27 02:06:31.000000000 +0200 ++++ texinfo.nbsd/makeinfo/files.h 2013-04-10 22:45:11.347506295 +0200 +@@ -1,5 +1,7 @@ ++/* $NetBSD: files.h,v 1.3 2008/09/02 08:00:24 christos Exp $ */ ++ + /* files.h -- declarations for files.c. +- $Id: files.h,v 1.4 2004/07/27 00:06:31 karl Exp $ ++ Id: files.h,v 1.4 2004/07/27 00:06:31 karl Exp + + Copyright (C) 1998, 2002, 2004 Free Software Foundation, Inc. + +diff -r -x CVS -N -U 3 texinfo.orig/makeinfo/float.c texinfo.nbsd/makeinfo/float.c +--- texinfo.orig/makeinfo/float.c 2004-07-06 00:23:22.000000000 +0200 ++++ texinfo.nbsd/makeinfo/float.c 2013-04-10 22:45:11.347506295 +0200 +@@ -1,5 +1,7 @@ ++/* $NetBSD: float.c,v 1.1.1.2 2008/09/02 07:50:28 christos Exp $ */ ++ + /* float.c -- float environment functions. +- $Id: float.c,v 1.8 2004/07/05 22:23:22 karl Exp $ ++ Id: float.c,v 1.8 2004/07/05 22:23:22 karl Exp + + Copyright (C) 2003, 2004 Free Software Foundation, Inc. + +diff -r -x CVS -N -U 3 texinfo.orig/makeinfo/float.h texinfo.nbsd/makeinfo/float.h +--- texinfo.orig/makeinfo/float.h 2004-04-11 19:56:47.000000000 +0200 ++++ texinfo.nbsd/makeinfo/float.h 2013-04-10 22:45:11.347506295 +0200 +@@ -1,5 +1,7 @@ ++/* $NetBSD: float.h,v 1.1.1.2 2008/09/02 07:50:28 christos Exp $ */ ++ + /* float.h -- declarations for the float environment. +- $Id: float.h,v 1.5 2004/04/11 17:56:47 karl Exp $ ++ Id: float.h,v 1.5 2004/04/11 17:56:47 karl Exp + + Copyright (C) 2003, 2004 Free Software Foundation, Inc. + +diff -r -x CVS -N -U 3 texinfo.orig/makeinfo/footnote.c texinfo.nbsd/makeinfo/footnote.c +--- texinfo.orig/makeinfo/footnote.c 2004-04-11 19:56:47.000000000 +0200 ++++ texinfo.nbsd/makeinfo/footnote.c 2013-04-10 22:45:11.347506295 +0200 +@@ -1,5 +1,7 @@ ++/* $NetBSD: footnote.c,v 1.1.1.4 2008/09/02 07:50:28 christos Exp $ */ ++ + /* footnote.c -- footnotes for Texinfo. +- $Id: footnote.c,v 1.7 2004/04/11 17:56:47 karl Exp $ ++ Id: footnote.c,v 1.7 2004/04/11 17:56:47 karl Exp + + Copyright (C) 1998, 1999, 2002 Free Software Foundation, Inc. + +diff -r -x CVS -N -U 3 texinfo.orig/makeinfo/footnote.h texinfo.nbsd/makeinfo/footnote.h +--- texinfo.orig/makeinfo/footnote.h 2004-04-11 19:56:47.000000000 +0200 ++++ texinfo.nbsd/makeinfo/footnote.h 2013-04-10 22:45:11.347506295 +0200 +@@ -1,5 +1,7 @@ ++/* $NetBSD: footnote.h,v 1.1.1.4 2008/09/02 07:50:28 christos Exp $ */ ++ + /* footnote.h -- declarations for footnote.c. +- $Id: footnote.h,v 1.2 2004/04/11 17:56:47 karl Exp $ ++ Id: footnote.h,v 1.2 2004/04/11 17:56:47 karl Exp + + Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004 Free Software + Foundation, Inc. +diff -r -x CVS -N -U 3 texinfo.orig/makeinfo/html.c texinfo.nbsd/makeinfo/html.c +--- texinfo.orig/makeinfo/html.c 2004-12-06 02:13:06.000000000 +0100 ++++ texinfo.nbsd/makeinfo/html.c 2013-04-10 22:45:11.350839695 +0200 +@@ -1,5 +1,7 @@ ++/* $NetBSD: html.c,v 1.1.1.5 2008/09/02 07:50:29 christos Exp $ */ ++ + /* html.c -- html-related utilities. +- $Id: html.c,v 1.28 2004/12/06 01:13:06 karl Exp $ ++ Id: html.c,v 1.28 2004/12/06 01:13:06 karl Exp + + Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004 Free Software + Foundation, Inc. +diff -r -x CVS -N -U 3 texinfo.orig/makeinfo/html.h texinfo.nbsd/makeinfo/html.h +--- texinfo.orig/makeinfo/html.h 2004-11-30 03:03:23.000000000 +0100 ++++ texinfo.nbsd/makeinfo/html.h 2013-04-10 22:45:11.350839695 +0200 +@@ -1,5 +1,7 @@ ++/* $NetBSD: html.h,v 1.1.1.4 2008/09/02 07:50:29 christos Exp $ */ ++ + /* html.h -- declarations for html-related utilities. +- $Id: html.h,v 1.6 2004/11/30 02:03:23 karl Exp $ ++ Id: html.h,v 1.6 2004/11/30 02:03:23 karl Exp + + Copyright (C) 1999, 2000, 2002, 2004 Free Software Foundation, Inc. + +diff -r -x CVS -N -U 3 texinfo.orig/makeinfo/index.c texinfo.nbsd/makeinfo/index.c +--- texinfo.orig/makeinfo/index.c 2004-11-30 03:03:23.000000000 +0100 ++++ texinfo.nbsd/makeinfo/index.c 2013-04-10 22:45:11.350839695 +0200 +@@ -1,5 +1,7 @@ ++/* $NetBSD: index.c,v 1.1.1.6 2008/09/02 07:50:31 christos Exp $ */ ++ + /* index.c -- indexing for Texinfo. +- $Id: index.c,v 1.17 2004/11/30 02:03:23 karl Exp $ ++ Id: index.c,v 1.17 2004/11/30 02:03:23 karl Exp + + Copyright (C) 1998, 1999, 2002, 2003, 2004 Free Software Foundation, + Inc. +diff -r -x CVS -N -U 3 texinfo.orig/makeinfo/index.h texinfo.nbsd/makeinfo/index.h +--- texinfo.orig/makeinfo/index.h 2004-04-11 19:56:47.000000000 +0200 ++++ texinfo.nbsd/makeinfo/index.h 2013-04-10 22:45:11.350839695 +0200 +@@ -1,5 +1,7 @@ ++/* $NetBSD: index.h,v 1.1.1.4 2008/09/02 07:50:31 christos Exp $ */ ++ + /* index.h -- declarations for index.c. +- $Id: index.h,v 1.2 2004/04/11 17:56:47 karl Exp $ ++ Id: index.h,v 1.2 2004/04/11 17:56:47 karl Exp + + Copyright (C) 1998, 99 Free Software Foundation, Inc. + +diff -r -x CVS -N -U 3 texinfo.orig/makeinfo/insertion.c texinfo.nbsd/makeinfo/insertion.c +--- texinfo.orig/makeinfo/insertion.c 2004-11-11 19:34:28.000000000 +0100 ++++ texinfo.nbsd/makeinfo/insertion.c 2013-04-10 22:45:11.350839695 +0200 +@@ -1,5 +1,7 @@ ++/* $NetBSD: insertion.c,v 1.1.1.6 2008/09/02 07:50:34 christos Exp $ */ ++ + /* insertion.c -- insertions for Texinfo. +- $Id: insertion.c,v 1.55 2004/11/11 18:34:28 karl Exp $ ++ Id: insertion.c,v 1.55 2004/11/11 18:34:28 karl Exp + + Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004 Free Software + Foundation, Inc. +diff -r -x CVS -N -U 3 texinfo.orig/makeinfo/insertion.h texinfo.nbsd/makeinfo/insertion.h +--- texinfo.orig/makeinfo/insertion.h 2004-04-11 19:56:47.000000000 +0200 ++++ texinfo.nbsd/makeinfo/insertion.h 2013-04-10 22:45:11.350839695 +0200 +@@ -1,5 +1,7 @@ ++/* $NetBSD: insertion.h,v 1.1.1.4 2008/09/02 07:50:34 christos Exp $ */ ++ + /* insertion.h -- declarations for insertion.c. +- $Id: insertion.h,v 1.10 2004/04/11 17:56:47 karl Exp $ ++ Id: insertion.h,v 1.10 2004/04/11 17:56:47 karl Exp + + Copyright (C) 1998, 1999, 2001, 2002, 2003 Free Software Foundation, Inc. + +diff -r -x CVS -N -U 3 texinfo.orig/makeinfo/lang.c texinfo.nbsd/makeinfo/lang.c +--- texinfo.orig/makeinfo/lang.c 2004-11-23 00:57:33.000000000 +0100 ++++ texinfo.nbsd/makeinfo/lang.c 2013-04-10 22:45:11.350839695 +0200 +@@ -1,5 +1,7 @@ ++/* $NetBSD: lang.c,v 1.1.1.5 2008/09/02 07:50:36 christos Exp $ */ ++ + /* lang.c -- language-dependent support. +- $Id: lang.c,v 1.14 2004/11/22 23:57:33 karl Exp $ ++ Id: lang.c,v 1.14 2004/11/22 23:57:33 karl Exp + + Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004 Free Software + Foundation, Inc. +diff -r -x CVS -N -U 3 texinfo.orig/makeinfo/lang.h texinfo.nbsd/makeinfo/lang.h +--- texinfo.orig/makeinfo/lang.h 2004-04-11 19:56:47.000000000 +0200 ++++ texinfo.nbsd/makeinfo/lang.h 2013-04-10 22:45:11.350839695 +0200 +@@ -1,5 +1,7 @@ ++/* $NetBSD: lang.h,v 1.1.1.5 2008/09/02 07:50:36 christos Exp $ */ ++ + /* lang.h -- declarations for language codes etc. +- $Id: lang.h,v 1.6 2004/04/11 17:56:47 karl Exp $ ++ Id: lang.h,v 1.6 2004/04/11 17:56:47 karl Exp + + Copyright (C) 1999, 2001, 2002, 2003 Free Software Foundation, Inc. + +diff -r -x CVS -N -U 3 texinfo.orig/makeinfo/macro.c texinfo.nbsd/makeinfo/macro.c +--- texinfo.orig/makeinfo/macro.c 2004-04-11 19:56:47.000000000 +0200 ++++ texinfo.nbsd/makeinfo/macro.c 2013-04-10 22:45:11.350839695 +0200 +@@ -1,5 +1,7 @@ ++/* $NetBSD: macro.c,v 1.1.1.5 2008/09/02 07:50:37 christos Exp $ */ ++ + /* macro.c -- user-defined macros for Texinfo. +- $Id: macro.c,v 1.6 2004/04/11 17:56:47 karl Exp $ ++ Id: macro.c,v 1.6 2004/04/11 17:56:47 karl Exp + + Copyright (C) 1998, 1999, 2002, 2003 Free Software Foundation, Inc. + +diff -r -x CVS -N -U 3 texinfo.orig/makeinfo/macro.h texinfo.nbsd/makeinfo/macro.h +--- texinfo.orig/makeinfo/macro.h 2004-04-11 19:56:47.000000000 +0200 ++++ texinfo.nbsd/makeinfo/macro.h 2013-04-10 22:45:11.350839695 +0200 +@@ -1,5 +1,7 @@ ++/* $NetBSD: macro.h,v 1.1.1.4 2008/09/02 07:50:37 christos Exp $ */ ++ + /* macro.h -- declarations for macro.c. +- $Id: macro.h,v 1.2 2004/04/11 17:56:47 karl Exp $ ++ Id: macro.h,v 1.2 2004/04/11 17:56:47 karl Exp + + Copyright (C) 1998, 99 Free Software Foundation, Inc. + +diff -r -x CVS -N -U 3 texinfo.orig/makeinfo/Makefile.am texinfo.nbsd/makeinfo/Makefile.am +--- texinfo.orig/makeinfo/Makefile.am 2004-04-11 19:56:46.000000000 +0200 ++++ texinfo.nbsd/makeinfo/Makefile.am 2013-04-10 22:45:11.347506295 +0200 +@@ -1,4 +1,4 @@ +-# $Id: Makefile.am,v 1.5 2004/04/11 17:56:46 karl Exp $ ++# Id: Makefile.am,v 1.5 2004/04/11 17:56:46 karl Exp + # Makefile.am for texinfo/makeinfo. + # Run automake in .. to produce Makefile.in from this. + # +diff -r -x CVS -N -U 3 texinfo.orig/makeinfo/Makefile.in texinfo.nbsd/makeinfo/Makefile.in +--- texinfo.orig/makeinfo/Makefile.in 2004-12-31 19:01:48.000000000 +0100 ++++ texinfo.nbsd/makeinfo/Makefile.in 2013-04-10 22:45:11.347506295 +0200 +@@ -14,7 +14,7 @@ + + @SET_MAKE@ + +-# $Id: Makefile.am,v 1.5 2004/04/11 17:56:46 karl Exp $ ++# Id: Makefile.am,v 1.5 2004/04/11 17:56:46 karl Exp + # Makefile.am for texinfo/makeinfo. + # Run automake in .. to produce Makefile.in from this. + # +diff -r -x CVS -N -U 3 texinfo.orig/makeinfo/makeinfo.c texinfo.nbsd/makeinfo/makeinfo.c +--- texinfo.orig/makeinfo/makeinfo.c 2004-12-19 18:15:42.000000000 +0100 ++++ texinfo.nbsd/makeinfo/makeinfo.c 2013-04-10 22:45:11.350839695 +0200 +@@ -1,5 +1,7 @@ ++/* $NetBSD: makeinfo.c,v 1.16 2009/02/28 19:51:13 joerg Exp $ */ ++ + /* makeinfo -- convert Texinfo source into other formats. +- $Id: makeinfo.c,v 1.74 2004/12/19 17:15:42 karl Exp $ ++ Id: makeinfo.c,v 1.74 2004/12/19 17:15:42 karl Exp + + Copyright (C) 1987, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, + 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc. +@@ -379,6 +381,8 @@ + also, write to standard output by default.\n\ + --no-split suppress splitting of Info or HTML output,\n\ + generate only one output file.\n\ ++ --no-version-headers suppress header with makeinfo version and\n\ ++ source path.\n\ + --number-sections output chapter and sectioning numbers.\n\ + -o, --output=FILE output to FILE (directory if split HTML),\n\ + ")); +@@ -503,6 +507,7 @@ + { "no-pointer-validate", 0, &validating, 0 }, + { "no-split", 0, &splitting, 0 }, + { "no-validate", 0, &validating, 0 }, ++ { "no-version-header", 0, &no_version_header, 1 }, + { "no-warn", 0, &print_warnings, 0 }, + { "number-footnotes", 0, &number_footnotes, 1 }, + { "number-sections", 0, &number_sections, 1 }, +@@ -1669,7 +1674,7 @@ + } + + /* html fixxme: should output this as trailer on first page. */ +- if (!no_headers && !html && !xml) ++ if (!no_headers && !html && !xml && !no_version_header) + add_word_args (_("This is %s, produced by makeinfo version %s from %s.\n"), + output_filename, VERSION, input_filename); + +diff -r -x CVS -N -U 3 texinfo.orig/makeinfo/makeinfo.h texinfo.nbsd/makeinfo/makeinfo.h +--- texinfo.orig/makeinfo/makeinfo.h 2004-11-30 03:03:23.000000000 +0100 ++++ texinfo.nbsd/makeinfo/makeinfo.h 2013-04-10 22:45:11.350839695 +0200 +@@ -1,5 +1,7 @@ ++/* $NetBSD: makeinfo.h,v 1.2 2009/02/28 19:14:15 joerg Exp $ */ ++ + /* makeinfo.h -- declarations for Makeinfo. +- $Id: makeinfo.h,v 1.17 2004/11/30 02:03:23 karl Exp $ ++ Id: makeinfo.h,v 1.17 2004/11/30 02:03:23 karl Exp + + Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004 Free + Software Foundation, Inc. +@@ -190,6 +192,10 @@ + is, generate plain text. (--no-headers) */ + DECLARE (int, no_headers, 0); + ++/* Nonzero means do not output makeinfo version and source file. ++ (--no-version-header) */ ++DECLARE (int, no_version_header, 0); ++ + /* Nonzero means that we process @docbook and @ifdocbook. (--ifdocbook) */ + DECLARE (int, process_docbook, 0); + +diff -r -x CVS -N -U 3 texinfo.orig/makeinfo/multi.c texinfo.nbsd/makeinfo/multi.c +--- texinfo.orig/makeinfo/multi.c 2004-04-11 19:56:47.000000000 +0200 ++++ texinfo.nbsd/makeinfo/multi.c 2013-04-10 22:45:11.350839695 +0200 +@@ -1,5 +1,7 @@ ++/* $NetBSD: multi.c,v 1.1.1.5 2008/09/02 07:50:44 christos Exp $ */ ++ + /* multi.c -- multiple-column tables (@multitable) for makeinfo. +- $Id: multi.c,v 1.8 2004/04/11 17:56:47 karl Exp $ ++ Id: multi.c,v 1.8 2004/04/11 17:56:47 karl Exp + + Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2004 Free Software + Foundation, Inc. +diff -r -x CVS -N -U 3 texinfo.orig/makeinfo/multi.h texinfo.nbsd/makeinfo/multi.h +--- texinfo.orig/makeinfo/multi.h 2004-04-11 19:56:47.000000000 +0200 ++++ texinfo.nbsd/makeinfo/multi.h 2013-04-10 22:45:11.350839695 +0200 +@@ -1,5 +1,7 @@ ++/* $NetBSD: multi.h,v 1.1.1.2 2008/09/02 07:50:44 christos Exp $ */ ++ + /* multi.h -- declarations for multi.c. +- $Id: multi.h,v 1.1 2004/04/11 17:56:47 karl Exp $ ++ Id: multi.h,v 1.1 2004/04/11 17:56:47 karl Exp + + Copyright (C) 2004 Free Software Foundation, Inc. + +diff -r -x CVS -N -U 3 texinfo.orig/makeinfo/node.c texinfo.nbsd/makeinfo/node.c +--- texinfo.orig/makeinfo/node.c 2004-12-21 00:56:07.000000000 +0100 ++++ texinfo.nbsd/makeinfo/node.c 2013-04-10 22:45:11.350839695 +0200 +@@ -1,5 +1,7 @@ ++/* $NetBSD: node.c,v 1.4 2008/09/02 08:00:24 christos Exp $ */ ++ + /* node.c -- nodes for Texinfo. +- $Id: node.c,v 1.27 2004/12/20 23:56:07 karl Exp $ ++ Id: node.c,v 1.27 2004/12/20 23:56:07 karl Exp + + Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004 Free Software + Foundation, Inc. +diff -r -x CVS -N -U 3 texinfo.orig/makeinfo/node.h texinfo.nbsd/makeinfo/node.h +--- texinfo.orig/makeinfo/node.h 2004-04-11 19:56:47.000000000 +0200 ++++ texinfo.nbsd/makeinfo/node.h 2013-04-10 22:45:11.350839695 +0200 +@@ -1,5 +1,7 @@ ++/* $NetBSD: node.h,v 1.1.1.4 2008/09/02 07:50:47 christos Exp $ */ ++ + /* node.h -- declarations for Node. +- $Id: node.h,v 1.2 2004/04/11 17:56:47 karl Exp $ ++ Id: node.h,v 1.2 2004/04/11 17:56:47 karl Exp + + Copyright (C) 1996, 1997, 1998, 1999, 2002 Free Software Foundation, Inc. + +diff -r -x CVS -N -U 3 texinfo.orig/makeinfo/README texinfo.nbsd/makeinfo/README +--- texinfo.orig/makeinfo/README 2004-04-11 19:56:46.000000000 +0200 ++++ texinfo.nbsd/makeinfo/README 2013-04-10 22:45:11.347506295 +0200 +@@ -1,4 +1,4 @@ +-$Id: README,v 1.3 2004/04/11 17:56:46 karl Exp $ ++Id: README,v 1.3 2004/04/11 17:56:46 karl Exp + texinfo/makeinfo/README + + Copyright (C) 2002 Free Software Foundation, Inc. +diff -r -x CVS -N -U 3 texinfo.orig/makeinfo/sectioning.c texinfo.nbsd/makeinfo/sectioning.c +--- texinfo.orig/makeinfo/sectioning.c 2004-07-06 00:23:23.000000000 +0200 ++++ texinfo.nbsd/makeinfo/sectioning.c 2013-04-10 22:45:11.350839695 +0200 +@@ -1,5 +1,7 @@ ++/* $NetBSD: sectioning.c,v 1.2 2011/05/11 23:20:46 joerg Exp $ */ ++ + /* sectioning.c -- for @chapter, @section, ..., @contents ... +- $Id: sectioning.c,v 1.25 2004/07/05 22:23:23 karl Exp $ ++ Id: sectioning.c,v 1.25 2004/07/05 22:23:23 karl Exp + + Copyright (C) 1999, 2001, 2002, 2003, 2004 Free Software Foundation, Inc. + +@@ -256,14 +258,13 @@ + return xstrdup (""); + else if (enum_marker == APPENDIX_MAGIC) + { +- char s[1]; +- sprintf (s, "%c", numbers[0] + 64); ++ char s[2] = { numbers[0] + 64, '\0' }; + return xstrdup (s); + } + else + { +- char s[5]; +- sprintf (s, "%d", numbers[0]); ++ char s[11]; ++ snprintf (s, sizeof(s), "%d", numbers[0]); + return xstrdup (s); + } + } +diff -r -x CVS -N -U 3 texinfo.orig/makeinfo/sectioning.h texinfo.nbsd/makeinfo/sectioning.h +--- texinfo.orig/makeinfo/sectioning.h 2004-04-11 19:56:47.000000000 +0200 ++++ texinfo.nbsd/makeinfo/sectioning.h 2013-04-10 22:45:11.350839695 +0200 +@@ -1,5 +1,7 @@ ++/* $NetBSD: sectioning.h,v 1.1.1.4 2008/09/02 07:50:47 christos Exp $ */ ++ + /* sectioning.h -- all related stuff @chapter, @section... @contents +- $Id: sectioning.h,v 1.5 2004/04/11 17:56:47 karl Exp $ ++ Id: sectioning.h,v 1.5 2004/04/11 17:56:47 karl Exp + + Copyright (C) 1999, 2003 Free Software Foundation, Inc. + +diff -r -x CVS -N -U 3 texinfo.orig/makeinfo/tests/copying texinfo.nbsd/makeinfo/tests/copying +--- texinfo.orig/makeinfo/tests/copying 2004-04-20 15:26:00.000000000 +0200 ++++ texinfo.nbsd/makeinfo/tests/copying 2013-04-10 22:45:11.350839695 +0200 +@@ -1,5 +1,5 @@ + #!/bin/sh +-# $Id: copying,v 1.2 2004/04/20 13:26:00 karl Exp $ ++# Id: copying,v 1.2 2004/04/20 13:26:00 karl Exp + # Test @copying. The configure script for tramp uses this to make sure + # the makeinfo that is present supports @copying. + +diff -r -x CVS -N -U 3 texinfo.orig/makeinfo/tests/html-manuals texinfo.nbsd/makeinfo/tests/html-manuals +--- texinfo.orig/makeinfo/tests/html-manuals 2004-04-11 19:56:47.000000000 +0200 ++++ texinfo.nbsd/makeinfo/tests/html-manuals 2013-04-10 22:45:11.350839695 +0200 +@@ -1,5 +1,5 @@ + #!/bin/sh +-# $Id: html-manuals,v 1.3 2004/04/11 17:56:47 karl Exp $ ++# Id: html-manuals,v 1.3 2004/04/11 17:56:47 karl Exp + # Test that all the distribution manuals can be converted to HTML. + + : ${srcdir=.} +diff -r -x CVS -N -U 3 texinfo.orig/makeinfo/tests/include-value texinfo.nbsd/makeinfo/tests/include-value +--- texinfo.orig/makeinfo/tests/include-value 2004-04-11 19:56:47.000000000 +0200 ++++ texinfo.nbsd/makeinfo/tests/include-value 2013-04-10 22:45:11.350839695 +0200 +@@ -1,5 +1,5 @@ + #!/bin/sh +-# $Id: include-value,v 1.3 2004/04/11 17:56:47 karl Exp $ ++# Id: include-value,v 1.3 2004/04/11 17:56:47 karl Exp + # Test @value expansion in @include and @verbatiminclude names. + + unset TEXINFO_OUTPUT +diff -r -x CVS -N -U 3 texinfo.orig/makeinfo/tests/include-value.txi texinfo.nbsd/makeinfo/tests/include-value.txi +--- texinfo.orig/makeinfo/tests/include-value.txi 2004-04-11 19:56:47.000000000 +0200 ++++ texinfo.nbsd/makeinfo/tests/include-value.txi 2013-04-10 22:45:11.350839695 +0200 +@@ -1,6 +1,6 @@ + \input texinfo + @setfilename include-value.info +-@c $Id: include-value.txi,v 1.2 2004/04/11 17:56:47 karl Exp $ ++@c Id: include-value.txi,v 1.2 2004/04/11 17:56:47 karl Exp + + @set testvar incl-incl.txi + +diff -r -x CVS -N -U 3 texinfo.orig/makeinfo/tests/Makefile.am texinfo.nbsd/makeinfo/tests/Makefile.am +--- texinfo.orig/makeinfo/tests/Makefile.am 2004-04-11 19:56:47.000000000 +0200 ++++ texinfo.nbsd/makeinfo/tests/Makefile.am 2013-04-10 22:45:11.350839695 +0200 +@@ -1,4 +1,4 @@ +-# $Id: Makefile.am,v 1.5 2004/04/11 17:56:47 karl Exp $ ++# Id: Makefile.am,v 1.5 2004/04/11 17:56:47 karl Exp + # Makefile.am for texinfo/tests/makeinfo. + # + # This file is free software; as a special exception the author gives +diff -r -x CVS -N -U 3 texinfo.orig/makeinfo/tests/Makefile.in texinfo.nbsd/makeinfo/tests/Makefile.in +--- texinfo.orig/makeinfo/tests/Makefile.in 2004-12-31 19:01:48.000000000 +0100 ++++ texinfo.nbsd/makeinfo/tests/Makefile.in 2013-04-10 22:45:11.350839695 +0200 +@@ -14,7 +14,7 @@ + + @SET_MAKE@ + +-# $Id: Makefile.am,v 1.5 2004/04/11 17:56:47 karl Exp $ ++# Id: Makefile.am,v 1.5 2004/04/11 17:56:47 karl Exp + # Makefile.am for texinfo/tests/makeinfo. + # + # This file is free software; as a special exception the author gives +diff -r -x CVS -N -U 3 texinfo.orig/makeinfo/tests/twofiles texinfo.nbsd/makeinfo/tests/twofiles +--- texinfo.orig/makeinfo/tests/twofiles 2004-04-11 19:56:47.000000000 +0200 ++++ texinfo.nbsd/makeinfo/tests/twofiles 2013-04-10 22:45:11.350839695 +0200 +@@ -1,5 +1,5 @@ + #!/bin/sh +-# $Id: twofiles,v 1.3 2004/04/11 17:56:47 karl Exp $ ++# Id: twofiles,v 1.3 2004/04/11 17:56:47 karl Exp + # Test that an existing and nonexisting file doesn't cause a + # segmentation fault. + # From: Arkadiusz Miskiewicz , 15 Feb 2003 13:22:49 +0100. +diff -r -x CVS -N -U 3 texinfo.orig/makeinfo/toc.c texinfo.nbsd/makeinfo/toc.c +--- texinfo.orig/makeinfo/toc.c 2004-04-11 19:56:47.000000000 +0200 ++++ texinfo.nbsd/makeinfo/toc.c 2013-04-10 22:45:11.350839695 +0200 +@@ -1,5 +1,7 @@ ++/* $NetBSD: toc.c,v 1.1.1.4 2008/09/02 07:50:47 christos Exp $ */ ++ + /* toc.c -- table of contents handling. +- $Id: toc.c,v 1.6 2004/04/11 17:56:47 karl Exp $ ++ Id: toc.c,v 1.6 2004/04/11 17:56:47 karl Exp + + Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc. + +diff -r -x CVS -N -U 3 texinfo.orig/makeinfo/toc.h texinfo.nbsd/makeinfo/toc.h +--- texinfo.orig/makeinfo/toc.h 2004-04-11 19:56:47.000000000 +0200 ++++ texinfo.nbsd/makeinfo/toc.h 2013-04-10 22:45:11.350839695 +0200 +@@ -1,5 +1,7 @@ ++/* $NetBSD: toc.h,v 1.1.1.4 2008/09/02 07:50:47 christos Exp $ */ ++ + /* toc.h -- table of contents handling. +- $Id: toc.h,v 1.2 2004/04/11 17:56:47 karl Exp $ ++ Id: toc.h,v 1.2 2004/04/11 17:56:47 karl Exp + + Copyright (C) 1999 Free Software Foundation, Inc. + +diff -r -x CVS -N -U 3 texinfo.orig/makeinfo/xml.c texinfo.nbsd/makeinfo/xml.c +--- texinfo.orig/makeinfo/xml.c 2004-12-19 18:02:23.000000000 +0100 ++++ texinfo.nbsd/makeinfo/xml.c 2013-04-10 22:45:11.350839695 +0200 +@@ -1,5 +1,7 @@ ++/* $NetBSD: xml.c,v 1.1.1.5 2008/09/02 07:50:51 christos Exp $ */ ++ + /* xml.c -- xml output. +- $Id: xml.c,v 1.52 2004/12/19 17:02:23 karl Exp $ ++ Id: xml.c,v 1.52 2004/12/19 17:02:23 karl Exp + + Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation, Inc. + +diff -r -x CVS -N -U 3 texinfo.orig/makeinfo/xml.h texinfo.nbsd/makeinfo/xml.h +--- texinfo.orig/makeinfo/xml.h 2004-11-26 01:48:35.000000000 +0100 ++++ texinfo.nbsd/makeinfo/xml.h 2013-04-10 22:45:11.350839695 +0200 +@@ -1,5 +1,7 @@ ++/* $NetBSD: xml.h,v 1.1.1.3 2008/09/02 07:50:51 christos Exp $ */ ++ + /* xml.h -- xml output declarations. +- $Id: xml.h,v 1.24 2004/11/26 00:48:35 karl Exp $ ++ Id: xml.h,v 1.24 2004/11/26 00:48:35 karl Exp + + Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation, Inc. + +diff -r -x CVS -N -U 3 texinfo.orig/makeinfo/xref.c texinfo.nbsd/makeinfo/xref.c +--- texinfo.orig/makeinfo/xref.c 2004-12-21 18:28:35.000000000 +0100 ++++ texinfo.nbsd/makeinfo/xref.c 2013-04-10 22:45:11.350839695 +0200 +@@ -1,5 +1,7 @@ ++/* $NetBSD: xref.c,v 1.1.1.2 2008/09/02 07:50:51 christos Exp $ */ ++ + /* xref.c -- cross references for Texinfo. +- $Id: xref.c,v 1.4 2004/12/21 17:28:35 karl Exp $ ++ Id: xref.c,v 1.4 2004/12/21 17:28:35 karl Exp + + Copyright (C) 2004 Free Software Foundation, Inc. + +diff -r -x CVS -N -U 3 texinfo.orig/makeinfo/xref.h texinfo.nbsd/makeinfo/xref.h +--- texinfo.orig/makeinfo/xref.h 2004-04-11 19:56:47.000000000 +0200 ++++ texinfo.nbsd/makeinfo/xref.h 2013-04-10 22:45:11.350839695 +0200 +@@ -1,5 +1,7 @@ ++/* $NetBSD: xref.h,v 1.1.1.2 2008/09/02 07:50:51 christos Exp $ */ ++ + /* xref.h -- declarations for the cross references. +- $Id: xref.h,v 1.1 2004/04/11 17:56:47 karl Exp $ ++ Id: xref.h,v 1.1 2004/04/11 17:56:47 karl Exp + + Copyright (C) 2004 Free Software Foundation, Inc. + +diff -r -x CVS -N -U 3 texinfo.orig/NEWS texinfo.nbsd/NEWS +--- texinfo.orig/NEWS 2004-12-31 19:01:29.000000000 +0100 ++++ texinfo.nbsd/NEWS 2013-04-10 22:45:11.334172695 +0200 +@@ -1,4 +1,4 @@ +-$Id: NEWS,v 1.103 2004/12/24 16:43:58 karl Exp $ ++Id: NEWS,v 1.103 2004/12/24 16:43:58 karl Exp + This file records noteworthy changes, very tersely. + See the manual for detailed information. + +diff -r -x CVS -N -U 3 texinfo.orig/po/Makefile.in.in texinfo.nbsd/po/Makefile.in.in +--- texinfo.orig/po/Makefile.in.in 2004-04-11 19:56:47.000000000 +0200 ++++ texinfo.nbsd/po/Makefile.in.in 2013-04-10 22:45:11.354173095 +0200 +@@ -13,7 +13,7 @@ + PACKAGE = @PACKAGE@ + VERSION = @VERSION@ + +-SHELL = /bin/sh ++SHELL = @SHELL@ + @SET_MAKE@ + + srcdir = @srcdir@ +diff -r -x CVS -N -U 3 texinfo.orig/README texinfo.nbsd/README +--- texinfo.orig/README 2004-12-13 14:36:32.000000000 +0100 ++++ texinfo.nbsd/README 2013-04-10 22:45:11.334172695 +0200 +@@ -1,4 +1,4 @@ +-$Id: README,v 1.16 2004/12/13 13:36:32 karl Exp $ ++Id: README,v 1.16 2004/12/13 13:36:32 karl Exp + This is the README file for the GNU Texinfo distribution. Texinfo is + the preferred documentation format for GNU software. + +diff -r -x CVS -N -U 3 texinfo.orig/README.dev texinfo.nbsd/README.dev +--- texinfo.orig/README.dev 2003-11-24 16:11:06.000000000 +0100 ++++ texinfo.nbsd/README.dev 2013-04-10 22:45:11.334172695 +0200 +@@ -1,4 +1,4 @@ +-$Id: README.dev,v 1.7 2003/11/24 15:11:06 karl Exp $ ++Id: README.dev,v 1.7 2003/11/24 15:11:06 karl Exp + README.dev - Texinfo developer information. + + Copyright (C) 2002, 2003 Free Software Foundation, Inc. +diff -r -x CVS -N -U 3 texinfo.orig/texinfo2netbsd texinfo.nbsd/texinfo2netbsd +--- texinfo.orig/texinfo2netbsd 1970-01-01 01:00:00.000000000 +0100 ++++ texinfo.nbsd/texinfo2netbsd 2013-04-10 22:45:11.360839895 +0200 +@@ -0,0 +1,86 @@ ++#! /bin/sh ++# ++# $NetBSD: texinfo2netbsd,v 1.4 2008/04/30 13:10:50 martin Exp $ ++# ++# Copyright (c) 2003, 2004 The NetBSD Foundation, Inc. ++# All rights reserved. ++# ++# Redistribution and use in source and binary forms, with or without ++# modification, are permitted provided that the following conditions ++# are met: ++# 1. Redistributions of source code must retain the above copyright ++# notice, this list of conditions and the following disclaimer. ++# 2. Redistributions in binary form must reproduce the above copyright ++# notice, this list of conditions and the following disclaimer in the ++# documentation and/or other materials provided with the distribution. ++# ++# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS ++# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED ++# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR ++# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS ++# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR ++# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF ++# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS ++# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN ++# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ++# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE ++# POSSIBILITY OF SUCH DAMAGE. ++# ++# texinfo2netbsd: convert an texinfo source tree into a ++# format suitable for commit. Works on current dir. ++# ++ ++# delete some superfluous files ++echo deleting some superfluous files ++rm -rf djgpp ++ ++echo done ++ ++### Remove the $'s around RCS tags ++find . -type f -print | xargs egrep -l '\$(Id|Created|Header|NetBSD|Revision)' | while read f; do ++ sed -e 's/\$\(Id.*\) \$/\1/' \ ++ -e 's/\$\(Created.*\) \$/\1/' \ ++ -e 's/\$\(Header.*\) \$/\1/' \ ++ -e 's/\$\(NetBSD.*\) \$/\1/' \ ++ -e 's/\$\(Revision.*\) \$/\1/' \ ++ $f > /tmp/texinfo2$$ && mv /tmp/texinfo2$$ $f && \ ++ echo removed RCS tag from $f ++done ++ ++### Add our NetBSD RCS Id ++find . -type f -name '*.[chly]' -print | while read c; do ++ sed 1q < $c | grep -q '\$NetBSD' || ( ++echo "/* \$NetBSD\$ */" >/tmp/texinfo3$$ ++echo "" >>/tmp/texinfo3$$ ++cat $c >> /tmp/texinfo3$$ ++mv /tmp/texinfo3$$ $c && echo added NetBSD RCS tag to $c ++ ) ++done ++ ++find . -type f -name '*.[0-9]' -print | while read m; do ++ sed 1q < $m | grep -q '\$NetBSD' || ( ++echo ".\\\" \$NetBSD\$" >/tmp/texinfo4$$ ++echo ".\\\"" >>/tmp/texinfo4$$ ++cat $m >> /tmp/texinfo4$$ ++mv /tmp/texinfo4$$ $m && echo added NetBSD RCS tag to $m ++ ) ++done ++ ++find . -type f -name '*.texi' -print | while read t; do ++ sed "2 s/^/@c \$NetBSD\$\\ ++/" < $t > /tmp/texinfo5$$ ++ mv /tmp/texinfo5$$ $t && echo added NetBSD RCS tag to $t ++done ++ ++echo done ++ ++echo You can import now. ++ ++echo Path: src/gnu/dist/texinfo ++echo Vendor: FSF ++echo Versiontag: texinfo-X-Y ++ ++echo ++echo Do not forget to update src/gnu/usr.bin/texinfo/common/config.h ++echo and src/gnu/dist/texinfo/util/texinfo.cat! ++exit 0 +diff -r -x CVS -N -U 3 texinfo.orig/TODO texinfo.nbsd/TODO +--- texinfo.orig/TODO 2004-11-23 00:57:32.000000000 +0100 ++++ texinfo.nbsd/TODO 2013-04-10 22:45:11.334172695 +0200 +@@ -1,4 +1,4 @@ +-$Id: TODO,v 1.26 2004/11/22 23:57:32 karl Exp $ ++Id: TODO,v 1.26 2004/11/22 23:57:32 karl Exp + This is the todo list for GNU Texinfo. + If you are interested in working on any of these, email bug-texinfo@gnu.org. + +diff -r -x CVS -N -U 3 texinfo.orig/util/deref.c texinfo.nbsd/util/deref.c +--- texinfo.orig/util/deref.c 2002-08-26 01:38:39.000000000 +0200 ++++ texinfo.nbsd/util/deref.c 2013-04-10 22:45:11.360839895 +0200 +@@ -1,3 +1,5 @@ ++/* $NetBSD: deref.c,v 1.1.1.3 2003/01/17 14:54:37 wiz Exp $ */ ++ + /* + * deref.c + * +diff -r -x CVS -N -U 3 texinfo.orig/util/dir-example texinfo.nbsd/util/dir-example +--- texinfo.orig/util/dir-example 2004-12-30 14:42:54.000000000 +0100 ++++ texinfo.nbsd/util/dir-example 2013-04-10 22:45:11.360839895 +0200 +@@ -10,7 +10,7 @@ + If you have dir entries for Texinfo manuals you'd like to be added here, + please send them to karl@gnu.org. + +-$Id: dir-example,v 1.51 2004/12/18 02:11:43 karl Exp $ ++Id: dir-example,v 1.51 2004/12/18 02:11:43 karl Exp +  + File: dir, Node: Top, This is the top of the INFO tree. + +diff -r -x CVS -N -U 3 texinfo.orig/util/gen-dir-node texinfo.nbsd/util/gen-dir-node +--- texinfo.orig/util/gen-dir-node 2004-04-11 19:56:47.000000000 +0200 ++++ texinfo.nbsd/util/gen-dir-node 2013-04-10 22:45:11.360839895 +0200 +@@ -1,5 +1,5 @@ + #!/bin/sh +-# $Id: gen-dir-node,v 1.3 2004/04/11 17:56:47 karl Exp $ ++# Id: gen-dir-node,v 1.3 2004/04/11 17:56:47 karl Exp + # Generate the top-level Info node, given a directory of Info files + # and (optionally) a skeleton file. The output will be suitable for a + # top-level dir file. The skeleton file contains info topic names in the +@@ -51,7 +51,7 @@ + echo "by `whoami`@`hostname` for `(cd ${INFODIR}; pwd)`" + + cat << moobler +-\$Id: gen-dir-node,v 1.3 2004/04/11 17:56:47 karl Exp $ ++\Id: gen-dir-node,v 1.3 2004/04/11 17:56:47 karl Exp + This is the file .../info/dir, which contains the topmost node of the + Info hierarchy. The first time you invoke Info you start off + looking at that node, which is (dir)Top. +diff -r -x CVS -N -U 3 texinfo.orig/util/gendocs.sh texinfo.nbsd/util/gendocs.sh +--- texinfo.orig/util/gendocs.sh 2004-09-01 13:40:20.000000000 +0200 ++++ texinfo.nbsd/util/gendocs.sh 2013-04-10 22:45:11.360839895 +0200 +@@ -1,7 +1,7 @@ + #!/bin/sh + # gendocs.sh -- generate a GNU manual in many formats. This script is + # mentioned in maintain.texi. See the help message below for usage details. +-# $Id: gendocs.sh,v 1.13 2004/09/01 11:40:20 karl Exp $ ++# Id: gendocs.sh,v 1.13 2004/09/01 11:40:20 karl Exp + # + # Copyright (C) 2003, 2004 Free Software Foundation, Inc. + # +@@ -39,7 +39,7 @@ + : ${GENDOCS_TEMPLATE_DIR="."} + unset CDPATH + +-rcs_revision='$Revision: 1.13 $' ++rcs_revision='Revision: 1.13' + rcs_version=`set - $rcs_revision; echo $2` + program=`echo $0 | sed -e 's!.*/!!'` + version="gendocs.sh $rcs_version +diff -r -x CVS -N -U 3 texinfo.orig/util/gendocs_template texinfo.nbsd/util/gendocs_template +--- texinfo.orig/util/gendocs_template 2004-09-23 15:16:19.000000000 +0200 ++++ texinfo.nbsd/util/gendocs_template 2013-04-10 22:45:11.360839895 +0200 +@@ -1,7 +1,7 @@ + + +- ++ + + + +@@ -91,7 +91,7 @@ +

+ Updated: + +-$Date: 2004/09/23 13:16:19 $ $Author: karl $ ++$Date: 2008/09/02 07:50:57 $ $Author: christos $ + +

+ +diff -r -x CVS -N -U 3 texinfo.orig/util/infosrch texinfo.nbsd/util/infosrch +--- texinfo.orig/util/infosrch 2004-04-11 19:56:47.000000000 +0200 ++++ texinfo.nbsd/util/infosrch 2013-04-10 22:45:11.360839895 +0200 +@@ -1,5 +1,5 @@ + #!/usr/local/bin/perl -w +-# $Id: infosrch,v 1.2 2004/04/11 17:56:47 karl Exp $ ++# Id: infosrch,v 1.2 2004/04/11 17:56:47 karl Exp + # infosrch does a regex search on an info manual. + # By Harry Putnam . + +diff -r -x CVS -N -U 3 texinfo.orig/util/install-info.c texinfo.nbsd/util/install-info.c +--- texinfo.orig/util/install-info.c 2004-04-11 19:56:47.000000000 +0200 ++++ texinfo.nbsd/util/install-info.c 2013-04-10 22:45:11.360839895 +0200 +@@ -1,5 +1,7 @@ ++/* $NetBSD: install-info.c,v 1.9 2008/09/02 08:00:24 christos Exp $ */ ++ + /* install-info -- create Info directory entry(ies) for an Info file. +- $Id: install-info.c,v 1.12 2004/04/11 17:56:47 karl Exp $ ++ Id: install-info.c,v 1.12 2004/04/11 17:56:47 karl Exp + + Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004 Free Software + Foundation, Inc. +diff -r -x CVS -N -U 3 texinfo.orig/util/install-info-html texinfo.nbsd/util/install-info-html +--- texinfo.orig/util/install-info-html 2004-04-11 19:56:47.000000000 +0200 ++++ texinfo.nbsd/util/install-info-html 2013-04-10 22:45:11.360839895 +0200 +@@ -1,5 +1,5 @@ + #!@BASH@ +-# $Id: install-info-html,v 1.3 2004/04/11 17:56:47 karl Exp $ ++# Id: install-info-html,v 1.3 2004/04/11 17:56:47 karl Exp + + name=install-info-html + version=1.0 +diff -r -x CVS -N -U 3 texinfo.orig/util/Makefile.am texinfo.nbsd/util/Makefile.am +--- texinfo.orig/util/Makefile.am 2004-08-26 13:43:18.000000000 +0200 ++++ texinfo.nbsd/util/Makefile.am 2013-04-10 22:45:11.360839895 +0200 +@@ -1,4 +1,4 @@ +-# $Id: Makefile.am,v 1.14 2004/08/26 11:43:18 karl Exp $ ++# Id: Makefile.am,v 1.14 2004/08/26 11:43:18 karl Exp + # Makefile.am for texinfo/util. + # Run automake in .. to produce Makefile.in from this. + # +diff -r -x CVS -N -U 3 texinfo.orig/util/Makefile.in texinfo.nbsd/util/Makefile.in +--- texinfo.orig/util/Makefile.in 2004-12-31 19:01:49.000000000 +0100 ++++ texinfo.nbsd/util/Makefile.in 2013-04-10 22:45:11.360839895 +0200 +@@ -14,7 +14,7 @@ + + @SET_MAKE@ + +-# $Id: Makefile.am,v 1.14 2004/08/26 11:43:18 karl Exp $ ++# Id: Makefile.am,v 1.14 2004/08/26 11:43:18 karl Exp + # Makefile.am for texinfo/util. + # Run automake in .. to produce Makefile.in from this. + # +diff -r -x CVS -N -U 3 texinfo.orig/util/README texinfo.nbsd/util/README +--- texinfo.orig/util/README 2004-04-11 19:56:47.000000000 +0200 ++++ texinfo.nbsd/util/README 2013-04-10 22:45:11.360839895 +0200 +@@ -1,4 +1,4 @@ +-$Id: README,v 1.5 2004/04/11 17:56:47 karl Exp $ ++Id: README,v 1.5 2004/04/11 17:56:47 karl Exp + texinfo/util/README + + Copyright (C) 2002 Free Software Foundation, Inc. +diff -r -x CVS -N -U 3 texinfo.orig/util/texi2dvi texinfo.nbsd/util/texi2dvi +--- texinfo.orig/util/texi2dvi 2004-12-31 19:03:05.000000000 +0100 ++++ texinfo.nbsd/util/texi2dvi 2013-04-10 22:45:11.364173295 +0200 +@@ -1,6 +1,6 @@ + #! /bin/sh + # texi2dvi --- produce DVI (or PDF) files from Texinfo (or LaTeX) sources. +-# $Id: texi2dvi,v 1.34 2004/12/01 18:35:36 karl Exp $ ++# Id: texi2dvi,v 1.34 2004/12/01 18:35:36 karl Exp + # + # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2001, + # 2002, 2003, 2004 Free Software Foundation, Inc. +@@ -27,7 +27,7 @@ + # the `--debug' option when making a bug report. + + # This string is expanded by rcs automatically when this file is checked out. +-rcs_revision='$Revision: 1.34 $' ++rcs_revision='Revision: 1.34' + rcs_version=`set - $rcs_revision; echo $2` + program=`echo $0 | sed -e 's!.*/!!'` + version="texi2dvi (GNU Texinfo 4.8) $rcs_version +@@ -691,8 +691,13 @@ + + # Finally, run TeX. + cmd="$tex $tex_args" +- $verbose "Running $cmd $filename_input ..." ++ $verbose "Running $cmd ..." + if $cmd "$filename_input" >&5; then :; else ++ echo "$0: TeX failed. If the above said 'tex: not found', " >&2 ++ echo "$0: you may need to install TeX;" >&2 ++ echo "$0: it is available from the pkgsrc system in print/teTeX." >&2 ++ echo "$0: If TeX is installed, make sure it is in your $PATH, or" >&2 ++ echo "$0: set the environment variable $TEX to its location." >&2 + echo "$0: $tex exited with bad status, quitting." >&2 + echo "$0: see $filename_noext.log for errors." >&2 + test "$clean" = t \ +diff -r -x CVS -N -U 3 texinfo.orig/util/texi2pdf texinfo.nbsd/util/texi2pdf +--- texinfo.orig/util/texi2pdf 2004-07-11 03:02:35.000000000 +0200 ++++ texinfo.nbsd/util/texi2pdf 2013-04-10 22:45:11.364173295 +0200 +@@ -1,5 +1,5 @@ + #!/bin/sh +-# $Id: texi2pdf,v 1.1 2004/07/11 01:02:35 karl Exp $ ++# Id: texi2pdf,v 1.1 2004/07/11 01:02:35 karl Exp + # Written by Thomas Esser. Public domain. + # Execute texi2dvi --pdf. + +diff -r -x CVS -N -U 3 texinfo.orig/util/texi-docstring-magic.el texinfo.nbsd/util/texi-docstring-magic.el +--- texinfo.orig/util/texi-docstring-magic.el 2004-04-11 19:56:47.000000000 +0200 ++++ texinfo.nbsd/util/texi-docstring-magic.el 2013-04-10 22:45:11.364173295 +0200 +@@ -5,7 +5,7 @@ + ;; Copyright (C) 1998 David Aspinall + ;; Maintainer: David Aspinall + ;; +-;; $Id: texi-docstring-magic.el,v 1.2 2004/04/11 17:56:47 karl Exp $ ++;; Id: texi-docstring-magic.el,v 1.2 2004/04/11 17:56:47 karl Exp + ;; + ;; This package is distributed under the terms of the + ;; GNU General Public License, Version 2. +diff -r -x CVS -N -U 3 texinfo.orig/util/texindex.c texinfo.nbsd/util/texindex.c +--- texinfo.orig/util/texindex.c 2004-04-11 19:56:47.000000000 +0200 ++++ texinfo.nbsd/util/texindex.c 2013-04-10 22:45:11.364173295 +0200 +@@ -1,5 +1,7 @@ ++/* $NetBSD: texindex.c,v 1.11 2008/09/02 08:00:24 christos Exp $ */ ++ + /* texindex -- sort TeX index dribble output into an actual index. +- $Id: texindex.c,v 1.11 2004/04/11 17:56:47 karl Exp $ ++ Id: texindex.c,v 1.11 2004/04/11 17:56:47 karl Exp + + Copyright (C) 1987, 1991, 1992, 1996, 1997, 1998, 1999, 2000, 2001, + 2002, 2003, 2004 Free Software Foundation, Inc. +@@ -37,16 +39,12 @@ + #define memset(ptr, ignore, count) bzero (ptr, count) + #endif + +-char *mktemp (char *); +- + #if !defined (SEEK_SET) + # define SEEK_SET 0 + # define SEEK_CUR 1 + # define SEEK_END 2 + #endif /* !SEEK_SET */ + +-struct linebuffer; +- + /* When sorting in core, this structure describes one line + and the position and length of its first keyfield. */ + struct lineinfo +@@ -96,16 +94,6 @@ + /* The allocated length of `linearray'. */ + long nlines; + +-/* Directory to use for temporary files. On Unix, it ends with a slash. */ +-char *tempdir; +- +-/* Number of last temporary file. */ +-int tempcount; +- +-/* Number of last temporary file already deleted. +- Temporary files are deleted by `flush_tempfiles' in order of creation. */ +-int last_deleted_tempcount; +- + /* During in-core sort, this points to the base of the data block + which contains all the lines of data. */ + char *text_base; +@@ -117,15 +105,9 @@ + determine whether we need initials in the sorted form. */ + char first_initial; + +-/* Additional command switches .*/ +- +-/* Nonzero means do not delete tempfiles -- for debugging. */ +-int keep_tempfiles; +- + /* Forward declarations of functions in this file. */ + void decode_command (int argc, char **argv); + void sort_in_core (char *infile, int total, char *outfile); +-void sort_offline (char *infile, off_t total, char *outfile); + char **parsefile (char *filename, char **nextline, char *data, long int size); + char *find_field (struct keyfield *keyfield, char *str, long int *lengthptr); + char *find_pos (char *str, int words, int chars, int ignore_blanks); +@@ -137,26 +119,17 @@ + long int length1, long int pos1, char *start2, + long int length2, long int pos2); + int compare_full (const void *, const void *); +-long readline (struct linebuffer *linebuffer, FILE *stream); +-int merge_files (char **infiles, int nfiles, char *outfile); +-int merge_direct (char **infiles, int nfiles, char *outfile); + void pfatal_with_name (const char *name); + void fatal (const char *format, const char *arg); + void error (const char *format, const char *arg); + void *xmalloc (), *xrealloc (); +-char *concat (char *s1, char *s2); +-void flush_tempfiles (int to_count); ++static char *concat3 (const char *, const char *, const char *); + +-#define MAX_IN_CORE_SORT 500000 +- + int + main (int argc, char **argv) + { + int i; + +- tempcount = 0; +- last_deleted_tempcount = 0; +- + #ifdef HAVE_SETLOCALE + /* Set locale via LC_ALL. */ + setlocale (LC_ALL, ""); +@@ -220,19 +193,20 @@ + + outfile = outfiles[i]; + if (!outfile) +- outfile = concat (infiles[i], "s"); ++ outfile = concat3 (infiles[i], "s", ""); + + need_initials = 0; + first_initial = '\0'; + +- if (ptr < MAX_IN_CORE_SORT) +- /* Sort a small amount of data. */ +- sort_in_core (infiles[i], (int)ptr, outfile); +- else +- sort_offline (infiles[i], ptr, outfile); ++ if (ptr != (int)ptr) ++ { ++ fprintf (stderr, "%s: %s: file too large\n", program_name, ++ infiles[i]); ++ xexit (1); ++ } ++ sort_in_core (infiles[i], (int)ptr, outfile); + } + +- flush_tempfiles (tempcount); + xexit (0); + return 0; /* Avoid bogus warnings. */ + } +@@ -250,10 +224,6 @@ + TEXINDEX_OPTION texindex_options[] = { + { "--help", "-h", (int *)NULL, 0, (char *)NULL, + N_("display this help and exit") }, +- { "--keep", "-k", &keep_tempfiles, 1, (char *)NULL, +- N_("keep temporary files around after processing") }, +- { "--no-keep", 0, &keep_tempfiles, 0, (char *)NULL, +- N_("do not keep temporary files around after processing (default)") }, + { "--output", "-o", (int *)NULL, 0, "FILE", + N_("send output to FILE") }, + { "--version", (char *)NULL, (int *)NULL, 0, (char *)NULL, +@@ -308,20 +278,6 @@ + char **ip; + char **op; + +- /* Store default values into parameter variables. */ +- +- tempdir = getenv ("TMPDIR"); +- if (tempdir == NULL) +- tempdir = getenv ("TEMP"); +- if (tempdir == NULL) +- tempdir = getenv ("TMP"); +- if (tempdir == NULL) +- tempdir = DEFAULT_TMPDIR; +- else +- tempdir = concat (tempdir, "/"); +- +- keep_tempfiles = 0; +- + /* Allocate ARGC input files, which must be enough. */ + + infiles = (char **) xmalloc (argc * sizeof (char *)); +@@ -348,7 +304,7 @@ + else if ((strcmp (arg, "--keep") == 0) || + (strcmp (arg, "-k") == 0)) + { +- keep_tempfiles = 1; ++ /* Ignore, for backward compatibility */ + } + else if ((strcmp (arg, "--help") == 0) || + (strcmp (arg, "-h") == 0)) +@@ -384,41 +340,6 @@ + usage (1); + } + +-/* Return a name for temporary file COUNT. */ +- +-static char * +-maketempname (int count) +-{ +- static char *tempbase = NULL; +- char tempsuffix[10]; +- +- if (!tempbase) +- { +- int fd; +- tempbase = concat (tempdir, "txidxXXXXXX"); +- +- fd = mkstemp (tempbase); +- if (fd == -1) +- pfatal_with_name (tempbase); +- } +- +- sprintf (tempsuffix, ".%d", count); +- return concat (tempbase, tempsuffix); +-} +- +- +-/* Delete all temporary files up to TO_COUNT. */ +- +-void +-flush_tempfiles (int to_count) +-{ +- if (keep_tempfiles) +- return; +- while (last_deleted_tempcount < to_count) +- unlink (maketempname (++last_deleted_tempcount)); +-} +- +- + /* Compare LINE1 and LINE2 according to the specified set of keyfields. */ + + int +@@ -801,150 +722,6 @@ + } + } + +-/* A `struct linebuffer' is a structure which holds a line of text. +- `readline' reads a line from a stream into a linebuffer +- and works regardless of the length of the line. */ +- +-struct linebuffer +-{ +- long size; +- char *buffer; +-}; +- +-/* Initialize LINEBUFFER for use. */ +- +-void +-initbuffer (struct linebuffer *linebuffer) +-{ +- linebuffer->size = 200; +- linebuffer->buffer = (char *) xmalloc (200); +-} +- +-/* Read a line of text from STREAM into LINEBUFFER. +- Return the length of the line. */ +- +-long +-readline (struct linebuffer *linebuffer, FILE *stream) +-{ +- char *buffer = linebuffer->buffer; +- char *p = linebuffer->buffer; +- char *end = p + linebuffer->size; +- +- while (1) +- { +- int c = getc (stream); +- if (p == end) +- { +- buffer = (char *) xrealloc (buffer, linebuffer->size *= 2); +- p += buffer - linebuffer->buffer; +- end += buffer - linebuffer->buffer; +- linebuffer->buffer = buffer; +- } +- if (c < 0 || c == '\n') +- { +- *p = 0; +- break; +- } +- *p++ = c; +- } +- +- return p - buffer; +-} +- +-/* Sort an input file too big to sort in core. */ +- +-void +-sort_offline (char *infile, off_t total, char *outfile) +-{ +- /* More than enough. */ +- int ntemps = 2 * (total + MAX_IN_CORE_SORT - 1) / MAX_IN_CORE_SORT; +- char **tempfiles = (char **) xmalloc (ntemps * sizeof (char *)); +- FILE *istream = fopen (infile, "r"); +- int i; +- struct linebuffer lb; +- long linelength; +- int failure = 0; +- +- initbuffer (&lb); +- +- /* Read in one line of input data. */ +- +- linelength = readline (&lb, istream); +- +- if (lb.buffer[0] != '\\' && lb.buffer[0] != '@') +- { +- error (_("%s: not a texinfo index file"), infile); +- return; +- } +- +- /* Split up the input into `ntemps' temporary files, or maybe fewer, +- and put the new files' names into `tempfiles' */ +- +- for (i = 0; i < ntemps; i++) +- { +- char *outname = maketempname (++tempcount); +- FILE *ostream = fopen (outname, "w"); +- long tempsize = 0; +- +- if (!ostream) +- pfatal_with_name (outname); +- tempfiles[i] = outname; +- +- /* Copy lines into this temp file as long as it does not make file +- "too big" or until there are no more lines. */ +- +- while (tempsize + linelength + 1 <= MAX_IN_CORE_SORT) +- { +- tempsize += linelength + 1; +- fputs (lb.buffer, ostream); +- putc ('\n', ostream); +- +- /* Read another line of input data. */ +- +- linelength = readline (&lb, istream); +- if (!linelength && feof (istream)) +- break; +- +- if (lb.buffer[0] != '\\' && lb.buffer[0] != '@') +- { +- error (_("%s: not a texinfo index file"), infile); +- failure = 1; +- goto fail; +- } +- } +- fclose (ostream); +- if (feof (istream)) +- break; +- } +- +- free (lb.buffer); +- +-fail: +- /* Record number of temp files we actually needed. */ +- +- ntemps = i; +- +- /* Sort each tempfile into another tempfile. +- Delete the first set of tempfiles and put the names of the second +- into `tempfiles'. */ +- +- for (i = 0; i < ntemps; i++) +- { +- char *newtemp = maketempname (++tempcount); +- sort_in_core (tempfiles[i], MAX_IN_CORE_SORT, newtemp); +- if (!keep_tempfiles) +- unlink (tempfiles[i]); +- tempfiles[i] = newtemp; +- } +- +- if (failure) +- return; +- +- /* Merge the tempfiles together and indexify. */ +- +- merge_files (tempfiles, ntemps, outfile); +-} +- + /* Sort INFILE, whose size is TOTAL, + assuming that is small enough to be done in-core, + then indexify it and send the output to OUTFILE (or to stdout). */ +@@ -1348,8 +1125,7 @@ + + for (next_line = linearray; next_line != stop_line; next_line++) + { +- /* If -u was specified, output the line only if distinct from +- previous one. */ ++ /* Output the line only if distinct from previous one. */ + if (next_line == linearray + /* Compare previous line with this one, using only the + explicitly specd keyfields. */ +@@ -1369,215 +1145,6 @@ + finish_index (ostream); + } + +-/* Assume (and optionally verify) that each input file is sorted; +- merge them and output the result. +- Returns nonzero if any input file fails to be sorted. +- +- This is the high-level interface that can handle an unlimited +- number of files. */ +- +-#define MAX_DIRECT_MERGE 10 +- +-int +-merge_files (char **infiles, int nfiles, char *outfile) +-{ +- char **tempfiles; +- int ntemps; +- int i; +- int value = 0; +- int start_tempcount = tempcount; +- +- if (nfiles <= MAX_DIRECT_MERGE) +- return merge_direct (infiles, nfiles, outfile); +- +- /* Merge groups of MAX_DIRECT_MERGE input files at a time, +- making a temporary file to hold each group's result. */ +- +- ntemps = (nfiles + MAX_DIRECT_MERGE - 1) / MAX_DIRECT_MERGE; +- tempfiles = (char **) xmalloc (ntemps * sizeof (char *)); +- for (i = 0; i < ntemps; i++) +- { +- int nf = MAX_DIRECT_MERGE; +- if (i + 1 == ntemps) +- nf = nfiles - i * MAX_DIRECT_MERGE; +- tempfiles[i] = maketempname (++tempcount); +- value |= merge_direct (&infiles[i * MAX_DIRECT_MERGE], nf, tempfiles[i]); +- } +- +- /* All temporary files that existed before are no longer needed +- since their contents have been merged into our new tempfiles. +- So delete them. */ +- flush_tempfiles (start_tempcount); +- +- /* Now merge the temporary files we created. */ +- +- merge_files (tempfiles, ntemps, outfile); +- +- free (tempfiles); +- +- return value; +-} +- +-/* Assume (and optionally verify) that each input file is sorted; +- merge them and output the result. +- Returns nonzero if any input file fails to be sorted. +- +- This version of merging will not work if the number of +- input files gets too high. Higher level functions +- use it only with a bounded number of input files. */ +- +-int +-merge_direct (char **infiles, int nfiles, char *outfile) +-{ +- struct linebuffer *lb1, *lb2; +- struct linebuffer **thisline, **prevline; +- FILE **streams; +- int i; +- int nleft; +- int lossage = 0; +- int *file_lossage; +- struct linebuffer *prev_out = 0; +- FILE *ostream = stdout; +- +- if (outfile) +- { +- ostream = fopen (outfile, "w"); +- } +- if (!ostream) +- pfatal_with_name (outfile); +- +- init_index (); +- +- if (nfiles == 0) +- { +- if (outfile) +- fclose (ostream); +- return 0; +- } +- +- /* For each file, make two line buffers. Also, for each file, there +- is an element of `thisline' which points at any time to one of the +- file's two buffers, and an element of `prevline' which points to +- the other buffer. `thisline' is supposed to point to the next +- available line from the file, while `prevline' holds the last file +- line used, which is remembered so that we can verify that the file +- is properly sorted. */ +- +- /* lb1 and lb2 contain one buffer each per file. */ +- lb1 = (struct linebuffer *) xmalloc (nfiles * sizeof (struct linebuffer)); +- lb2 = (struct linebuffer *) xmalloc (nfiles * sizeof (struct linebuffer)); +- +- /* thisline[i] points to the linebuffer holding the next available +- line in file i, or is zero if there are no lines left in that file. */ +- thisline = (struct linebuffer **) +- xmalloc (nfiles * sizeof (struct linebuffer *)); +- /* prevline[i] points to the linebuffer holding the last used line +- from file i. This is just for verifying that file i is properly +- sorted. */ +- prevline = (struct linebuffer **) +- xmalloc (nfiles * sizeof (struct linebuffer *)); +- /* streams[i] holds the input stream for file i. */ +- streams = (FILE **) xmalloc (nfiles * sizeof (FILE *)); +- /* file_lossage[i] is nonzero if we already know file i is not +- properly sorted. */ +- file_lossage = (int *) xmalloc (nfiles * sizeof (int)); +- +- /* Allocate and initialize all that storage. */ +- +- for (i = 0; i < nfiles; i++) +- { +- initbuffer (&lb1[i]); +- initbuffer (&lb2[i]); +- thisline[i] = &lb1[i]; +- prevline[i] = &lb2[i]; +- file_lossage[i] = 0; +- streams[i] = fopen (infiles[i], "r"); +- if (!streams[i]) +- pfatal_with_name (infiles[i]); +- +- readline (thisline[i], streams[i]); +- } +- +- /* Keep count of number of files not at eof. */ +- nleft = nfiles; +- +- while (nleft) +- { +- struct linebuffer *best = 0; +- struct linebuffer *exch; +- int bestfile = -1; +- int i; +- +- /* Look at the next avail line of each file; choose the least one. */ +- +- for (i = 0; i < nfiles; i++) +- { +- if (thisline[i] && +- (!best || +- 0 < compare_general (best->buffer, thisline[i]->buffer, +- (long) bestfile, (long) i, num_keyfields))) +- { +- best = thisline[i]; +- bestfile = i; +- } +- } +- +- /* Output that line, unless it matches the previous one and we +- don't want duplicates. */ +- +- if (!(prev_out && +- !compare_general (prev_out->buffer, +- best->buffer, 0L, 1L, num_keyfields - 1))) +- indexify (best->buffer, ostream); +- prev_out = best; +- +- /* Now make the line the previous of its file, and fetch a new +- line from that file. */ +- +- exch = prevline[bestfile]; +- prevline[bestfile] = thisline[bestfile]; +- thisline[bestfile] = exch; +- +- while (1) +- { +- /* If the file has no more, mark it empty. */ +- +- if (feof (streams[bestfile])) +- { +- thisline[bestfile] = 0; +- /* Update the number of files still not empty. */ +- nleft--; +- break; +- } +- readline (thisline[bestfile], streams[bestfile]); +- if (thisline[bestfile]->buffer[0] || !feof (streams[bestfile])) +- break; +- } +- } +- +- finish_index (ostream); +- +- /* Free all storage and close all input streams. */ +- +- for (i = 0; i < nfiles; i++) +- { +- fclose (streams[i]); +- free (lb1[i].buffer); +- free (lb2[i].buffer); +- } +- free (file_lossage); +- free (lb1); +- free (lb2); +- free (thisline); +- free (prevline); +- free (streams); +- +- if (outfile) +- fclose (ostream); +- +- return lossage; +-} +- + /* Print error message and exit. */ + + void +@@ -1612,17 +1179,18 @@ + } + + +-/* Return a newly-allocated string concatenating S1 and S2. */ ++/* Return a newly-allocated string concatenating S1, S2, and S3. */ + +-char * +-concat (char *s1, char *s2) ++static char * ++concat3 (const char *s1, const char *s2, const char *s3) + { +- int len1 = strlen (s1), len2 = strlen (s2); +- char *result = (char *) xmalloc (len1 + len2 + 1); ++ int len1 = strlen (s1), len2 = strlen (s2), len3 = strlen (s3); ++ char *result = (char *) xmalloc (len1 + len2 + len3 + 1); + + strcpy (result, s1); + strcpy (result + len1, s2); +- *(result + len1 + len2) = 0; ++ strcpy (result + len1 + len2, s3); ++ *(result + len1 + len2 + len3) = 0; + + return result; + } +diff -r -x CVS -N -U 3 texinfo.orig/util/texinfo.dtd texinfo.nbsd/util/texinfo.dtd +--- texinfo.orig/util/texinfo.dtd 2004-12-19 16:08:55.000000000 +0100 ++++ texinfo.nbsd/util/texinfo.dtd 2013-04-10 22:45:11.364173295 +0200 +@@ -1,4 +1,4 @@ +- ++ + + +diff -r -x CVS -N -U 3 texinfo.orig/util/txitextest texinfo.nbsd/util/txitextest +--- texinfo.orig/util/txitextest 2004-04-11 19:56:47.000000000 +0200 ++++ texinfo.nbsd/util/txitextest 2013-04-10 22:45:11.364173295 +0200 +@@ -1,5 +1,5 @@ + #!/bin/sh +-# $Id: txitextest,v 1.5 2004/04/11 17:56:47 karl Exp $ ++# Id: txitextest,v 1.5 2004/04/11 17:56:47 karl Exp + # Test texinfo.tex changes by running various manuals through with an + # old version, saving the .ps result from dvips, doing the same with a + # new version, and comparing. Idea from Stepan Kasal. diff --git a/gnu/usr.bin/texinfo/texi2dvi/Makefile b/gnu/usr.bin/texinfo/texi2dvi/Makefile new file mode 100644 index 000000000..6ef71b09d --- /dev/null +++ b/gnu/usr.bin/texinfo/texi2dvi/Makefile @@ -0,0 +1,9 @@ +# $NetBSD: Makefile,v 1.4 2003/01/17 15:32:25 wiz Exp $ + +FILES= texi2dvi +FILESMODE= ${BINMODE} +MAN= texi2dvi.1 + +.include + +.PATH: ${IDIST}/util ${IDIST}/doc diff --git a/gnu/usr.bin/texinfo/texindex/Makefile b/gnu/usr.bin/texinfo/texindex/Makefile new file mode 100644 index 000000000..fe651aa39 --- /dev/null +++ b/gnu/usr.bin/texinfo/texindex/Makefile @@ -0,0 +1,8 @@ +# $NetBSD: Makefile,v 1.4 2003/01/17 15:32:25 wiz Exp $ + +PROG= texindex +SRCS= texindex.c + +.include + +.PATH: ${IDIST}/util ${IDIST}/doc diff --git a/releasetools/nbsd_ports b/releasetools/nbsd_ports index 5a05e0902..b2ee60e45 100644 --- a/releasetools/nbsd_ports +++ b/releasetools/nbsd_ports @@ -58,6 +58,10 @@ 2012/10/17 12:00:00,external/Makefile 2011/05/26 00:00:00,external/public-domain/xz 2012/10/17 12:00:00,external/README +2012/10/17 12:00:00,gnu/dist/texinfo +2012/10/17 12:00:00,gnu/usr.bin/texinfo +2012/10/17 12:00:00,gnu/Makefile +2012/10/17 12:00:00,gnu/README 2012/10/17 12:00:00,include 2013/05/31 12:00:00,libexec/fingerd 2012/10/17 12:00:00,libexec/ftpd @@ -124,6 +128,7 @@ 2012/10/17 12:00:00,tools/mtree 2012/10/17 12:00:00,tools/nbperf 2012/10/17 12:00:00,tools/sed +2012/10/17 12:00:00,tools/texinfo 2012/10/17 12:00:00,tools/tic 2012/10/17 12:00:00,tools/tsort 2009/05/08 12:48:43,usr.bin/apropos diff --git a/share/mk/bsd.own.mk b/share/mk/bsd.own.mk index b5a46c88b..622d4427e 100644 --- a/share/mk/bsd.own.mk +++ b/share/mk/bsd.own.mk @@ -22,7 +22,7 @@ MANGRP?= operator INFOGRP?= operator DOCGRP?= operator -MKBINUTILS:= no +MKBINUTILS?= no MKGDB:= no MKGCC?= no diff --git a/tools/Makefile b/tools/Makefile index b5fba52e7..5e30385bc 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -63,6 +63,7 @@ SUBDIR= host-mkdep .WAIT compat .WAIT \ genassym join \ lorder makewhatis mkdep mtree nbperf .WAIT tsort \ m4 \ + .WAIT texinfo \ .WAIT mkfs.mfs \ .WAIT toproto \ .WAIT yacc \ diff --git a/tools/Makefile.gnuhost b/tools/Makefile.gnuhost index 3cc47a0c3..07a882ebc 100755 --- a/tools/Makefile.gnuhost +++ b/tools/Makefile.gnuhost @@ -35,7 +35,7 @@ GNUHOSTDIST?= ${.CURDIR}/../../gnu/dist/${MODULE} ${GNUHOSTDIST:H}/.gitignore: ${GNUHOSTDIST:H}/fetch.sh ${HOST_SH} ${GNUHOSTDIST:H}/fetch.sh @test -e ${GNUHOSTDIST}/configure - @echo "${MODULE:U${.CURDIR:T:C,^gcc[0-9]*$,gcc,}}-*.tar.*z*" > $@ + @echo "${MODULE:U${.CURDIR:T}:C,gcc[0-9]*,gcc,}-*.tar.*z*" >> $@ @echo ${GNUHOSTDIST:T} >> $@ _gnu_get_src=${GNUHOSTDIST:H}/.gitignore .endif # exists(GNUHOSTDIST:H/fetch.sh) on MINIX diff --git a/tools/texinfo/Makefile b/tools/texinfo/Makefile new file mode 100644 index 000000000..7714d75d2 --- /dev/null +++ b/tools/texinfo/Makefile @@ -0,0 +1,7 @@ +# $NetBSD: Makefile,v 1.9 2002/12/08 20:20:05 thorpej Exp $ + +MODULE= texinfo + +CONFIGURE_ARGS= --program-prefix=${_TOOL_PREFIX} + +.include "${.CURDIR}/../Makefile.gnuhost"