• Bug#851895: gmp: Please update symbols for sh3

    From John Paul Adrian Glaubitz@21:1/5 to All on Thu Jan 19 18:00:01 2017
    XPost: linux.debian.bugs.dist

    This is a multi-part MIME message sent by reportbug.


    Source: gmp
    Version: 2:6.1.2+dfsg-1
    Severity: normal
    Tags: patch
    User: helmutg@debian.org
    Usertags: rebootstrap

    Hi!

    We're currently adding sh3 as a new architecture to rebootstrap which
    allows to cross-bootstrap Debian for architectures. sh3 is an older architecture which is currently being redesigned as an open source
    CPU with the name J-Core.

    While cross-bootstrapping, the build stopped because the symbols for
    gmp need to be updated for sh3. This can be trivially achieved by
    globally replacing "!sh4" with "!sh3 !sh4" in libgmp10.symbols:

    $ sed -i 's/!sh4/!sh3 !sh4/g' debian/libgmp10.symbols

    But it's also possible just to apply the attached debdiff.

    Thanks,
    Adrian

    --
    .''`. John Paul Adrian Glaubitz
    : :' : Debian Developer - glaubitz@debian.org
    `. `' Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
    `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913

    diff -Nru a/gmp-6.1.2+dfsg/debian/libgmp10.symbols b/gmp-6.1.2+dfsg/debian/libgmp10.symbols
    --- a/gmp-6.1.2+dfsg/debian/libgmp10.symbols 2015-11-17 12:07:24.000000000 +0100
    +++ b/gmp-6.1.2+dfsg/debian/libgmp10.symbols 2017-01-19 17:15:34.296930214 +0100
    @@ -215,7 +215,7 @@
    (arch=any-i386)__gmpn_add_n_pentium@Base 2:5.1.1
    __gmpn_add_n_sub_n@Base 2:5.1.1
    (arch=any-i386)__gmpn_add_n_x86@Base 2:5.1.1
    - (arch=!hppa !mips !mipsel !m68k !s390x !sh4 !sparc !sparc64 !any-i386)__gmpn_add_nc@Base 0
    + (arch=!hppa !mips !mipsel !m68k !s390x !sh3 !sh4 !sparc !sparc64 !any-i386)__gmpn_add_nc@Base 0
    (arch=any-i386)__gmpn_add_nc_atom@Base 2:5.1.1
    (arch=any-i386)__gmpn_add_nc_k6@Base 2:5.1.1
    (arch=any-i386)__gmpn_add_nc_k7@Base 2:5.1.1
    @@ -224,9 +224,9 @@
    (arch=any-i386)__gmpn_add_nc_pentium@Base 2:5.1.1
    (arch=any-i386)__gmpn_add_nc_x86@Base 2:5.1.1
    (arch=any-amd64)__gmpn_addaddmul_1msb0@Base 0
    - (arch=!arm64 !hppa !mips !mipsel !mips64 !mips64el !m68k !sparc !sparc64 !sh4)__gmpn_addlsh1_n@Base 0
    + (arch=!arm64 !hppa !mips !mipsel !mips64 !mips64el !m68k !sparc !sparc64 !sh3 !sh4)__g