• dh_install -X not excluding any files

    From John Paul Adrian Glaubitz@21:1/5 to All on Tue Sep 14 16:40:02 2021
    (Please CC in replies me as I'm not subscribed to debian-devel)

    Hello!

    I'm currently working on packaging KIWI [1] for Debian where I need to exclude on of the binaries from being installed into /usr/bin.

    I tried using "dh_install -Xkiwicompat" [2] but that doesn't work no matter what
    variation I'm trying, the binary kiwicompat still gets installed into /usr/bin.

    Does anyone have a clue why excluding "kiwicompat" doesn't work?

    Thanks,
    Adrian

    [1] https://github.com/OSInside/kiwi
    [2] https://github.com/glaubitz/kiwi-debian/blob/master/debian/rules#L25

    --
    .''`. 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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andreas Metzler@21:1/5 to glaubitz@physik.fu-berlin.de on Tue Sep 14 19:00:02 2021
    On 2021-09-14 John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de> wrote:
    I'm currently working on packaging KIWI [1] for Debian where I need to exclude on of the binaries from being installed into /usr/bin.

    I tried using "dh_install -Xkiwicompat" [2] but that doesn't work no
    matter what variation I'm trying, the binary kiwicompat still gets
    installed into /usr/bin.

    Does anyone have a clue why excluding "kiwicompat" doesn't work?

    Hello,

    It is not installed by dh_install:
    | dh_auto_install
    | [...]
    | running install_scripts
    | Installing kiwi-ng script to /dev/shm/KIW/kiwi-debian/debian/kiwi/usr/bin
    | Installing kiwicompat script to /dev/shm/KIW/kiwi-debian/debian/kiwi/usr/bin | make[1]: Leaving directory '/dev/shm/KIW/kiwi-debian'
    | debian/rules override_dh_install
    | make[1]: Entering directory '/dev/shm/KIW/kiwi-debian'
    | dh_install -Xkiwicompat

    Since there is only a single binary package dh_auto_install installs
    directly to debian/kiwi/
    (sid)ametzler@argenau:/dev/shm/KIW/kiwi-debian$ dh_auto_install --no-act --verbo
    se
    make -j1 install DESTDIR=/dev/shm/KIW/kiwi-debian/debian/kiwi AM_UPDATE_INFO_DIR=no "INSTALL=install --strip-program=true"

    Since you are already overriding dh_auto_install you could simply rm the offending file there.

    cu Andreas

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Boian Bonev@21:1/5 to John Paul Adrian Glaubitz on Tue Sep 14 19:00:03 2021
    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA512

    Hi,

    On Tue, 2021-09-14 at 16:36 +0200, John Paul Adrian Glaubitz wrote:
    I'm currently working on packaging KIWI [1] for Debian where I need
    to exclude
    on of the binaries from being installed into /usr/bin.

    I tried using "dh_install -Xkiwicompat" [2] but that doesn't work no
    matter what
    variation I'm trying, the binary kiwicompat still gets installed into /usr/bin.

    You mean installed in debian/tmp during build or in the final package?
    I think that adding a debian/not-installed with usr/bin/kiwicompat
    would do the trick?

    With best regards,
    b.
    -----BEGIN PGP SIGNATURE-----

    iQIzBAEBCgAdFiEEumC8IPN+WURNbSUAE2VyCRPS8i0FAmFA0e8ACgkQE2VyCRPS 8i1PHA//fewiAb5SF9icTKYGmpp3FSq9YgZPOnIHwswVGI6V4pulpAf9FjrI80lB 2xxmOzAPXSY4SxY1EOY8f6gcrfDeohOxPuEGf1CNQ0klvB0fEk1tYa3tbxlixE1v 81zW6TT0pBcqHSZPbn62YznOxURJh76HM5B5EzfgSOtJiakg29QutWmjWNQDVBxc y3lT/k3N0MkY0niqCoyq9JcrMXvWV7Q9+gxbVNSxUNeXPu2hL3NzCLiqE2mUuRHD pNuwC6APrRq6bJGL8Ri6bgV4qby8UJc4NzGRD/kGcS8plk4pjp2Z4a4AdN1g9IVr vx7msD5rTgzD8rW/cxKEGJy5DZ43GKxzsfW0rfxmfwgcoK+6Ls3nRWxxb29/0b0k 7KGGHXG6uWWD9A9SddV5jjedT7cnJOvgfQ8+n7joTDiAFh9GIP4j6QhMqNN35Qv2 YY4luxLCJnBCTqrrWI+cCoIg2Yla98Y9Tk6H7TtCRzWWBS9LQ0cpOFMGU0yOwY2o qrMI3gF4/VliTJJ2iq4TQDVEn6h0MNNzCKnWSiBvRE0IxEk4r2NeavpnrTD1tv2m 0GASIwpTAVR6wKIGg2mJezYHwz7hjoKz1mJUddqTMSgixzpKhN2U7pQTbobro2en Ir3O0yHF2v3GM4l5+nxg7MTEOB9hnAYaFXzOoX0r0N3s3/Qlp3A=
    =Lb6k
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From John Paul Adrian Glaubitz@21:1/5 to Boian Bonev on Wed Sep 15 10:00:01 2021
    Hi Boian

    On 9/14/21 18:46, Boian Bonev wrote:> Hi,
    I tried using "dh_install -Xkiwicompat" [2] but that doesn't work no
    matter what
    variation I'm trying, the binary kiwicompat still gets installed into
    /usr/bin.

    You mean installed in debian/tmp during build or in the final package?
    I think that adding a debian/not-installed with usr/bin/kiwicompat
    would do the trick?

    Thanks for the hint but unfortunately that doesn't work and according to
    the manpage of dh_missing it cannot work as this file is not intended
    for excluding files. [1]

    I guess, I just have to delete the files manually.

    Adrian

    [1] https://man7.org/linux/man-pages/man1/dh_missing.1.html

    --
    .''`. 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

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