* scripts/dpkg-buildpackage.sh: Back out debian/rules build-arch detection.
It is *not* possible *at all* to detect available targets in a rules
file. Period.
+Fri Sep 19 19:56:48 CDT 2003 Adam Heath <doogie@debian.org>
+
+ * lib/varbuf.c, configure.in: Fix va_copy detection.
+ * scripts/dpkg-buildpackage.sh: Back out debian/rules build-arch
+ detection. It is *not* possible *at all* to detect available targets
+ in a rules file. Period.
+
Fri Sep 19 12:26:54 CDT 2003 Adam Heath <doogie@debian.org>
* scripts/{controllib,dpkg-{source,checkbuilddeps,control}}.pl:
AC_TRY_COMPILE(,[
} inline int foo (int x) {], AC_DEFINE(HAVE_INLINE,,[Define if inline functions a la GCC are available.]))
-AC_MSG_CHECKING([for __va_copy])
-# OpenBSD passes AC_TRY_COMPILE for __va_copy even though
+AC_MSG_CHECKING([for va_copy])
+# OpenBSD passes AC_TRY_COMPILE for va_copy even though
# it doesn't seem to exist, which is odd. We need to use
# AC_TRY_RUN.
AC_TRY_RUN([
#include <stdarg.h>
main(){
va_list v1,v2;
-__va_copy(v1, v2);
+va_copy(v1, v2);
exit(0);}
], [AC_MSG_RESULT(yes)
-AC_DEFINE(HAVE_VA_COPY)],[AC_MSG_RESULT(no)
+AC_DEFINE(HAVE_VA_COPY,,[Whether the va_copy macro exists])],[AC_MSG_RESULT(no)
AC_MSG_CHECKING([for va_list assignment copy])
AC_TRY_COMPILE([
#include <stdarg.h>
#endif
#ifndef HAVE_VA_COPY
-#define __va_copy(dest,src) (dest) = (src)
+#define va_copy(dest,src) (dest) = (src)
#endif
/* Define WCOREDUMP if we don't have it already - coredumps won't be
dpkg (1.10.15) unstable; urgency=low
+ * Fix detection of va_copy.
+ * Back out debian/rules build-arch detection. It is *not* possible *at
+ all* to detect available targets in a rules file. Period.
+
-- Adam Heath <doogie@debian.org> UNRELEASED
dpkg (1.10.14) unstable; urgency=low
#include <dpkg.h>
#include <dpkg-db.h>
-#ifndef HAVE_VA_COPY
-#define __va_copy(dest,src) (dest) = (src)
-#endif
-
inline void varbufaddc(struct varbuf *v, int c) {
if (v->used >= v->size) varbufextend(v);
v->buf[v->used++]= c;
do {
varbufextend(v);
- __va_copy(al, va);
+ va_copy(al, va);
r= vsnprintf(v->buf+ou,v->size-ou,fmt,al);
if (r < 0) r= (v->size-ou+1) * 2;
v->used= ou+r;
cleansource=false
checkbuilddep=true
checkbuilddep_args=''
-buildtarget=build
binarytarget=binary
sourcestyle=''
version=''
usepause=false
warnable_error=0
passopts=''
-debian/rules -qn build-arch 2>/dev/null && buildarchavailable=true || buildarchavailable=false
while [ $# != 0 ]
do
-nc) noclean=true; if [ -z "$binaryonly" ]; then binaryonly=-b; fi ;;
-b) binaryonly=-b; [ "$sourceonly" ] && \
{ echo >&2 "$progname: cannot combine $1 and -S" ; exit 2 ; } ;;
- -B) binaryonly=-B; binarytarget=binary-arch; if $buildarchavailable; then checkbuilddep_args=-B; fi; [ "$sourceonly" ] && \
+ -B) binaryonly=-B; checkbuilddep_args=-B; binarytarget=binary-arch; [ "$sourceonly" ] && \
{ echo >&2 "$progname: cannot combine $1 and -S" ; exit 2 ; } ;;
-S) sourceonly=-S; checkbuilddep=false; [ "$binaryonly" ] && \
{ echo >&2 "$progname: cannot combine $binaryonly and $1" ; exit 2 ; } ;;
cd ..; withecho dpkg-source $passopts $diffignore $tarignore -b "$dirn"; cd "$dirn"
fi
if [ x$sourceonly = x ]; then
- withecho debian/rules $buildtarget
+ withecho debian/rules build
withecho $rootcommand debian/rules $binarytarget
fi
if [ "$usepause" = "true" ] && \