Updating Packages

From RockWiki

Jump to: navigation, search

If you find that a new version of a package is available on the net and that the available version in the ROCK sources is not up to date, you can easily fix that.

For simple packages which need to download only one file, you can use the scripts/Create-PkgUpdPatch script. For example, if the lftp package available in the ROCK sources is version 3.0.12 and version 3.0.13 has been released:

root:/usr/src/rock-src# ./scripts/Create-PkgUpdPatch lftp-3.0.13 | patch -p0
[ lftp-3.0.13 ]
patching file ./package/mathieu/lftp/lftp.desc

You can now download the new source file:

root:/usr/src/rock-src# ./scripts/Download lftp
INFO: Found cached mirror URL in download/Mirror:
INFO: ftp://linux.mathematik.tu-darmstadt.de/pub/linux/distributions/rocklinux/ROCK-2.1
INFO: To force a new mirror auto-detection, remove download/Mirror.

Downloading download/mirror/l/lftp-3.0.13.tar.gz ...
Finished downloading 0 bytes in 0.000 seconds (0.000 bytes/sec). 
curl: (19) lftp-3.0.13.tar.bz2: No such file or directory.
ERROR: CURL Returned Error 19. Please read the curl manpage.
INFO: download from mirror failed, trying original URL.
######################################################################## 100.0%
Finished downloading 1661233 bytes in 8.626 seconds (192584.000 bytes/sec). 
bzip'ing + cksum-test: download/mirror/l/lftp-3.0.13.tar.gz

You should now update the checksum in the description file. The scripts/Create-CkSumPatch script is available for that:

root:/usr/src/rock-src# ./scripts/Create-CkSumPatch lftp | patch -p0
Creating checksum patch ...
download/mirror/l/lftp-3.0.13.tar.bz2 (bzip2): 1923356015
patching file ./package/mathieu/lftp/lftp.desc

You can now build the package as described in Updating Packages. After testing that the build process went fine and that the application works correctly, you can submit a patch (see Submitting Patches) if you find that this update would be useful to ROCK.

Personal tools