• rssfeed

Archive for the Category CentOS

 
 

Firefox 3.6.2 and Thunderbird 3.0.3 for CentOS 5.4

It’s a quite long time I have announced Firefox 3.6 and Thunderbird 3.0 packages for CentOS 5.  Announcement has been submitted via CentOS mail-list. See http://lists.centos.org/pipermail/centos-devel/2010-February/005416.html and http://lists.centos.org/pipermail/centos/2010-February/090418.html.

Packages have been tested by users and have been always within the testing repository only. Today I’m pushing new firefox 3.6.2 into the stable repository together with xulrunner, mozilla-filesystem, and thunderbird. Packages are to be found here:

http://fs12.vsb.cz/hrb33/el5/hrb/stable/i386/repoview/

http://fs12.vsb.cz/hrb33/el5/hrb/stable/x86_64/repoview/

Upgrade DAViCal 0.9.7.2 to 0.9.8

DAViCal upgrade is quite easy:

[root@fs12 html] wget http://debian.mcmillan.net.nz/packages/davical/davical_0.9.8.orig.tar.gz
[root@fs12 html] tar xvzf davical_0.9.8.orig.tar.gz
[root@fs12 html] cd davical-0.9.8.orig/dba
[root@fs12 dba] su postgres
bash-3.00$ ./update-davical-database 
The database is version 8.1 currently at revision 1.2.5.
Applying patch 1.2.6.sql ... succeeded.
Applying patch 1.2.7.sql ... succeeded.
Successfully applied 2 patches.
Supported locales updated.
Updated view: dav_principal.sql applied.
CalDAV functions updated.
RRULE functions updated.
Database permissions updated.
bash-3.00$ exit
[root@fs12 html] ln -s davical-0.9.8.orig davical

That’s all.

Running yum-3.2.8 on CentOS 4.7 – part II.

Today I have looked again at yum 3.2.8 on Centos 4. I wanted everything to clean up, go back to unittests again. I have backported python-nose and started to clean up the source. Finally I had to make all yum tests python 2.3 compatible. Here is the result:

[root@build-c4-i386 yum-3.2.8]# make test

..............................................................................................................................................................

----------------------------------------------------------------------

Ran 158 tests in 0.889s

OK

As you can see, all tests have passed. And as usual packages are available within my testing repo.

http://fs12.vsb.cz/hrb33/el4/hrb/testing/i386/repoview/
http://fs12.vsb.cz/hrb33/el4/hrb/testing/x86_64/repoview/

Running yum-3.2.8 on CentOS 4.7

Today I spent a few hours testing and backporting yum-3.2.8 from CentOS 5.2 to CentOS 4.7. It wasn’t so hard to backport. Most of the time I have spent on testing and searching. Code is patched to allow sets, which are supported in python 2.3 :o ) and that’s almost all. Final rpms are available for testing here:

http://fs12.vsb.cz/hrb33/el4/hrb/testing/i386/repoview/
http://fs12.vsb.cz/hrb33/el4/hrb/testing/x86_64/repoview/

[root@webmel4 ~]# yum update yum
Loading "fastestmirror" plugin
Loading "installonlyn" plugin
Setting up Update Process
Setting up repositories
Loading mirror speeds from cached hostfile
Reading repository metadata in from local files
Reducing CentOS.Karan.Org-EL4 - Stable to included packages only
Finished
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for yum to pack into transaction set.
yum-3.2.8-9.el4.hrb.2.1.1 100% |=========================|  29 kB    00:00
---> Package yum.noarch 0:3.2.8-9.el4.hrb.2.1.1 set to be updated
--> Running transaction check
--> Processing Dependency: python-iniparse for package: yum
--> Processing Conflict: yum-metadata-parser conflicts yum >= 3.0
--> Processing Dependency: yum-fastestmirror for package: yum
--> Processing Dependency: yum-metadata-parser >= 1.1.0 for package: yum
--> Processing Dependency: yum < 2.5 for package: yum-utils
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for yum-utils to pack into transaction set.
yum-utils-1.1.10-9.el4.hr 100% |=========================| 9.7 kB    00:00
---> Package yum-utils.noarch 0:1.1.10-9.el4.hrb.1 set to be updated
---> Downloading header for yum-fastestmirror to pack into transaction set.
yum-fastestmirror-1.1.10- 100% |=========================| 7.0 kB    00:00
---> Package yum-fastestmirror.noarch 0:1.1.10-9.el4.hrb.1 set to be updated
---> Downloading header for python-iniparse to pack into transaction set.
python-iniparse-0.2.3-4.e 100% |=========================| 5.3 kB    00:00
---> Package python-iniparse.noarch 0:0.2.3-4.el4.hrb set to be updated
---> Downloading header for yum-metadata-parser to pack into transaction set.
yum-metadata-parser-1.1.2 100% |=========================| 4.3 kB    00:00
---> Package yum-metadata-parser.i386 0:1.1.2-2.el4.hrb set to be updated
--> Running transaction check

Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
Updating:
 yum                     noarch     3.2.8-9.el4.hrb.2.1.1  hrb-testing       506 k
Installing for dependencies:
 python-iniparse         noarch     0.2.3-4.el4.hrb  hrb-testing        34 k
 yum-fastestmirror       noarch     1.1.10-9.el4.hrb.1  hrb-testing        10 k
Updating for dependencies:
 yum-metadata-parser     i386       1.1.2-2.el4.hrb  hrb-testing        24 k
 yum-utils               noarch     1.1.10-9.el4.hrb.1  hrb-testing        58 k

Transaction Summary
=============================================================================
Install      2 Package(s)
Update       3 Package(s)
Remove       0 Package(s)
Total download size: 633 k
Is this ok [y/N]: y
Downloading Packages:
(1/5): yum-utils-1.1.10-9 100% |=========================|  58 kB    00:00
(2/5): yum-fastestmirror- 100% |=========================|  10 kB    00:00
(3/5): python-iniparse-0. 100% |=========================|  34 kB    00:00
(4/5): yum-3.2.8-9.el4.hr 100% |=========================| 506 kB    00:00
(5/5): yum-metadata-parse 100% |=========================|  24 kB    00:00
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction

  Updating  : yum-metadata-parser          ######################### [1/9]
  Installing: python-iniparse              ######################### [2/9]
  Updating  : yum                                                    [3/9]warning: /etc/yum.conf created as /etc/yum.conf.rpmnew
  Updating  : yum                          ######################### [3/9]
  Updating  : yum-utils                    ######################### [4/9]
  Installing: yum-fastestmirror            ######################### [5/9]
  Cleanup   : yum-utils                    ######################### [6/9]
  Removing  : yum-plugin-fastestmirror     ######################### [7/9]
  Cleanup   : yum                          ######################### [8/9]
  Cleanup   : yum-metadata-parser          ######################### [9/9]

Dependency Installed: python-iniparse.noarch 0:0.2.3-4.el4.hrb yum-fastestmirror.noarch 0:1.1.10-9.el4.hrb.1
Updated: yum.noarch 0:3.2.8-9.el4.hrb.2.1.1
Dependency Updated: yum-metadata-parser.i386 0:1.1.2-2.el4.hrb yum-utils.noarch 0:1.1.10-9.el4.hrb.1
Complete!

Everything works fine. Now it’s time to publish and make some public QA. As you can see, it handles obsolete packages!

[root@webmel4 ~]# yum install hrb-foo
Loading "fastestmirror" plugin
Loading mirror speeds from cached hostfile
 * kbs-CentOS-Extras: centos.karan.org
 * fasttrack: ftp.fi.muni.cz
 * hrb-kernel-stable: fs12.vsb.cz
 * update: ftp.fi.muni.cz
 * rpmforge: ftp-stud.fht-esslingen.de
 * hrb-testing: fs12.vsb.cz
 * base: ftp.fi.muni.cz
 * addons: ftp.fi.muni.cz
 * hrb-stable: fs12.vsb.cz
 * extras: ftp.fi.muni.cz
Reducing CentOS.Karan.Org-EL4 - Stable to included packages only
Finished
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package hrb-bar.noarch 0:1-1.el4.hrb set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
Installing:
 hrb-bar                 noarch     1-1.el4.hrb      hrb-testing       2.1 k

Transaction Summary
=============================================================================
Install      1 Package(s)
Update       0 Package(s)
Remove       0 Package(s)

Total download size: 2.1 k
Is this ok [y/N]: n
Exiting on user Command
Complete!

Call to undefined function load_config() – squirrelmail-1.4.8-5.el4.centos.3

During one of my squirrelmail upgrades I have discovered strange behavior. Users were able to login, but only blank page had appeared. I have found this in log:

[Mon Feb 09 18:29:10 2009] [error] [client 89.103.46.115] PHP Fatal error:  Call to undefined function load_config() in /usr/share/squirrelmail/plugins/change_sqlpass/functions.php
on line 326, referer: http://blabla.blabla.tld/src/login.php

change_sqlpass pluging needs compatibility plugin to run. So here is the patch:

--- ../../functions/strings.php.orig    2006-08-11 04:15:43.000000000 -0700
+++ ../../functions/strings.php 2006-09-01 06:11:03.000000000 -0700
@@ -31,6 +31,7 @@
* For that reason, bring in global.php AFTER we define the version strings.
*/
require_once(SM_PATH . 'functions/global.php');
+include_once(SM_PATH . 'plugins/compatibility/functions.php');

/**
* Wraps text at $wrap characters

Remove old kernels

Simple way to remove all but one kernel:

if [ $(rpm -q kernel | wc -l) -gt 1 ]; then rpm -e $(rpm -q kernel | sed '$d'); fi
if [ $(rpm -q kernel-smp | wc -l) -gt 1 ]; then rpm -e $(rpm -q kernel-smp | sed '$d'); fi

OpenSSH5 on CentOS 5

I have rebuilt OpenSHH5 RPMs for CentOS 5. They seem :o ) to work pretty well.

Files are located here:

Kickstart encrypted password

Easy way to create encrypted password for kickstart:

perl -e 'print crypt("password", "Xa") . "\n";'p

Enable installonlyn on CentOS 4.x

Easy way to enable:

yum -y install yum-utils; \
cp -p /usr/share/doc/yum-utils-0.5/plugins/installonlyn/installonlyn.conf /etc/yum/pluginconf.d/; \
cp -p /usr/share/doc/yum-utils-0.5/plugins/installonlyn/installonlyn.py /usr/lib/yum-plugins/