r1178 - in trunk/freebsd6-buildutils/debian: . patches

2006-02-13 Thread Robert Millan
Author: rmh
Date: 2006-02-13 08:27:48 + (Mon, 13 Feb 2006)
New Revision: 1178

Removed:
   trunk/freebsd6-buildutils/debian/patches/06_ftbfs_gcc-4.0.diff
Modified:
   trunk/freebsd6-buildutils/debian/changelog
   trunk/freebsd6-buildutils/debian/control
   trunk/freebsd6-buildutils/debian/rules
Log:
  * Fixes runtime getopt parsing infin loop.
- rules (COPTS): Build with -D_GNU_SOURCE.
- rules: Rename internal getline function to avoid collision with the one
  from Glibc (s/getline/bsd_&/g).
- patches/06_ftbfs_gcc-4.0.diff: Remove (it had dirty getopt hacks as well).

Modified: trunk/freebsd6-buildutils/debian/changelog
===
--- trunk/freebsd6-buildutils/debian/changelog  2006-02-12 16:50:53 UTC (rev 
1177)
+++ trunk/freebsd6-buildutils/debian/changelog  2006-02-13 08:27:48 UTC (rev 
1178)
@@ -29,8 +29,17 @@
 - rules: Install mk and Mk in /usr/share.
   * patches/000_fix_make_double_free.diff: New.  Patch from upstream
 (1.155:1.158).  Thanks to Petr for spotting this.
+  * Build using gcc 3.4, like upstream.
+- control (Build-Depends): Add gcc-3.4.
+- rules: Pass CC=gcc-3.4 to make.
+- patches/06_ftbfs_gcc-4.0.diff: Remove.
+  * Fixes runtime getopt parsing infin loop.
+- rules (COPTS): Build with -D_GNU_SOURCE.
+- rules: Rename internal getline function to avoid collision with the one
+  from Glibc (s/getline/bsd_&/g).
+- patches/06_ftbfs_gcc-4.0.diff: Remove (it had dirty getopt hacks as 
well).
 
- -- Robert Millan <[EMAIL PROTECTED]>  Sun, 12 Feb 2006 17:48:57 +0100
+ -- Robert Millan <[EMAIL PROTECTED]>  Mon, 13 Feb 2006 09:24:59 +0100
 
 freebsd5-buildutils (5.4-3) unstable; urgency=low
 

Modified: trunk/freebsd6-buildutils/debian/control
===
--- trunk/freebsd6-buildutils/debian/control2006-02-12 16:50:53 UTC (rev 
1177)
+++ trunk/freebsd6-buildutils/debian/control2006-02-13 08:27:48 UTC (rev 
1178)
@@ -3,7 +3,7 @@
 Priority: extra
 Maintainer: GNU/kFreeBSD Maintainers 
 Uploaders: Aurelien Jarno <[EMAIL PROTECTED]>, Guillem Jover <[EMAIL 
PROTECTED]>
-Build-Depends: patchutils (>= 0.2.25), debhelper (>= 4.1.0), pmake, flex, 
bison, libbsd-dev
+Build-Depends: patchutils (>= 0.2.25), debhelper (>= 4.1.0), pmake, flex, 
bison, libbsd-dev, gcc-3.4
 Standards-Version: 3.6.2
 
 Package: freebsd6-buildutils

Deleted: trunk/freebsd6-buildutils/debian/patches/06_ftbfs_gcc-4.0.diff
===
--- trunk/freebsd6-buildutils/debian/patches/06_ftbfs_gcc-4.0.diff  
2006-02-12 16:50:53 UTC (rev 1177)
+++ trunk/freebsd6-buildutils/debian/patches/06_ftbfs_gcc-4.0.diff  
2006-02-13 08:27:48 UTC (rev 1178)
@@ -1,29 +0,0 @@
-diff -ur src/usr.bin/make/job.c src/usr.bin/make/job.c
 src/usr.bin/make/job.c 2005-12-17 12:46:35.0 +0100
-+++ src/usr.bin/make/job.c 2005-12-17 12:59:30.0 +0100
-@@ -304,7 +304,7 @@
-  * The maximum number of jobs that may run. This is initialize from the
-  * -j argument for the leading make and from the FIFO for sub-makes.
-  */
--static intmaxJobs;
-+int   maxJobs;
- 
- static intnJobs;  /* The number of children currently running */
- 
-diff -ur src/usr.bin/make/main.c src/usr.bin/make/main.c
 src/usr.bin/make/main.c2005-12-17 12:46:35.0 +0100
