This may overlap with bug 8478. The ubuntu-pkg-chk.sh script hardcoded the use of ubuntu.packages. By using an `lsb_release -r | cut -f2 -d'{tab}'` we can determine the version number of the ubuntu (tested on 10.04 and 12.04). If the user is running on a non-LTS, the script will inform the user and use the latest one, because NOTE: ubuntu.packages SHOULD ALWAYS BE A COPY OF THE LATEST VERSION!!! ubuntu.packages became ubuntu.10.04.packages ubuntu_maverick.packages became ubuntu.10.10.packages ubuntu.precise.packages became ubuntu.12.04.package (was created from 8488) This supersedes bug 8488, by renaming ubuntu.precise.packages to ubuntu.12.04.packages and updating the libmysqlclient16 to mylibsqlclient18 and removing the libmysqlclient16-dev. There were no known dependencies in the perl libraries. Feel free to confirm otherwise. I then copied ubuntu.12.04.packages back to ubuntu.packages after modifications, as the INSTALL.ubuntu install instructions say: $ sudo dpkg --set-selections < install_misc/ubuntu.packages The goal of this script is that: ./ubuntu-pkg-check.sh | grep none should produce no output if all dependencies are installed (optional or otherwise). However, it should be noted that the wiki instructions do not reference the file ubuntu-pkg-check.sh and it is currently only mentioned in the INSTALL.ubuntu.lucid instructions. The figures generated by: # A = $ ./install_misc/ubuntu-pkg-check | wc $ ./koha_perl_deps.pl -a # and B = the total modules reported number should have A>=B. And, if the ubuntu packages were installed with dselect, there should be 0 modules listed for: $ ./koha_perl_deps.pl -m -u To the cleanest 3.6.X version install yet! :)
Created attachment 11063 [details] [review] Restructured ubuntu .packages files to include versioning and to have the ubuntu-pkg-check.sh script use the versioning It should be noted the the patches for the ubuntu.packages file represent the changes that I made from the old ubuntu.packages file while creating the ubuntu.12.04.packages file. It should also be noted that this requires versions of ubuntu .packages files on a forward basis. When LTS support is dropped, old versioned files can be dropped as well. The ubuntu.packages file should be identical to the more recent copy of the ubuntu.{version}.packages file. ubuntu.packages -> ubuntu.10.04.packages ubuntu_maverick.packages -> ubuntu.10.10.packages ubuntu.packages -> ubuntu.12.04.packages ubuntu.12.04.packages tweaked ubuntu.12.04.packages -> ubuntu.packages Added version login using lsb_release into ubuntu-pkg-check.sh ./install_misc/ubuntu-pkg-check.sh | grep none should produce empty output if everything (including optional modules) are installed. ./install_misc/ubuntu-pkg-check.sh | wc should generate a higher line count than the total modules required figure on ./koha_perl_deps.pl -a And if the there is empty output produced by ./install_misc/ubuntu-pkg-check.sh | grep none then there should be nothing missing for ./koha_perl_deps.pl -m -u optional or required.
Created attachment 11064 [details] [review] Restructured ubuntu .packages files to include versioning and to have the ubuntu-pkg-check.sh script use the versioning Corrected a minor logic flaw which failed to tell the user which .packages file they were using properly in the ubuntu-pkg-check.sh file. Caught it after the fact.
*** Bug 8488 has been marked as a duplicate of this bug. ***
A version of this will also be needed for Master and 3.6.x.
Once 3.6.7 is out the door with this, I'll work on a patch for master, but as a separate bug report.
Created attachment 11065 [details] [review] Restructured ubuntu .packages files to include versioning and to have the ubuntu-pkg-check.sh script use the versioning (v3) Third revision includes better error handling as encountered problems on 10.04 (none)* means that only CPAN or an external repository will be able to install it. (none) means that there is a library to install Everything else should have a nice version number listed.
Created attachment 11066 [details] [review] Bug 8489: Revise Ubuntu install files 1) Changed ubuntu-pkg-check.sh to use lsb_release to determine version of ubuntu.{version}.packages file. If a versioned file does not exist, the user is warned, and ubuntu.packages is used. Told the user which file is being used. Caught apt-cache policy errors nicely. NOTE: ubuntu.packages MUST BE A COPY OF THE LATEST ubuntu.{version}.packages FILE! 2) Moved: ubuntu.packages -> ubuntu.10.04.packages ubuntu_maverick.packages -> ubuntu.10.10.packages ubuntu.precise.packages -> ubuntu.12.04 packages (last file created new, but effectively supersedes bug 8488) 3) Tweaked ubuntu.12.04.packages: * changed yaz3 references to yaz4 * dropped libmysqlclient16-dev * changed libmysqlclient16 to libmysqlclient18 4) Copied the ubuntu.12.04.packages file to ubuntu.packages Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
This patch has been included in 3.6.7 to enable the installation of 3.6.7 under Ubuntu per the instructions.
The patch for master will be done on bug 8478.