Hi all,
I am facing this problem on my recent FreeBSD-9-STABLE servers built with jails and I'm sure I must be missing something very trivial but my head is stuck. I've build my jails in a way similar to the "Application of Jails" section of FreeBSD Handbook, so my portsbuild directory is /s/portbuild and /usr/local is a symlink to ..s/usr-local, as shown:
Now, my problem is that after I install a port and then wish to deinstall it using:
[CMD="[root@samba-manage /]#"] make deinstall[/CMD]
I get the error of my post's title. In particular, when I wish to remove samba-3.6.5 I get:
What is the different PREFIX it is talking about? I mean what should it be and what does it think it is? A search in /var/db/pkg/samba36-3.6.5/+CONTENTS returns:
Which seems rational...
I know it must be something trivial that I am missing, and I know I can use:
[CMD="[root@samba-manage /]#"]pkg_delete -f samba\*[/CMD]
in order to complete my task, but I want to understand what I've done wrong and corrected in the last 8 servers that I have set up.
PS. How can I use vi/vim to read a filename starting with a '+' character (like +CONTENTS mentioned in the last paragraphs) without giving the full path? (the file is in the CWD).
Thanx all in advance!
I am facing this problem on my recent FreeBSD-9-STABLE servers built with jails and I'm sure I must be missing something very trivial but my head is stuck. I've build my jails in a way similar to the "Application of Jails" section of FreeBSD Handbook, so my portsbuild directory is /s/portbuild and /usr/local is a symlink to ..s/usr-local, as shown:
Code:
[root@samba-manage /]# ls -l /usr/local
lrwxr-xr-x 1 root wheel - 14 5 Σεπ 14:16 /usr/local@ -> ../s/usr-local
[root@samba-manage /]# ls /s/usr-local/
./ ../ bin/ etc/ include/ info/ lib/ libdata/ libexec/ man/ samba/ sbin/ share/ www/
[root@samba-manage /]# cat /etc/make.conf
WRKDIRPREFIX?= /s/portbuild
# added by use.perl 2012-06-26 17:09:01
PERL_VERSION=5.12.4
CPUTYPE?=native
CFLAGS= -O2 -pipe -march=native -mtune=native
COPTFLAGS= -O2 -pipe -march=native -mtune=native
Now, my problem is that after I install a port and then wish to deinstall it using:
[CMD="[root@samba-manage /]#"] make deinstall[/CMD]
I get the error of my post's title. In particular, when I wish to remove samba-3.6.5 I get:
Code:
[root@samba-manage samba36]# make deinstall
===> Deinstalling for net/samba36
===> samba36-3.6.5 has a different PREFIX: /s/usr-local, skipping
Code:
[root@samba-manage samba36-3.6.5]# grep usr-local /var/db/pkg/samba36-3.6.5/+CONTENTS
@cwd /s/usr-local
I know it must be something trivial that I am missing, and I know I can use:
[CMD="[root@samba-manage /]#"]pkg_delete -f samba\*[/CMD]
in order to complete my task, but I want to understand what I've done wrong and corrected in the last 8 servers that I have set up.
PS. How can I use vi/vim to read a filename starting with a '+' character (like +CONTENTS mentioned in the last paragraphs) without giving the full path? (the file is in the CWD).
Thanx all in advance!