Here are updated mkrepo and addpkg scripts that should work with bash v.4 (attached).
Please test them out, but be aware that you will get an error about no package named
task-packaging-kde4 with mkrepo if you allow it to install packages. This happens because I just moved the list of required packages to a metapackage with the name
task-packaging-kde4, but the package is not yet available in the repo.
If you want the metapackage to test also, here is the spec:
%define name task-packaging-kde4
%define version 0.0.1
%define release %mkrel 1
%define Summary Installs the most commonly used items for packaging RPMs in PCLinuxOS's KDE4 desktop environment
# Do not build debug package
%define _enable_debug_packages %{nil}
%define debug_package %{nil}
Summary: %Summary
Name: %name
Version: %version
Release: %release
License: GPL
Group: Development/Tools
Group: Tasks
BuildArch: noarch
Requires: pkgutils-kde4, rpm-build, rpm-pclinuxos-setup-build, autoconf2.1, autoconf, automake1.7, automake
#Provides:
#Obsoletes: none
#Conflicts: none
Packager: travisn000
%description
task-packaging-kde4 is a meta-package that installs the most commonly used items for packaging RPMs in PCLinuxOS's KDE4 desktop environment.
This includes pkgutils-kde4, rpm-build, rpm-pclinuxos-setup-build, their dependencies, and current and legacy versions of autoconf and automake.
Once installed, any regular user on the system can use the mkrepo script to setup their personal home directory for building RPMs
as well as setting up a local repo in their home directory so that new packages can be tested for proper installation, function, and removal.
The mkrepo script is run with the following syntax for first time configuration:
mkrepo -a -d PCLinuxOS -v PCLinuxOS -s <pclos, or your PCLOS user name> -p <your PCLOS user name>
For more information on packaging, mkrepo, and other pkgutils scripts visit the Packaging section of the official PCLinuxOS forum.
%files
%defattr(-,root,root)
%changelog
* Fri Oct 09 2009 travisn000 <my username at g mail dot com> 0.0.1-1pclos2010
- new metapackage
- used by updated pkgutils' mkrepo script to install / verify all requirements for packaging
So far most of the problems with the new bash v4 seem to be caused by quotes around regexp's, etc within conditional statements..
..I will look at the other pkgutils scripts (gbr, gcr, rmvpkg) tomarrow; again, please let me know of any currently known issues
[attachment deleted by admin]