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

Re: Getting dh_install to do what we need



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

On 08.12.2011 10:44, Goswin von Brederlow wrote:
> Or for the more general case:
> 
> override_dh_auto_install:
>     debian/libfoo.my-install-script
[..]

> This new feature stinks of black-box magic that will make people crazy
> trying to find/fix a prolem in somebody elses package. The thing that
> make cdbs so bad.


I beg to disagree. You made  very good example why the former (your)
approach was a black-box indeed, whereas the newer one in fact
standardizes things in parts.

See, in your case libfoo.my-install-script could be doing anything,
including but not limited to copying, moving, creating, changing a file
without any information on what's going on.
Now, by using that feature you are forced to generate a (dynamic) file
listing instead and everyone can execute that script and see the results
without /actually/ installing anything to a binary package.

Of course you could discuss whether executing scripts is necessarily a
better idea than having some semantically parsed *.install file magic
instead, but that's an implementation detail.
Up to now, you are all discussing why "chmod +x foo.install" is so much
worse than overriding dh_install by your own dark magic but you should
be realizing you just traded one black-box for another
not-so-black-but-still-very-dark-box.


- -- 
with kind regards,
Arno Töll
IRC: daemonkeeper on Freenode/OFTC
GnuPG Key-ID: 0x9D80F36D
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJO4I1WAAoJEMcrUe6dgPNtyWQQAMy6IsiNwKUT+iGhTa/XzL4i
Cfrr4hmOp/pxrVNrbAE7S+c4uljcDaYzWjx381SQNGD0YRFIM/yI8A5n0rmXxWCd
YP1jVgbmCRw8hI3DwJh+i2LaM7DwjtrgFu8V62AUzwVH66UsKolw4csPFPvkfZh4
CzLQdYYcQ5aMqUY4gVFfbl7e/Zvdxj8T/QB3eKgV7BgpRxpV/EcpgSPpicIdWRxW
96kafQIJnyPF7do8DR0XzEareNCfj9jfly6DeiHbvmxeVl+qNU0AwMqwztzdgbmc
dZfKr3RHKEX15jHwmKBWEcQ6dP2q9QiKteoKefRLNFPxBTBHG75tirrBGXuW673G
n9nh8masrKcKUCTbI6TO6+vNK8qe5nAECxoHhzhBx6EN99n8IVmytxarDhvU1imT
2bq1WubtNQ3dwCGWysYm9NjKMhgb5tHf+Ytd1q1UHbX0tbazAvWYUg4soduFpU9q
TMbuvNexXkw2EnBSm6s6cAYOdv99v+aFpEMoVniX+48yNo7t8qc93kFQqCOBhY3T
s3BDSAotA9gwQbVlC0SOf+QK44I+GnCnDiTeBVEPNJdVeAonyJl07JTkXdbr7TwB
BPwVSbgn2Ugz5V6XnmrUDMdUz1GeQ8HP7loU81KENqjuVrH+PWUI1ykjMltXfO4T
Clc/Sos/fuWuA/2PRDwZ
=Vfnx
-----END PGP SIGNATURE-----


Reply to: