cvs-- can't remember initial vendor tag

2001-04-02 Thread Chris Ruffin


How can I extract the vendor tag information from a CVS module?  I'm
trying to import new upstream sources but I can't remember the initial
vendor tag that I used to import previous versions!
--
Chris Ruffin [EMAIL PROTECTED]


 PGP signature


cvs-- can't remember initial vendor tag

2001-04-02 Thread Chris Ruffin

How can I extract the vendor tag information from a CVS module?  I'm
trying to import new upstream sources but I can't remember the initial
vendor tag that I used to import previous versions!
--
Chris Ruffin [EMAIL PROTECTED]



pgpW53pCDhFar.pgp
Description: PGP signature


compilation errors with c++ package

2001-03-24 Thread Chris Ruffin


I'm getting the following errors while trying to build my package:

g++  -fpermissive  -c -o List.o List.cc
In file included from List.cc:4:
List.h:241: warning: ANSI C++ forbids declaration `BIstream' with no type
List.h:241: `BIstream' is neither function nor method; cannot be declared friend
List.h:241: parse error before `'
make: *** [List.o] Error 1

The source that seems to be causing this is in the include file List.h
which gets included from List.cc:

friend BIstream  operator (BIstream  in, ListT  list);

Can anyone see any problems with this?  I'd really like to package
this software but my c++ skills are lacking.  Any ideas?

The entire source for List.h is attached.
--
Chris Ruffin [EMAIL PROTECTED]





#ifndef List_h
#define List_h

// This file describes the List template-class and some additional stuff
// that is required by this one.

// The List class represents a doubly-linked list

// The ListItem class uses lazy-allocation by default (see AllocBuf.h)

#include "AllocBuf.h"

class ostream;

template class T
class List;

#pragma interface


template class T
class ListItem : public T {

LAZYCLASS

protected:

	ListItem * next;
	ListItem * prev;

public:	

	ListItem( void ) : T()
#ifdef DEBUG
	 , next((ListItem *)0), prev((ListItem *)0)
#endif DEBUG
	  { };
	  
	ListItem( const T  val ) : T(val)
#ifdef DEBUG
	 , next((ListItem *)0), prev((ListItem *)0)
#endif DEBUG
	  { };

	ListItem * get_next(void) const {
		return next;
	};
	
	ListItem * get_prev(void) const {
		return prev;
	};

	friend class ListT;
};

LAZYOPS(template class T,ListItemT)


template class T
class List {
	
protected:

	ListItemT * first;
	ListItemT * last;
	
	unsigned long len;

public:
	
	List (void) : first((ListItemT *)0), last((ListItemT *)0), len(0)  { };
	
	List (const ListT  rv) : first((ListItemT *)0), last((ListItemT *)0), len(0) {
		for (const ListItemT * lip = rv.get_head();
		 lip;
		 lip = lip-get_next()
		) {
			if (add_tail( *lip )) break;
		}
	}
	
	void clear(void);	
	~List(void) {
		clear();
	}

	// - operators --
	
	const ListT  operator=(const ListT  rv) {
		clear();
		for (const ListItemT * lip = rv.get_head();
		 lip;
		 lip = lip-get_next()
		) {
			if (add_tail( *lip )) break;
		}
		
		return *this;
	}
	
	// - member-functions --

	void add_head ( ListItemT * item ) {
		item-prev = (ListItemT *)0;
		item-next = first;
		if (first) {
			first-prev = item;
		} else {
			last = item;
		}
		first = item;
		len++;
	}
	
	int add_head ( const T  val ) {
		ListItemT * item = new ListItemT (val);
		if (! item) return -1;
		add_head (item);
		return 0;
	}
	
	ListItemT * rem_head (void) {
		ListItemT * res = first;
		if (first) {
			first = first-next;
			if (first) {
first-prev = (ListItemT *)0;
			} else {
last = (ListItemT *)0;
			}
			len--;
		}
		return res;
	};

	void add_tail ( ListItemT * item ) {
		item-next = (ListItemT *)0;
		item-prev = last;
		if (last) {
			last-next = item;
		} else {
			first = item;
		}
		last = item;
		len++;
	};

	int add_tail ( const T  val ) {
		ListItemT * item = new ListItemT (val);
		if (! item) return -1;
		add_tail (item);
		return 0;
	};

	void insert(ListItemT * item, ListItemT * pitem) {
		if (! pitem) {
			add_head(item);
		} else {
			if (! pitem-next) {
add_tail(item);
			} else {
item-next = pitem-next;
item-prev = pitem;
pitem-next = item;
item-next-prev = item;
len++;
			}
		}
	};

	int insert ( const T  val, ListItemT * pitem ) {
		ListItemT * item = new ListItemT (val);
		if (! item) return -1;
		insert (item, pitem);
		return 0;
	};

	ListItemT * rem_tail (void) {
		ListItemT * res = last;
		if (last) {
			last = last-prev;
			if (last) {
last-next = (ListItemT *)0;
			} else {
first = (ListItemT *)0; 
			}
			len--;
		}
		return res;
	};

	void remove(ListItemT * item) {
		if (item-prev) {
			item-prev-next = item-next;			
		} else {
			first = item-next;
		}
		if (item-next) {
			item-next-prev = item-prev;
		}	else {
			last = item-prev;
		}
		len--;
	};
	
	
	void append(List  rv) {	
		if (!first) {
			first = rv.first;
		} else {
			last-next = rv.first;
		}
		if (rv.first) {
			rv.first-prev = last;
		}
		if (rv.last) {
			last = rv.last;
		}
		
		rv.first = 0;
		rv.last = 0;
		
		len += rv.len;
		rv.len = 0;
		
	}

	// --- 'const' Functions -

	unsigned long length(void) const { return len; };
	
	ListItemT * get_head(void) const {
		return first;
	};

	ListItemT * get_tail(void) const {
		return last;
	};
	
	friend BIstream  operator (BIstream  in, ListT  list);
};

template class T
void ListT::clear(void) {
	ListItemT * p = first;
	while (p) {
		ListItemT * tp = p;
		p = p-next;
		delete tp;
	}
	len = 0;
	last = first = (ListItemT *)0;
}

// -
// I/O routines  (non-member functions)
// -


templa

compilation errors with c++ package

2001-03-24 Thread Chris Ruffin

I'm getting the following errors while trying to build my package:

g++  -fpermissive  -c -o List.o List.cc
In file included from List.cc:4:
List.h:241: warning: ANSI C++ forbids declaration `BIstream' with no type
List.h:241: `BIstream' is neither function nor method; cannot be declared friend
List.h:241: parse error before `'
make: *** [List.o] Error 1

