| Summary: | rpm-helper/del-service errors when uninstalling package | ||
|---|---|---|---|
| Product: | Mageia | Reporter: | Barry Jackson <zen25000> |
| Component: | RPM Packages | Assignee: | Olivier Thauvin <nanardon> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Normal | CC: | dmorganec, nanardon, stormi-mageia |
| Version: | Cauldron | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Source RPM: | rpm-helper-0.23.4-3.mga1.src.rpm | CVE: | |
| Status comment: | |||
| Bug Depends on: | |||
| Bug Blocks: | 2120 | ||
| Attachments: | patch for the patch | ||
|
Manuel Hiebel
2011-09-29 11:03:12 CEST
CC:
(none) =>
dmorganec, nanardon Assigning to maintainer now that our maintainers database has an entry for this package. Please assign back to bugsquad@mageia.org in case of a mistake from me. CC:
(none) =>
stormi Created attachment 994 [details]
patch for the patch
This hack seems to work, but may break something else.
Rather than just checking that systemctl is executable it also checks that systemd is in use.
I am testing a re-built rpm-helper with this patch and will report any problems if they occur.
D Morgan
2011-10-27 21:41:15 CEST
Blocks:
(none) =>
2120 fixed in trunk Status:
NEW =>
RESOLVED |
Description of problem: When using %_preun_service in a spec file to remove a service in a package that I am working on, the following error occurs:- ####################################### [root@jackodesktop baz]# urpme zoneminder removing zoneminder-1.24.4-8.mga2.tainted.x86_64 process 26397: arguments to dbus_connection_send_with_reply_and_block() were incorrect, assertion "connection != NULL" failed in file dbus-connection.c line 3483. This is normally a bug in some application using the D-Bus library. D-Bus not built with -rdynamic so unable to print a backtrace /usr/share/rpm-helper/del-service: line 32: 26397 Aborted /bin/systemctl daemon-reload removing package zoneminder-1.24.4-8.mga2.tainted.x86_64 writing /var/lib/rpm/installed-through-deps.list ##################################### This appears to be caused by this section in /usr/share/rpm-helper/del-service. # support for systemd if [ -x /bin/systemctl ]; then /bin/systemctl disable ${srv}.service > /dev/null 2>&1 /bin/systemctl daemon-reload fi Commenting out the line "/bin/systemctl daemon-reload" removes the error. Running that command in isolation reproduces the error. NOTE. This is NOT the version of zoneminder in svn. The version in svn does NOT use rpm-helper so please don't use it to test ;) The test version of zoneminder that is giving the error is available here:- http://barjac-mtf.zapto.org/zoneminder-1.24.4-8.mga2.tainted.x86_64.rpm http://barjac-mtf.zapto.org/zoneminder-1.24.4-8.mga2.tainted.src.rpm If the problem is in the spec or init then my apologies, and any help will be appreciated ;) Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1. Install zoneminder using urpmi zoneminder-1.24.4-8.mga2.tainted.x86_64.rpm 2. Uninstall zoneminder using urpme zoneminder. 3. Errors during un-installation.