• Few questions about updating the dia package

    From Philippe SWARTVAGHER@21:1/5 to All on Thu May 26 23:40:01 2022
    Hello,

    I'm trying to adopt and update the dia package, as my first contribution
    to Debian packaging.

    I managed to update the package to the current upstream version (not the easiest thing: the project moved from autotools to meson since the last
    package update) and fix some lintian issues.

    I think the package is almost ready for upload, but I have the following warnings when I build the package, and I don't know how to fix them:


    - dpkg-shlibdeps: warning: can't extract name and version from library
    name 'libdia.so'

    dia builds a shared library libdia.so, to be used only by the dia
    binary. By default meson installs it in /usr/lib/x86_64-linux-gnu/, but
    lintian isn't happy about it (wrong library name, ldconfig isn't called,
    etc). If I understand correctly, since libdia.so is not meant to be used
    by other software, it has to go /usr/lib/x86_64-linux-gnu/dia/, and
    that's how it's done with the dia package currently in Debian
    repositories. I had to patch the meson scripts and adjust some rpath
    settings to make it work, but now I have this warning...


    - W: dia source: debian-rules-sets-DEB_BUILD_OPTIONS (line 10)

    Parallel builds may cause a build error with dia (a header file isn't
    found). To disable parallel builds, I added in d/rules:

    export DEB_BUILD_OPTIONS = parallel=1

    lintian says I should rename DEB_BUILD_OPTIONS to
    DEB_BUILD_MAINT_OPTIONS, but when I add parallel=1 to
    DEB_BUILD_MAINT_OPTIONS, the parallel=1 instruction is ignored...


    - W: dia-dbgsym: elf-error In program headers: Unable to find program interpreter name [usr/lib/debug/.build-id/82/7909d9da4f9c6253d5235a76b6fe4513c8ebf7.debug]

    I don't even know how to start investigating on this warning since the mentioned file doesn't exist once the package is built...


    Can you give me some hints?


    I use the following Git repository for the package: https://salsa.debian.org/phsw/dia (btw shouldn't it go under the debian namespace instead of mine?). Any review of the package is welcome! :)


    Philippe.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andrey Rahmatullin@21:1/5 to Philippe SWARTVAGHER on Fri May 27 06:50:01 2022
    On Thu, May 26, 2022 at 11:31:22PM +0200, Philippe SWARTVAGHER wrote:
    - dpkg-shlibdeps: warning: can't extract name and version from library
    name 'libdia.so'
    I think you can ignore these.

    - W: dia source: debian-rules-sets-DEB_BUILD_OPTIONS (line 10)

    Parallel builds may cause a build error with dia (a header file isn't
    found). To disable parallel builds, I added in d/rules:

    export DEB_BUILD_OPTIONS = parallel=1

    lintian says I should rename DEB_BUILD_OPTIONS to
    DEB_BUILD_MAINT_OPTIONS, but when I add parallel=1 to DEB_BUILD_MAINT_OPTIONS, the parallel=1 instruction is ignored...
    You should pass --no-parallel to dh(1) instead.

    - W: dia-dbgsym: elf-error In program headers: Unable to find program interpreter name [usr/lib/debug/.build-id/82/7909d9da4f9c6253d5235a76b6fe4513c8ebf7.debug]

    I don't even know how to start investigating on this warning since the mentioned file doesn't exist once the package is built...
    This is a lintian false positive.

    --
    WBR, wRAR

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

    iQJhBAABCgBLFiEEolIP6gqGcKZh3YxVM2L3AxpJkuEFAmKQWFgtFIAAAAAAFQAP cGthLWFkZHJlc3NAZ251cGcub3Jnd3JhckBkZWJpYW4ub3JnAAoJEDNi9wMaSZLh 4acP/3ivilMZW73TQIA/1Qz0AwZhM6d21tSXguZxXuFKR6u8et43n2BiRGrqFL8E mFllywxhWqWtL5K9OGmIo31lNcacp7BO29BVsWkVI7R7ksJ+skW7biO/1IT32QyD 8/E0KiVmeT4cMTebaDOAkHQvJNJKYefWykTKZ9tUWn+I12Ol/OV9CNVR9guxiia4 bm8XkgWWIES2rUF0F3PAo/m1p/lnDT2rk6Ykd9nMAKQNHzIgbeqSWWkrOtXgJvwl TA2PpexPKYDgiBXSZcCr7/7Spv9+O3c8ChGUbUveHiZwW2lJ2Gfjyve9tUkr9ht0 p+/v7oV3RLzhPCVqmJvkeeMsPLZqHKelux+FcwJnxTHCQdGLhkChDHBblN9vVfiQ NSbfwiI5Se39X8zXUcF0U+ahGVObfAJ+gX1AC7RTVDeH4ckrnc4E4SrtOKKmHFjB pIz5Sboc9nWy7BwQjo85Ok0+f4Dt2R3mLC/9NHhCBGYNIhbJ5lDfkkn1TbJWrkh7 0ILgQTnKczmngWcKhQ8m561HXP4EHqcLpTBxcgCQMzLWiZe5hSBpK+cM6w3oeBZM SPsbrIBaWSCRgiiGkcaXcnDVSvis8iu4ooztDsKRhM5gkz2ZhitdRscYroufLtgW RiOkI/ogMGeLFg8ov/US55aZUYV6zBl3rBz/llg559eHJqOM
    =HV4S
    -----END PGP SIGNATURE-----

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