-+++ src/usr.bin/make/main.c2005-12-17 12:59:30.0 +0100
-@@ -329,12 +329,11 @@
- static void
- MainParseArgs(int argc, char **argv)
- {
--  int c;
-+  int c, optind;
-   Boolean found_dd = FALSE;
- 
- rearg:
-   optind = 1; /* since we're called more than once */
--  optreset = 1;
- #define OPTFLAGS "ABC:D:E:I:PSV:Xd:ef:ij:km:nqrstvx:"
-   for (;;) {
-   if ((optind < argc) && strcmp(argv[optind], "--") == 0) {

Modified: trunk/freebsd6-buildutils/debian/rules
===
--- trunk/freebsd6-buildutils/debian/rules  2006-02-12 16:50:53 UTC (rev 
1177)
+++ trunk/freebsd6-buildutils/debian/rules  2006-02-13 08:27:48 UTC (rev 
1178)
@@ -12,8 +12,8 @@
 DEB_HOST_ARCH_CPU  := $(shell dpkg-architecture -qDEB_HOST_ARCH_CPU)
 
 PMAKE=pmake
-CFLAGS=-O2 -g -Wall -DMACHINE_ARCH='\"$(DEB_HOST_ARCH_CPU)\"'
-MAKE_BUILD_FLAGS= COPTS="$(CFLAGS)" NO_WERROR=1 NOGCCERROR=1 NOSHARED=NO 
NO_SHARED=NO
+CFLAGS=-O2 -g -Wall -DMACHINE_ARCH='\"$(DEB_HOST_ARCH_CPU)\"' -D_GNU_SOURCE
+MAKE_BUILD_FLAGS= CC=gcc-3.4 COPTS="$(CFLAGS)" NO_WERROR=1 NOGCCERROR=1 
NOSHARED=NO NO_SHARED=NO
 YACC=$(CURDIR)/build-tree/src/usr.bin/yacc/yacc
 export LDADD=-lbsd
 
@@ -25,8 +25,9 @@
tar -C build-tree -xzf src.tar.gz
find build-tree -type d -name CVS | xargs rm -rf
find build-tree -type f | (while read i ; do sed -i $$i \
-   -e "/^__FBSDID/d" -e "s,,,g" -e 
"s/^LDADD=/LDADD+=/g" ; \
-   done)
+   -e "/^__FBSDID/d" -e "

r1179 - in trunk/libbsd: . debian

2006-02-13 Thread Robert Millan
Author: rmh
Date: 2006-02-13 09:02:17 + (Mon, 13 Feb 2006)
New Revision: 1179

Added:
   trunk/libbsd/reset_getopt.c
Modified:
   trunk/libbsd/ChangeLog
   trunk/libbsd/Makefile
   trunk/libbsd/Versions
   trunk/libbsd/debian/changelog
   trunk/libbsd/debian/copyright
Log:
Add reset_getopt (borrowed from e2fsprogs).
* reset_getopt.c: New.
* Versions: Add reset_getopt.
* Makefile: Add reset_getopt.c.
* debian/copyright: Add license (GPL).

Modified: trunk/libbsd/ChangeLog
===
--- trunk/libbsd/ChangeLog  2006-02-13 08:27:48 UTC (rev 1178)
+++ trunk/libbsd/ChangeLog  2006-02-13 09:02:17 UTC (rev 1179)
@@ -1,3 +1,11 @@
+2006-02-13  Robert Millan  <[EMAIL PROTECTED]>
+   
+   Add reset_getopt (borrowed from e2fsprogs).
+   * reset_getopt.c: New.
+   * Versions: Add reset_getopt.
+   * Makefile: Add reset_getopt.c.
+   * debian/copyright: Add license (GPL).
+
 2006-02-10  Robert Millan  <[EMAIL PROTECTED]>

Add errc, warnc, verrc and vwarnc.

Modified: trunk/libbsd/Makefile
===
--- trunk/libbsd/Makefile   2006-02-13 08:27:48 UTC (rev 1178)
+++ trunk/libbsd/Makefile   2006-02-13 09:02:17 UTC (rev 1179)
@@ -4,7 +4,7 @@
 # $Id$
 #
 
-LIB_SRCS = arc4random.c err.c fgetln.c inet_net_pton.c strlcat.c strlcpy.c 
md5c.c fmtcheck.c
+LIB_SRCS = arc4random.c err.c fgetln.c inet_net_pton.c reset_getopt.c  
strlcat.c strlcpy.c md5c.c fmtcheck.c
 
 LIB_INCLUDES = include/bsd/err.h include/bsd/ip_icmp.h include/bsd/random.h 
include/bsd/queue.h include/bsd/md5.h include/bsd/string.h include/bsd/bsd.h 
include/bsd/stdlib.h
 

Modified: trunk/libbsd/Versions
===
--- trunk/libbsd/Versions   2006-02-13 08:27:48 UTC (rev 1178)
+++ trunk/libbsd/Versions   2006-02-13 09:02:17 UTC (rev 1179)
@@ -6,8 +6,8 @@
 fgetwln;
 fmtcheck;
 inet_net_pton;
-strlcpy;
-strlcat;
+reset_getopt;
+strlcpy; strlcat;
 MD5Init;
 MD5Update;
 MD5Pad;

Modified: trunk/libbsd/debian/changelog
===
--- trunk/libbsd/debian/changelog   2006-02-13 08:27:48 UTC (rev 1178)
+++ trunk/libbsd/debian/changelog   2006-02-13 09:02:17 UTC (rev 1179)
@@ -1,4 +1,4 @@
-libbsd (0.0-1) unreleased; urgency=low
+libbsd (0.0-1.1+kbsd.1) unreleased; urgency=low
 
   * Initial release.
 

Modified: trunk/libbsd/debian/copyright
===
--- trunk/libbsd/debian/copyright   2006-02-13 08:27:48 UTC (rev 1178)
+++ trunk/libbsd/debian/copyright   2006-02-13 09:02:17 UTC (rev 1179)
@@ -3,7 +3,7 @@
 
 It was downloaded from http://www.freebsd.org/
 
-Copyright Holder: The FreeBSD project.
+Copyright Holder: The FreeBSD project (and others)
 
 License:
 
@@ -25,3 +25,12 @@
 On Debian GNU systems, the complete text of the BSD License can be
 found in `/usr/share/common-licenses/BSD'.
 
+Note that reset_getopt is GPLed:
+
+ * util.c --- utilities for the debugfs program
+ *
+ * Copyright (C) 1993, 1994 Theodore Ts'o.  This file may be
+ * redistributed under the terms of the GNU Public License.
+
+On Debian GNU systems, the complete text of the GPL License can be
+found in `/usr/share/common-licenses/GPL'.

Added: trunk/libbsd/reset_getopt.c
===
--- trunk/libbsd/reset_getopt.c 2006-02-13 08:27:48 UTC (rev 1178)
+++ trunk/libbsd/reset_getopt.c 2006-02-13 09:02:17 UTC (rev 1179)
@@ -0,0 +1,51 @@
+/*
+ * util.c --- utilities for the debugfs program
+ * 
+ * Copyright (C) 1993, 1994 Theodore Ts'o.  This file may be
+ * redistributed under the terms of the GNU Public License.
+ *
+ */
+
+/* Enable getopt variables */
+#ifndef _GNU_SOURCE
+# define _GNU_SOURCE 1
+#endif
+
+#include 
+
+/* FIXME */
+#ifndef __GLIBC__
+# define HAVE_OPTRESET 1
+#endif
+
+/*
+ * This function resets the libc getopt() function, which keeps
+ * internal state.  Bad design!  Stupid libc API designers!  No
+ * biscuit!
+ *
+ * BSD-derived getopt() functions require that optind be reset to 1 in
+ * order to reset getopt() state.  This used to be generally accepted
+ * way of resetting getopt().  However, glibc's getopt()
+ * has additional getopt() state beyond optind, and requires that
+ * optind be set zero to reset its state.  So the unfortunate state of
+ * affairs is that BSD-derived versions of getopt() misbehave if
+ * optind is set to 0 in order to reset getopt(), and glibc's getopt()
+ * will core ump if optind is set 1 in order to reset getopt().
+ * 
+ * More modern versions of BSD require that optreset be set to 1 in
+ * order to reset getopt().   Sigh.  Standards, anyone?
+ *
+ * We hide the hair here.
+ */
+void
+reset_getopt (void)
+{
+#ifdef __GLIBC__
+  optind = 0;
+#else
+ 

r1180 - in trunk/freebsd6-buildutils/debian: . patches

2006-02-13 Thread Robert Millan
Author: rmh
Date: 2006-02-13 09:03:08 + (Mon, 13 Feb 2006)
New Revision: 1180

Added:
   trunk/freebsd6-buildutils/debian/patches/11_optreset.diff
Modified:
   trunk/freebsd6-buildutils/debian/changelog
Log:
patches/11_optreset.diff: New. Replace unportable optreset mangling with 
reset_getopt () from libbsd.

Modified: trunk/freebsd6-buildutils/debian/changelog
===
--- trunk/freebsd6-buildutils/debian/changelog  2006-02-13 09:02:17 UTC (rev 
1179)
+++ trunk/freebsd6-buildutils/debian/changelog  2006-02-13 09:03:08 UTC (rev 
1180)
@@ -38,8 +38,10 @@
 - rules: Rename internal getline function to avoid collision with the one
   from Glibc (s/getline/bsd_&/g).
 - patches/06_ftbfs_gcc-4.0.diff: Remove (it had dirty getopt hacks as 
well).
+  * patches/11_optreset.diff: New. Replace unportable optreset mangling
+with reset_getopt () from libbsd.
 
- -- Robert Millan <[EMAIL PROTECTED]>  Mon, 13 Feb 2006 09:24:59 +0100
+ -- Robert Millan <[EMAIL PROTECTED]>  Mon, 13 Feb 2006 11:03:00 +0100
 
 freebsd5-buildutils (5.4-3) unstable; urgency=low
 

Added: trunk/freebsd6-buildutils/debian/patches/11_optreset.diff
===
--- trunk/freebsd6-buildutils/debian/patches/11_optreset.diff   2006-02-13 
09:02:17 UTC (rev 1179)
+++ trunk/freebsd6-buildutils/debian/patches/11_optreset.diff   2006-02-13 
09:03:08 UTC (rev 1180)
@@ -0,0 +1,12 @@
+--- src/usr.bin/make/main.c~   2006-02-13 10:59:47.0 +0100
 src/usr.bin/make/main.c2006-02-13 11:00:11.0 +0100
+@@ -337,8 +337,7 @@
+   Boolean found_dd = FALSE;
+ 
+ rearg:
+-  optind = 1; /* since we're called more than once */
+-  optreset = 1;
++  reset_getopt ();
+ #define OPTFLAGS "ABC:D:E:I:PSV:Xd:ef:ij:km:nqrstvx:"
+   for (;;) {
+   if ((optind < argc) && strcmp(argv[optind], "--") == 0) {


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



OT: About approval non-linux ports

2006-02-13 Thread Matheus Morais
Hi there, I will give a talk about Debian non-linux ports and I'm
looking to get more information about that subject. Sorry about the OT
but I dont know where is the right place to post these questions, if
I'm wrong please, forgive-me.

How Debian staff approve or not a non-linux port? Is there exist any kind of rules to be followed for non-linux port projects?
Any more information about this will be very good. ;)


Thanks

Matheus Morais
 


r1181 - trunk/freebsd6-buildutils

2006-02-13 Thread Robert Millan
Author: rmh
Date: 2006-02-13 12:04:08 + (Mon, 13 Feb 2006)
New Revision: 1181

Added:
   trunk/freebsd6-buildutils/fetch
Removed:
   trunk/freebsd6-buildutils/src-dirs
Log:
Add fetch script like the one in kfreebsd-6.

Copied: trunk/freebsd6-buildutils/fetch (from rev 1180, trunk/kfreebsd-6/fetch)
===
--- trunk/kfreebsd-6/fetch  2006-02-13 09:03:08 UTC (rev 1180)
+++ trunk/freebsd6-buildutils/fetch 2006-02-13 12:04:08 UTC (rev 1181)
@@ -0,0 +1,36 @@
+#!/bin/bash
+set -ex
+
+export [EMAIL PROTECTED]:/home/ncvs
+
+rm -rf src ports
+
+if test -e src.tar.gz ; then
+  tar -xzpf src.tar.gz
+  action="update"
+else
+  action="checkout"
+fi
+
+cvs ${action} -r RELEASE_6_0_0 ports/Mk
+for i in \
+src/usr.bin/awk src/contrib/one-true-awk \
+src/share/mk \
+src/usr.bin/cksum \
+src/usr.bin/file2c \
+src/usr.bin/lex \
+src/usr.bin/make \
+src/usr.bin/mkdep \
+src/usr.bin/yacc \
+src/usr.bin/brandelf \
+src/usr.sbin/btxld \
+src/usr.sbin/config \
+src/usr.sbin/kgzip \
+src/usr.sbin/mtree \
+  ; do
+  cvs ${action} -r RELENG_6_0_0_RELEASE $i
+done
+
+tar -czpf src.tar.gz src/ ports/
+
+rm -rf src ports

Deleted: trunk/freebsd6-buildutils/src-dirs
===
--- trunk/freebsd6-buildutils/src-dirs  2006-02-13 09:03:08 UTC (rev 1180)
+++ trunk/freebsd6-buildutils/src-dirs  2006-02-13 12:04:08 UTC (rev 1181)
@@ -1,15 +0,0 @@
-./ports/Mk
-./src/contrib/one-true-awk
-./src/share/mk
-./src/usr.bin/awk
-./src/usr.bin/cksum
-./src/usr.bin/file2c
-./src/usr.bin/lex
-./src/usr.bin/make
-./src/usr.bin/mkdep
-./src/usr.bin/yacc
-./src/usr.bin/brandelf
-./src/usr.sbin/btxld
-./src/usr.sbin/config
-./src/usr.sbin/kgzip
-./src/usr.sbin/mtree


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



r1182 - in trunk/freebsd6-buildutils: . debian debian/patches

2006-02-13 Thread Robert Millan
Author: rmh
Date: 2006-02-13 12:22:09 + (Mon, 13 Feb 2006)
New Revision: 1182

Modified:
   trunk/freebsd6-buildutils/debian/changelog
   trunk/freebsd6-buildutils/debian/control
   trunk/freebsd6-buildutils/debian/links
   trunk/freebsd6-buildutils/debian/patches/00_upstream.diff
   trunk/freebsd6-buildutils/debian/patches/05_disable_hardlinks.diff
   trunk/freebsd6-buildutils/debian/rules
   trunk/freebsd6-buildutils/fetch
Log:
  * Our awk wasn't actualy from FreeBSD, but imported from original-awk.
Let's use that directly instead.
- control (Depends): Add original-awk.
- links: Add link to original-awk.
- patches/00_upstream.diff: Remove hunks that apply to awk.
- patches/05_disable_hardlinks.diff: Ditto.
- rules: Remove commands that work with awk.
- fetch: Remove awk dirs from checkout/update.

Modified: trunk/freebsd6-buildutils/debian/changelog
===
--- trunk/freebsd6-buildutils/debian/changelog  2006-02-13 12:04:08 UTC (rev 
1181)
+++ trunk/freebsd6-buildutils/debian/changelog  2006-02-13 12:22:09 UTC (rev 
1182)
@@ -40,8 +40,16 @@
 - patches/06_ftbfs_gcc-4.0.diff: Remove (it had dirty getopt hacks as 
well).
   * patches/11_optreset.diff: New. Replace unportable optreset mangling
 with reset_getopt () from libbsd.
+  * Our awk wasn't actualy from FreeBSD, but imported from original-awk.
+Let's use that directly instead.
+- control (Depends): Add original-awk.
+- links: Add link to original-awk.
+- patches/00_upstream.diff: Remove hunks that apply to awk.
+- patches/05_disable_hardlinks.diff: Ditto.
+- rules: Remove commands that work with awk.
+- fetch: Remove awk dirs from checkout/update.
 
- -- Robert Millan <[EMAIL PROTECTED]>  Mon, 13 Feb 2006 11:03:00 +0100
+ -- Robert Millan <[EMAIL PROTECTED]>  Mon, 13 Feb 2006 14:20:35 +0100
 
 freebsd5-buildutils (5.4-3) unstable; urgency=low
 

Modified: trunk/freebsd6-buildutils/debian/control
===
--- trunk/freebsd6-buildutils/debian/control2006-02-13 12:04:08 UTC (rev 
1181)
+++ trunk/freebsd6-buildutils/debian/control2006-02-13 12:22:09 UTC (rev 
1182)
@@ -8,7 +8,7 @@
 
 Package: freebsd6-buildutils
 Architecture: any
-Depends: ${shlibs:Depends}, bsdmainutils, dash, unzip, patchutils, gcc-3.4
+Depends: ${shlibs:Depends}, bsdmainutils, unzip, patchutils, dash, gcc-3.4, 
original-awk
 Conflicts: freebsd5-buildutils, freebsd-buildutils, pmake
 Provides: freebsd-buildutils
 Description: Utilities for building FreeBSD 6.x sources

Modified: trunk/freebsd6-buildutils/debian/links
===
--- trunk/freebsd6-buildutils/debian/links  2006-02-13 12:04:08 UTC (rev 
1181)
+++ trunk/freebsd6-buildutils/debian/links  2006-02-13 12:22:09 UTC (rev 
1182)
@@ -1,2 +1,3 @@
 bin/dash   usr/lib/freebsd/sh
 usr/bin/gcc-3.4usr/lib/freebsd/cc
+usr/bin/original-awk   usr/lib/freebsd/awk

Modified: trunk/freebsd6-buildutils/debian/patches/00_upstream.diff
===
--- trunk/freebsd6-buildutils/debian/patches/00_upstream.diff   2006-02-13 
12:04:08 UTC (rev 1181)
+++ trunk/freebsd6-buildutils/debian/patches/00_upstream.diff   2006-02-13 
12:22:09 UTC (rev 1182)
@@ -1,14 +1,3 @@
-diff -ur src.old/contrib/one-true-awk/b.c src/contrib/one-true-awk/b.c
 src.old/contrib/one-true-awk/b.c   2005-05-16 21:11:31.0 +0200
-+++ src/contrib/one-true-awk/b.c   2006-02-09 19:27:55.0 +0100
-@@ -25,6 +25,7 @@
- /* lasciate ogne speranza, voi ch'entrate. */
- 
- #define   DEBUG
-+#define _ISOC99_SOURCE/* isblank (glibc) */
- 
- #include 
- #include 
 diff -ur src.old/usr.bin/cksum/cksum.c src/usr.bin/cksum/cksum.c
 --- src.old/usr.bin/cksum/cksum.c  2003-03-14 00:32:28.0 +0100
 +++ src/usr.bin/cksum/cksum.c  2006-02-09 19:27:55.0 +0100

Modified: trunk/freebsd6-buildutils/debian/patches/05_disable_hardlinks.diff
===
--- trunk/freebsd6-buildutils/debian/patches/05_disable_hardlinks.diff  
2006-02-13 12:04:08 UTC (rev 1181)
+++ trunk/freebsd6-buildutils/debian/patches/05_disable_hardlinks.diff  
2006-02-13 12:22:09 UTC (rev 1182)
@@ -1,15 +1,3 @@
-diff -ur src.old/usr.bin/awk/Makefile src/usr.bin/awk/Makefile
 src.old/usr.bin/awk/Makefile   2003-03-17 09:07:54.0 +0100
-+++ src/usr.bin/awk/Makefile   2004-03-11 23:27:58.0 +0100
-@@ -11,7 +11,7 @@
- DPADD=${LIBM}
- LDADD=-lm
- 
--LINKS=${BINDIR}/nawk ${BINDIR}/awk
-+SIMLINKS= ${BINDIR}/nawk ${BINDIR}/awk
- MLINKS=   nawk.1 awk.1
- 
- CLEANFILES= maketab proctab.c ytab.h
 diff -ur src.old/usr.bin/cksum/Makefile src/usr.bin/cksum/Makefile
 --- src.old/usr.bin/cksum/Makefile 2002-02-08 23:31:36.0 +0100
 +++ 

Re: OT: About approval non-linux ports

2006-02-13 Thread Robert Millan
On Mon, Feb 13, 2006 at 09:42:31AM -0200, Matheus Morais wrote:
> How Debian staff approve or not a non-linux port? Is there exist any kind of
> rules to be followed for non-linux port projects?
> Any more information about this will be very good. ;)

Please see:

  http://ftp-master.debian.org/archive-criteria.html

and:

  http://wiki.debian.org/ArchiveQualification/kfreebsd-i386

-- 
Robert Millan


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: OT: About approval non-linux ports

2006-02-13 Thread Matheus Morais
On 2/13/06, Robert Millan <[EMAIL PROTECTED]> wrote:
Please see:  http://ftp-master.debian.org/archive-criteria.htmland:  
http://wiki.debian.org/ArchiveQualification/kfreebsd-i386
Thank you very much.

Matheus Morais 



r1183 - in trunk/freebsd6-buildutils/debian: . patches

2006-02-13 Thread Robert Millan
Author: rmh
Date: 2006-02-13 12:48:44 + (Mon, 13 Feb 2006)
New Revision: 1183

Removed:
   trunk/freebsd6-buildutils/debian/patches/10_linux_utils.diff
Modified:
   trunk/freebsd6-buildutils/debian/changelog
   trunk/freebsd6-buildutils/debian/control
   trunk/freebsd6-buildutils/debian/links
   trunk/freebsd6-buildutils/debian/patches/09_ports_path.diff
   trunk/freebsd6-buildutils/debian/rules
Log:
  * Add gmake (as alias for gnu make).
- control (Depends): Add make.
- links: Add gmake link.
  * Massive cleanup in ports/Mk patches.
- rules: Add sed rules that superceed most of the changes.
- patches/09_ports_path.diff: Remove most of the patch, and re-diff.
- patches/10_linux_utils.diff: Merge into 09_ports_path.diff

Modified: trunk/freebsd6-buildutils/debian/changelog
===
--- trunk/freebsd6-buildutils/debian/changelog  2006-02-13 12:22:09 UTC (rev 
1182)
+++ trunk/freebsd6-buildutils/debian/changelog  2006-02-13 12:48:44 UTC (rev 
1183)
@@ -48,8 +48,15 @@
 - patches/05_disable_hardlinks.diff: Ditto.
 - rules: Remove commands that work with awk.
 - fetch: Remove awk dirs from checkout/update.
+  * Add gmake (as alias for gnu make).
+- control (Depends): Add make.
+- links: Add gmake link.
+  * Massive cleanup in ports/Mk patches.
+- rules: Add sed rules that superceed most of the changes.
+- patches/09_ports_path.diff: Remove most of the patch, and re-diff.
+- patches/10_linux_utils.diff: Merge into 09_ports_path.diff
 
- -- Robert Millan <[EMAIL PROTECTED]>  Mon, 13 Feb 2006 14:20:35 +0100
+ -- Robert Millan <[EMAIL PROTECTED]>  Mon, 13 Feb 2006 14:44:41 +0100
 
 freebsd5-buildutils (5.4-3) unstable; urgency=low
 

Modified: trunk/freebsd6-buildutils/debian/control
===
--- trunk/freebsd6-buildutils/debian/control2006-02-13 12:22:09 UTC (rev 
1182)
+++ trunk/freebsd6-buildutils/debian/control2006-02-13 12:48:44 UTC (rev 
1183)
@@ -8,7 +8,14 @@
 
 Package: freebsd6-buildutils
 Architecture: any
-Depends: ${shlibs:Depends}, bsdmainutils, unzip, patchutils, dash, gcc-3.4, 
original-awk
+Depends: ${shlibs:Depends}, bsdmainutils, unzip, patchutils, dash, gcc-3.4, 
original-awk, make
+#
+# The following dependencies are needed because of symlinks in 
/usr/lib/freebsd:
+#   sh -> dash
+#   cc -> gcc-3.4
+#   awk -> original-awk
+#   gmake -> make
+#
 Conflicts: freebsd5-buildutils, freebsd-buildutils, pmake
 Provides: freebsd-buildutils
 Description: Utilities for building FreeBSD 6.x sources

Modified: trunk/freebsd6-buildutils/debian/links
===
--- trunk/freebsd6-buildutils/debian/links  2006-02-13 12:22:09 UTC (rev 
1182)
+++ trunk/freebsd6-buildutils/debian/links  2006-02-13 12:48:44 UTC (rev 
1183)
@@ -1,3 +1,4 @@
 bin/dash   usr/lib/freebsd/sh
 usr/bin/gcc-3.4usr/lib/freebsd/cc
 usr/bin/original-awk   usr/lib/freebsd/awk
+usr/bin/make   usr/lib/freebsd/gmake

Modified: trunk/freebsd6-buildutils/debian/patches/09_ports_path.diff
===
--- trunk/freebsd6-buildutils/debian/patches/09_ports_path.diff 2006-02-13 
12:22:09 UTC (rev 1182)
+++ trunk/freebsd6-buildutils/debian/patches/09_ports_path.diff 2006-02-13 
12:48:44 UTC (rev 1183)
@@ -1,111 +1,8 @@
-diff -ur ../foo.old/ports/Mk/bsd.port.mk ./ports/Mk/bsd.port.mk
 ../foo.old/ports/Mk/bsd.port.mk2005-11-08 10:02:51.0 +0100
-+++ ./ports/Mk/bsd.port.mk 2005-12-17 00:07:52.0 +0100
-@@ -473,7 +473,7 @@
- #   files.
- #   Default: ${.CURDIR}
- # PORTSDIR- The root of the ports tree.
--#   Default: /usr/ports
-+#   Default: /usr/share/freebsd6-buildutils/ports
- # DISTDIR - Where to search for and store copies of original 
sources
- #   Default: ${PORTSDIR}/distfiles
- # PACKAGES- A top level directory where all packages go (rather 
than
-@@ -960,9 +960,9 @@
- .endif
- .endif
+diff -ur ports.old/Mk/bsd.port.mk ports/Mk/bsd.port.mk
+--- ports.old/Mk/bsd.port.mk   2006-02-13 14:38:58.0 +0100
 ports/Mk/bsd.port.mk   2006-02-13 14:40:38.0 +0100
+@@ -1028,7 +1028,7 @@
  
--AWK?= /usr/bin/awk
-+AWK?= freebsd-awk
- BASENAME?=/usr/bin/basename
--BRANDELF?=/usr/bin/brandelf
-+BRANDELF?=freebsd-brandelf
- .if exists(/usr/bin/bzip2)
- BZCAT?=   /usr/bin/bzcat
- BZIP2_CMD?=   /usr/bin/bzip2
-@@ -972,56 +972,56 @@
- BZIP2DEPENDS= yes
- .endif
- CAT?= /bin/cat
--CHGRP?=   /usr/bin/chgrp
-+CHGRP?=   chgrp
- CHMOD?=   /bin/chmod
--CHOWN?=   /usr/sbin/chown
-+CHOWN?=   chown
- COMM?= 

r1184 - trunk/libbsd

2006-02-13 Thread Robert Millan
Author: rmh
Date: 2006-02-13 13:02:11 + (Mon, 13 Feb 2006)
New Revision: 1184

Modified:
   trunk/libbsd/reset_getopt.c
Log:
Fix that FIXME.

Modified: trunk/libbsd/reset_getopt.c
===
--- trunk/libbsd/reset_getopt.c 2006-02-13 12:48:44 UTC (rev 1183)
+++ trunk/libbsd/reset_getopt.c 2006-02-13 13:02:11 UTC (rev 1184)
@@ -12,9 +12,9 @@
 #endif
 
 #include 
+#include  /* BSD */
 
-/* FIXME */
-#ifndef __GLIBC__
+#ifdef BSD
 # define HAVE_OPTRESET 1
 #endif
 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Basic portation thought

2006-02-13 Thread Matheus Morais
Let see if I understand well the question. Basically to have Debian
ported to another kernel its necessary, in technical aspects, port GNU
C Library and the dynamic linker (ld) to the new kernel. After that is
need to compile each package to have it working on the new system. Is
there right or I miss something?

PS: This is the right place to have these kind of discussion?


Thanks

Matheus Morais 


Re: Basic portation thought

2006-02-13 Thread Robert Millan
On Mon, Feb 13, 2006 at 02:09:46PM -0200, Matheus Morais wrote:
> Let see if I understand well the question. Basically to have Debian ported
> to another kernel its necessary, in technical aspects, port GNU C Library
> and the dynamic linker (ld) to the new kernel. After that is need to compile
> each package to have it working on the new system. Is there right or I miss
> something?

Basicaly yes.  The toolchain also needs some (minor) work.  Then there's the
task of bootstrapping debian, and packaging the kernel itself and related
components.

May I ask, do you have some particular kernel in mind?

> PS: This is the right place to have these kind of discussion?

I'm not sure.  Originaly, this list was a generic one for various *BSD porting
efforts.

Then glibc-bsd-devel was created for discussion of Glibc-based GNU/k*BSD ports,
out of which only GNU/kFreeBSD gained significant momentum.

Then the non-Glibc ports vanished and debian-bsd list became unused.  Later
Aurelien set this list for logs of commits, uploads, etc.

-- 
Robert Millan


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Basic portation thought

2006-02-13 Thread Matheus Morais
On 2/13/06, Robert Millan <[EMAIL PROTECTED]> wrote:
Basicaly yes.  The toolchain also needs some (minor) work.  Then there's thetask of bootstrapping debian, and packaging the kernel itself and related
components.
Interesting, so the kernel is also packaged too.
May I ask, do you have some particular kernel in mind?
Not really. I will give a talk about Debian non-linux ports and I'm
looking to get more technical information about this to compose my
presentation paper. 

I'm not sure.  Originaly, this list was a generic one for various *BSD portingefforts.
Then glibc-bsd-devel was created for discussion of Glibc-based GNU/k*BSD ports,out of which only GNU/kFreeBSD gained significant momentum.Then the non-Glibc ports vanished and debian-bsd list became unused.  Later
Aurelien set this list for logs of commits, uploads, etc.
Ok. 

 Thanks

Matheus Morais



r1185 - in trunk/libbsd: . debian

2006-02-13 Thread Robert Millan
Author: rmh
Date: 2006-02-13 20:25:22 + (Mon, 13 Feb 2006)
New Revision: 1185

Removed:
   trunk/libbsd/reset_getopt.c
Modified:
   trunk/libbsd/ChangeLog
   trunk/libbsd/Makefile
   trunk/libbsd/Versions
   trunk/libbsd/debian/changelog
   trunk/libbsd/debian/copyright
Log:
Revert r1179 (will use bsd_getopt() wrapper instead).

Modified: trunk/libbsd/ChangeLog
===
--- trunk/libbsd/ChangeLog  2006-02-13 13:02:11 UTC (rev 1184)
+++ trunk/libbsd/ChangeLog  2006-02-13 20:25:22 UTC (rev 1185)
@@ -1,11 +1,3 @@
-2006-02-13  Robert Millan  <[EMAIL PROTECTED]>
-   
-   Add reset_getopt (borrowed from e2fsprogs).
-   * reset_getopt.c: New.
-   * Versions: Add reset_getopt.
-   * Makefile: Add reset_getopt.c.
-   * debian/copyright: Add license (GPL).
-
 2006-02-10  Robert Millan  <[EMAIL PROTECTED]>

Add errc, warnc, verrc and vwarnc.

Modified: trunk/libbsd/Makefile
===
--- trunk/libbsd/Makefile   2006-02-13 13:02:11 UTC (rev 1184)
+++ trunk/libbsd/Makefile   2006-02-13 20:25:22 UTC (rev 1185)
@@ -4,7 +4,7 @@
 # $Id$
 #
 
-LIB_SRCS = arc4random.c err.c fgetln.c inet_net_pton.c reset_getopt.c  
strlcat.c strlcpy.c md5c.c fmtcheck.c
+LIB_SRCS = arc4random.c err.c fgetln.c inet_net_pton.c strlcat.c strlcpy.c 
md5c.c fmtcheck.c
 
 LIB_INCLUDES = include/bsd/err.h include/bsd/ip_icmp.h include/bsd/random.h 
include/bsd/queue.h include/bsd/md5.h include/bsd/string.h include/bsd/bsd.h 
include/bsd/stdlib.h
 

Modified: trunk/libbsd/Versions
===
--- trunk/libbsd/Versions   2006-02-13 13:02:11 UTC (rev 1184)
+++ trunk/libbsd/Versions   2006-02-13 20:25:22 UTC (rev 1185)
@@ -6,8 +6,8 @@
 fgetwln;
 fmtcheck;
 inet_net_pton;
-reset_getopt;
-strlcpy; strlcat;
+strlcpy;
+strlcat;
 MD5Init;
 MD5Update;
 MD5Pad;

Modified: trunk/libbsd/debian/changelog
===
--- trunk/libbsd/debian/changelog   2006-02-13 13:02:11 UTC (rev 1184)
+++ trunk/libbsd/debian/changelog   2006-02-13 20:25:22 UTC (rev 1185)
@@ -1,4 +1,4 @@
-libbsd (0.0-1.1+kbsd.1) unreleased; urgency=low
+libbsd (0.0-1) unreleased; urgency=low
 
   * Initial release.
 

Modified: trunk/libbsd/debian/copyright
===
--- trunk/libbsd/debian/copyright   2006-02-13 13:02:11 UTC (rev 1184)
+++ trunk/libbsd/debian/copyright   2006-02-13 20:25:22 UTC (rev 1185)
@@ -3,7 +3,7 @@
 
 It was downloaded from http://www.freebsd.org/
 
-Copyright Holder: The FreeBSD project (and others)
+Copyright Holder: The FreeBSD project.
 
 License:
 
@@ -25,12 +25,3 @@
 On Debian GNU systems, the complete text of the BSD License can be
 found in `/usr/share/common-licenses/BSD'.
 
-Note that reset_getopt is GPLed:
-
- * util.c --- utilities for the debugfs program
- *
- * Copyright (C) 1993, 1994 Theodore Ts'o.  This file may be
- * redistributed under the terms of the GNU Public License.
-
-On Debian GNU systems, the complete text of the GPL License can be
-found in `/usr/share/common-licenses/GPL'.

Deleted: trunk/libbsd/reset_getopt.c
===
--- trunk/libbsd/reset_getopt.c 2006-02-13 13:02:11 UTC (rev 1184)
+++ trunk/libbsd/reset_getopt.c 2006-02-13 20:25:22 UTC (rev 1185)
@@ -1,51 +0,0 @@
-/*
- * util.c --- utilities for the debugfs program
- * 
- * Copyright (C) 1993, 1994 Theodore Ts'o.  This file may be
- * redistributed under the terms of the GNU Public License.
- *
- */
-
-/* Enable getopt variables */
-#ifndef _GNU_SOURCE
-# define _GNU_SOURCE 1
-#endif
-
-#include 
-#include  /* BSD */
-
-#ifdef BSD
-# define HAVE_OPTRESET 1
-#endif
-
-/*
- * This function resets the libc getopt() function, which keeps
- * internal state.  Bad design!  Stupid libc API designers!  No
- * biscuit!
- *
- * BSD-derived getopt() functions require that optind be reset to 1 in
- * order to reset getopt() state.  This used to be generally accepted
- * way of resetting getopt().  However, glibc's getopt()
- * has additional getopt() state beyond optind, and requires that
- * optind be set zero to reset its state.  So the unfortunate state of
- * affairs is that BSD-derived versions of getopt() misbehave if
- * optind is set to 0 in order to reset getopt(), and glibc's getopt()
- * will core ump if optind is set 1 in order to reset getopt().
- * 
- * More modern versions of BSD require that optreset be set to 1 in
- * order to reset getopt().   Sigh.  Standards, anyone?
- *
- * We hide the hair here.
- */
-void
-reset_getopt (void)
-{
-#ifdef __GLIBC__
-  optind = 0;
-#else
-  optind = 1;
-#endif
-#ifdef HAVE_OPTRESET
-  optreset = 1;/* Makes BSD getopt happy */
-#endif
-}


-- 
To UNSUBSCRIBE, emai

r1186 - trunk/libbsd/include/bsd

2006-02-13 Thread Robert Millan
Author: rmh
Date: 2006-02-13 20:45:13 + (Mon, 13 Feb 2006)
New Revision: 1186

Modified:
   trunk/libbsd/include/bsd/queue.h
Log:
Use the same macro (_SYS_QUEUE_H) as  for header protection.  This 
prevents collisions.

Modified: trunk/libbsd/include/bsd/queue.h
===
--- trunk/libbsd/include/bsd/queue.h2006-02-13 20:25:22 UTC (rev 1185)
+++ trunk/libbsd/include/bsd/queue.h2006-02-13 20:45:13 UTC (rev 1186)
@@ -30,8 +30,8 @@
  * $FreeBSD: src/sys/sys/queue.h,v 1.58 2004/04/07 04:19:49 imp Exp $
  */
 
-#ifndef _SYS_QUEUE_H_
-#define_SYS_QUEUE_H_
+#ifndef _SYS_QUEUE_H
+#define_SYS_QUEUE_H
 
 #include 
 
@@ -550,4 +550,4 @@
 
 #endif /* _KERNEL */
 
-#endif /* !_SYS_QUEUE_H_ */
+#endif /* !_SYS_QUEUE_H */


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



r1187 - in trunk: freebsd6-buildutils/debian/patches libbsd libbsd/debian libbsd/include/bsd

2006-02-13 Thread Robert Millan
Author: rmh
Date: 2006-02-13 20:56:47 + (Mon, 13 Feb 2006)
New Revision: 1187

Added:
   trunk/libbsd/bsd_getopt.c
   trunk/libbsd/include/bsd/getopt.h
Modified:
   trunk/freebsd6-buildutils/debian/patches/11_optreset.diff
   trunk/libbsd/ChangeLog
   trunk/libbsd/Makefile
   trunk/libbsd/Versions
   trunk/libbsd/debian/changelog
Log:
Implement bsd_getopt in libbsd, and use it in freebsd6-buildutils (for make).

Modified: trunk/freebsd6-buildutils/debian/patches/11_optreset.diff
===
--- trunk/freebsd6-buildutils/debian/patches/11_optreset.diff   2006-02-13 
20:45:13 UTC (rev 1186)
+++ trunk/freebsd6-buildutils/debian/patches/11_optreset.diff   2006-02-13 
20:56:47 UTC (rev 1187)
@@ -1,12 +1,20 @@
 src/usr.bin/make/main.c~   2006-02-13 10:59:47.0 +0100
-+++ src/usr.bin/make/main.c2006-02-13 11:00:11.0 +0100
-@@ -337,8 +337,7 @@
-   Boolean found_dd = FALSE;
+--- src/usr.bin/make/main.c~   2006-02-13 20:44:23.0 +0100
 src/usr.bin/make/main.c2006-02-13 20:46:55.0 +0100@
+@@ -136,6 +136,8 @@
+ time_tnow;/* Time at start of make */
+ struct GNode  *DEFAULT;   /* .DEFAULT node */
  
- rearg:
--  optind = 1; /* since we're called more than once */
--  optreset = 1;
-+  reset_getopt ();
- #define OPTFLAGS "ABC:D:E:I:PSV:Xd:ef:ij:km:nqrstvx:"
-   for (;;) {
++#include/* optreset */
++
+ /**
+  * Exit with usage message.
+  */
+@@ -358,7 +358,7 @@
if ((optind < argc) && strcmp(argv[optind], "--") == 0) {
+   found_dd = TRUE;
+   }
+-  if ((c = getopt(argc, argv, OPTFLAGS)) == -1) {
++  if ((c = bsd_getopt(argc, argv, OPTFLAGS)) == -1) {
+   break;
+   }
+   switch(c) {

Modified: trunk/libbsd/ChangeLog
===
--- trunk/libbsd/ChangeLog  2006-02-13 20:45:13 UTC (rev 1186)
+++ trunk/libbsd/ChangeLog  2006-02-13 20:56:47 UTC (rev 1187)
@@ -1,3 +1,11 @@
+2006-02-13  Robert Millan  <[EMAIL PROTECTED]>
+   
+   Add bsd_getopt.
+   * bsd_getopt.c: New.
+   * include/bsd/getopt.h: New.
+   * Versions: Add bsd_getopt and optreset.
+   * Makefile: Add bsd_getopt.c and include/bsd/getopt.h.
+
 2006-02-10  Robert Millan  <[EMAIL PROTECTED]>

Add errc, warnc, verrc and vwarnc.

Modified: trunk/libbsd/Makefile
===
--- trunk/libbsd/Makefile   2006-02-13 20:45:13 UTC (rev 1186)
+++ trunk/libbsd/Makefile   2006-02-13 20:56:47 UTC (rev 1187)
@@ -4,9 +4,9 @@
 # $Id$
 #
 
-LIB_SRCS = arc4random.c err.c fgetln.c inet_net_pton.c strlcat.c strlcpy.c 
md5c.c fmtcheck.c
+LIB_SRCS = arc4random.c bsd_getopt.c err.c fgetln.c inet_net_pton.c strlcat.c 
strlcpy.c md5c.c fmtcheck.c
 
-LIB_INCLUDES = include/bsd/err.h include/bsd/ip_icmp.h include/bsd/random.h 
include/bsd/queue.h include/bsd/md5.h include/bsd/string.h include/bsd/bsd.h 
include/bsd/stdlib.h
+LIB_INCLUDES = include/bsd/err.h include/bsd/getopt.h include/bsd/ip_icmp.h 
include/bsd/random.h include/bsd/queue.h include/bsd/md5.h include/bsd/string.h 
include/bsd/bsd.h include/bsd/stdlib.h
 
 LIB_MANS = man/arc4random.3 man/strlcpy.3 man/fgetln.3 man/fmtcheck.3
 

Modified: trunk/libbsd/Versions
===
--- trunk/libbsd/Versions   2006-02-13 20:45:13 UTC (rev 1186)
+++ trunk/libbsd/Versions   2006-02-13 20:56:47 UTC (rev 1187)
@@ -1,6 +1,7 @@
 LIBBSD_0.0 {
   global:
 arc4random;
+bsd_getopt; optreset;
 errc; warnc; verrc; vwarnc;
 fgetln;
 fgetwln;

Added: trunk/libbsd/bsd_getopt.c
===
--- trunk/libbsd/bsd_getopt.c   2006-02-13 20:45:13 UTC (rev 1186)
+++ trunk/libbsd/bsd_getopt.c   2006-02-13 20:56:47 UTC (rev 1187)
@@ -0,0 +1,15 @@
+#include 
+
+int optreset = 0;
+
+int
+bsd_getopt (int argc, char **argv, char *shortopts)
+{
+  if (optreset == 1)
+{
+  optreset = 0;
+  optind = 0;
+}
+
+  return getopt (argc, argv, shortopts);
+}

Modified: trunk/libbsd/debian/changelog
===
--- trunk/libbsd/debian/changelog   2006-02-13 20:45:13 UTC (rev 1186)
+++ trunk/libbsd/debian/changelog   2006-02-13 20:56:47 UTC (rev 1187)
@@ -1,4 +1,4 @@
-libbsd (0.0-1) unreleased; urgency=low
+libbsd (0.0-1+kbsd.1) unreleased; urgency=low
 
   * Initial release.
 

Added: trunk/libbsd/include/bsd/getopt.h
===
--- trunk/libbsd/include/bsd/getopt.h   2006-02-13 20:45:13 UTC (rev 1186)
+++ trunk/libbsd/include/bsd/getopt.h   2006-02-13 20:56:47 UTC (rev 1187)
@@ -0,0 +1,4 @@
+#include 
+extern int optreset;
+
+int bsd_getopt (int, char

r1188 - trunk/libbsd

2006-02-13 Thread Guillem Jover
Author: guillem
Date: 2006-02-14 05:17:19 + (Tue, 14 Feb 2006)
New Revision: 1188

Modified:
   trunk/libbsd/ChangeLog
Log:
Fix ChangeLog format.


Modified: trunk/libbsd/ChangeLog
===
--- trunk/libbsd/ChangeLog  2006-02-13 20:56:47 UTC (rev 1187)
+++ trunk/libbsd/ChangeLog  2006-02-14 05:17:19 UTC (rev 1188)
@@ -1,26 +1,29 @@
 2006-02-13  Robert Millan  <[EMAIL PROTECTED]>
-   
-   Add bsd_getopt.
-   * bsd_getopt.c: New.
-   * include/bsd/getopt.h: New.
-   * Versions: Add bsd_getopt and optreset.
-   * Makefile: Add bsd_getopt.c and include/bsd/getopt.h.
 
+   * bsd_getopt.c: New file.
+   * include/bsd/getopt.h: Likewise.
+   * Makefile (LIB_SRCS): Add 'bsd_getopt.c'.
+   (LIB_INCLUDES): Add 'include/bsd/getopt.h'.
+   * Versions: Added bsd_getopt and optreset.
+
 2006-02-10  Robert Millan  <[EMAIL PROTECTED]>
-   
-   Add errc, warnc, verrc and vwarnc.
-   * err.c: New.
-   * include/bsd/err.h: New.
-   * Versions: Add them.
-   * Makefile: Add err.c and include/bsd/err.h.
 
+   * err.c: New file.
+   * include/bsd/err.h: Likewise.
+   * Makefile (LIB_SRCS): Add 'err.c'.
+   (LIB_INCLUDES): Add 'include/bsd/err.h'.
+   * Versions: Added errc, warnc, verrc and vwarn.
+
 2005-12-19  Aurelien Jarno <[EMAIL PROTECTED]>
-   
-   * Added manpages
-   * fmtcheck.c: new
-   * include/stdlib.h: added fmtcheck
-   * Versions: added fmtcheck
 
+   * man/arc4random.3: New file.
+   * man/fgetln.3: Likewise.
+   * man/fmtcheck.3: Likewise.
+   * man/strlcpy.3: Likewise.
+   * fmtcheck.c:: Likewise.
+   * include/stdlib.h: Added fmtcheck declaration.
+   * Versions: Added fmtcheck.
+
 2005-11-01  Guillem Jover  <[EMAIL PROTECTED]>
 
* ip_icmp.h: Move to ...
@@ -37,14 +40,14 @@
 
 2005-08-03  Hector Garcia  <[EMAIL PROTECTED]>
 
-   * Makefile: Fixed to place soft links instead in soname and shared_so
-   instead of copying files.
+   * Makefile: Fixed to place soft links instead in soname, and
+   shared_so instead of copying files.
* md5.h (MD5End, MD5File, MD5FileChunk, MD5Data): Commented out
-   functions not available on md5c.c
+   functions not available on 'md5c.c'.
 
 2005-07-26  Guillem Jover  <[EMAIL PROTECTED]>
 
-   * Makefile (LIB_INCLUDES): Add "md5.h".
+   * Makefile (LIB_INCLUDES): Add 'md5.h'.
 
 2005-07-26  Guillem Jover  <[EMAIL PROTECTED]>
 
@@ -53,9 +56,9 @@
 
 2005-07-26  Hector Garcia  <[EMAIL PROTECTED]>
 
-   * Makefile (LIB_SRCS): Add "md5c.c".
-   * md5c.c: Changed include to "md5.h".
-   * md5.h: Replaced with the system header sys/md5.h.
+   * Makefile (LIB_SRCS): Add 'md5c.c'.
+   * md5c.c: Changed include to 'md5.h'.
+   * md5.h: Replaced with the system header 'sys/md5.h'.
 
 2005-07-25  Guillem Jover  <[EMAIL PROTECTED]>
 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



r1189 - trunk/libbsd/debian

2006-02-13 Thread Guillem Jover
Author: guillem
Date: 2006-02-14 05:18:05 + (Tue, 14 Feb 2006)
New Revision: 1189

Modified:
   trunk/libbsd/debian/README.Debian
   trunk/libbsd/debian/copyright
Log:
Do not list all functions in the README.
Beautify copyright file.


Modified: trunk/libbsd/debian/README.Debian
===
--- trunk/libbsd/debian/README.Debian   2006-02-14 05:17:19 UTC (rev 1188)
+++ trunk/libbsd/debian/README.Debian   2006-02-14 05:18:05 UTC (rev 1189)
@@ -1,17 +1,8 @@
 libbsd for Debian
 -
 
-This package is a collection of functions missing from glibc which are
-nedded for the Debian porting to the FreeBSD kernel. So far the functions
-included are:
+This package is a collection of functions and definitions missing from glibc
+which are nedded for the Debian porting to the FreeBSD kernel.
 
-   * arc4random
-   * fgetln
-   * fmtcheck
-   * inet_net_pton
-   * md5c
-   * strlcat
-   * strlcpy
-
  -- Hector Garcia <[EMAIL PROTECTED]>, Sun, 17 Jul 2005 16:17:35 +0200
 

Modified: trunk/libbsd/debian/copyright
===
--- trunk/libbsd/debian/copyright   2006-02-14 05:17:19 UTC (rev 1188)
+++ trunk/libbsd/debian/copyright   2006-02-14 05:18:05 UTC (rev 1189)
@@ -1,10 +1,14 @@
 This package was debianized by hector Garcia <[EMAIL PROTECTED]> on
 Sun, 17 Jul 2005 16:17:35 +0200.
 
-It was downloaded from http://www.freebsd.org/
+It was downloaded from:
 
-Copyright Holder: The FreeBSD project.
+
 
+Copyright Holder:
+
+The FreeBSD project.
+
 License:
 
 Redistribution and use in source and binary forms, with or without


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



r1190 - trunk/libbsd

2006-02-13 Thread Guillem Jover
Author: guillem
Date: 2006-02-14 05:22:15 + (Tue, 14 Feb 2006)
New Revision: 1190

Modified:
   trunk/libbsd/ChangeLog
   trunk/libbsd/Versions
Log:
Remove optreset.


Modified: trunk/libbsd/ChangeLog
===
--- trunk/libbsd/ChangeLog  2006-02-14 05:18:05 UTC (rev 1189)
+++ trunk/libbsd/ChangeLog  2006-02-14 05:22:15 UTC (rev 1190)
@@ -1,3 +1,7 @@
+2006-02-14  Guillem Jover  <[EMAIL PROTECTED]>
+
+   * Versions: Remove optreset.
+
 2006-02-13  Robert Millan  <[EMAIL PROTECTED]>
 
* bsd_getopt.c: New file.

Modified: trunk/libbsd/Versions
===
--- trunk/libbsd/Versions   2006-02-14 05:18:05 UTC (rev 1189)
+++ trunk/libbsd/Versions   2006-02-14 05:22:15 UTC (rev 1190)
@@ -1,7 +1,7 @@
 LIBBSD_0.0 {
   global:
 arc4random;
-bsd_getopt; optreset;
+bsd_getopt;
 errc; warnc; verrc; vwarnc;
 fgetln;
 fgetwln;


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



r1191 - trunk/libbsd

2006-02-13 Thread Guillem Jover
Author: guillem
Date: 2006-02-14 05:26:48 + (Tue, 14 Feb 2006)
New Revision: 1191

Modified:
   trunk/libbsd/ChangeLog
   trunk/libbsd/Makefile
Log:
* Makefile (LIB_SRCS): Line wrap.
(LIB_INCLUDES): List only the files, automatically prefix the dir.
(LIB_MANS): Likewise.


Modified: trunk/libbsd/ChangeLog
===
--- trunk/libbsd/ChangeLog  2006-02-14 05:22:15 UTC (rev 1190)
+++ trunk/libbsd/ChangeLog  2006-02-14 05:26:48 UTC (rev 1191)
@@ -1,5 +1,11 @@
 2006-02-14  Guillem Jover  <[EMAIL PROTECTED]>
 
+   * Makefile (LIB_SRCS): Line wrap.
+   (LIB_INCLUDES): List only the files, automatically prefix the dir.
+   (LIB_MANS): Likewise.
+
+2006-02-14  Guillem Jover  <[EMAIL PROTECTED]>
+
* Versions: Remove optreset.
 
 2006-02-13  Robert Millan  <[EMAIL PROTECTED]>

Modified: trunk/libbsd/Makefile
===
--- trunk/libbsd/Makefile   2006-02-14 05:22:15 UTC (rev 1190)
+++ trunk/libbsd/Makefile   2006-02-14 05:26:48 UTC (rev 1191)
@@ -4,11 +4,15 @@
 # $Id$
 #
 
-LIB_SRCS = arc4random.c bsd_getopt.c err.c fgetln.c inet_net_pton.c strlcat.c 
strlcpy.c md5c.c fmtcheck.c
+LIB_SRCS = arc4random.c bsd_getopt.c err.c fgetln.c inet_net_pton.c \
+  strlcat.c strlcpy.c md5c.c fmtcheck.c
 
-LIB_INCLUDES = include/bsd/err.h include/bsd/getopt.h include/bsd/ip_icmp.h 
include/bsd/random.h include/bsd/queue.h include/bsd/md5.h include/bsd/string.h 
include/bsd/bsd.h include/bsd/stdlib.h
+LIB_INCLUDES := err.h getopt.h ip_icmp.h random.h queue.h md5.h string.h \
+  bsd.h stdlib.h
+LIB_INCLUDES := $(patsubst %,include/bsd/,$(LIB_INCLUDES))
 
-LIB_MANS = man/arc4random.3 man/strlcpy.3 man/fgetln.3 man/fmtcheck.3
+LIB_MANS := arc4random.3 strlcpy.3 fgetln.3 fmtcheck.3
+LIB_MANS := $(patsubst %,man/,$(LIB_MANS))
 
 LIB_STATIC_OBJS = $(LIB_SRCS:%.c=%.o)
 LIB_SHARED_OBJS = $(LIB_SRCS:%.c=%.lo)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



r1192 - trunk/libbsd

2006-02-13 Thread Guillem Jover
Author: guillem
Date: 2006-02-14 05:33:38 + (Tue, 14 Feb 2006)
New Revision: 1192

Modified:
   trunk/libbsd/Makefile
Log:
Add missing %.


Modified: trunk/libbsd/Makefile
===
--- trunk/libbsd/Makefile   2006-02-14 05:26:48 UTC (rev 1191)
+++ trunk/libbsd/Makefile   2006-02-14 05:33:38 UTC (rev 1192)
@@ -8,11 +8,11 @@
   strlcat.c strlcpy.c md5c.c fmtcheck.c
 
 LIB_INCLUDES := err.h getopt.h ip_icmp.h random.h queue.h md5.h string.h \
-  bsd.h stdlib.h
-LIB_INCLUDES := $(patsubst %,include/bsd/,$(LIB_INCLUDES))
+   bsd.h stdlib.h
+LIB_INCLUDES := $(patsubst %,include/bsd/%,$(LIB_INCLUDES))
 
 LIB_MANS := arc4random.3 strlcpy.3 fgetln.3 fmtcheck.3
-LIB_MANS := $(patsubst %,man/,$(LIB_MANS))
+LIB_MANS := $(patsubst %,man/%,$(LIB_MANS))
 
 LIB_STATIC_OBJS = $(LIB_SRCS:%.c=%.o)
 LIB_SHARED_OBJS = $(LIB_SRCS:%.c=%.lo)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



r1193 - in trunk/libbsd: . src

2006-02-13 Thread Guillem Jover
Author: guillem
Date: 2006-02-14 05:39:29 + (Tue, 14 Feb 2006)
New Revision: 1193

Added:
   trunk/libbsd/src/
   trunk/libbsd/src/arc4random.c
   trunk/libbsd/src/bsd_getopt.c
   trunk/libbsd/src/err.c
   trunk/libbsd/src/fgetln.c
   trunk/libbsd/src/fmtcheck.c
   trunk/libbsd/src/inet_net_pton.c
   trunk/libbsd/src/md5.copyright
   trunk/libbsd/src/md5c.c
   trunk/libbsd/src/strlcat.c
   trunk/libbsd/src/strlcpy.c
Removed:
   trunk/libbsd/arc4random.c
   trunk/libbsd/bsd_getopt.c
   trunk/libbsd/err.c
   trunk/libbsd/fgetln.c
   trunk/libbsd/fmtcheck.c
   trunk/libbsd/inet_net_pton.c
   trunk/libbsd/md5.copyright
   trunk/libbsd/md5c.c
   trunk/libbsd/strlcat.c
   trunk/libbsd/strlcpy.c
Modified:
   trunk/libbsd/ChangeLog
   trunk/libbsd/Makefile
Log:
Move sources to src/.


Modified: trunk/libbsd/ChangeLog
===
--- trunk/libbsd/ChangeLog  2006-02-14 05:33:38 UTC (rev 1192)
+++ trunk/libbsd/ChangeLog  2006-02-14 05:39:29 UTC (rev 1193)
@@ -1,5 +1,29 @@
 2006-02-14  Guillem Jover  <[EMAIL PROTECTED]>
 
+   * arc4random.c: Move to ...
+   * src/arc4random.c: ... here.
+   * bsd_getopt.c: Move to ...
+   * src/bsd_getopt.c:: ... here.
+   * err.c: Move to ...
+   * src/err.c:: ... here.
+   * fgetln.c: Move to ...
+   * src/fgetln.c:: ... here.
+   * fmtcheck.c: Move to ...
+   * src/fmtcheck.c:: ... here.
+   * inet_net_pton.c: Move to ...
+   * src/inet_net_pton.c:: ... here.
+   * strlcat.c: Move to ...
+   * src/strlcat.c:: ... here.
+   * strlcpy.c: Move to ...
+   * src/strlcpy.c:: ... here.
+   * md5c.c: Move to ...
+   * src/md5c.c:: ... here.
+   * md5.copyright: Move to ...
+   * src/md5.copyright:: ... here.
+   * Makefile (LIB_SRCS): Automatically prefix the src/ dir.
+
+2006-02-14  Guillem Jover  <[EMAIL PROTECTED]>
+
* Makefile (LIB_SRCS): Line wrap.
(LIB_INCLUDES): List only the files, automatically prefix the dir.
(LIB_MANS): Likewise.

Modified: trunk/libbsd/Makefile
===
--- trunk/libbsd/Makefile   2006-02-14 05:33:38 UTC (rev 1192)
+++ trunk/libbsd/Makefile   2006-02-14 05:39:29 UTC (rev 1193)
@@ -4,8 +4,9 @@
 # $Id$
 #
 
-LIB_SRCS = arc4random.c bsd_getopt.c err.c fgetln.c inet_net_pton.c \
-  strlcat.c strlcpy.c md5c.c fmtcheck.c
+LIB_SRCS := arc4random.c bsd_getopt.c err.c fgetln.c inet_net_pton.c \
+   strlcat.c strlcpy.c md5c.c fmtcheck.c
+LIB_SRCS := $(patsubst %,src/%,$(LIB_SRCS))
 
 LIB_INCLUDES := err.h getopt.h ip_icmp.h random.h queue.h md5.h string.h \
bsd.h stdlib.h

Deleted: trunk/libbsd/arc4random.c
===
--- trunk/libbsd/arc4random.c   2006-02-14 05:33:38 UTC (rev 1192)
+++ trunk/libbsd/arc4random.c   2006-02-14 05:39:29 UTC (rev 1193)
@@ -1,191 +0,0 @@
-/*
- * Arc4 random number generator for OpenBSD.
- * Copyright 1996 David Mazieres <[EMAIL PROTECTED]>.
- *
- * Modification and redistribution in source and binary forms is
- * permitted provided that due credit is given to the author and the
- * OpenBSD project (for instance by leaving this copyright notice
- * intact).
- */
-
-/*
- * This code is derived from section 17.1 of Applied Cryptography,
- * second edition, which describes a stream cipher allegedly
- * compatible with RSA Labs "RC4" cipher (the actual description of
- * which is a trade secret).  The same algorithm is used as a stream
- * cipher called "arcfour" in Tatu Ylonen's ssh package.
- *
- * Here the stream cipher has been modified always to include the time
- * when initializing the state.  That makes it impossible to
- * regenerate the same random sequence twice, so this can't be used
- * for encryption, but will generate good random numbers.
- *
- * RC4 is a registered trademark of RSA Laboratories.
- */
-
-#include 
-__FBSDID("$FreeBSD: src/lib/libc/gen/arc4random.c,v 1.10 2004/03/24 14:44:57 
green Exp $");
-
-#include 
-#include 
-#include 
-#include 
-#include 
-
-struct arc4_stream {
-   u_int8_t i;
-   u_int8_t j;
-   u_int8_t s[256];
-};
-
-#defineRANDOMDEV   "/dev/urandom"
-#defineTHREAD_LOCK()
-#defineTHREAD_UNLOCK()
-
-static struct arc4_stream rs;
-static int rs_initialized;
-static int rs_stired;
-
-static inline u_int8_t arc4_getbyte(struct arc4_stream *);
-static void arc4_stir(struct arc4_stream *);
-
-static inline void
-arc4_init(struct arc4_stream *as)
-{
-   int n;
-
-   for (n = 0; n < 256; n++)
-   as->s[n] = n;
-   as->i = 0;
-   as->j = 0;
-}
-
-static inline void
-arc4_addrandom(struct arc4_stream *as, u_char *dat, int datlen)
-{
-   int n;
-   u_int8_t si;
-
-   as->i--;
-   for (n = 0; n < 256; n++) {
-   as->i = (as->i + 1);
-   si = as->s[as->i];
-   as->j

r1194 - in trunk/libbsd: . include/bsd

2006-02-13 Thread Guillem Jover
Author: guillem
Date: 2006-02-14 06:43:04 + (Tue, 14 Feb 2006)
New Revision: 1194

Added:
   trunk/libbsd/include/bsd/cdefs.h
Modified:
   trunk/libbsd/ChangeLog
   trunk/libbsd/Makefile
   trunk/libbsd/include/bsd/bsd.h
Log:
Move some macros to cdefs.h.


Modified: trunk/libbsd/ChangeLog
===
--- trunk/libbsd/ChangeLog  2006-02-14 05:39:29 UTC (rev 1193)
+++ trunk/libbsd/ChangeLog  2006-02-14 06:43:04 UTC (rev 1194)
@@ -1,5 +1,13 @@
 2006-02-14  Guillem Jover  <[EMAIL PROTECTED]>
 
+   * include/bsd/bsd.h (setproctitle, __dead2, __unused, __printflike)
+   (__FBSDID): Moved to ...
+   * include/bsd/cdefs.h: ... here.
+   (__unused, __printflike) [__GNUC__]: Use proper __attribute__.
+   * Makefile (LIB_INCLUDES): Add 'cdefs.h'.
+
+2006-02-14  Guillem Jover  <[EMAIL PROTECTED]>
+
* arc4random.c: Move to ...
* src/arc4random.c: ... here.
* bsd_getopt.c: Move to ...

Modified: trunk/libbsd/Makefile
===
--- trunk/libbsd/Makefile   2006-02-14 05:39:29 UTC (rev 1193)
+++ trunk/libbsd/Makefile   2006-02-14 06:43:04 UTC (rev 1194)
@@ -9,7 +9,7 @@
 LIB_SRCS := $(patsubst %,src/%,$(LIB_SRCS))
 
 LIB_INCLUDES := err.h getopt.h ip_icmp.h random.h queue.h md5.h string.h \
-   bsd.h stdlib.h
+   bsd.h cdefs.h stdlib.h
 LIB_INCLUDES := $(patsubst %,include/bsd/%,$(LIB_INCLUDES))
 
 LIB_MANS := arc4random.3 strlcpy.3 fgetln.3 fmtcheck.3

Modified: trunk/libbsd/include/bsd/bsd.h
===
--- trunk/libbsd/include/bsd/bsd.h  2006-02-14 05:39:29 UTC (rev 1193)
+++ trunk/libbsd/include/bsd/bsd.h  2006-02-14 06:43:04 UTC (rev 1194)
@@ -2,22 +2,10 @@
 #define LIBBSD_H
 
 /*
- * Generic definitions.
- */
-
-#define setproctitle(fmt, args...)
-
-#define __dead2
-#define __unused
-#define __printflike(x,y)
-#define __FBSDID(x)
-
-#include 
-
-/*
  * Include all bsd compat headers.
  */
 
+#include 
 #include 
 #include 
 #include 

Added: trunk/libbsd/include/bsd/cdefs.h
===
--- trunk/libbsd/include/bsd/cdefs.h2006-02-14 05:39:29 UTC (rev 1193)
+++ trunk/libbsd/include/bsd/cdefs.h2006-02-14 06:43:04 UTC (rev 1194)
@@ -0,0 +1,34 @@
+#ifndef LIBBSD_CDEFS_H
+#define LIBBSD_CDEFS_H
+
+#include 
+
+#ifndef setproctitle
+# define setproctitle(fmt, args...)
+#endif
+
+#ifndef __dead2
+# define __dead2
+#endif
+
+#ifndef __unused
+# ifdef __GNUC__
+#  define __unused __attribute__((unused))
+# else
+#  define __unused
+# endif
+#endif
+
+#ifndef __printflike
+# ifdef __GNUC__
+#  define __printflike(x, y) __attribute((format(printf, (x), (y
+# else
+#  define __printflike(x, y)
+# endif
+#endif
+
+#ifndef __FBSDID
+# define __FBSDID(x)
+#endif
+
+#endif


Property changes on: trunk/libbsd/include/bsd/cdefs.h
___
Name: svn:keywords
   + Id Revision


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



r1195 - in trunk/libbsd: . include/bsd

2006-02-13 Thread Guillem Jover
Author: guillem
Date: 2006-02-14 06:45:41 + (Tue, 14 Feb 2006)
New Revision: 1195

Modified:
   trunk/libbsd/ChangeLog
   trunk/libbsd/include/bsd/bsd.h
Log:
Remove commented out macros.


Modified: trunk/libbsd/ChangeLog
===
--- trunk/libbsd/ChangeLog  2006-02-14 06:43:04 UTC (rev 1194)
+++ trunk/libbsd/ChangeLog  2006-02-14 06:45:41 UTC (rev 1195)
@@ -1,5 +1,9 @@
 2006-02-14  Guillem Jover  <[EMAIL PROTECTED]>
 
+   * include/bsd/bsd.h: Remove commented out macros.
+
+2006-02-14  Guillem Jover  <[EMAIL PROTECTED]>
+
* include/bsd/bsd.h (setproctitle, __dead2, __unused, __printflike)
(__FBSDID): Moved to ...
* include/bsd/cdefs.h: ... here.

Modified: trunk/libbsd/include/bsd/bsd.h
===
--- trunk/libbsd/include/bsd/bsd.h  2006-02-14 06:43:04 UTC (rev 1194)
+++ trunk/libbsd/include/bsd/bsd.h  2006-02-14 06:45:41 UTC (rev 1195)
@@ -82,18 +82,4 @@
 ((_x << 40) & ((__uint64_t)0xff << 48)) | ((_x << 56)));
 }
 
-/*
- * Directly from FreeBSD stdio.h
- */
-
-//#define__SMOD  0x2000  /* true => fgetln modified _p text */
-//#define__SLBF  0x0001  /* line buffered */
-//#define__SWR   0x0008  /* OK to write */
-//#define__SEOF  0x0020  /* found EOF */
-//#define__SRD   0x0004  /* OK to read */
-//#define__SRW   0x0010  /* open for reading & writing */
-//#define__SERR  0x0040  /* found error */
-//#define__SNBF  0x0002  /* unbuffered */
-//#define__SIGN  0x8000  /* ignore this file in _fwalk */
-
 #endif


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



r1196 - trunk/libbsd

2006-02-13 Thread Guillem Jover
Author: guillem
Date: 2006-02-14 06:55:53 + (Tue, 14 Feb 2006)
New Revision: 1196

Modified:
   trunk/libbsd/ChangeLog
   trunk/libbsd/Versions
Log:
Revert r1190.


Modified: trunk/libbsd/ChangeLog
===
--- trunk/libbsd/ChangeLog  2006-02-14 06:45:41 UTC (rev 1195)
+++ trunk/libbsd/ChangeLog  2006-02-14 06:55:53 UTC (rev 1196)
@@ -40,10 +40,6 @@
(LIB_INCLUDES): List only the files, automatically prefix the dir.
(LIB_MANS): Likewise.
 
-2006-02-14  Guillem Jover  <[EMAIL PROTECTED]>
-
-   * Versions: Remove optreset.
-
 2006-02-13  Robert Millan  <[EMAIL PROTECTED]>
 
* bsd_getopt.c: New file.

Modified: trunk/libbsd/Versions
===
--- trunk/libbsd/Versions   2006-02-14 06:45:41 UTC (rev 1195)
+++ trunk/libbsd/Versions   2006-02-14 06:55:53 UTC (rev 1196)
@@ -1,7 +1,7 @@
 LIBBSD_0.0 {
   global:
 arc4random;
-bsd_getopt;
+bsd_getopt; optreset;
 errc; warnc; verrc; vwarnc;
 fgetln;
 fgetwln;


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



r1197 - in trunk/libbsd: . include/bsd

2006-02-13 Thread Guillem Jover
Author: guillem
Date: 2006-02-14 07:01:21 + (Tue, 14 Feb 2006)
New Revision: 1197

Modified:
   trunk/libbsd/ChangeLog
   trunk/libbsd/include/bsd/getopt.h
   trunk/libbsd/include/bsd/stdlib.h
Log:
Removed unused includes.
Protect header.


Modified: trunk/libbsd/ChangeLog
===
--- trunk/libbsd/ChangeLog  2006-02-14 06:55:53 UTC (rev 1196)
+++ trunk/libbsd/ChangeLog  2006-02-14 07:01:21 UTC (rev 1197)
@@ -1,5 +1,10 @@
 2006-02-14  Guillem Jover  <[EMAIL PROTECTED]>
 
+   * include/bsd/stdlib.h: Remove  and .
+   * include/bsd/getopt.h: Protect header from multiple inclusion.
+
+2006-02-14  Guillem Jover  <[EMAIL PROTECTED]>
+
* include/bsd/bsd.h: Remove commented out macros.
 
 2006-02-14  Guillem Jover  <[EMAIL PROTECTED]>

Modified: trunk/libbsd/include/bsd/getopt.h
===
--- trunk/libbsd/include/bsd/getopt.h   2006-02-14 06:55:53 UTC (rev 1196)
+++ trunk/libbsd/include/bsd/getopt.h   2006-02-14 07:01:21 UTC (rev 1197)
@@ -1,4 +1,10 @@
+#ifndef LIBBSD_GETOPT_H
+#define LIBBSD_GETOPT_H
+
 #include 
+
 extern int optreset;
 
 int bsd_getopt (int, char **, char *);
+
+#endif

Modified: trunk/libbsd/include/bsd/stdlib.h
===
--- trunk/libbsd/include/bsd/stdlib.h   2006-02-14 06:55:53 UTC (rev 1196)
+++ trunk/libbsd/include/bsd/stdlib.h   2006-02-14 07:01:21 UTC (rev 1197)
@@ -1,9 +1,6 @@
 #ifndef LIBBSD_STDLIB_H
 #define LIBBSD_STDLIB_H
 
-#include 
-#include 
-
 const char *fmtcheck(const char *, const char *);
 
 #endif


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]