Bacula-users

Re: [Bacula-users] Fedora - RHEL/CentOS rpm repository

2012-06-06 13:16:45
Subject: Re: [Bacula-users] Fedora - RHEL/CentOS rpm repository
From: Simone Caronni <negativo17 AT gmail DOT com>
To: Tilman Schmidt <t.schmidt AT phoenixsoftware DOT de>
Date: Wed, 6 Jun 2012 19:14:18 +0200
Hello,

you're right, there's a mistake in the packaging. The symlink should not point to the backend versioned lib but to the generic one. Instead of:

# cd /etc/alternatives
# ls -lgh libbaccats*
lrwxrwxrwx. 1 root 38 Jun  6 18:41 libbaccats-5.2.7.so -> /usr/lib64/libbaccats-sqlite3-5.2.7.so
lrwxrwxrwx. 1 root 38 Jun  6 18:41 libbaccats.so -> /usr/lib64/libbaccats-sqlite3-5.2.7.so

Should be:

# ls -lgh libbaccats*
lrwxrwxrwx. 1 root 32 Jun  6 18:57 libbaccats.so -> /usr/lib64/libbaccats-sqlite3.so

This way, when you update, instead of this:

# alternatives --config libbaccats.so

There are 6 programs which provide 'libbaccats.so'.

  Selection    Command
-----------------------------------------------
   1           /usr/lib64/libbaccats-mysql-5.2.6.so
 + 2           /usr/lib64/libbaccats-sqlite3-5.2.6.so
*  3           /usr/lib64/libbaccats-postgresql-5.2.6.so
   4           /usr/lib64/libbaccats-mysql-5.2.7.so
   5           /usr/lib64/libbaccats-sqlite3-5.2.7.so
   6           /usr/lib64/libbaccats-postgresql-5.2.7.so

Enter to keep the current selection[+], or type selection number:

You get the correct symlink pointing to the unversioned library whose name doesn't change:

# alternatives --config libbaccats.so

There are 3 programs which provide 'libbaccats.so'.

  Selection    Command
-----------------------------------------------
   1           /usr/lib64/libbaccats-mysql.so
 + 2           /usr/lib64/libbaccats-sqlite3.so
*  3           /usr/lib64/libbaccats-postgresql.so

Enter to keep the current selection[+], or type selection number:

I will push an update to the repository and send an update here.

Thanks,
--Simone



On 6 June 2012 15:51, Tilman Schmidt <t.schmidt AT phoenixsoftware DOT de> wrote:
Hello Simone,

I had a bit of trouble with that update on a CentOS 6 server that
had been running fine with Bacula 5.2.6 from the same repo.
After the update, the director wouldn't start, complaining that
it couldn't find its database.
It turned out that the alternatives where completely hosed.
The master was pointing to PostgreSQL instead of MySQL which I
use, and there was still a libbaccats-5.2.6.so slave hanging
around which pointed nowhere.
I ended up manually deleting all the libbaccats alternatives and
rerunning the install scriptlet of the bacula-libs-sql package
and the "alternatives --config" command; after that everything
ran fine again.

HTH,
Tilman

Am 04.06.2012 15:55, schrieb Simone Caronni:
> Hello,
>
> the repository has been updated to 5.2.7.
>
> http://repos.fedorapeople.org/repos/slaanesh/bacula/
>
> Please read the included readme at:
>
> http://repos.fedorapeople.org/repos/slaanesh/bacula/README.txt
>
> For now, until Fedora rawhide diverges too much from Fedora 17; the
> newly created Fedora 17 repository contains packages that are the same
> of those going into the official updates.
>
> Regards,
> --Simone

--
Tilman Schmidt
Phoenix Software GmbH
Bonn, Germany


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users




--
You cannot discover new oceans unless you have the courage to lose sight of the shore (R. W. Emerson).

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users