Bug 24096 - bacula's bat doesn't lauch (missing /usr/sbin/.libs/bat binary)
Summary: bacula's bat doesn't lauch (missing /usr/sbin/.libs/bat binary)
Status: NEW
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: All Packagers
QA Contact:
URL:
Whiteboard:
Keywords: PATCH
: 25431 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-12-30 14:49 CET by Stéphane Pontier
Modified: 2022-09-24 12:18 CEST (History)
3 users (show)

See Also:
Source RPM: bacula-9.4.1-1.mga7.src.rpm
CVE:
Status comment:


Attachments

Description Stéphane Pontier 2018-12-30 14:49:35 CET
Description of problem:

bat doesn't lauch, printing that it is only a wrapper and than the 
/usr/sbin/.libs/bat executable is missing

Version-Release number of selected component (if applicable):
9.4.1 and at least 9.2

How reproducible:
always

Steps to Reproduce:
1. open a shell
2. type bat


I solved the problem by modifying the spec file to include the bat binary as it was already done for the tray monitor:

-----8<-----
--- SPECS/bacula.orig.spec      2018-12-30 14:44:40.785628614 +0100
+++ SPECS/bacula.spec   2018-12-30 14:40:29.244675305 +0100
@@ -376,6 +376,7 @@
 
 # Bat
 install -p -m 644 -D src/qt-console/images/bat_icon.png %{buildroot}%{_datadir}/pixmaps/bat_icon.png
+install -p -m 755 -D src/qt-console/.libs/bat %{buildroot}%{_sbindir}/.libs/bat
 install -p -m 644 -D scripts/bat.desktop %{buildroot}%{_datadir}/applications/bat.desktop
 
 # QT Tray monitor
@@ -644,6 +645,7 @@
 %{_datadir}/bacula/*.png
 %{_datadir}/pixmaps/bat_icon.png
 %{_mandir}/man1/bat.1*
+%{_sbindir}/.libs/bat
 %{_sbindir}/bat
 
 %files tray-monitor
-----8<-----
Comment 1 Marja Van Waes 2019-01-02 20:46:17 CET
Assigning to the registered maintainer.

Assignee: bugsquad => shlomif
Keywords: (none) => PATCH
CC: (none) => marja11

Comment 2 Lewis Smith 2019-09-12 21:12:49 CEST
*** Bug 25431 has been marked as a duplicate of this bug. ***

CC: (none) => nicolas.costes

Comment 3 Thomas Backlund 2019-09-13 08:34:56 CEST
(In reply to Stéphane Pontier from comment #0)


> 
> I solved the problem by modifying the spec file to include the bat binary as
> it was already done for the tray monitor:
> 
> -----8<-----
> --- SPECS/bacula.orig.spec      2018-12-30 14:44:40.785628614 +0100
> +++ SPECS/bacula.spec   2018-12-30 14:40:29.244675305 +0100
> @@ -376,6 +376,7 @@
>  
>  # Bat
>  install -p -m 644 -D src/qt-console/images/bat_icon.png
> %{buildroot}%{_datadir}/pixmaps/bat_icon.png
> +install -p -m 755 -D src/qt-console/.libs/bat
> %{buildroot}%{_sbindir}/.libs/bat
>  install -p -m 644 -D scripts/bat.desktop
> %{buildroot}%{_datadir}/applications/bat.desktop
>  
>  # QT Tray monitor
> @@ -644,6 +645,7 @@
>  %{_datadir}/bacula/*.png
>  %{_datadir}/pixmaps/bat_icon.png
>  %{_mandir}/man1/bat.1*
> +%{_sbindir}/.libs/bat
>  %{_sbindir}/bat
>  
>  %files tray-monitor
> -----8<-----

Yeah, but that is broken packaging...

".libs" does not belong in /usr/sbin

wich means bacula-tray-monitor location should be fixed too

CC: (none) => tmb

Comment 4 Nicolas Costes 2019-11-06 15:07:48 CET
Hello, any news ? I am in need of this package for my job missions. How can I help to solve ? :)
Comment 5 Lewis Smith 2019-11-28 14:31:48 CET
Re-assigning globally due to change to no maintainer.

Assignee: shlomif => pkg-bugs

Morgan Leijström 2022-09-24 12:18:47 CEST

See Also: (none) => https://bugs.mageia.org/show_bug.cgi?id=28633


Note You need to log in before you can comment on or make changes to this bug.