Re: new build system

2002-11-28 Thread Colin Walters
On Wed, 2002-11-27 at 12:37, Mateusz Papiernik wrote:
  But unlike dpkg-source v2, you can start using CBS right now. Sound
  interesting?  Here's the URL where you can download CBS:
  http://cvs.verbum.org/debian/rules
 
 Yes, it sounds interesting, but I had a problems with CBS and two 
 packages (mainly GNU Gadu 2 from cvs and Kadu from kadu.net). It's all
 ok, but when I do debuild, at compile stage, it cannot find includes,
 for example, when I type make manually I see:
 
 gcc -c -o -I.. -I../.. -ggdb -O2 common.c
 
 but when I do debuild or dpkg-buildpackage I see
 
 gcc -c -o -ggdb -O2 common.c

That's because your upstream's build system is broken; the CBS make
invocation sets CFLAGS, and your upstream's Makefile isn't properly
coded to keep other flags like -I around when CFLAGS is set.

A temporary workaround is to just override the rule and not set CFLAGS;
the real solution is to fix the Makefile so that this works.





Re: new build system

2002-11-28 Thread Miles Bader
Colin Walters [EMAIL PROTECTED] writes:
 your upstream's Makefile isn't properly
 coded to keep other flags like -I around when CFLAGS is set.
 
 the real solution is to fix the Makefile so that this works.

Human users will also appreciate such a fix...

-Miles
-- 
`Life is a boundless sea of bitterness'




Re: new build system

2002-11-28 Thread Joshua Haberman
* Colin Walters ([EMAIL PROTECTED]) wrote:
 On Wed, 2002-11-27 at 12:37, Mateusz Papiernik wrote:
   But unlike dpkg-source v2, you can start using CBS right now. Sound
   interesting?  Here's the URL where you can download CBS:
   http://cvs.verbum.org/debian/rules
  
  Yes, it sounds interesting, but I had a problems with CBS and two 
  packages (mainly GNU Gadu 2 from cvs and Kadu from kadu.net). It's all
  ok, but when I do debuild, at compile stage, it cannot find includes,
  for example, when I type make manually I see:
  
  gcc -c -o -I.. -I../.. -ggdb -O2 common.c
  
  but when I do debuild or dpkg-buildpackage I see
  
  gcc -c -o -ggdb -O2 common.c
 
 That's because your upstream's build system is broken; the CBS make
 invocation sets CFLAGS, and your upstream's Makefile isn't properly
 coded to keep other flags like -I around when CFLAGS is set.
 
 A temporary workaround is to just override the rule and not set CFLAGS;
 the real solution is to fix the Makefile so that this works.

I had to do this for several Makefiles tonight; my strategy was to
change

CFLAGS = -Ithis -Ithat -g

into

override CFLAGS += -Ithis -Ithat -g

Josh

-- 
Joshua Haberman  [EMAIL PROTECTED]




Re: new build system

2002-11-27 Thread Mateusz Papiernik
 But unlike dpkg-source v2, you can start using CBS right now. Sound
 interesting?  Here's the URL where you can download CBS:
 http://cvs.verbum.org/debian/rules

Yes, it sounds interesting, but I had a problems with CBS and two 
packages (mainly GNU Gadu 2 from cvs and Kadu from kadu.net). It's all
ok, but when I do debuild, at compile stage, it cannot find includes,
for example, when I type make manually I see:

gcc -c -o -I.. -I../.. -ggdb -O2 common.c

but when I do debuild or dpkg-buildpackage I see

gcc -c -o -ggdb -O2 common.c

In some cases, -I.. and -I../.. are ok, but program cannot find his
includes too. What's happening? And what is wrong? Or maybe, what am I
doing wrong?



-- 
Mati ([EMAIL PROTECTED])
Sounds like a Windows problem, try calling Microsoft support




Re: new build system

2002-11-26 Thread Matthew Palmer
On 25 Nov 2002, Colin Walters wrote:

 I attempted to take some of these ideas, and adapt them to the Debian
 build system; in particular, debian/rules.  The result is currently
 called Colin's Build System, but don't let the name give you the

Oh, I like it.  I haven't used it yet, but the idea is very nice, for GNU
autoconf-ruled packages.

I'll have more comments when I've stretched it's legs a little, but for now,
I'd encourage all DD's (and other people who package) to have a look at it
and give it a go.  Hopefully at least a few people will take heed and make
their packages build a little nicer.

-- 
Matthew Palmer, Debian Developer
[EMAIL PROTECTED] http://www.debian.org