[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

archtable/configure.in vs versioned $target_os



I think configure.in script should just remove the OS version from
$target_os string. It could be helpful for freebsd and hurd port of dpkg.

My patch:
diff -Nru2 dpkg-1.8.3.1/configure.in dpkg-1.8.3.1.0.1/configure.in
--- dpkg-1.8.3.1/configure.in   Fri Jan 12 14:55:49 2001
+++ dpkg-1.8.3.1.0.1/configure.in       Sun Feb 11 20:41:35 2001
@@ -84,9 +84,10 @@
 dpkg_archset=''
 AC_MSG_CHECKING(Debian architecture)
-dpkg_archset="`awk '$1 == "'$target_cpu-$target_os'" { print $2 }' $srcdir/arch+target_os_name="`echo $target_os | sed s/[[0-9.]]*$//`"
+dpkg_archset="`awk '$1 == "'$target_cpu-$target_os_name'" { print $2 }' $srcdir
 # Finish off
 if test "x$dpkg_archset" = "x"; then
- AC_MSG_RESULT([$target_cpu-$target_os, but not found in archtable])
- dpkg_archset=$target_cpu-$target_os
+ AC_MSG_RESULT([$target_cpu-$target_os_name, but not found in archtable])
+ dpkg_archset=$target_cpu-$target_os_name
  else
  AC_MSG_RESULT($dpkg_archset)

BTW, doc/Makefile.in has a little bug if you use --without-sgml-doc
option:

diff -Nru2 dpkg-1.8.3.1/doc/Makefile.in dpkg-1.8.3.1.0.1/doc/Makefile.in
--- dpkg-1.8.3.1/doc/Makefile.in        Fri Jan 12 14:55:50 2001
+++ dpkg-1.8.3.1.0.1/doc/Makefile.in    Sun Feb 11 21:36:56 2001
@@ -38,4 +38,5 @@
                $(INSTALL_DATA) $$d$$i $(DESTDIR)$(man5dir) ; \
        done
+       $(mkinstalldirs) $(DESTDIR)$(docdir)/
 ifeq (@USE_SGML_DOC@, true)
        $(mkinstalldirs) $(DESTDIR)$(docdir)/internals/


TIA,
-- 
Piotr Roszatycki, Netia Telekom S.A.                    .''`.
mailto:Piotr_Roszatycki@netia.net.pl                   : :' :
mailto:dexter@debian.org                               `. `'
                                                         `-



Reply to: