On Wed, Aug 13, 2008 at 03:58:20AM +0200, Aurelien Jarno wrote:
> Package: debhelper
> Version: 7.0.16
> Severity: wishlist
> Tags: patch
> 
> A nice feature of dh_install (actually apply to whole debhelper), is to
> be able to use install.$arch files. It would be nice to extend this to
> install.$os. This would avoid creating install.kfreebsd-i386 and
> install.kfreebsd-amd64 files, by using a simple install.kfreebsd.

Any news on this bug? With the integration of GNU/kFreeBSD into the
archive, that's a feature that would be really useful.

> A simple patch is included below.
> 
> --- a/debhelper-7.0.16/Debian/Debhelper/Dh_Lib.pm
> +++ b/debhelper-7.0.16/Debian/Debhelper/Dh_Lib.pm
> @@ -342,6 +342,7 @@
>       }
>       
>       my @try=("debian/$package.$filename.".buildarch(),
> +              "debian/$package.$filename.".buildos(),
>                "debian/$package.$filename");
>       if ($package eq $dh{MAINPACKAGE}) {
>               push @try, "debian/$filename";
> @@ -595,6 +596,19 @@
>       }
>  }
>  
> +# Returns the build OS. (Memoized)
> +{
> +     my $os;
> +     
> +     sub buildos {
> +             return $os if defined $os;
> +
> +             $os=`dpkg-architecture -qDEB_HOST_ARCH_OS 2>/dev/null` || 
> error("dpkg-architecture failed");
> +             chomp $os;
> +             return $os;
> +     }
> +}
> +
>  # Passed an arch and a list of arches to match against, returns true if 
> matched
>  sub samearch {
>       my $arch=shift;
> 
> --Information:
> Debian Release: lenny/sid
>   APT prefers unstable
>   APT policy: (500, 'unstable')
> Architecture: amd64 (x86_64)
> 
> Kernel: Linux 2.6.26-1-amd64 (SMP w/2 CPU cores)
> Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/bash
> 
> Versions of packages debhelper depends on:
> ii  binutils            2.18.1~cvs20080103-7 The GNU assembler, linker and 
> bina
> ii  dpkg-dev            1.14.20              Debian package development tools
> ii  file                4.25-1               Determines file type using 
> "magic"
> ii  html2text           1.3.2a-5             advanced HTML to text converter
> ii  man-db              2.5.2-2              on-line manual pager
> ii  perl                5.10.0-13            Larry Wall's Practical 
> Extraction 
> ii  po-debconf          1.0.15               manage translated Debconf 
> template
> 
> debhelper recommends no packages.
> 
> Versions of packages debhelper suggests:
> ii  dh-make                       0.46       tool that converts source 
> archives
> 
> -- no debconf information
> 
> 
> 

-- 
Aurelien Jarno                          GPG: 1024D/F1BCDB73
[email protected]                 http://www.aurel32.net



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to