The source that seems to be causing this is in the include file List.h
which gets included from List.cc:

friend BIstream  operator (BIstream  in, ListT  list);

Can anyone see any problems with this?  I'd really like to package
this software but my c++ skills are lacking.  Any ideas?

The entire source for List.h is attached.
--
Chris Ruffin [EMAIL PROTECTED]



#ifndef List_h
#define List_h

// This file describes the List template-class and some additional stuff
// that is required by this one.

// The List class represents a doubly-linked list

// The ListItem class uses lazy-allocation by default (see AllocBuf.h)

#include AllocBuf.h

class ostream;

template class T
class List;

#pragma interface


template class T
class ListItem : public T {

LAZYCLASS

protected:

	ListItem * next;
	ListItem * prev;

public:	

	ListItem( void ) : T()
#ifdef DEBUG
	 , next((ListItem *)0), prev((ListItem *)0)
#endif DEBUG
	  { };
	  
	ListItem( const T  val ) : T(val)
#ifdef DEBUG
	 , next((ListItem *)0), prev((ListItem *)0)
#endif DEBUG
	  { };

	ListItem * get_next(void) const {
		return next;
	};
	
	ListItem * get_prev(void) const {
		return prev;
	};

	friend class ListT;
};

LAZYOPS(template class T,ListItemT)


template class T
class List {
	
protected:

	ListItemT * first;
	ListItemT * last;
	
	unsigned long len;

public:
	
	List (void) : first((ListItemT *)0), last((ListItemT *)0), len(0)  { };
	
