QNX Technical Articles
QNX® Software Development Platform 6.4.0 and 6.4.1 applypatch Patch (Patch ID 1523) Installation Note
Date of this edition: July 16, 2009
Target OS: This patch is compatible with targets that are running QNX® Neutrino® 6.4.0 or 6.4.1.
Host OS: In order to apply this patch, you must have installed the QNX Software Development Platform 6.4.0 or 6.4.1 as a self-hosted QNX Neutrino® development system, or on one of the following development hosts:
Version | Microsoft Windows | Linux |
---|---|---|
QNX SDP 6.4.0 | Vista, Vista 64-bit, XP SP2 or SP3, or 2000 SP4 | Red Hat Enterprise Workstation 4 or 5, Red Hat Enterprise Server 5.1 64-bit, Red Hat Fedora Core 6 or 7, Ubuntu 6.0.6 LTS or 7, or SUSE 10 |
QNX SDP 6.4.1 | Vista, Vista 64-bit, XP SP2 or SP3, or 2000 SP4 | Red Hat Enterprise Workstation 4.0 or 5.0, Red Hat Enterprise Server 5.1 64-bit, Red Hat Fedora 10, Ubuntu 8.04 LTS or 8.10, or SUSE 11 |
![]() |
For information about the issues that this patch addresses, see the release notes. |
This note includes:
- Installing this patch on QNX SDP 6.4.1
- Installing this patch on QNX SDP 6.4.0
- Uninstalling this patch on QNX SDP 6.4.1
- Technical support
Installing this patch on QNX SDP 6.4.1
To install this patch on QNX SDP 6.4.1, do the following:
- Log in as root (or with administrator privileges on Windows).
- On Debian 3.1 hosts, set up your environment by typing:
source /etc/profile
- Download the patch-640-1523-applypatch.tar archive to your host environment.
- On Windows hosts, run cmd.exe.
- Use the applypatch utility to install the patch:
- On Linux, if you use sudo (as would be the case on Ubuntu),
you must specify the -E option to preserve the environment.
In this case, the PATH environment variable is set
to a safe one for security reasons, so you need to specify the full path to
the utility:
sudo -E $QNX_HOST/usr/bin/applypatch patch-640-1523-applypatch.tar
- On other hosts, type:
applypatch patch-640-1523-applypatch.tar
For more information about applypatch, see its entry in the Utilities Reference.
- On Linux, if you use sudo (as would be the case on Ubuntu),
you must specify the -E option to preserve the environment.
In this case, the PATH environment variable is set
to a safe one for security reasons, so you need to specify the full path to
the utility:
Installing this patch on QNX SDP 6.4.0
- Log in as root (or with administrator privileges on Windows).
- On Debian 3.1 hosts, set up your environment by typing:
source /etc/profile
- Download the patch-640-1523-applypatch.tar archive to your host environment.
- Determine the base directory of your QNX SDP installation
by opening a command shell and using the
qconfig command.
For example:
$ qconfig QNX Installations Installation Name: QNX Software Development Platform 6.4.0 Version: 6.4.0 Base Directory: /usr/qnx640/ QNX_HOST: /usr/qnx640/host/qnx6/x86/ QNX_TARGET: /usr/qnx640/target/qnx6/
The base directory in this example is /usr/qnx640/, but it could be different on your machine, depending on your host and where you installed QNX SDP.
- Extract the archive you downloaded into the base directory:
- Windows hosts:
- Open a command prompt (cmd.exe) and switch to the drive indicated in the base directory that you found earlier (e.g. C:).
- Copy the archive to your base directory, replacing base_dir
with the path you found earlier:
copy drive:\patch-640-1523-applypatch.tar base_dir
- Use the following commands to extract the archive contents.
Don't specify the drive letter in the archive path:
cd base_dir
tar -xvf patch-640-1523-applypatch.tar
- Neutrino, Linux, and Solaris hosts:
Open a command shell and use the following commands (replacing base_dir with the path found earlier, and archive_path with the full path to the downloaded archive):
cd base_dir
tar -x -v -f archive_path/patch-640-1523-applypatch.tar
- Windows hosts:
Structure of a patch
The patch is installed in the base_dir/patches/640-1523/ directory. This directory includes:
- version
- Includes the patch number and the build information.
- manifest
- Contains the checksums of the files shipped in the patch (as generated by the cksum utility).
- shiplist
- A list of the files included in the patch.
- host
- A directory of fixes related to components that would be built into host-specific development systems.
![]() |
The patch might include components for hosts other than the one you're using. Before applying the patch, you can remove any unnecessary directories under base_dir/patches/640-1523/host. |
Applying the patch
Next, you must replace the files on your development host with the patched files.
![]() |
Since this is a destructive procedure, we recommend that you create a backup of the affected files. |
Creating a backup
To create a backup on any of our hosts:
- (Windows only) From the cmd.exe prompt, run ksh.
- Go to the base directory:
cd base_dir
- Make a backup of the files that will be overwritten:
pax -w < patches/640-1523/shiplist > patches/640-1523-backup.tar
You can use whatever name you like for the backup archive. The pax utility might display some error messages when it attempts to back up nonexistent files for host operating systems other than the one you're using. You can ignore these messages.
- (Windows only) Exit ksh.
Copying the files — Windows hosts
To apply the patch on a Windows system from the command prompt (remember to switch back to cmd.exe from ksh):
- Switch to the drive specified in your base directory (e.g. C:).
- Go to the patch directory (remember to replace / characters
in the base directory with \):
cd base_dir\patches\640-1523
- Install the host updates:
cp -Rp host base_dir\.
Copying the files — Neutrino and Linux hosts
To apply the patch on a Neutrino or Linux system:
- Go to the patch directory:
cd base_dir/patches/640-1523
- Install the host updates:
cp -Rp host base_dir/.
Uninstalling this patch on QNX SDP 6.4.1
To uninstall this patch on QNX SDP 6.4.1, do the following:
- Log in as root (or with administrator privileges on Windows).
- On Debian 3.1 hosts, set up your environment by typing:
source /etc/profile
- On Windows hosts, run cmd.exe.
- Use the applypatch utility to install the patch:
- On Linux, if you use sudo (as would be the case on Ubuntu),
you must specify the -E option to preserve the environment.
In this case, the PATH environment variable is set
to a safe one for security reasons, so you need to specify the full path to
the utility:
sudo -E $QNX_HOST/usr/bin/applypatch -U 1523
- On other hosts, type:
applypatch -U 1523
- On Linux, if you use sudo (as would be the case on Ubuntu),
you must specify the -E option to preserve the environment.
In this case, the PATH environment variable is set
to a safe one for security reasons, so you need to specify the full path to
the utility:
Technical support
If you have any questions, comments, or problems with a QNX product, please contact Technical Support. For more information, see the How to Get Help chapter of the Welcome to the QNX Software Development Platform guide or visit our website, www.qnx.com.