• Re: Help to package the jimtcl

    From Andrey Rahmatullin@21:1/5 to Bo YU on Tue Mar 22 08:10:01 2022
    On Tue, Mar 22, 2022 at 02:50:48PM +0800, Bo YU wrote:
    vimer@debian:~/git/jimtcl$ sudo dpkg-gensymbols -pjimtcl0.79 > symbols.diff dpkg-gensymbols: warning: new libraries appeared in the symbols file: libjim.so.0.81
    dpkg-gensymbols: warning: some libraries disappeared in the symbols file: libjim.so.0.79
    If the SONAME was changed, the old symbols file should be dropped and a
    new one generated from scratch.
    Also you don't need sudo here.

    Special diff file is here: https://paste.debian.net/1235207/
    The first line of the new file suggests the library is now in the
    jimtcl0.79 package. It should be in libjim0.81.

    And there are any chance to use `dpkg-gensymbols` with sbuild?
    It's used by default and a diff is printed.

    --
    WBR, wRAR

    -----BEGIN PGP SIGNATURE-----

    iQJhBAABCgBLFiEEolIP6gqGcKZh3YxVM2L3AxpJkuEFAmI5c/ctFIAAAAAAFQAP cGthLWFkZHJlc3NAZ251cGcub3Jnd3JhckBkZWJpYW4ub3JnAAoJEDNi9wMaSZLh bh4P+gKA5TAB4AdxfIOsI32MC4h0PBzHWYFUea5zCf7XAmupqAjNInCt1YiZaBxb xqneCKo4PS3aaCsZyqTVatp9QV3JZiPuyGqCeGrZJ9CeGew2RtP4IOH/OHIlFdfY JuV5j6isjplieTpHilO0uHZArUWiX7hwl0QVuxG/Ng/04W2igL9W77qqKG7e5nOr FojfW3zYyveTaBVu8MP8Nc6i37x5cw9xvnwRrXHtHacKizrVFq+edzX919f09/CB XjjoEal/MzTEnNBHwvYdVz3OUVhZ89Re8EyLlYvBW0bbKibP1ZNbhBsBxcah4YRJ ZHtNEqdERcIGn3WXCycf1ksYrwMxmTGR49ikgHlzJac4VjuQqNVkdWyoQVkGUOk7 /xzZOQVZHzEesHk0oQkteMSmEL9qwD8wQtkQ/yOsQxBPWsDKU+IV8YPF9TG5LoVH MiUmt2vEoHdvapf5PPWtaPfhKzmV8ej36fviXLz5XGVoGPai+cZjUxffDiZWTXS9 ruw3IVgum6+N/kghn3Zl2NLCYK/Ma+bTvbLW/7N1IxxxrXMPMyoh6jnP5mbMCG3T z2i016kQVmAiD9Hhz6RdswTJ9Yj+fknZmX61Cv3lYqTs0y7gFHp2r8+M+kGAJoof 3PFt8B79ZazEhlspAFl0UfDA802aWFP9T5En6f+b0tEp86BB
    =OSW6
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Bo YU@21:1/5 to All on Tue Mar 22 08:00:02 2022
    Hi,

    When I try package jimtcl[0], there is one problem stop me still.

    I have updated the package from 0.79 to 0.81 with gbp workflow and
    can build 0.81 jim*.deb.

    The d/jim0.79.symbols file usually it corresponds to the first version
    of that package that provided the symbol. And how can I update it
    into jimtcl0.81.symbols? I mead I have read [1]&[2] those matirals.
    But I can not get such diff:

    ```
    dpkg-gensymbols: warning: some new symbols appeared in the symbols file: ...
    see diff output below
    --- debian/libfoo1.symbols (libfoo1_1.3-1_amd64)
    +++ dpkg-gensymbolsFE5gzx 2012-11-11 02:24:53.609667389 +0900
    @@ -127,6 +127,7 @@
    foo_get_name@Base 1.1
    foo_get_longname@Base 1.2
    foo_get_type@Base 1.1
    + foo_get_longtype@Base 1.3-1
    foo_get_symbol@Base 1.1
    foo_get_rank@Base 1.1
    foo_new@Base 1.1
    ```

    I got:

    ```
    vimer@debian:~/git/jimtcl$ sudo dpkg-gensymbols -pjimtcl0.79 > symbols.diff dpkg-gensymbols: warning: new libraries appeared in the symbols file: libjim.so.0.81
    dpkg-gensymbols: warning: some libraries disappeared in the symbols file: libjim.so.0.79
    dpkg-gensymbols: warning: debian/tmp/DEBIAN/symbols doesn't match completely debian/symbols
    ```

    Special diff file is here: https://paste.debian.net/1235207/

    Yes. New symbols file contains all symbols from version 0.81

    And there are any chance to use `dpkg-gensymbols` with sbuild?

    Thabk you,

    BR,
    Bo


    [0]: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=993599
    [1]: https://www.debian.org/doc/manuals/maint-guide/advanced.en.html
    [2]: https://www.netfort.gr.jp/~dancer/column/libpkg-guide/libpkg-guide.html

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andrey Rahmatullin@21:1/5 to Bo YU on Tue Mar 22 09:40:01 2022
    On Tue, Mar 22, 2022 at 04:32:32PM +0800, Bo YU wrote:
    vimer@debian:~/git/jimtcl$ sudo dpkg-gensymbols -pjimtcl0.79 > symbols.diff
    dpkg-gensymbols: warning: new libraries appeared in the symbols file: libjim.so.0.81
    dpkg-gensymbols: warning: some libraries disappeared in the symbols file: libjim.so.0.79
    If the SONAME was changed, the old symbols file should be dropped and a
    new one generated from scratch.
    Also you don't need sudo here.
    I am sure the libjimtcl SONAME from 0.79 change to 0.81. And the old symbols file should be removed also.

    But how to generate one new file from scratch?
    dpkg-gensymbols

    [0]: https://salsa.debian.org/vimerbf-guest/jimtcl/-/commit/f9e050fd1bc71192c3e37d04a8e830dc826fdc71#21078f6fededf24bfff78a1c7b9faa8297d896b7
    It doesn't make sense to specify versions older than the first version
    with this soname.

    --
    WBR, wRAR

    -----BEGIN PGP SIGNATURE-----

    iQJhBAABCgBLFiEEolIP6gqGcKZh3YxVM2L3AxpJkuEFAmI5inktFIAAAAAAFQAP cGthLWFkZHJlc3NAZ251cGcub3Jnd3JhckBkZWJpYW4ub3JnAAoJEDNi9wMaSZLh w64P/2P4FUpoO3yXP6a1Isqb1a7vO6ByktrDgK67TdAKPqdCrdOzQ1FNppVKdTDz QygJo1KVNc4Nwu7/PAan9lJowLuX3QF4qkya7SSf/6vCXddQT58epGk6DivNjMrl HzbwDZrFXpga5R8/AqWU/h3/IUQn6eomumd+ho/ABJTYv8NK/kpcz965bGm8Xcsj u4unfGldrsJmGDrr8Y1UIaGe88EPxkvtJuhybWV+q7qUuYkOVvrpcWct6jT1ofXL EkyuWWoXz4cw6N9fgWu4baYmi56pgKNxImpKQtWwXzJ73FtqrsBn7RTrPCZHIYvg ovMfaWASQYmVloDcyGHiQ/sMeEFFAalKpbd5BRnytdXwZ5uMQ6YzvLkYrM25exKK zmgTJX/pe7oKHY4SpYdeSBuGVFXjvJSvczpdGsZfJ+LaLRjE1B7Lv5mSHp/OHwb6 xV1o7+7EbRdK6/aw34eYj/3lLoL5YtjWdFyMCG+IT6SopNjOQsONXSKvZ/CxVg7S 8odtPuF8LSGyuIMFfI7L6WvFiPqRJ1rsAwobX8ExIzsbsX12vSKuRNg9ghdjwq/n WnTRWqTR6G9Ba4+vzxYLOwEj7yuglyXWRGAypVBduVUTBDxbwl/yflLTZabbDhXo C6qaII2965tAWYUbErISKROhPHSjIcSOizmimTf7MfoRiUgt
    =T4He
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Bo YU@21:1/5 to Andrey Rahmatullin on Tue Mar 22 11:40:01 2022
    On Tue, Mar 22, 2022 at 01:36:18PM +0500, Andrey Rahmatullin wrote:
    On Tue, Mar 22, 2022 at 04:32:32PM +0800, Bo YU wrote:
    vimer@debian:~/git/jimtcl$ sudo dpkg-gensymbols -pjimtcl0.79 > symbols.diff
    dpkg-gensymbols: warning: new libraries appeared in the symbols file: libjim.so.0.81
    dpkg-gensymbols: warning: some libraries disappeared in the symbols file: libjim.so.0.79
    If the SONAME was changed, the old symbols file should be dropped and a
    new one generated from scratch.
    Also you don't need sudo here.
    I am sure the libjimtcl SONAME from 0.79 change to 0.81. And the old symbols >> file should be removed also.

    But how to generate one new file from scratch?
    dpkg-gensymbols

    [0]: https://salsa.debian.org/vimerbf-guest/jimtcl/-/commit/f9e050fd1bc71192c3e37d04a8e830dc826fdc71#21078f6fededf24bfff78a1c7b9faa8297d896b7
    It doesn't make sense to specify versions older than the first version
    with this soname.
    My work is reproduced as below:

    sudo dpkg-deb -x libjim0.81_0.81+dfsg0-1_amd64.deb /tmp/jimctl
    sudo dpkg-gensymbols -v0.81 -plibjim -P/tmp/jimctl/ -Olibjim.symbols # sudo :-(

    Then, drop the version string from libjim.symbols and old libjim0.79.symbols:

    cat libjim.symbols | awk '{print $1}' > libjim0.81.txt
    cat libjim0.79.symbols | awk '{print $1}' > libjim0.79.txt

    diff libjim0.81.txt libjim0.79.txt

    And the last result is +13 and -5 symbols entiries applied for libjim0.81.symbols,
    that is moved from libjim0.79.symbols by manual.

    Is that OK?



    --
    WBR, wRAR

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)