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

Re: conditional dh-install



> Hi there

Hello,

>  Once again I am struggling to make gdcm compile on some Arch. For
> instance on alpha, I am getting:
>
> https://buildd.debian.org/~luk/status/package.php?p=gdcm
>
> gdcm/alpha failing reason:
>
> [Category: none]
>
> > dh_install
> > --sourcedir=/build/buildd-gdcm_2.0.12-1-alpha-lrSEzc/gdcm-2.0.12/debian/t
> >mp --fail-missing cp: cannot stat
> > `/build/buildd-gdcm_2.0.12-1-alpha-lrSEzc/gdcm-2.0.12/debian/tmp/usr/lib/
> >gdcm-sharp.dll': No such file or directory dh_install: cp returned exit
> > code 1
> > make[1]: *** [binary-common] Error 1
> > make[1]: Leaving directory
> > `/build/buildd-gdcm_2.0.12-1-alpha-lrSEzc/gdcm-2.0.12'
>
> This is (according to debian-cli) because there is no mono on alpha.
> Thus I modified the debian/rules & debian/control to conditionally
> compile the cli
> binding of gdcm.
> As one can see the building part is going well (cmake does not
> generate the selected make rules associated with the CLI binding).
>
> However the dh_install part still try to install the
> cli binding, eventhought the debian/control file explicitly discard
> Alpha from the list of Arch.
>
>
> $ cat debian/control
> ...
> Package: libgdcm-cil
> Section: cli-mono
> Architecture: i386 lpia kfreebsd-i386 powerpc amd64 kfreebsd-amd64
> ia64 arm armeb armel sparc s390
> ...
>
>
> Why is dh_install still trying to install the libgdcm-cil.install
> stuff ? What do I need to do to skip it ?

Hm, you want to pass --same-arch which will make it act on packages that have 
the architecture list explicitly specified as well as on packages specified as 
arch:any.

(see SHARED DEBHELPER OPTIONS in debhelper(1))

-- 
pub 4096R/0E4BD0AB 2003-03-18 <people.fccf.net/danchev/key pgp.mit.edu>


Reply to: