Re: dh_install -X not excluding any files

2021-09-15 Thread John Paul Adrian Glaubitz
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 - glaub...@debian.org
`. `'   Freie Universitaet Berlin - glaub...@physik.fu-berlin.de
  `-GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913



Re: dh_install -X not excluding any files

2021-09-14 Thread Andreas Metzler
On 2021-09-14 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.

> 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



Re: dh_install -X not excluding any files

2021-09-14 Thread Boian Bonev
-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-



dh_install -X not excluding any files

2021-09-14 Thread John Paul Adrian Glaubitz
(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 - glaub...@debian.org
`. `'   Freie Universitaet Berlin - glaub...@physik.fu-berlin.de
  `-GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913