Odd issue.
I noticed that my server (FreeBSD 8.3-RELEASE-p3 amd64) had bzip2(1) v.1.0.5 and I needed to install the bzip2(1) package from the ports tree to upgrade it to v.1.0.6. That was successful.
Next, I tried to create a backup package from the installed bzip2(1) port and received an error. Below is the sequence of commands:
A couple of questions:
SK
I noticed that my server (FreeBSD 8.3-RELEASE-p3 amd64) had bzip2(1) v.1.0.5 and I needed to install the bzip2(1) package from the ports tree to upgrade it to v.1.0.6. That was successful.
Next, I tried to create a backup package from the installed bzip2(1) port and received an error. Below is the sequence of commands:
Code:
[CMD]# portsnap fetch extract[/CMD]
[CMD]# portinstall bzip2[/CMD]
[CMD]# mv /usr/bin/bzip2 /usr/bin/bzip2.basefile[/CMD]
[CMD]# mv /usr/local/bin/bzip2 /usr/bin/bzip2[/CMD]
[CMD]# bzip2 --version[/CMD]
bzip2, a block-sorting file compressor. Version 1.0.6, 6-Sept-2010.
...
[CMD]# pkg_create -Rb bzip2-1.0.6[/CMD]
tar: bin/bzip2: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors.
pkg_create: make_dist: tar command failed with code 256
A couple of questions:
- Obvious is: how do I fix this? I need to create a backup of the package so I can add that package to another mirror machine that is not on the network.
- Why is tar() looking in bin/bzip2 instead of /usr/bin/bzip2?
SK