[debhelper-devel] Bug#875780: /usr/bin/dh_strip: dh_strip: perl -B incorrectly filters out some files

Ximin Luo infinity0 at debian.org
Thu Sep 14 13:15:00 UTC 2017


Ximin Luo:
> ----
> $ xxd debian/libstd-rust-dev/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-b6402de156fe6ac9.rlib | head -n16
> 00000000: 213c 6172 6368 3e0a 2f20 2020 2020 2020  !<arch>./       
> 00000010: 2020 2020 2020 2020 3020 2020 2020 2020          0       
> 00000020: 2020 2020 3020 2020 2020 3020 2020 2020      0     0     
> 00000030: 3020 2020 2020 2020 3132 3037 3634 2020  0       120764  
> [,,]

Test cases are attached - the first 512 bytes of libstd.rlib and libcore.rlib respectively.

$ perl -e 'print((-B "libstd.head") ? "yes\n" : "no\n");'
no
$ perl -e 'print((-B "libcore.head") ? "yes\n" : "no\n");'
yes

More info here: https://eli.thegreenplace.net/2011/10/19/perls-guess-if-file-is-text-or-binary-implemented-in-python

X

-- 
GPG: ed25519/56034877E1F87C35
GPG: rsa4096/1318EFAC5FBBDBCE
https://github.com/infinity0/pubkeys.git
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libcore.head
Type: application/octet-stream
Size: 512 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/debhelper-devel/attachments/20170914/95eabbaa/attachment-0006.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libstd.head
Type: application/octet-stream
Size: 512 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/debhelper-devel/attachments/20170914/95eabbaa/attachment-0007.obj>


More information about the debhelper-devel mailing list