Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[dev.icinga.com #7913] /usr/lib/icinga2 is not owned by a package #2368

Closed
icinga-migration opened this issue Dec 1, 2014 · 4 comments
Closed
Labels
area/setup Installation, systemd, sample files bug Something isn't working
Milestone

Comments

@icinga-migration
Copy link

This issue has been migrated from Redmine: https://dev.icinga.com/issues/7913

Created by theh on 2014-12-01 18:29:21 +00:00

Assignee: theh
Status: Resolved (closed on 2014-12-02 07:40:02 +00:00)
Target Version: 2.2.2
Last Update: 2014-12-02 08:03:21 +00:00 (in Redmine)

Icinga Version: 2.2.1

The directory "/usr/lib/icinga2" is not owned by the common package.

Besides that /usr/lib/icinga2/prepare-dirs has a static path, I would replace it by "%{_libexecdir}" and specify it in the header with "define _libexecdir{_prefix}/lib/".

Changesets

2014-12-01 18:53:11 +00:00 by theh 2615425

Use _libexecdir instead of static path

Instead of the static file path /usr/lib/icinga2/ the macro _libexecdir
is used, which is defined at the beginning.

refs #7913

2014-12-01 18:54:41 +00:00 by theh 1984170

Add missing /usr/lib/icinga2 directory to rpm spec

Make sure that the _libexec directory is part of the rpm package
"common".

refs #7913

2014-12-02 07:32:21 +00:00 by gbeutner 01f8706

Merge remote-tracking branch 'origin/fix/usr-lib-icinga2_is_not_owned_by_a_package-7913'

fixes #7913

2014-12-02 07:34:52 +00:00 by theh c62cd28

Use _libexecdir instead of static path

Instead of the static file path /usr/lib/icinga2/ the macro _libexecdir
is used, which is defined at the beginning.

refs #7913

2014-12-02 07:34:55 +00:00 by theh e479096

Add missing /usr/lib/icinga2 directory to rpm spec

Make sure that the _libexec directory is part of the rpm package
"common".

refs #7913

2014-12-02 16:48:51 +00:00 by theh 9b8398f

Exclude prepare-dirs from bin package

Prepare-dirs on i586 platforms ends up in the same directory as the the
other lib files so it would get automatically get included in the bin
package. To prevent this it is excluded like the libdb files.

refs #7913

2014-12-02 17:24:09 +00:00 by theh b0f7087

Exclude prepare-dirs from bin package

Prepare-dirs on i586 platforms ends up in the same directory as the the
other lib files so it would get automatically get included in the bin
package. To prevent this only "so" files are included in the bin
package from this directory.

refs #7913
@icinga-migration
Copy link
Author

Updated by tonychong on 2014-12-02 01:38:05 +00:00

Can you fix this for the ubuntu packages as well?

vagrant@vagrant-ubuntu-precise-64:~$ sudo apt-get install icinga2
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  icinga2-bin icinga2-common icinga2-doc libboost-program-options1.46.1 libboost-regex1.46.1 libboost-thread1.46.1 libicu48 libyajl1 nagios-plugins-basic
Suggested packages:
  nagios3
The following NEW packages will be installed:
  icinga2 icinga2-bin icinga2-common icinga2-doc libboost-program-options1.46.1 libboost-regex1.46.1 libboost-thread1.46.1 libicu48 libyajl1 nagios-plugins-basic
0 upgraded, 10 newly installed, 0 to remove and 39 not upgraded.
Need to get 13.2 MB of archives.
After this operation, 38.4 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://archive.ubuntu.com/ubuntu/ precise/main libyajl1 amd64 1.0.12-2 [17.5 kB]
Get:2 http://ppa.launchpad.net/formorer/icinga/ubuntu/ precise/main icinga2-common all 2.2.1-1~ppa1~precise1 [27.6 kB]
Get:3 http://archive.ubuntu.com/ubuntu/ precise/main libboost-program-options1.46.1 amd64 1.46.1-7ubuntu3 [146 kB]
Get:4 http://ppa.launchpad.net/formorer/icinga/ubuntu/ precise/main icinga2-bin amd64 2.2.1-1~ppa1~precise1 [3,475 kB]
Get:5 http://archive.ubuntu.com/ubuntu/ precise-updates/main libicu48 amd64 4.8.1.1-3ubuntu0.1 [8,105 kB]
Get:6 http://ppa.launchpad.net/formorer/icinga/ubuntu/ precise/main icinga2 amd64 2.2.1-1~ppa1~precise1 [9,154 B]
Get:7 http://ppa.launchpad.net/formorer/icinga/ubuntu/ precise/main icinga2-doc all 2.2.1-1~ppa1~precise1 [135 kB]
Get:8 http://archive.ubuntu.com/ubuntu/ precise/main libboost-regex1.46.1 amd64 1.46.1-7ubuntu3 [403 kB]
Get:9 http://archive.ubuntu.com/ubuntu/ precise/universe libboost-thread1.46.1 amd64 1.46.1-7ubuntu3 [39.5 kB]
Get:10 http://archive.ubuntu.com/ubuntu/ precise-updates/main nagios-plugins-basic amd64 1.4.15-5ubuntu3.2 [883 kB]
Fetched 13.2 MB in 6s (2,062 kB/s)
Selecting previously unselected package libyajl1.
(Reading database ... 81943 files and directories currently installed.)
Unpacking libyajl1 (from .../libyajl1_1.0.12-2_amd64.deb) ...
Selecting previously unselected package libboost-program-options1.46.1.
Unpacking libboost-program-options1.46.1 (from .../libboost-program-options1.46.1_1.46.1-7ubuntu3_amd64.deb) ...
Selecting previously unselected package libicu48.
Unpacking libicu48 (from .../libicu48_4.8.1.1-3ubuntu0.1_amd64.deb) ...
Selecting previously unselected package libboost-regex1.46.1.
Unpacking libboost-regex1.46.1 (from .../libboost-regex1.46.1_1.46.1-7ubuntu3_amd64.deb) ...
Selecting previously unselected package libboost-thread1.46.1.
Unpacking libboost-thread1.46.1 (from .../libboost-thread1.46.1_1.46.1-7ubuntu3_amd64.deb) ...
Selecting previously unselected package icinga2-common.
Unpacking icinga2-common (from .../icinga2-common_2.2.1-1~ppa1~precise1_all.deb) ...
Selecting previously unselected package icinga2-bin.
Unpacking icinga2-bin (from .../icinga2-bin_2.2.1-1~ppa1~precise1_amd64.deb) ...
dpkg: error processing /var/cache/apt/archives/icinga2-bin_2.2.1-1~ppa1~precise1_amd64.deb (--unpack):
 trying to overwrite '/usr/lib/icinga2/prepare-dirs', which is also in package icinga2-common 2.2.1-1~ppa1~precise1
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Selecting previously unselected package icinga2.
Unpacking icinga2 (from .../icinga2_2.2.1-1~ppa1~precise1_amd64.deb) ...
Selecting previously unselected package icinga2-doc.
Unpacking icinga2-doc (from .../icinga2-doc_2.2.1-1~ppa1~precise1_all.deb) ...
Selecting previously unselected package nagios-plugins-basic.
Unpacking nagios-plugins-basic (from .../nagios-plugins-basic_1.4.15-5ubuntu3.2_amd64.deb) ...
Processing triggers for ureadahead ...
Processing triggers for man-db ...
Errors were encountered while processing:
 /var/cache/apt/archives/icinga2-bin_2.2.1-1~ppa1~precise1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

@icinga-migration
Copy link
Author

Updated by gbeutner on 2014-12-02 07:33:46 +00:00

  • Target Version set to 2.2.2

@icinga-migration
Copy link
Author

Updated by gbeutner on 2014-12-02 07:40:02 +00:00

  • Status changed from New to Resolved
  • Done % changed from 0 to 100

Applied in changeset 01f8706.

@icinga-migration
Copy link
Author

Updated by gbeutner on 2014-12-02 08:03:21 +00:00

tonychong:

 shroud: http://paste.debian.net/134537/
 fixed and published

@icinga-migration icinga-migration added bug Something isn't working area/setup Installation, systemd, sample files labels Jan 17, 2017
@icinga-migration icinga-migration added this to the 2.2.2 milestone Jan 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/setup Installation, systemd, sample files bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant