Bug#634579: qt-x11-free: FTBFS: NIS support cannot be enabled due to, functionality tests!

2011-11-30 Thread Laurent Dard
fixed 634579 qt-x11-free/3:3.3.8b-9
tags 634579 - wheezy sid
thanks

NIS is correctly detected, on my amd64 computer, with the option added by
debian/rules: -L/usr/lib/$(DEB_HOST_MULTIARCH)

And qt-x11-free ChangeLog says:

 qt-x11-free (3:3.3.8b-9) unstable; urgency=low
 
   * QA upload.
   * Tell configure about the multiarch path. (Closes: #634579).
 
  -- Aurelien Jarno aure...@debian.org  Tue, 02 Aug 2011 09:53:22 +0200

-- 
Laurent Dard



-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#556768: FTBFS with binutils-gold

2011-11-01 Thread Laurent Dard
I build successfully the new upstream 'debian' package with binutils-gold.

$ wget http://ftp.indexdata.dk/pub/yaz/debian/wheezy/yaz_4.2.18.orig.tar.gz
$ wget 
http://ftp.indexdata.dk/pub/yaz/debian/wheezy/yaz_4.2.18-1indexdata.diff.gz
$ tar xf yaz_4.2.18.orig.tar.gz
$ cd yaz-4.2.18
$ gunzip -c ../yaz_4.2.18-1indexdata.diff.gz | patch -Np1
$ dpkg-buildpackage -b -uc

All is fine.

And I tried the Ubuntu patch for yaz-4.0.11

$ apt-get source yaz=4.0.11
$ sed -e 's/export CFLAGS+= -Wall/export CFLAGS+= -Wall\nexport LDFLAGS+= -lm/' 
-i yaz-4.0.11/debian/rules
$ apt-get -b source yaz=4.0.11

All is fine.

My configuration:
$ arch;cat /etc/debian_version;ld --version|head -n1;gcc --version|head -n1;\
  /lib/x86_64-linux-gnu/libc.so.6|head -n1
x86_64
wheezy/sid
GNU gold (GNU Binutils for Debian 2.21.90.20111004) 1.11
gcc-4.6.real (Debian 4.6.1-15) 4.6.1
GNU C Library (Debian EGLIBC 2.13-21) stable release version 2.13, by Roland 
McGrath et al.

-- 
Laurent



-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#644708: tcsh: FTBFS: undefined references in ed.screen.c

2011-10-09 Thread Laurent Dard
Le 09/10/2011 08:52, Sven Joachim a écrit :
 Can you confirm that tcsh builds with binutils-gold 2.21.90.20111004?
Yes.

Since this bug still affects binutils-gold in testing, I reopened it and 
reassigned it.
Feel free to correct me if I did something wrong.

-- 
Laurent



-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#644708: FTBFS with binutils-gold: undefined references in ed.screen.c

2011-10-09 Thread Laurent Dard
Summary:
tcsh fails to build from sources with ld from binutils-gold 2.21.52.20110606-2 
(from wheezy).
In the configure step, ncurses library aren't detected.
It may be solved:
• by changing debian/rules in tcsh
• by upgrading binutils-gold to sid (2.21.90.20111004)

-- 
Laurent Dard



-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#644708: Processed: reopen 644708

2011-10-09 Thread Laurent Dard
Le 09/10/2011 10:35, Matthias Klose a écrit :
 reassign 644708 tcsh
 thanks
 
 $ cat foo.c
 char tgetent ();
 int
 main ()
 {
 return tgetent ();
   ;
   return 0;
 }
 
 the failing test works for me. the linker line is however missing the 
 libraries.

Thanks.

Here is a test to isolate the bug:
cat  foo.c eof 
char tgetent ();
int main ()
{
return tgetent ();
  ;
  return 0;
}
eof
su
for DISTRIB in testing unstable ; do
  echo ### $DISTRIB ###
  apt-get -y --force-yes install binutils/$DISTRIB \
binutils-multiarch/$DISTRIB binutils-dev/$DISTRIB \
binutils-gold/$DISTRIB binutils-doc/$DISTRIB  /dev/null
  for x in termcap {,n}curses ; do gcc foo.c -l$x ; done
done

The result is:
### testing ###
/usr/bin/ld: error: cannot find libncurses.so.5
collect2: ld returned 1 exit status
/usr/bin/ld: error: cannot find libncurses.so.5
collect2: ld returned 1 exit status
/usr/bin/ld: error: cannot find libncurses.so.5
collect2: ld returned 1 exit status
### unstable ###
Reading changelogs...

Obviously, it's not related to tcsh at all...
To which package does this bug belong? libncurses5?

-- 
Laurent Dard



-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#644708: Info received (Processed: reopen 644708)

2011-10-09 Thread Laurent Dard
-linux-gnu/gcc/x86_64-linux-gnu/4.6.1/libgcc_s.so succeeded
/usr/bin/ld: Attempt to open 
/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.6.1/libc.so failed
/usr/bin/ld: Attempt to open 
/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.6.1/libc.a failed
/usr/bin/ld: Attempt to open 
/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.6.1/../../../libc.so succeeded
/usr/bin/ld: Attempt to open /lib/x86_64-linux-gnu/libc.so.6 succeeded
/usr/bin/ld: Attempt to open /usr/lib/x86_64-linux-gnu/libc_nonshared.a 
succeeded
/usr/bin/ld: Attempt to open /lib/x86_64-linux-gnu/ld-linux-x86-64.so.2 
succeeded
/usr/bin/ld: Attempt to open 
/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.6.1/libgcc.so failed
/usr/bin/ld: Attempt to open 
/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.6.1/libgcc.a succeeded
/usr/bin/ld: Attempt to open 
/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.6.1/libgcc_s.so succeeded

ld 2.21.52.20110606 doesn't look into /lib/x86_64-linux-gnu and fails to open 
libncurses.so.5 but ld 2.21.90.20111004 does.
-- 
Laurent Dard



-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#644708: tcsh: FTBFS: undefined references in ed.screen.c

2011-10-08 Thread Laurent Dard
Package: tcsh
Version: 6.17.06-2
Severity: serious
Tags: wheezy sid
Justification: fails to build from source (but built successfully in the past)

Tcsh fails to build from sources, for example with LANG=C apt-get -b source 
tcsh.
Here is the message from make:
gcc -o tcsh  -g -O2 -I. -I. sh.o sh.dir.o sh.dol.o sh.err.o sh.exec.o sh.char.o 
sh.exp.o sh.file.o sh.func.o sh.glob.o sh.hist.o sh.init.o sh.lex.o sh.misc.o 
sh.parse.o sh.print.o sh.proc.o sh.sem.o sh.set.o sh.time.o glob.o mi.termios.o 
ma.setp.o vms.termcap.o tw.help.o tw.init.o tw.parse.o tw.spell.o tw.comp.o 
tw.color.o ed.chared.o ed.refresh.o ed.screen.o ed.init.o ed.inputl.o 
ed.defns.o ed.xmap.o ed.term.o tc.alloc.o tc.bind.o tc.const.o tc.defs.o 
tc.disc.o tc.func.o tc.nls.o tc.os.o tc.printf.o tc.prompt.o tc.sched.o 
tc.sig.o tc.str.o tc.vers.o tc.who.o  -lcrypt
ed.screen.c:612: error: undefined reference to 'tgetflag'
ed.screen.c:677: error: undefined reference to 'tgoto'
ed.screen.c:677: error: undefined reference to 'tputs'
ed.screen.c:708: error: undefined reference to 'tgoto'
ed.screen.c:708: error: undefined reference to 'tputs'
ed.screen.c:610: error: undefined reference to 'tgetstr'
ed.screen.c:662: error: undefined reference to 'tputs'
ed.screen.c:937: error: undefined reference to 'tputs'
ed.screen.c:1132: error: undefined reference to 'tgoto'
ed.screen.c:1102: error: undefined reference to 'tgoto'
ed.screen.c:1436: error: undefined reference to 'tgetent'
ed.screen.c:1456: error: undefined reference to 'tgetflag'
ed.screen.c:1458: error: undefined reference to 'tgetflag'
ed.screen.c:1459: error: undefined reference to 'tgetflag'
ed.screen.c:1461: error: undefined reference to 'tgetnum'
ed.screen.c:1462: error: undefined reference to 'tgetnum'
ed.screen.c:1464: error: undefined reference to 'tgetstr'
tc.func.c:2087: error: undefined reference to 'tgetent'
collect2: ld returned 1 exit status
make[2]: *** [tcsh] Error 1

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (800, 'testing'), (750, 'stable'), (500, 'oldstable'), (50, 
'experimental'), (50, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.0.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.utf-8, LC_CTYPE=fr_FR.utf-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages tcsh depends on:
ii  libc62.13-21
ii  libncurses5  5.9-2  

tcsh recommends no packages.

tcsh suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#644708: tcsh: FTBFS: undefined references in ed.screen.c

2011-10-08 Thread Laurent Dard
Le 08/10/2011 19:23, Sven Joachim a écrit :
 It should not be necessary to add /lib/x86_64-linux-gnu to the linker
 path, something seems to be wrong on your system.  Can you please run
 ls -l /usr/lib/x86_64-linux-gnu/lib{{n,}curses,termcap,tinfo}*
 and show the output?

Thanks for your quick answer.

Here is what you ask:
$ ls -l /usr/lib/x86_64-linux-gnu/lib{{n,}curses,termcap,tinfo}*
lrwxrwxrwx 1 root root 12 Sep 29 13:18 
/usr/lib/x86_64-linux-gnu/libcurses.a - libncurses.a
lrwxrwxrwx 1 root root 13 Sep 29 13:18 
/usr/lib/x86_64-linux-gnu/libcurses.so - libncurses.so
-rw-r--r-- 1 root root 157488 Sep 29 13:18 
/usr/lib/x86_64-linux-gnu/libncurses++.a
-rw-r--r-- 1 root root 157488 Sep 29 13:18 
/usr/lib/x86_64-linux-gnu/libncurses++w.a
-rw-r--r-- 1 root root 292748 Sep 29 13:18 
/usr/lib/x86_64-linux-gnu/libncurses.a
-rw-r--r-- 1 root root 31 Sep 29 13:18 
/usr/lib/x86_64-linux-gnu/libncurses.so
-rw-r--r-- 1 root root 389066 Sep 29 13:18 
/usr/lib/x86_64-linux-gnu/libncursesw.a
-rw-r--r-- 1 root root 32 Sep 29 13:18 
/usr/lib/x86_64-linux-gnu/libncursesw.so
lrwxrwxrwx 1 root root 12 Sep 29 13:18 
/usr/lib/x86_64-linux-gnu/libtermcap.a - libncurses.a
lrwxrwxrwx 1 root root 13 Sep 29 13:18 
/usr/lib/x86_64-linux-gnu/libtermcap.so - libncurses.so
-rw-r--r-- 1 root root 260806 Sep 29 13:18 /usr/lib/x86_64-linux-gnu/libtinfo.a
lrwxrwxrwx 1 root root 35 Sep 29 13:18 
/usr/lib/x86_64-linux-gnu/libtinfo.so - /lib/x86_64-linux-gnu/libtinfo.so.5

Some other files:
lrwxrwxrwx 1 root root 17 Sep 29 13:18 
/lib/x86_64-linux-gnu/libncurses.so.5 - libncurses.so.5.9
-rw-r--r-- 1 root root 138856 Sep 29 13:18 
/lib/x86_64-linux-gnu/libncurses.so.5.9
lrwxrwxrwx 1 root root 18 Sep 29 13:18 
/lib/x86_64-linux-gnu/libncursesw.so.5 - libncursesw.so.5.9
-rw-r--r-- 1 root root 192472 Sep 29 13:18 
/lib/x86_64-linux-gnu/libncursesw.so.5.9
lrwxrwxrwx 1 root root 15 Sep 29 13:18 /lib/x86_64-linux-gnu/libtinfo.so.5 
- libtinfo.so.5.9
-rw-r--r-- 1 root root 163872 Sep 29 13:18 /lib/x86_64-linux-gnu/libtinfo.so.5.9
lrwxrwxrwx 1 root root 17 Sep 29 13:18 /lib32/libncurses.so.5 - 
libncurses.so.5.9
-rw-r--r-- 1 root root 137336 Sep 29 13:18 /lib32/libncurses.so.5.9
lrwxrwxrwx 1 root root 15 Sep 29 13:18 /lib32/libtinfo.so.5 - 
libtinfo.so.5.9
-rw-r--r-- 1 root root 125416 Sep 29 13:18 /lib32/libtinfo.so.5.9
lrwxrwxrwx 1 root root 12 Sep 29 13:18 /usr/lib32/libcurses.a - 
libncurses.a
lrwxrwxrwx 1 root root 13 Sep 29 13:18 /usr/lib32/libcurses.so - 
libncurses.so
-rw-r--r-- 1 root root 130236 Sep 29 13:18 /usr/lib32/libncurses++.a
-rw-r--r-- 1 root root 219720 Sep 29 13:18 /usr/lib32/libncurses.a
-rw-r--r-- 1 root root 31 Sep 29 13:18 /usr/lib32/libncurses.so
lrwxrwxrwx 1 root root 12 Sep 29 13:18 /usr/lib32/libtermcap.a - 
libncurses.a
lrwxrwxrwx 1 root root 13 Sep 29 13:18 /usr/lib32/libtermcap.so - 
libncurses.so
-rw-r--r-- 1 root root 177454 Sep 29 13:18 /usr/lib32/libtinfo.a
lrwxrwxrwx 1 root root 20 Sep 29 13:18 /usr/lib32/libtinfo.so - 
/lib32/libtinfo.so.5
-rw-r--r-- 1 root root 23664 Oct 29  2009 /usr/lib/lsb3/libncurses.so

And cat /etc/ld.so.conf.d/* gives:
/usr/local/lib
# Trinity Desktop
/opt/trinity/lib/
/opt/trinity/lib64/
/opt/trinity/lib/kde3/
/opt/trinity/lib64/trinity/
# Multiarch support
/lib/x86_64-linux-gnu
/usr/lib/x86_64-linux-gnu
# Legacy biarch compatibility support
/lib32
/usr/lib32

-- 
Laurent



-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#644708: tcsh: FTBFS: undefined references in ed.screen.c

2011-10-08 Thread Laurent Dard
Thanks again.

AFAICT, the bug is in binutils-gold-2.21.52.20110606.
And it should be marked as fixed.

I did apt-get purge binutils-gold 
apt-get install binutils/unstable binutils-multiarch/unstable 
binutils-dev/unstable
and the bug is gone.

Le 08/10/2011 21:41, Sven Joachim a écrit :
 You don't have ncurses libraries in any of these directories, do you?
Of Course not.

 Can you please send the config.log from the failed build?
Here it is, attached.
And some more information, I should have provided earlier:
$ ld --version
GNU gold (GNU Binutils for Debian 2.21.52.20110606) 1.11

Now, ld --version gives GNU ld (GNU Binutils for Debian) 2.21.90.20111004,
and everything is fine.

CHEERS !
-- 
Laurent
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by tcsh configure 6.17.06, which was
generated by GNU Autoconf 2.61.  Invocation command line was

  $ ./configure --build=x86_64-linux-gnu --prefix=/usr --includedir=${prefix}/include --mandir=${prefix}/share/man --infodir=${prefix}/share/info --sysconfdir=/etc --localstatedir=/var --libexecdir=${prefix}/lib/tcsh --disable-maintainer-mode --disable-dependency-tracking

## - ##
## Platform. ##
## - ##

hostname = machine
uname -m = x86_64
uname -r = 3.0.0-1-amd64
uname -s = Linux
uname -v = #1 SMP Sat Aug 27 16:21:11 UTC 2011

/usr/bin/uname -p = unknown
/bin/uname -X = unknown

/bin/arch  = unknown
/usr/bin/arch -k   = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo  = unknown
/bin/machine   = unknown
/usr/bin/oslevel   = unknown
/bin/universe  = unknown

PATH: /opt/trinity/bin
PATH: /opt/trinity/bin
PATH: /home/eldi/bin
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/games
PATH: /usr/local/sbin
PATH: /usr/sbin
PATH: /sbin
PATH: /usr/bin


## --- ##
## Core tests. ##
## --- ##

configure:1774: checking for a BSD-compatible install
configure:1830: result: /usr/bin/install -c
configure:1847: checking build system type
configure:1865: result: x86_64-pc-linux-gnu
configure:1887: checking host system type
configure:1902: result: x86_64-pc-linux-gnu
configure:1925: checking cached host tuple
configure:1935: result: ok
configure:2234: checking for gcc
configure:2250: found /usr/bin/gcc
configure:2261: result: gcc
configure:2499: checking for C compiler version
configure:2506: gcc --version 5
gcc (Debian 4.6.1-4) 4.6.1
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:2509: $? = 0
configure:2516: gcc -v 5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.6.1/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.6.1-4' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++,go --prefix=/usr --program-suffix=-4.6 --enable-shared --enable-multiarch --with-multiarch-defaults=x86_64-linux-gnu --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib/x86_64-linux-gnu --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6 --libdir=/usr/lib/x86_64-linux-gnu --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-plugin --enable-objc-gc --with-arch-32=i586 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.6.1 (Debian 4.6.1-4) 
configure:2519: $? = 0
configure:2526: gcc -V 5
gcc: error: unrecognized option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:2529: $? = 1
configure:2552: checking for C compiler default output file name
configure:2579: gccconftest.c  5
configure:2582: $? = 0
configure:2620: result: a.out
configure:2637: checking whether the C compiler works
configure:2647: ./a.out
configure:2650: $? = 0
configure:2667: result: yes
configure:2674: checking whether we are cross compiling
configure:2676: result: no
configure:2679: checking for suffix of executables
configure:2686: gcc -o conftestconftest.c  5
configure:2689: $? = 0
configure:2713: result: 
configure:2719: checking for suffix of object files
configure:2745: gcc -c   conftest.c 5
configure:2748: $? = 0
configure:2771: result: o
configure:2775: checking whether we are using the GNU C compiler
configure:2804: gcc -c   conftest.c 5
configure:2810: $? = 0
configure:2827: result: yes
configure:2832: checking whether gcc accepts -g
configure:2862: gcc -c -g  conftest.c 5
configure:2868: $? = 0
configure:2967: result: yes
configure:2984: checking for gcc option to accept ISO C89
configure:3058: gcc  -c -g -O2  conftest.c 5
configure:3064: $? = 0
configure:3087: result: none needed
configure:3110: 

Bug#639859: apt-build fails to build packages ; it conflicts with apt

2011-08-30 Thread Laurent Dard
Package: apt-build
Version: 0.12.38
Severity: grave
Tags: sid wheezy patch
Justification: renders package unusable

Trying to install a package with apt-build, for example:
# apt-build install hello
it fails with:
W: Failed to fetch 
file:/var/cache/apt-build/repository/dists/apt-build/Release  Unable to find 
expected entry 'main/binary-amd64/Packages' in Release file (Wrong 
sources.list entry or malformed file)

E: Some index files failed to download. They have been ignored, or old ones 
used instead.
Reading package lists... Done
E: The value 'apt-build' is invalid for APT::Default-Release as such a release 
is not available in the sources

Subsequently, 'apt-get update' gives:
W: Failed to fetch file:/var/cache/apt-build/repository/dists/apt-build/Release 
 Unable to find expected entry 'main/binary-amd64/Packages' in Release file 
(Wrong sources.list entry or malformed file)

E: Some index files failed to download. They have been ignored, or old ones 
used instead.

I erased /var/cache/apt-build and applied the following patch to get rid
of this problem:
---
diff -Naur apt-build-0.12.38.orig/apt-build apt-build-0.12.38/apt-build
--- apt-build-0.12.38.orig/apt-build2008-07-01 08:29:43.0 +0200
+++ apt-build-0.12.38/apt-build 2011-08-30 23:55:39.0 +0200
@@ -101,9 +101,9 @@
   update-source - Update all sources and rebuild them
   remove- Remove packages
   build-repository  - Rebuild the repository
-  clean-sources - Clean up all object files in source directories
   clean-build   - Erase downloaded packages and temporary build files
-  clean-repository  - Erase downloaded packages and temporary build files
+  clean-repository  - Erase built packages
+  clean-sources - Clean up all object files in source directories
   world - Rebuild and reinstall all packages on your system
   info  - Build-related package information
 
@@ -337,10 +337,10 @@
 chdir $conf-repository_dir;
 my $arch = $_config-get(APT::Architecture);
 
-system ln -s . main unless -e main;
-system ln -s . apt-build unless -e apt-build;
-system ln -s . dists unless -e dists;
-system ln -s . binary-$arch unless -e binary-$arch;
+system mkdir dists unless -e dists;
+system mkdir dists/apt-build unless -e dists/apt-build;
+system mkdir dists/apt-build/main unless -e dists/apt-build/main;
+system ln -s ../../.. dists/apt-build/main/binary-$arch unless -e 
dists/apt-build/main/binary-$arch;
 make_release_file() unless -e Release;
 
 system apt-ftparchive packages . | gzip -9  Packages.gz;
diff -Naur apt-build-0.12.38.orig/debian/postinst 
apt-build-0.12.38/debian/postinst
--- apt-build-0.12.38.orig/debian/postinst  2011-03-13 16:55:00.0 
+0100
+++ apt-build-0.12.38/debian/postinst   2011-08-31 01:19:41.0 +0200
@@ -79,13 +79,8 @@
 
# Create repository_dir
if [ ! -e $repository_dir ]; then
-   mkdir -p $repository_dir
-   cd $repository_dir
-   ln -s . stable
-   ln -s . dists
-   ln -s . apt-build
-   ln -s . main
-   ln -s . binary-`dpkg --print-architecture`
+   mkdir -p $repository_dir/dists/apt-build/main
+   ln -s ../../.. $repository_dir/dists/apt-build/main/binary-`dpkg 
--print-architecture`
fi

sed s/__arch__/`dpkg --print-architecture`/ 
/usr/share/apt-build/Release  $repository_dir/Release

---

Unfortunately, it doesn't solve the problem.
apt-get update keeps saying:
E: The value 'apt-build' is invalid for APT::Default-Release as such a release 
is not available in the sources

Maybe an apt bug rather than an apt-build bug ?

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (800, 'testing'), (750, 'stable'), (500, 'oldstable'), (50, 
'experimental'), (50, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.0.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.utf-8, LC_CTYPE=fr_FR.utf-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages apt-build depends on:
ii  apt   0.8.15.6   Advanced front-end for dpkg
ii  apt-utils 0.8.15.6   APT utility programs
ii  debconf [debconf-2.0] 1.5.40 Debian configuration management sy
ii  devscripts2.11.0 scripts to make the life of a Debi
ii  dpkg-dev  1.16.0.3   Debian package development tools
ii  g++   4:4.6.1-2  GNU C++ compiler
ii  gcc   4:4.6.1-2  GNU C compiler
ii  libappconfig-perl 1.56-2 Perl module for configuration file
ii  libapt-pkg-perl   0.1.24+b2  Perl interface to libapt-pkg
ii  libc6 2.13-16Embedded GNU C Library: Shared