Re: How to force a static /etc/resolv.conf?
On 13/06/2013 02:46, Darren Pilgrim wrote: I'm running 9.1. I run a local recursive resolver, so my /etc/resolv.conf needs to remain static. I have DHCPv4, DHCPv6 and VPN clients running which all want to modify /etc/resolv.conf. I have set in /etc/resolvconf.conf: search_domains=example.com. example.net. name_servers=2001:db8::53 But that only prepends that information. Search domains and nameservers from other sources still get included. I can set /etc/resolv.conf as immutable, but's a hack and it generates errors from resolveconf. How do I tell resolvconf to always use a static configuration or, better yet, to not muck with /etc/resolv.conf at all? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org Hi, You can configure it in your dhclient.conf file. Use the supersede keyword. For example, in your case add: supersede domain-search example.com example.net supersede domain-name-servers 2001:db8::53 to your /etc/dhclient.conf Loic ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Upgrade devel/py-setuptools
On 27/03/2013 17:43, Volodymyr Kostyrko wrote: 2013-03-27 18:37, Loic Capdeville wrote: import sys; sys.__plen = len(sys.path) ../setuptools-0.6c11-py2.7.egg import sys; new=sys.path[sys.__plen:]; del sys.path[sys.__plen:]; p=getattr(sys,'__egginsert',0); sys.path[p:p]=new; sys.__egginsert = p+len(new) Looks like py-distribute is not installed at all. what was the outcome of portupgrade -fo devel/py-distribute devel/py-setuptools? Can you try running that again? It hasn't printed anything since the first time I tried to run it... and still print nothing. So here is a main problem. If it prints nothing it doesn't work. Do you have portupgrade or portmaster installed? Did it yield at least one line? Some errors? If it doesn't that's surely a sign that something is going wrong. I use portupgrade regularly to upgrade my ports, and usually everything goes right. If fails only with that particular operation (or these portupgrade options) Do I have to install devel/py-distribute separately, or should the portupgrade -fo command do everything itself (uninstall py-setuptools and install py-distribute) ? This command should forcefully deintsall second package and replace it with first one. I'm not using portupgrade, I switched to portmaster long time ago so I can't help you with it. If you want to make the switch by hand I think you should: pkg_delete -f py27-setuptools-0.6c11_3 # now write down the whole list of dependent packages cd /usr/ports/devel/py-distribute ; make install clean portupgrade -f ..list of packages that require setuptools.. If finally did it by hand. Note: upgrading packages that require setuptools isn't necessary, since py-distribute is backward compatible with py-setuptools. Thanks for your help. Loic ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Upgrade devel/py-setuptools
Hi ! I'm trying to update devel/py-setuptools which has been replaced by devel/py-distribute. As mentioned in /usr/ports/UPDATING I did portupgrade -fo devel/py-distribute devel/py-setuptools since I'm using ports, but nothing happens. Output of pkg_version -vIL= : py27-setuptools-0.6c11_3 succeeds index (index has 0.6.35) I already tried to fix the package registry using pkgdb -F. I've been trying to fix this for days, but still can't find a solution. Any idea ? Thanks. Loic ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Upgrade devel/py-setuptools
On 27/03/2013 13:50, Volodymyr Kostyrko wrote: 2013-03-27 14:22, Loic Capdeville wrote: Hi ! I'm trying to update devel/py-setuptools which has been replaced by devel/py-distribute. As mentioned in /usr/ports/UPDATING I did portupgrade -fo devel/py-distribute devel/py-setuptools since I'm using ports, but nothing happens. Output of pkg_version -vIL= : py27-setuptools-0.6c11_3 succeeds index (index has 0.6.35) I already tried to fix the package registry using pkgdb -F. I've been trying to fix this for days, but still can't find a solution. Any idea ? Can you post contents of /usr/local/lib/python2.7/site-packages/easy-install.pth* files? Thanks for your quick response. Here is what you requested: -rw-r--r-- 1 root wheel 395 Mar 13 04:50 /usr/local/lib/python2.7/site-packages/easy-install.pth -rw-r--r-- 1 root wheel 215 Dec 30 15:04 /usr/local/lib/python2.7/site-packages/easy-install.pth.dist ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Upgrade devel/py-setuptools
On 27/03/2013 14:00, Loic Capdeville wrote: On 27/03/2013 13:50, Volodymyr Kostyrko wrote: 2013-03-27 14:22, Loic Capdeville wrote: Hi ! I'm trying to update devel/py-setuptools which has been replaced by devel/py-distribute. As mentioned in /usr/ports/UPDATING I did portupgrade -fo devel/py-distribute devel/py-setuptools since I'm using ports, but nothing happens. Output of pkg_version -vIL= : py27-setuptools-0.6c11_3 succeeds index (index has 0.6.35) I already tried to fix the package registry using pkgdb -F. I've been trying to fix this for days, but still can't find a solution. Any idea ? Can you post contents of /usr/local/lib/python2.7/site-packages/easy-install.pth* files? Thanks for your quick response. Here is what you requested: -rw-r--r-- 1 root wheel 395 Mar 13 04:50 /usr/local/lib/python2.7/site-packages/easy-install.pth -rw-r--r-- 1 root wheel 215 Dec 30 15:04 /usr/local/lib/python2.7/site-packages/easy-install.pth.dist ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ... and the files content: /usr/local/lib/python2.7/site-packages/easy-install.pth: import sys; sys.__plen = len(sys.path) ./setuptools-0.6c11-py2.7.egg ./Pygments-1.5-py2.7.egg ./Babel-0.9.6-py2.7.egg ./MarkupSafe-0.15-py2.7-freebsd-9.0-RELEASE-amd64.egg ./Jinja2-2.6-py2.7.egg ./Sphinx-1.1.3-py2.7.egg ./virtualenv-1.9.1-py2.7.egg import sys; new=sys.path[sys.__plen:]; del sys.path[sys.__plen:]; p=getattr(sys,'__egginsert',0); sys.path[p:p]=new; sys.__egginsert = p+len(new) /usr/local/lib/python2.7/site-packages/easy-install.pth.dist: import sys; sys.__plen = len(sys.path) ./setuptools-0.6c11-py2.7.egg import sys; new=sys.path[sys.__plen:]; del sys.path[sys.__plen:]; p=getattr(sys,'__egginsert',0); sys.path[p:p]=new; sys.__egginsert = p+len(new) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Upgrade devel/py-setuptools
On 27/03/2013 14:27, Volodymyr Kostyrko wrote: 2013-03-27 15:06, Loic Capdeville wrote: /usr/local/lib/python2.7/site-packages/easy-install.pth: import sys; sys.__plen = len(sys.path) ../setuptools-0.6c11-py2.7.egg ../Pygments-1.5-py2.7.egg ../Babel-0.9.6-py2.7.egg ../MarkupSafe-0.15-py2.7-freebsd-9.0-RELEASE-amd64.egg ../Jinja2-2.6-py2.7.egg ../Sphinx-1.1.3-py2.7.egg ../virtualenv-1.9.1-py2.7.egg import sys; new=sys.path[sys.__plen:]; del sys.path[sys.__plen:]; p=getattr(sys,'__egginsert',0); sys.path[p:p]=new; sys.__egginsert = p+len(new) /usr/local/lib/python2.7/site-packages/easy-install.pth.dist: import sys; sys.__plen = len(sys.path) ../setuptools-0.6c11-py2.7.egg import sys; new=sys.path[sys.__plen:]; del sys.path[sys.__plen:]; p=getattr(sys,'__egginsert',0); sys.path[p:p]=new; sys.__egginsert = p+len(new) Looks like py-distribute is not installed at all. what was the outcome of portupgrade -fo devel/py-distribute devel/py-setuptools? Can you try running that again? It hasn't printed anything since the first time I tried to run it... and still print nothing. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Upgrade devel/py-setuptools
On 27/03/2013 17:30, Volodymyr Kostyrko wrote: 2013-03-27 15:33, Loic Capdeville wrote: On 27/03/2013 14:27, Volodymyr Kostyrko wrote: 2013-03-27 15:06, Loic Capdeville wrote: /usr/local/lib/python2.7/site-packages/easy-install.pth: import sys; sys.__plen = len(sys.path) ../setuptools-0.6c11-py2.7.egg ../Pygments-1.5-py2.7.egg ../Babel-0.9.6-py2.7.egg ../MarkupSafe-0.15-py2.7-freebsd-9.0-RELEASE-amd64.egg ../Jinja2-2.6-py2.7.egg ../Sphinx-1.1.3-py2.7.egg ../virtualenv-1.9.1-py2.7.egg import sys; new=sys.path[sys.__plen:]; del sys.path[sys.__plen:]; p=getattr(sys,'__egginsert',0); sys.path[p:p]=new; sys.__egginsert = p+len(new) /usr/local/lib/python2.7/site-packages/easy-install.pth.dist: import sys; sys.__plen = len(sys.path) ../setuptools-0.6c11-py2.7.egg import sys; new=sys.path[sys.__plen:]; del sys.path[sys.__plen:]; p=getattr(sys,'__egginsert',0); sys.path[p:p]=new; sys.__egginsert = p+len(new) Looks like py-distribute is not installed at all. what was the outcome of portupgrade -fo devel/py-distribute devel/py-setuptools? Can you try running that again? It hasn't printed anything since the first time I tried to run it... and still print nothing. So here is a main problem. If it prints nothing it doesn't work. Do you have portupgrade or portmaster installed? Did it yield at least one line? Some errors? If it doesn't that's surely a sign that something is going wrong. I use portupgrade regularly to upgrade my ports, and usually everything goes right. If fails only with that particular operation (or these portupgrade options) Do I have to install devel/py-distribute separately, or should the portupgrade -fo command do everything itself (uninstall py-setuptools and install py-distribute) ? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org