On Thu 10 Jun 2010 12:49, daniel wilms <daniel.wi...@nokia.com> writes:

> Hi,
>
> ext Daniil Ivanov wrote:
>> Hi Daniel!
>
>>    Moreover, if you put binary to /opt on MADDE dpkg-buildpackage will
>> fail to set
>>    execution bit to your binary (I hope it will be fixed soon).
>>
>
> This is what I said. It is fixed already (this morning ;) ) and should
> be in the next release.

In the meantime, not too hard to fix oneself (voids your warranty ;):

diff --git a/src/debtools/dh_fixperms b/src/debtools/dh_fixperms
index 7ab859c..79f3865 100755
--- a/src/debtools/dh_fixperms
+++ b/src/debtools/dh_fixperms
@@ -48,8 +48,8 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
                }
 
                # Programs in the bin and init.d dirs should be
                  executable..
-               if (m,^usr/bin/, || m,^bin/, || m,^usr/sbin/, || m,^sbin/,
-                       || m,^usr/games/, || m|^etc/init.d/| ) {
+               if (m,(^|/)bin/, || m,(^|/)sbin/, 
+                       || m,(^|/)usr/games/, || m,(^|/)etc/init.d/, ) {
                        tlline '755', "$_  $src";
                        next;
                }
@@ -57,7 +57,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
                # FIXME: usr/share/doc/**/examples !!! ??? (see original)
 
                # ADA ali files should be mode 444 to avoid recompilation
-               if (m,^usr/lib/ada/,) {
+               if (m,(^|/)usr/lib/ada/,) {
                        tlline '444', "$_  $src";
                        next;
                }
>
> Daniel
>

Tomi
_______________________________________________
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers

Reply via email to