+Sat Feb 12 17:11:33 CET 2000 Wichert Akkerman <wakkerma@debian.org>
+
+ * configure.in: don't try to outguess what CFLAGS should be
+ * scripts/update-alternatives.8: fix typo
+ * `Merge Marcus Brinkman patches day':
+ + scripts/dpkg-architecture.pl: architecture -q should not imply -f
+ + scripts/dpkg-shlibdeps.pl: build a list of packages instead of
+ overwriting previous results.
+ + utils/start-stop-daemon.c: update HURD specifics
+ + configure.in: revamp HURD detection stuff
+ + debian/rules: use dpkg-buildarchitecture to get proper info,
+ set config_arg if we are crosscompiling
+ + debian/rules: typo in clean target, scan start-stop-daemon for
+ shlibdeps
+
Tue Feb 8 21:33:58 EST 2000 Ben Collins <bcollins@debian.org>
* main/{processarc,archive}.c: Make the conflictor an array of structs and
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@
+SSD_LIBS = @SSD_LIBS@
+
DEFS = @DEFS@
INCLUDE_CFLAGS = -I$(top_srcdir)/include -I$(top_srcdir) -I$(srcdir) -I../include -I.. -I.
AC_CHECK_FUNCS(unsetenv alphasort scandir strerror strsignal strtoul)
AC_CHECK_FUNCS(vsnprintf lchown snprintf)
AC_CHECK_HEADERS(sys/cdefs.h sys/sysinfo.h syslog.h stddef.h)
-AC_CHECK_HEADERS(error.h hurd.h ps.h hurd/ihash.h)
+AC_CHECK_HEADERS(error.h)
AC_SYS_SIGLIST_DECLARED
-AC_CHECK_LIB(shouldbeinlibc, fmt_past_time)
-AC_CHECK_LIB(ps, proc_stat_list_pid_proc_stat)
+AC_CHECK_LIB(ihash, ihash_create, SSD_LIBS="-lihash $SSD_LIBS")
+AC_CHECK_LIB(ps, proc_stat_list_create, SSD_LIBS="-lps $SSD_LIBS")
+AC_CHECK_LIB(shouldbeinlibc, fmt_past_time, SSD_LIBS="-lshouldbeinlibc $SSD_LIBS")
+AC_SUBST(SSD_LIBS)
AC_HAVE_SYSINFO
AC_MEMINFO_IN_SYSINFO
-AC_SUBST(OPTCFLAGS)
-if test "${GCC-no}" = yes; then
- CFLAGS="-D_REENTRANT -D_GNU_SOURCE -O2"
- CXXFLAGS="-D_REENTRANT -D_GNU_SOURCE -O2"
- OPTCFLAGS="-O3"
-else
- CFLAGS="-D_REENTRANT -D_GNU_SOURCE -O"
- CXXFLAGS="-D_REENTRANT -D_GNU_SOURCE -O"
-fi
-
AC_TRY_COMPILE([
#include <sys/types.h>
#include <dirent.h>
-dpkg (1.6.8) unstable; urgency=low
+dpkg (1.7.0) unstable; urgency=low
- * fixed problems with multiple conflicts/replaces
+ * Use objdump instead of ldd in dpkg-shlibdeps
+ * HURD updates, Closes: Bug#57753,#57754,#57755
+ * dpkg-architecture: -q should not imply -f, Closes: Bug# 57761
-- Wichert Akkerman <wakkerma@debian.org> UNRELEASED
DIR := $(shell pwd)
# We should really get this in a different way...
-arch = $(shell dpkg --print-architecture)
+DEB_BUILD_GNU_TYPE := $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE 2> /dev/null || true)
+DEB_HOST_GNU_TYPE := $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE 2> /dev/null || true)
+arch := $(shell dpkg-architecture -qDEB_HOST_ARCH)
+
+ifneq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
+ config_arg := --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE)
+else
+ config_arg :=
+endif
# Setup the buildlocation
$(BUILD)/config.status:
--sysconfdir=/etc \
--sharedstatedir=/var/lib \
--localstatedir=/var/lib \
- --with-admindir=/var/lib/dpkg
+ --with-admindir=/var/lib/dpkg \
+ $(config_arg)
clean:
$(checkdir)
rm -f debian/files debian/substvars
- rm -f debian/dpkg,substvars
+ rm -f debian/dpkg.substvars
rm -fr $(BUILD) $(TMP) $(TMP_DPKG) $(TMP_DPKG_DEV) $(TMP_DPKG_DOC)
rm -f stamp-build stamp-binary
install -p -m 755 -o root -g root debian/dpkg.postinst $(TMP_DPKG)/DEBIAN/postinst
dpkg-shlibdeps -dPre-Depends -Tdebian/dpkg.substvars \
- $(TMP_DPKG)/usr/bin/dpkg $(TMP_DPKG)/usr/bin/dselect
+ $(TMP_DPKG)/usr/bin/dpkg $(TMP_DPKG)/usr/bin/dselect \
+ $(TMP_DPKG)/sbin/start-stop-daemon
dpkg-gencontrol -Tdebian/dpkg.substvars -pdpkg -P$(TMP_DPKG)
dpkg --build $(TMP_DPKG) ..
# 1.0.5 Update default for rules files (i386->i486).
# Print out overridden values, so make gets them, too.
# 1.0.6 Revert to i386 to comply with policy ยง 5.1.
+# 1.0.7 -q should not imply -f, because this prevents setting
+# make variables with non-standard names correctly.
$version="1.0.0";
$0 = `basename $0`; chomp $0;
} elsif (m/^-q/) {
$req_variable_to_print = $';
$action = 'q';
- $force=1;
} elsif (m/^-c$/) {
$action = 'c';
last;
Existing environment variables with the same name as used by the scripts are
not overwritten, except if the B<-f> force flag is present. This allows the user
to override a value even when the call to dpkg-architecture is buried in
-some other script (for example dpkg-buildpackage). The B<-q> query option
-implies B<-f>, and is therefore not affected by existing environment settings.
+some other script (for example dpkg-buildpackage).
=head1 TERMS
&warn("diversions involved - output may be incorrect");
print(STDERR " $_\n") || syserr("write diversion info to stderr");
} elsif (m=^(\S+(, \S+)*): /.+/([^/]+)$=) {
- $pathpackages{$+}= $1;
+ push @{$pathpackages{$+}}, split(/, /, $1);
} else {
&warn("unknown output from dpkg --search: \`$_'");
}
&warn("could not find any packages for $libfiles[$i]".
" ($libname[$i].so.$libsoname[$i])");
} else {
- @packages= split(/, /,$pathpackages{$libfiles[$i]});
- for $p (@packages) {
+ for $p (@{$pathpackages{$libfiles[$i]}}) {
scanshlibsfile("$shlibsppdir/$p$shlibsppext",
$libname[$i],$libsoname[$i],$libf[$i])
&& next LIB;
.RI [ options ]
.B --display
.I name
+.PP
.B update-alternatives
.RI [ options ]
.B --config
.PP
Debian's alternatives system aims to solve this problem.
A generic name in the filesystem is
-shared by all files providing interchangable functionality.
+shared by all files providing interchangeable functionality.
The alternatives system and the system administrator
together determine which actual file is referenced by this generic name.
For example, if the text editors
Generate more comments about what
.B update-alternatives
is doing.
-This option is not yet implemented.
.TP
.B --quiet
Don't generate any comments unless errors occur.
$(INSTALL_DATA) $(srcdir)/$(MD5_MANPAGES) $(DESTDIR)/$(man1dir)
start-stop-daemon: $(SSD_OBJECTS) ../optlib/libopt.a
+ $(CC) $(LDFLAGS) -o $@ $(SSD_OBJECTS) $(SSD_LIBS)
md5sum: $(MD5_OBJECTS) ../optlib/libopt.a
#error Unknown architecture - cannot build start-stop-daemon
#endif
-#ifdef HAVE_HURH_H
+#ifdef OSHURD
#include <hurd.h>
-#endif
-#ifdef HAVE_PS_H
#include <ps.h>
#endif
static struct stat exec_stat;
#if defined(OSHURD)
-static struct ps_context *context;
static struct proc_stat_list *procset;
#endif
#if defined(OSLinux)
static int pid_is_exec(int pid, const struct stat *esb);
#endif
-static void do_psinit(void);
#ifdef __GNUC__
}
static void
-do_psinit(void)
+do_procinit(void)
+{
+ struct ps_context *context;
error_t err;
err = ps_context_create (getproc (), &context);