dpkg.patch 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. Index: lib/dpkg-db.h
  2. --- lib/dpkg-db.h.orig 2009-07-08 11:06:36 +0200
  3. +++ lib/dpkg-db.h 2009-07-09 11:29:46 +0200
  4. @@ -29,6 +29,7 @@
  5. #include <sys/types.h>
  6. #include <stdio.h>
  7. +#include <stdarg.h>
  8. struct versionrevision {
  9. unsigned long epoch;
  10. Index: lib/tarfn.c
  11. --- lib/tarfn.c.orig 2009-07-08 11:06:36 +0200
  12. +++ lib/tarfn.c 2009-07-09 11:29:46 +0200
  13. @@ -66,7 +66,9 @@
  14. int len;
  15. char * str;
  16. - len = strnlen(s, size);
  17. + len = strlen(s);
  18. + if (len > size)
  19. + len = size;
  20. str = m_malloc(len + 1);
  21. memcpy(str, s, len);
  22. str[len] = '\0';
  23. Index: man/Makefile.in
  24. --- man/Makefile.in.orig 2009-07-08 11:28:41 +0200
  25. +++ man/Makefile.in 2009-07-09 11:29:46 +0200
  26. @@ -197,7 +197,7 @@
  27. top_srcdir = @top_srcdir@
  28. # Extract the list of languages from the po4a config file.
  29. -LINGUAS = `sed -ne 's/^.*\[po4a_langs\] \(.*\)$$/\1/p' $(srcdir)/po/po4a.cfg`
  30. +LINGUAS =
  31. dist_man_MANS = deb-control.5 deb-version.5 deb-shlibs.5 \
  32. deb-substvars.5 deb-symbols.5 deb-triggers.5 deb-old.5 \
  33. deb-override.5 deb.5 dpkg-architecture.1 dpkg-buildpackage.1 \
  34. @@ -523,7 +523,7 @@
  35. all-local: all-local-@USE_NLS@
  36. all-local-no:
  37. -all-local-yes: man.stamp
  38. +all-local-yes:
  39. # FIXME: Use a stamp file until po4a supports them internally.
  40. man.stamp:
  41. Index: scripts/Makefile.in
  42. --- scripts/Makefile.in.orig 2009-07-08 11:28:41 +0200
  43. +++ scripts/Makefile.in 2009-07-09 11:29:46 +0200
  44. @@ -739,8 +739,8 @@
  45. $(INSTALL_SCRIPT) install-info $(DESTDIR)$(sbindir)
  46. install-data-local:
  47. - $(mkdir_p) $(DESTDIR)$(sysconfdir)/alternatives
  48. - $(INSTALL_DATA) $(srcdir)/README.alternatives $(DESTDIR)$(sysconfdir)/alternatives/README
  49. + $(mkdir_p) $(DESTDIR)$(sysconfdir)/dpkg/alternatives
  50. + $(INSTALL_DATA) $(srcdir)/README.alternatives $(DESTDIR)$(sysconfdir)/dpkg/alternatives/README
  51. # Ideally we'd use 'sed -i', but unfortunately that's not portable.
  52. install-data-hook: