[debhelper-devel] Bug#35733: #35744: /usr/bin/dh_strip: indeed additional cmdline option for additional suffixes to recognize would be awesome

Tzafrir Cohen tzafrir at debian.org
Fri Jul 25 05:40:06 UTC 2014


On Mon, Dec 20, 2010 at 01:43:14PM -0500, Yaroslav Halchenko wrote:

> I am talking about .mex and .oct files.  Since I am removing exectuable bits
> from them during installation (during dh_fixperms which comes before dh_strip),
> dh_strip does not find them as exectuables, neither as dynamic libraries due to
> extension mismatch.
> 
> Hardcoding of those in addition to already existing cmxs for Ocaml does the
> trick, i.e.:
> 
>     if (m/.*\.(so.*?|cmxs$|mex$|oct$)/) {
> 
> but may be addition of some -I, --include rule for manual extending of
> list of known extensions would be a better solution.

Attached a patch to do that: --add-exten <extension>. It can only add a
single extension but this seems good enough for my package.

Note that using a regex is not trivial as dh_strip uses perl matching
and dh_shlibdeps uses find(1).

I chose not to handle dh_shlibdeps as it did not seem necessary (also
note the lack of cmxs there.

But is already tagged with "patch" though from what I understand, the
patch is the one from https://bugs.debian.org/204633 and IMHO it is not
useful.

-- 
Tzafrir Cohen         | tzafrir at jabber.org | VIM is
http://tzafrir.org.il |                    | a Mutt's
tzafrir at cohens.org.il |                    |  best
tzafrir at debian.org    |                    | friend
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-extra-extensions-for-dh_strip-and-dh_shlibdeps.patch
Type: text/x-diff
Size: 3930 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/debhelper-devel/attachments/20140725/2fb6b234/attachment-0001.patch>


More information about the debhelper-devel mailing list