Package: googleearth-package
Version: 0.4.3
Followup-For: Bug #458050

dpkg-shlibdeps has changed. without a debian/control file it won't work
anymore and the generated Depends: line for control file is (nearly)
empty and dpkg-deb aborts with an error.

The attached patch fixes this (quick and dirty) with generating a
temporary control file:

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.23.1-nias (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash

Versions of packages googleearth-package depends on:
ii  bzip2                         1.0.4-2    high-quality block-sorting file co
ii  curl                          7.17.1-1   Get a file from an HTTP, HTTPS or 
ii  dpkg-dev                      1.14.14    package building tools for Debian
ii  fakeroot                      1.9        Gives a fake root environment
ii  file                          4.21-4     Determines file type using "magic"
ii  wget                          1.10.2-3   retrieves files from the web
ii  x11-common                    1:7.3+10   X Window System (X.Org) infrastruc

googleearth-package recommends no packages.

-- no debconf information
--- make-googleearth-package
+++ make-googleearth-package    2008-01-10 14:11:22.258454530 +0100
@@ -265,10 +265,27 @@
   local sonames=$(for elf in $elfs; do objdump -p "$elf" | awk '$1 == "SONAME" 
&& $2 !~ /^\.\// {print $2}'; done)
   for soname in $sonames; do sed -e 's/\.so\./ /' <<< "$soname"; done > 
shlibs.local
 
+#new dpkg-shlibdeps needs debian/control, give him a temporary one
+  mkdir debian
+  cat <<EOF >debian/control
+Source: googleearth-src
+
+Package: googleearth
+Version: ${GoogleEarth_VERSION}+${GoogleEarth_Package_VERSION}-1
+Section: non-free/science
+Priority: optional
+Maintainer: $OPT_FULLNAME <${OPT_EMAIL}>
+Architecture: $(dpkg-architecture -qDEB_BUILD_ARCH)
+Depends: ttf-dejavu | ttf-bitstream-vera | msttcorefonts, $depends $ia32libs
+Description: Google Earth, a 3D map/planet viewer
+ Package built with googleearth-package.
+EOF
   local deps=$(for elf in $elfs; do dpkg-shlibdeps -O -Lshlibs.local "$elf" | 
sed -e 's/^shlibs:Depends=//' -e 's/, /\n/g'; done | sort -u)
   local depends=$(while read dep; do echo -n "$dep, "; done <<< "$deps" | sed 
's/, $//')
 
   rm shlibs.local
+  rm debian/control
+  rmdir debian
   
   if [ "$(dpkg-architecture -qDEB_BUILD_ARCH)" != "i386" ]; then
     ia32libs=", ia32-libs"

Reply via email to