	List (const ListT  rv) : first((ListItemT *)0), last((ListItemT *)0), len(0) {
		for (const ListItemT * lip = rv.get_head();
		 lip;
		 lip = lip-get_next()
		) {
			if (add_tail( *lip )) break;
		}
	}
	
	void clear(void);	
	~List(void) {
		clear();
	}

	// - operators --
	
	const ListT  operator=(const ListT  rv) {
		clear();
		for (const ListItemT * lip = rv.get_head();
		 lip;
		 lip = lip-get_next()
		) {
			if (add_tail( *lip )) break;
		}
		
		return *this;
	}
	
	// - member-functions --

	void add_head ( ListItemT * item ) {
		item-prev = (ListItemT *)0;
		item-next = first;
		if (first) {
			first-prev = item;
		} else {
			last = item;
		}
		first = item;
		len++;
	}
	
	int add_head ( const T  val ) {
		ListItemT * item = new ListItemT (val);
		if (! item) return -1;
		add_head (item);
		return 0;
	}
	
	ListItemT * rem_head (void) {
		ListItemT * res = first;
		if (first) {
			first = first-next;
			if (first) {
first-prev = (ListItemT *)0;
			} else {
last = (ListItemT *)0;
			}
			len--;
		}
		return res;
	};

	void add_tail ( ListItemT * item ) {
		item-next = (ListItemT *)0;
		item-prev = last;
		if (last) {
			last-next = item;
		} else {
			first = item;
		}
		last = item;
		len++;
	};

	int add_tail ( const T  val ) {
		ListItemT * item = new ListItemT (val);
		if (! item) return -1;
		add_tail (item);
		return 0;
	};

	void insert(ListItemT * item, ListItemT * pitem) {
		if (! pitem) {
			add_head(item);
		} else {
			if (! pitem-next) {
add_tail(item);
			} else {
item-next = pitem-next;
item-prev = pitem;
pitem-next = item;
item-next-prev = item;
len++;
			}
		}
	};

	int insert ( const T  val, ListItemT * pitem ) {
		ListItemT * item = new ListItemT (val);
		if (! item) return -1;
		insert (item, pitem);
		return 0;
	};

	ListItemT * rem_tail (void) {
		ListItemT * res = last;
		if (last) {
			last = last-prev;
			if (last) {
last-next = (ListItemT *)0;
			} else {
first = (ListItemT *)0; 
			}
			len--;
		}
		return res;
	};

	void remove(ListItemT * item) {
		if (item-prev) {
			item-prev-next = item-next;			
		} else {
			first = item-next;
		}
		if (item-next) {
			item-next-prev = item-prev;
		}	else {
			last = item-prev;
		}
		len--;
	};
	
	
	void append(List  rv) {	
		if (!first) {
			first = rv.first;
		} else {
			last-next = rv.first;
		}
		if (rv.first) {
			rv.first-prev = last;
		}
		if (rv.last) {
			last = rv.last;
		}
		
		rv.first = 0;
		rv.last = 0;
		
		len += rv.len;
		rv.len = 0;
		
	}

	// --- 'const' Functions -

	unsigned long length(void) const { return len; };
	
	ListItemT * get_head(void) const {
		return first;
	};

	ListItemT * get_tail(void) const {
		return last;
	};
	
	friend BIstream  operator (BIstream  in, ListT  list);
};

template class T
void ListT::clear(void) {
	ListItemT * p = first;
	while (p) {
		ListItemT * tp = p;
		p = p-next;
		delete tp;
	}
	len = 0;
	last = first = (ListItemT *)0;
}

// -
// I/O routines  (non-member functions)
// -


template class T
ostream

Unidentified subject!

2001-02-18 Thread Chris Ruffin


Hello,

While trying to compile a package, I get the following warnings:

/home/ruff/debian/isakmpd/sysdep/linux/sysdep-os.h:39: warning: redefinition of 
`in_port_t'
/usr/include/netinet/in.h:66: warning: `in_port_t' previously declared here
/home/ruff/debian/isakmpd/sysdep/linux/sysdep-os.h:40: warning: redefinition of 
`in_addr_t'
/usr/include/netinet/in.h:110: warning: `in_addr_t' previously declared here

Now, sysdep-os.h defines in_port_t with:

typedef u_int16_t in_port_t;
typedef u_int32_t in_addr_t;

but /usr/include/netinet/in.h defines it as:

typedef uint16_t in_port_t;
typedef uint32_t in_addr_t;

If I change the defines in sysdep-os.h from u_int16_t to uint16_t and
u_int32_t to uint32_t, I get the following:

/home/ruff/debian/isakmpd/sysdep/linux/sysdep-os.h:39: parse error before `in_port_t'
/home/ruff/debian/isakmpd/sysdep/linux/sysdep-os.h:39: warning: type defaults to `int' 
in declaration of `in_port_t'
/home/ruff/debian/isakmpd/sysdep/linux/sysdep-os.h:39: warning: data definition has no 
type or storage class
/home/ruff/debian/isakmpd/sysdep/linux/sysdep-os.h:40: parse error before `in_addr_t'
/home/ruff/debian/isakmpd/sysdep/linux/sysdep-os.h:40: warning: type defaults to `int' 
in declaration of `in_addr_t'
/home/ruff/debian/isakmpd/sysdep/linux/sysdep-os.h:40: warning: data definition has no 
type or storage class

which makes me think that it isn't picking up netinet/in.h correctly,
or something.

Any ideas on how to fix this?
--
Chris Ruffin [EMAIL PROTECTED]



 PGP signature


Unidentified subject!

2001-02-18 Thread Chris Ruffin

Hello,

While trying to compile a package, I get the following warnings:

/home/ruff/debian/isakmpd/sysdep/linux/sysdep-os.h:39: warning: redefinition of 
`in_port_t'
/usr/include/netinet/in.h:66: warning: `in_port_t' previously declared here
/home/ruff/debian/isakmpd/sysdep/linux/sysdep-os.h:40: warning: redefinition of 
`in_addr_t'
/usr/include/netinet/in.h:110: warning: `in_addr_t' previously declared here

Now, sysdep-os.h defines in_port_t with:

typedef u_int16_t in_port_t;
typedef u_int32_t in_addr_t;

but /usr/include/netinet/in.h defines it as:

typedef uint16_t in_port_t;
typedef uint32_t in_addr_t;

If I change the defines in sysdep-os.h from u_int16_t to uint16_t and
u_int32_t to uint32_t, I get the following:

/home/ruff/debian/isakmpd/sysdep/linux/sysdep-os.h:39: parse error before 
`in_port_t'
/home/ruff/debian/isakmpd/sysdep/linux/sysdep-os.h:39: warning: type defaults 
to `int' in declaration of `in_port_t'
/home/ruff/debian/isakmpd/sysdep/linux/sysdep-os.h:39: warning: data definition 
has no type or storage class
/home/ruff/debian/isakmpd/sysdep/linux/sysdep-os.h:40: parse error before 
`in_addr_t'
/home/ruff/debian/isakmpd/sysdep/linux/sysdep-os.h:40: warning: type defaults 
to `int' in declaration of `in_addr_t'
/home/ruff/debian/isakmpd/sysdep/linux/sysdep-os.h:40: warning: data definition 
has no type or storage class

which makes me think that it isn't picking up netinet/in.h correctly,
or something.

Any ideas on how to fix this?
--
Chris Ruffin [EMAIL PROTECTED]




pgpbrp9vydInI.pgp
Description: PGP signature


config.cache

2001-01-21 Thread Chris Ruffin


Should source packages include config.cache?  I don't think so, but
I'm not absolutely sure.
--
Chris Ruffin [EMAIL PROTECTED]


 PGP signature


config.cache

2001-01-21 Thread Chris Ruffin


Should source archives include config.cache?  I wouldn't think so, but
if we're all using Debian systems then things will all be installed in
the right places, so it would be okay.  Comments?
--
Chris Ruffin [EMAIL PROTECTED]


 PGP signature


config.cache

2001-01-21 Thread Chris Ruffin

Should source packages include config.cache?  I don't think so, but
I'm not absolutely sure.
--
Chris Ruffin [EMAIL PROTECTED]



pgpU9vwcDsFvZ.pgp
Description: PGP signature


config.cache

2001-01-21 Thread Chris Ruffin

Should source archives include config.cache?  I wouldn't think so, but
if we're all using Debian systems then things will all be installed in
the right places, so it would be okay.  Comments?
--
Chris Ruffin [EMAIL PROTECTED]



pgp7KvOqaSRtM.pgp
Description: PGP signature


Re: packages not in testing

2001-01-14 Thread Chris Ruffin

On Sun, Jan 14, 2001 at 06:01:32PM -0800, Rick Younie wrote:
 Chris Ruffin wrote:
 
 Did you track this down?  I had a look yesterday and then
 got onto other things and didn't reply. electric depends on
 lesstif1 and there is a problem with that on m68k.  I don't know
 of an easy way of tracking these things down except checking
 unstable_probs.html.  It's sometimes not a first level depends
 that's the problem so it can be a bit of work.

Well, I posted a similar message to debian-devel and receieved a good
analysis from Anthony Towns, release whiz and master of the cryptic
output file.  The actual culprit appears to be xlibs and libxaw6 (third
level deps), which aren't installed on m68k.

Thanks,
--
Chris Ruffin [EMAIL PROTECTED]


 PGP signature


Re: packages not in testing

2001-01-14 Thread Chris Ruffin
On Sun, Jan 14, 2001 at 06:01:32PM -0800, Rick Younie wrote:
 Chris Ruffin wrote:
 
 Did you track this down?  I had a look yesterday and then
 got onto other things and didn't reply. electric depends on
 lesstif1 and there is a problem with that on m68k.  I don't know
 of an easy way of tracking these things down except checking
 unstable_probs.html.  It's sometimes not a first level depends
 that's the problem so it can be a bit of work.

Well, I posted a similar message to debian-devel and receieved a good
analysis from Anthony Towns, release whiz and master of the cryptic
output file.  The actual culprit appears to be xlibs and libxaw6 (third
level deps), which aren't installed on m68k.

Thanks,
--
Chris Ruffin [EMAIL PROTECTED]



pgpIKRwsZ2meT.pgp
Description: PGP signature


packages not in testing

2001-01-13 Thread Chris Ruffin

I need some help trying to figure out why my two packages haven't made
it into testing.

hp48cc made it into the old woody distribution, but hasn't made it
into testing with no indication as of why.  Maybe there isn't really a
probelm and it just hasn't been done yet?

electric is the package I'm really concerned about.  I uploaded it to
the old woody tree, and it was accecpted.  But the package won't go
into testing, and gives the following in update_excuses:

electric 6.00-1 (new) (low) Maintainer: Chris Ruffin
[EMAIL PROTECTED] electric has been hanging around for 51 days!
valid candidate (will be installed unless it's dependent upon other
buggy pkgs) 

Well, it's not dependent upong any buggy packages, AFAIK.

And then, it says this in update_output.txt:

Here's The List: ...  electric: alpha: electric ...

I have no earthly clue what this is supposed to mean.  Can we put
something meaningful in place of Here's The List.  How about Here's
the list of packages that were installed, might be installed, were
laughed at, whatever...

And then, electric shows it's face in unstable_probs.html, which is
quoted:

The current list of
horribly-severe-shouldn't-be-here-in-the-first-place bugs is at
testing_probs.html. (These are all `don't even bother considering this
package for inclusion' offences, which will hopefully all disappear
during the freeze, and bugsquashing days and so forth). For reference,
there's an equivalent page for unstable at unstable_probs.html, and
one for stable at stable_probs.html. 

Here's the output for that:

Binaries from electric 6.00-1 cannot be installed: 
electric(m68k) 

Sorry, don't know what that means, either, but I have some idea that
the package won't build on m68k.  That's all fine and good, but am I
in particular responsible for getting my package to build on all the
supported architectures before it will include the package I
originally uploaded?  What makes even less sense is that two
auto-built packages, arm and ppc, have made it into testing, while the
original package I uploaded has not.

I have a feeling I'm just doing something wrong here, but I can't
dechipher ajt's output files.
--
Chris Ruffin [EMAIL PROTECTED]



pgpBK26avY54t.pgp
Description: PGP signature