Re: change an image or convert it to metapost

2013-01-09 Thread Lowell Gilbert
Antonio Olivares olivares14...@gmail.com writes:

 Dear folks,

 Is it possible to change an image:

 http://www.valleycentral.com/uploadedImages/kgbt/Sports/Videos/GatorLogoJPEG.jpg?w=440h=330aspect=nostretch

 To metapost?  so that it could be processed by metapost?

 I have referenced this page

 http://matagalatlante.org/nobre/hyt/mpost.html

 but I don't have some of the programs referenced there.  If someone
 that is experienced in metapost or other language that can convert the
 graphic to metapost it would be very nice.  I have converted the image
 to EPS(encapsulated postscript) but the image does not fit nicely in
 *.tex documents and I would prefer to have a native one created by
 metapost or similar.

Metapost contains more information than JPEG. There's no way to derive a
whole model from a flat image, so converting the former to the latter
doesn't really make sense. For that matter, JPEG is a pixel-based
format, so it's not going to scale in the document as well as something
that's based on vectors or curves. It would probably look okay if the
original image were much larger and getting scaled down. 

The usual thing to do here is probably to make sure the image gets used
at its normal resolution. This is really a TeX (or LaTeX)
question. Unfortunately, my set of documents in easy reach is too old to
cover how to do this, so I can't give you the formula offhand.

Good luck.
___
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: keyboard and mouse problem

2013-01-09 Thread Lowell Gilbert
Jack Mc Lauren jack.mclau...@yahoo.com writes:

 I have a freeBSD 8.2 amd64 on my system and I'm using
 gnome environment. But after a few seconds my USB keyboard and  PS/2
 mouse hang up !!!

 What should I do ?

Are you still able to switch to other virtual terminals?
Are you still able to ssh in to the system and see whether the console
mouse and keyboard are generating interrupts?
___
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: which version of FBSD should i install?

2013-01-09 Thread Erich Dollansky
Hi,

On Tue, 8 Jan 2013 23:16:58 -0800
Gary Kline kl...@thought.org wrote:

 On Wed, Jan 09, 2013 at 12:55:49PM +0700, Erich Dollansky wrote:
  Hi,
  
  On Tue, 8 Jan 2013 18:55:04 -0800
  Gary Kline kl...@thought.org wrote:
  
 ms well use my 2005 Thinkpad.  it is reasonably fast at
   3.06GHz. should clue me in on how much stuff I need to compile to
   test.
  
  You should be able to run anything from 7.4, 8.3, 9.1 to 10.0.
  
  I mention 7.4 here for a simple reason. It could be that your old
  machine uses some USB hardware, which is not supported from 8.0
  onwards.
  
  I would say, if it works, use 9.1. If not check out 7.4. If this
  then works, you could check 10 out.
  
  8.3 is the version which is the most robust one as the new stuff did
  not arrive there yet.
  
  Erich
 
 
   Thanks for this.  VBC uses no USB hardware... well, AFAIK.  I
   =believe= it should work on anything unix. That is: 
   Unix, BSD, Linux, Android.  VBC doe require a keyboard since
 the disabled user needs to type what he wants to have spoken. If
   there are and USB issues there, I have no idea.
 
if the keyboard is connected via USB, you have lost if the controller
is not supported. I would not expect this to be the case on a notebook.

Anyway, it is most likely that you will be happy with any version. As
the ports are the same for all versions.

Have fun testing.

Erich
___
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: keyboard and mouse problem

2013-01-09 Thread Erich Dollansky
Hi,

On Tue, 8 Jan 2013 23:53:04 -0800 (PST)
Jack Mc Lauren jack.mclau...@yahoo.com wrote:

 I have a freeBSD 8.2 amd64 on my system and I'm using
 gnome environment. But after a few seconds my USB keyboard and  PS/2
 mouse hang up !!!
 
when did you setup the system? Did this happen after an update?

 What should I do ?
 
Can you test without mouse?

To  be honest, I was not able to get a system up with a PS/2 mouse or
keyboard since years. I blamed it on the old hardware and got me a new
keyboard and a new mouse with USB.

Erich
___
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

installing a new device driver

2013-01-09 Thread Jack Mc Lauren
Hi all
Sorry I ask so much cause I'm a new user to freeBSD :)

Hear's the deal. How can I install a new device driver on my OS ? Please 
explain in details because of the reason I mentioned earlier :)

Thanks in advance ...
___
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: installing a new device driver

2013-01-09 Thread Ralf Mardorf
On Wed, 2013-01-09 at 02:09 -0800, Jack Mc Lauren wrote:
 How can I install a new device driver on my OS ?

I'm new to FreeBSD myself :).

Manually as root run

kldload driver_name

this is something I already used myself.


To load the module automagically at startup, edit /boot/loader.conf

driver_name=YES

I never used this myself until now.


http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-modules.html


Hth,
Ralf

___
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: installing a new device driver

2013-01-09 Thread Jack Mc Lauren
This is the output of pciconf -lv :

    vendor     = 'FarSite Communications Limited'
    device     = 'G.SHDSL Intelligent Sync Comms Card (FarSync DSL-S1)'
    class      = simple comms

So what is the next step ?



 From: Ralf Mardorf ralf.mard...@rocketmail.com
To: freebsd-questions@freebsd.org 
Sent: Wednesday, January 9, 2013 1:55 PM
Subject: Re: installing a new device driver
 
On Wed, 2013-01-09 at 02:09 -0800, Jack Mc Lauren wrote:
 How can I install a new device driver on my OS ?

I'm new to FreeBSD myself :).

Manually as root run

        kldload driver_name
        
this is something I already used myself.


To load the module automagically at startup, edit /boot/loader.conf

        driver_name=YES
        
I never used this myself until now.


http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-modules.html


Hth,
Ralf

___
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
___
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: installing a new device driver

2013-01-09 Thread Zyumbilev, Peter


On 09/01/2013 13:16, Jack Mc Lauren wrote:
 This is the output of pciconf -lv :
 
 vendor = 'FarSite Communications Limited'
 device = 'G.SHDSL Intelligent Sync Comms Card (FarSync DSL-S1)'
 class  = simple comms
 
 So what is the next step ?
 


I would strongly advise connect to the modem via network cable and TCP/IP.

Peter
___
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: installing a new device driver

2013-01-09 Thread Michael Powell
Jack Mc Lauren wrote:

 Hi all
 Sorry I ask so much cause I'm a new user to freeBSD :)
 
 Hear's the deal. How can I install a new device driver on my OS ? Please
 explain in details because of the reason I mentioned earlier :)
 

First, please understand that FreeBSD is a mostly, self-contained operating 
system. Generally speaking the difference is in where the driver itself comes 
from. There are exceptions, as there are indeed some vendors who provide 
driver code to the project as third-party add ins, but much driver code is 
written by and contained within the project itself. This means that you will 
not go willy-nilly surfing all over the web downloading drivers to install.

If you have the source code for the OS installed (it was an option during 
install) you might want to look at a kernel configuration file for a basic 
idea on how drivers 'relate' in FreeBSD. On an i386 system there will be a 
path /usr/src/sys/i386/conf/, and on a 64 bit install  the kernel config 
file will be located under /usr/src/sys/amd64/conf. On a brand new machine 
with no custom kernel you will see a file under these location(s) called 
simply GENERIC. This is the kernel configuration file for the OS as 
distributed and until one generates and compiles their own custom kernel it 
will be what you are running.

Notice lines within the file that begin with 'options' and 'device'. The 
lines you see that start with 'device' are device driver(s) that are built 
into the kernel itself. There is such a wide variety in the GERNERIC kernel 
because it ships as designed to be ready to operate on a plethora of 
differenet hardware. Many people will build a custom kernel that strips out 
all of these that they do not need.

So what if you strip out something that you do need does that mean that you 
have to build a new kernel all over again? Quite possibly not, as FreeBSD 
also has something called 'kernel modules' as well. If you look in 
/boot/kernel you will notice a lot of files that end in a .so extension. 
These are kernel modules (think 'drivers' here - it is pretty much the same 
idea). You can load and unload these kernel modules while a system is 
running using kldload and kldunload commands. The command kldstat will 
inform you about ones that are loaded and active.

The thing you need to know is you can't kldload a kernel module if that 
corresponding function is already built-in and present in the running 
kernel. Example: a kernel config file with 'device em' means the driver is 
already compiled into the kernel and you will receive an error should you 
attempt to kldload the if_em.ko kernel module.

Just to expand a little for some quick grokage:-)

-Mike



___
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: openjdk6 + iced-teaweb installed, cannot open *.jnlp

2013-01-09 Thread Volodymyr Kostyrko

09.01.2013 02:57, Antonio Olivares:

Dear folks,

I am having difficulties with java on my machine I have the java
openjdk6 and the iced-teaweb ports installed.  As the old diablo jdk
has been depracated and has been recommended to remove, I have done
this, I cannot open *.jnlp files on my machine.  I have changed the
/usr/local/bin/javaws to the replacement /usr/local/bin/itweb-javaws,
and I have tried to do what is recommended.  On three of four machines
I have deleted the diablo jdk, but I want to use at lease one  FreeBSD
box and there I have not removed it till I solve this issue.


$ itweb-javaws jviewer.jnlp
Error: could not find libjava.so
Error: could not find Java 2 Runtime Environment.
$

E-213-3W# pkg_version  | grep 'openjdk'
bootstrap-openjdk   =
openjdk6=
E-213-3W# pkg_version  | grep 'icedtea-web'
icedtea-web =
E-213-3W#

Question:
Should I install openjdk7 and iced-teaweb ports?
How can I get java to open the *.jnlp files as the old javaws did correctly?

Please share ideas and suggestions.


http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/173603

--
Sphinx of black quartz, judge my vow.
___
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


USB in Windows7 guest

2013-01-09 Thread Leslie Jensen


Hello.

I posted this on the freebsd-virtualization list but got no answers so 
now I hope that someone here can shed the light for me.



I have a Windows7 guest OS in Virtualbox on a FreeBSD 9.1-RELEASE system.

I've followed the instructions in the handbook for enabling USB-support 
in Virtualbox.


In the machines settings I've ticked for activation of USB controller 
but not for USB2 because it needs an extension pack that's not available 
for freebsd if I've understood it right.


I have an Epson V500 scanner that is recognized as an unknown device by 
the host OS.


ugen7.2: EPSON at usbus7
Unknown USB device: vendor 0x04b8 product 0x0130 bus uhub7


I cannot get it to appear in the guest OS.

Is it possible and if so what do I need to do in order to make it visible?

Thanks

/Leslie
___
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: change an image or convert it to metapost

2013-01-09 Thread Antonio Olivares
On Wed, Jan 9, 2013 at 2:07 AM, Lowell Gilbert
freebsd-questions-lo...@be-well.ilk.org wrote:
 Antonio Olivares olivares14...@gmail.com writes:

 Dear folks,

 Is it possible to change an image:

 http://www.valleycentral.com/uploadedImages/kgbt/Sports/Videos/GatorLogoJPEG.jpg?w=440h=330aspect=nostretch

 To metapost?  so that it could be processed by metapost?

 I have referenced this page

 http://matagalatlante.org/nobre/hyt/mpost.html

 but I don't have some of the programs referenced there.  If someone
 that is experienced in metapost or other language that can convert the
 graphic to metapost it would be very nice.  I have converted the image
 to EPS(encapsulated postscript) but the image does not fit nicely in
 *.tex documents and I would prefer to have a native one created by
 metapost or similar.

 Metapost contains more information than JPEG. There's no way to derive a
 whole model from a flat image, so converting the former to the latter
 doesn't really make sense. For that matter, JPEG is a pixel-based
 format, so it's not going to scale in the document as well as something
 that's based on vectors or curves. It would probably look okay if the
 original image were much larger and getting scaled down.

 The usual thing to do here is probably to make sure the image gets used
 at its normal resolution. This is really a TeX (or LaTeX)
 question. Unfortunately, my set of documents in easy reach is too old to
 cover how to do this, so I can't give you the formula offhand.

 Good luck.

Actually, the problem is that the placement of the figure is not where
I want it to be.  With a correct and true EPS and the 'h' option would
give a very good placement.  It would still be nice to produce a
metapost file and scale it to fit nicely and place text next to it,
but I am guessing that I am hoping for some miracles.

Regards,


Antonio
___
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


Fwd: how to change from STABLE to RELEASE?

2013-01-09 Thread Antonio Olivares
 Give this a try

 setenv UNAME_r 9.0-RELEASE
 freebsd-update fetch update
 freebsd-update upgrade -r 9.1-RELEASE

 Thank you very much!  It seems to be working:

 $ su -
 Password:
 %seten UNAME_r 9.0-RELEASE
 seten: Command not found.
 %setenv UNAME_r 9.0-RELEASE
 %freebsd-update fetch update
 usage: freebsd-update [options] command ... [path]

 Options:
   -b basedir   -- Operate on a system mounted at basedir
   (default: /)
   -d workdir   -- Store working files in workdir
   (default: /var/db/freebsd-update/)
   -f conffile  -- Read configuration options from conffile
   (default: /etc/freebsd-update.conf)
   -k KEY   -- Trust an RSA key with SHA256 hash of KEY
   -r release   -- Target for upgrade (e.g., 6.2-RELEASE)
   -s server-- Server from which to fetch updates
   (default: update.FreeBSD.org)
   -t address   -- Mail output of cron command, if any, to address
   (default: root)
 Commands:
   fetch-- Fetch updates from server
   cron -- Sleep rand(3600) seconds, fetch updates, and send an
   email if updates were found
   upgrade  -- Fetch upgrades to FreeBSD version specified via -r option
   install  -- Install downloaded updates or upgrades
   rollback -- Uninstall most recently installed updates
   IDS  -- Compare the system against an index of known good files.
 %freebsd-update fetch
 Looking up update.FreeBSD.org mirrors... 3 mirrors found.
 Fetching public key from update5.freebsd.org... done.
 Fetching metadata signature for 9.0-RELEASE from update5.freebsd.org... done.
 Fetching metadata index... done.
 Fetching 2 metadata files... done.
 Inspecting system... done.
 Preparing to download files...

 Will get back to see if it went through all the way!

 Best Regards,


 Antonio

Dear folks,

Everything almost worked.  Now I get some errors.
/etc/defaults/rc.conf:  18:  Syntax error:  redirection unexpected
Enter full pathname of shell or RETURN for /bin/sh:

I try to edit the file, but I cannot see it I get a readonly file
system.  There were some mistakes that I could not correct some lines
like  and then === were present in the file, but vi could
not allow me to remove them I got error and I wanted to :wq! quickly
and now I cannot boot.  How can I get into the computer with
read/write permission to fix this one and a /boot/device.hints error
that is present here?

Thanks for any pointers and help/advice.

Regards,


Antonio

===

When I reboot I get:

Enter full pathname of shell or RETURN for /bin/sh:
I press enter and try:

# mount -a
mount:  not found
# mount -urw /
mount:  not found
#

I try
# /rescue/vi /etc/defaults/rc.conf
which is the one that is borked, to fix it and remove the  that
present in there, I get

ex/vi:  Error:  /var/tmp/vi.recover:  Read-only file sytem
ex/vi:  Modifications not recoverable if the session fails
ex/vi:  Error:  /etc/defaults/rc.conf:  Read-only file sytem
ex/vi:  Error:  Unable to create temporary file:  Read-only file system

I can boot the livedvd for FreeBSD 9.1 or 8.2/8.3 series as I have
them available.  There used to be the fixit command and I could use
it.  I try the advice in System Administration chapter of handbook,
but it does not work here :(

boot -s
mount -a
mount -urw /

as found in:

http://www.freebsd.org/doc/faq/admin.html#rcconf-readonly


Words of advice and suggestions are greatly appreciated and would get
me to fix the mess that I started by myself :(

Regards,


Antonio
___
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: how to change from STABLE to RELEASE?

2013-01-09 Thread Fleuriot Damien

On Jan 9, 2013, at 2:26 PM, Antonio Olivares olivares14...@gmail.com wrote:

 Give this a try
 
 setenv UNAME_r 9.0-RELEASE
 freebsd-update fetch update
 freebsd-update upgrade -r 9.1-RELEASE
 
 Thank you very much!  It seems to be working:
 
 $ su -
 Password:
 %seten UNAME_r 9.0-RELEASE
 seten: Command not found.
 %setenv UNAME_r 9.0-RELEASE
 %freebsd-update fetch update
 usage: freebsd-update [options] command ... [path]
 
 Options:
  -b basedir   -- Operate on a system mounted at basedir
  (default: /)
  -d workdir   -- Store working files in workdir
  (default: /var/db/freebsd-update/)
  -f conffile  -- Read configuration options from conffile
  (default: /etc/freebsd-update.conf)
  -k KEY   -- Trust an RSA key with SHA256 hash of KEY
  -r release   -- Target for upgrade (e.g., 6.2-RELEASE)
  -s server-- Server from which to fetch updates
  (default: update.FreeBSD.org)
  -t address   -- Mail output of cron command, if any, to address
  (default: root)
 Commands:
  fetch-- Fetch updates from server
  cron -- Sleep rand(3600) seconds, fetch updates, and send an
  email if updates were found
  upgrade  -- Fetch upgrades to FreeBSD version specified via -r option
  install  -- Install downloaded updates or upgrades
  rollback -- Uninstall most recently installed updates
  IDS  -- Compare the system against an index of known good files.
 %freebsd-update fetch
 Looking up update.FreeBSD.org mirrors... 3 mirrors found.
 Fetching public key from update5.freebsd.org... done.
 Fetching metadata signature for 9.0-RELEASE from update5.freebsd.org... done.
 Fetching metadata index... done.
 Fetching 2 metadata files... done.
 Inspecting system... done.
 Preparing to download files...
 
 Will get back to see if it went through all the way!
 
 Best Regards,
 
 
 Antonio
 
 Dear folks,
 
 Everything almost worked.  Now I get some errors.
 /etc/defaults/rc.conf:  18:  Syntax error:  redirection unexpected
 Enter full pathname of shell or RETURN for /bin/sh:
 
 I try to edit the file, but I cannot see it I get a readonly file
 system.  There were some mistakes that I could not correct some lines
 like  and then === were present in the file, but vi could
 not allow me to remove them I got error and I wanted to :wq! quickly
 and now I cannot boot.  How can I get into the computer with
 read/write permission to fix this one and a /boot/device.hints error
 that is present here?
 
 Thanks for any pointers and help/advice.
 
 Regards,
 
 
 Antonio
 
 ===
 
 When I reboot I get:
 
 Enter full pathname of shell or RETURN for /bin/sh:
 I press enter and try:
 
 # mount -a
 mount:  not found
 # mount -urw /
 mount:  not found
 #
 
 I try
 # /rescue/vi /etc/defaults/rc.conf
 which is the one that is borked, to fix it and remove the  that
 present in there, I get
 
 ex/vi:  Error:  /var/tmp/vi.recover:  Read-only file sytem
 ex/vi:  Modifications not recoverable if the session fails
 ex/vi:  Error:  /etc/defaults/rc.conf:  Read-only file sytem
 ex/vi:  Error:  Unable to create temporary file:  Read-only file system
 
 I can boot the livedvd for FreeBSD 9.1 or 8.2/8.3 series as I have
 them available.  There used to be the fixit command and I could use
 it.  I try the advice in System Administration chapter of handbook,
 but it does not work here :(
 
 boot -s
 mount -a
 mount -urw /
 
 as found in:
 
 http://www.freebsd.org/doc/faq/admin.html#rcconf-readonly
 
 
 Words of advice and suggestions are greatly appreciated and would get
 me to fix the mess that I started by myself :(
 
 Regards,




mount -o rw /


Alternatively boot a livefs CD (or martin matuska's mfsbsd) and mount your / 
partition from there, read-write.


___
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


Which ports tree through svn?

2013-01-09 Thread Andrei Brezan

Hello list,

I'm using:
FreeBSD myhost.mydomain.com 9.0-RELEASE-p3 FreeBSD 9.0-RELEASE-p3 #0: 
Tue Jun 12 02:52:29 UTC 2012 
r...@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64


I want/need to use svn for my ports tree mainly because I need to 
downgrade ports. There is portdowngrade in the ports tree but that 
relies on cvs which is no longer available. The only way that I'm able 
to do this now is with svn log and svn up -r to the revision needed so I 
get the version that I need in the port.


My problem is what do i need to checkout in the first place for 9.0-RELEASE?
svn co svn://svn.freebsd.org/ports/head /usr/ports or svn co 
snv://svn.freebsd.org/tags/RELEASE_9_0_0 /usr/ports?


The first one seems to be up to date but the latter has for eg apache 
version 2.2.21 from 2011; I presume from the portfreeze before 9 was 
released.


Maybe there are any means to downgrade ports while using portsnap that 
I'm not aware of.


Thank you,
Andrei
___
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: how to change from STABLE to RELEASE?

2013-01-09 Thread Warren Block

On Tue, 8 Jan 2013, Antonio Olivares wrote:


Dear folks,

I am happily running FreeBSD 9.0-STABLE on one of my machines, but I
want to move to FreeBSD-RELEASE and use
# freebsd-update upgrade -r 9.1-RELEASE
but it does not find a valid repository.  How can I solve this issue
to move to newer RELEASE and avoid staying on STABLE because I will
have to compile/build world and it takes a good while to build and
then may have to rebuild all the ports.


As long as you stay on 9-STABLE, it is not necessary to rebuild all 
ports.  Actually, that is what the stable part means, a stable ABI:


http://www.wonkity.com/~wblock/docs/html/stable.html
___
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: how to change from STABLE to RELEASE?

2013-01-09 Thread Fleuriot Damien

On Jan 9, 2013, at 3:56 PM, Warren Block wbl...@wonkity.com wrote:

 On Tue, 8 Jan 2013, Antonio Olivares wrote:
 
 Dear folks,
 
 I am happily running FreeBSD 9.0-STABLE on one of my machines, but I
 want to move to FreeBSD-RELEASE and use
 # freebsd-update upgrade -r 9.1-RELEASE
 but it does not find a valid repository.  How can I solve this issue
 to move to newer RELEASE and avoid staying on STABLE because I will
 have to compile/build world and it takes a good while to build and
 then may have to rebuild all the ports.
 
 As long as you stay on 9-STABLE, it is not necessary to rebuild all ports.  
 Actually, that is what the stable part means, a stable ABI:
 
 http://www.wonkity.com/~wblock/docs/html/stable.html


Interesting article, Warren.

If I may say, you may want, on occasion, to update the section about csup.



I'm going to take the opportunity to favorite your post, which I had read 
previously, regarding the simplification of kernel config files.
http://www.wonkity.com/~wblock/docs/html/kernelconfig.html

___
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: sh script problem with capturing return code

2013-01-09 Thread Fbsd8

Lowell Gilbert wrote:

Fbsd8 fb...@a1poweruser.com writes:


Polytropon wrote:

On Tue, 08 Jan 2013 16:30:49 -0500, Fbsd8 wrote:

I can not get the return code from mtree to control
the displaying of a error message.

The mtree at the end of the script does function correctly
because I can tell from the printed output.

When mtree prints comments saying extra that means the directory
being read does not match the specification file. return code
should be Not equal to zero.

And when they do match IE: no mtree comments printed, that should
be a return code of zero.

I tried 2 different ways to capture the return code to no joy.
What I am doing wrong?

#! /bin/sh
flavor=/a/mtree.std
echo flavor = ${flavor}
/bin/cat   EOF |
/set type=dir uname=root gname=wheel
.
etc ignore
..
rootignore
..
usr
homeignore
..
local
etc ignore
..
..
..
..
EOF

  mtree -d -u -p ${flavor}  || \
echo Error invalid directories in flavor ${flavor}.

#mtree -d -p ${flavor}
#[ $? -eq 0 ] || \
#  echo Error invalid directories in flavor ${flavor}.
echo return = $?

It seems that returning 0 is correct in a case as you mentioned.
The manual at man mtree states:

EXIT STATUS
 The mtree utility exits 0 on success, and 0 if an error occurs.

Question: What _is_ an error here?

If you use the source Luke at /usr/src/usr.sbin/mtree/mtree.c,
you could find out what combination of options plus circumstances
found at runtime could trigger an exit status != 0.

The main() functions finishes with exit(status); where status
is either set by functions mtree_specspec() or mtree_verifyspec(),
or manually to 0 when -U is provided and MISMATCHEXIT (is 2) is
encountered.

Again from the manual:

 -uSame as -U except a status of 2 is returned if the file hierarchy
   did not match the specification.

 -UModify the owner, group, permissions, and modification time of
   existing files to match the specification and create any missing
   directories or symbolic links.  User, group and permissions must
   all be specified for missing directories to be created.  Corrected
   mismatches are not considered errors.

However, you're not using -U, but -u, so the last sentence of
the description above should be relevant: No error per se,
even though the status code should be 2.





Well I just tested with -U -u together no joy.
Tested with -U no joy.

My read of the above is -u should cause a return code of 2 when the
file hierarchy does not match the specification. I don't want -U
because I am not modifying any content of the directory tree mtree is
looking at.

I just don't get the point your trying to make.

Oh the other hand are you saying the script code is correct to capture
the return code but using wrong options with mtree ?


It works fine for me:

[5023] (lowell-desk) temp touch foo
[5024] (lowell-desk) temp mtree -c  ../out
[5025] (lowell-desk) temp if (mtree  ../out ) ; then echo yes ; else echo 
no ; fi
yes
[5026] (lowell-desk) temp touch foo
[5027] (lowell-desk) temp if (mtree  ../out ) ; then echo yes ; else echo 
no ; fi
foo changed
modification time expected Wed Jan  9 02:42:31 2013 found Wed Jan  
9 02:42:47 2013
no
[5028] (lowell-desk) temp echo $?
0
[5029] (lowell-desk) temp mtree  ../out
foo changed
modification time expected Wed Jan  9 02:42:31 2013 found Wed Jan  
9 02:42:47 2013
[5030] (lowell-desk) temp echo $?
2
[5031] (lowell-desk) temp touch temp
[5032] (lowell-desk) temp mtree -u  ../out
. changed
modification time expected Wed Jan  9 02:42:37 2013 found Wed Jan  
9 02:49:52 2013 modified
foo changed
modification time expected Wed Jan  9 02:42:31 2013 found Wed Jan  
9 02:42:47 2013 modified
temp extra
[5033] (lowell-desk) temp echo $?
2

This is exactly what I would expect, and what you said you weren't
getting. You didn't show what you ran your script on, or what the
results were, so I can't tell you what you're doing wrong -- but compare
my example to yours and I'm sure you'll be able to figure it out.

Good luck.




Your example is testing for file changes. The mtree spec file I posted
and the mtree -d shows I am checking just at the directory level. The
ignore option on the spec file means ignore any file hierarchy below
this file. That coupled with the -d option that says ignore everything
except directory type files.

So what I want to get is; apply that spec file to the target directory
checking that the spec directories are present in the target and any 
sub-directories on those spec directories are ignored on the target, IE; 
is not an error condition. All files in spec directory tree and the 
target directory tree are ignored. Any directories in the target 
directory tree not in the spec file are errors and set the return code 
to non-zero.


The spec and target directory trees look like this.

  +mtree.spec
   | 

Re: how to change from STABLE to RELEASE?

2013-01-09 Thread Warren Block

On Wed, 9 Jan 2013, Fleuriot Damien wrote:



On Jan 9, 2013, at 3:56 PM, Warren Block wbl...@wonkity.com wrote:


On Tue, 8 Jan 2013, Antonio Olivares wrote:


Dear folks,

I am happily running FreeBSD 9.0-STABLE on one of my machines, but I
want to move to FreeBSD-RELEASE and use
# freebsd-update upgrade -r 9.1-RELEASE
but it does not find a valid repository.  How can I solve this issue
to move to newer RELEASE and avoid staying on STABLE because I will
have to compile/build world and it takes a good while to build and
then may have to rebuild all the ports.


As long as you stay on 9-STABLE, it is not necessary to rebuild all ports.  Actually, 
that is what the stable part means, a stable ABI:

http://www.wonkity.com/~wblock/docs/html/stable.html



Interesting article, Warren.

If I may say, you may want, on occasion, to update the section about csup.


Doh!  Done now, please refresh your browser.


I'm going to take the opportunity to favorite your post, which I had read 
previously, regarding the simplification of kernel config files.
http://www.wonkity.com/~wblock/docs/html/kernelconfig.html


Thanks!
___
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: Which ports tree through svn?

2013-01-09 Thread Fleuriot Damien

On Jan 9, 2013, at 3:41 PM, Andrei Brezan andrei...@gmail.com wrote:

 Hello list,
 
 I'm using:
 FreeBSD myhost.mydomain.com 9.0-RELEASE-p3 FreeBSD 9.0-RELEASE-p3 #0: Tue Jun 
 12 02:52:29 UTC 2012 
 r...@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64
 
 I want/need to use svn for my ports tree mainly because I need to downgrade 
 ports. There is portdowngrade in the ports tree but that relies on cvs which 
 is no longer available. The only way that I'm able to do this now is with svn 
 log and svn up -r to the revision needed so I get the version that I need in 
 the port.
 
 My problem is what do i need to checkout in the first place for 9.0-RELEASE?
 svn co svn://svn.freebsd.org/ports/head /usr/ports or svn co 
 snv://svn.freebsd.org/tags/RELEASE_9_0_0 /usr/ports?
 
 The first one seems to be up to date but the latter has for eg apache version 
 2.2.21 from 2011; I presume from the portfreeze before 9 was released.
 
 Maybe there are any means to downgrade ports while using portsnap that I'm 
 not aware of.
 
 Thank you,
 Andrei


http://svn.freebsd.org/ports/tags/RELEASE_9_0_0/


Note that, unless I'm mistaken, this branch is frozen so you won't be getting 
any update.

___
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: change an image or convert it to metapost

2013-01-09 Thread Lowell Gilbert
Antonio Olivares olivares14...@gmail.com writes:

 On Wed, Jan 9, 2013 at 2:07 AM, Lowell Gilbert
 freebsd-questions-lo...@be-well.ilk.org wrote:
 Antonio Olivares olivares14...@gmail.com writes:

 Dear folks,

 Is it possible to change an image:

 http://www.valleycentral.com/uploadedImages/kgbt/Sports/Videos/GatorLogoJPEG.jpg?w=440h=330aspect=nostretch

 To metapost?  so that it could be processed by metapost?

 I have referenced this page

 http://matagalatlante.org/nobre/hyt/mpost.html

 but I don't have some of the programs referenced there.  If someone
 that is experienced in metapost or other language that can convert the
 graphic to metapost it would be very nice.  I have converted the image
 to EPS(encapsulated postscript) but the image does not fit nicely in
 *.tex documents and I would prefer to have a native one created by
 metapost or similar.

 Metapost contains more information than JPEG. There's no way to derive a
 whole model from a flat image, so converting the former to the latter
 doesn't really make sense. For that matter, JPEG is a pixel-based
 format, so it's not going to scale in the document as well as something
 that's based on vectors or curves. It would probably look okay if the
 original image were much larger and getting scaled down.

 The usual thing to do here is probably to make sure the image gets used
 at its normal resolution. This is really a TeX (or LaTeX)
 question. Unfortunately, my set of documents in easy reach is too old to
 cover how to do this, so I can't give you the formula offhand.

 Good luck.

 Actually, the problem is that the placement of the figure is not where
 I want it to be.  With a correct and true EPS and the 'h' option would
 give a very good placement.  It would still be nice to produce a
 metapost file and scale it to fit nicely and place text next to it,
 but I am guessing that I am hoping for some miracles.

If you're talking about starting from a JPEG and turning it into a
scalable image, then yes, you're looking for miracles. It's kind of like
starting with a hamburger and trying to turn it into a steak.  

Getting placement correct, however, should be possible, but it's more of
a TeX question, and you might want to ask the TeX experts. Most of the
conversion programs on the page you referenced are in the FreeBSD ports
tree, so you shouldn't have trouble using them if you want.
___
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: installing a new device driver

2013-01-09 Thread Lowell Gilbert
Zyumbilev, Peter pe...@aboutsupport.com writes:

 On 09/01/2013 13:16, Jack Mc Lauren wrote:
 This is the output of pciconf -lv :
 
 vendor = 'FarSite Communications Limited'
 device = 'G.SHDSL Intelligent Sync Comms Card (FarSync DSL-S1)'
 class  = simple comms
 
 So what is the next step ?
 


 I would strongly advise connect to the modem via network cable and TCP/IP.

Since the modem is a PCI card, plugging it into the computer and
connecting to it over the PCI bus is required. Talking to the device
through the serial driver is correct.

First it's necessary to know whether this card requires a firmware
download. I would guess probably not, but I can't find any definitive
information on it to be sure. 

Second it's necessary to know what kind of connection the ISP expects it
to make, in order to configure it. Very likely either mpd or ppp will be
able to work with it. The appropriate serial device may be the one at
the start of the line preceding the pciconf output we were shown.

___
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: how to change from STABLE to RELEASE?

2013-01-09 Thread Antonio Olivares
 ===

 When I reboot I get:

 Enter full pathname of shell or RETURN for /bin/sh:
 I press enter and try:

 # mount -a
 mount:  not found
 # mount -urw /
 mount:  not found
 #

 I try
 # /rescue/vi /etc/defaults/rc.conf
 which is the one that is borked, to fix it and remove the  that
 present in there, I get

 ex/vi:  Error:  /var/tmp/vi.recover:  Read-only file sytem
 ex/vi:  Modifications not recoverable if the session fails
 ex/vi:  Error:  /etc/defaults/rc.conf:  Read-only file sytem
 ex/vi:  Error:  Unable to create temporary file:  Read-only file system

 I can boot the livedvd for FreeBSD 9.1 or 8.2/8.3 series as I have
 them available.  There used to be the fixit command and I could use
 it.  I try the advice in System Administration chapter of handbook,
 but it does not work here :(

 boot -s
 mount -a
 mount -urw /

 as found in:

 http://www.freebsd.org/doc/faq/admin.html#rcconf-readonly


 Words of advice and suggestions are greatly appreciated and would get
 me to fix the mess that I started by myself :(

 Regards,




 mount -o rw /


 Alternatively boot a livefs CD (or martin matuska's mfsbsd) and mount your / 
 partition from there, read-write.



Thank you for the suggestion.  I am now back in the saddle and running
9.1-RELEASE on this machine. Thanks for all the help provided.

$ uname -r
9.1-RELEASE
$ uname -a
FreeBSD e213-amd64-1.grullahighschool.org 9.1-RELEASE FreeBSD
9.1-RELEASE #0 r243825: Tue Dec  4 09:23:10 UTC 2012
r...@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64


Regards,


Antonio
___
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: openjdk6 + iced-teaweb installed, cannot open *.jnlp

2013-01-09 Thread Antonio Olivares
 http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/173603

 --

I get this:

$ bash -x `which itweb-javaws` jviewer.jnlp
+ JAVA=/usr/local/openjdk6/jre/bin/java
+ LAUNCHER_BOOTCLASSPATH=-Xbootclasspath/a:/usr/local/share/icedtea-web/netx.jar
+ LAUNCHER_FLAGS=-Xms8m
+ CLASSNAME=net.sourceforge.jnlp.runtime.Boot
+ BINARY_LOCATION=/usr/local/bin/itweb-javaws
+ PROGRAM_NAME=itweb-javaws
+ CP=/usr/local/openjdk6/jre/lib/rt.jar
+ JAVA_ARGS=()
+ ARGS=()
+ COMMAND=()
+ i=0
+ j=0
+ '[' 1 -gt 0 ']'
+ case $1 in
+ ARGS[$j]=jviewer.jnlp
+ j=1
+ shift
+ '[' 0 -gt 0 ']'
+ k=0
+ COMMAND[k]=/usr/local/openjdk6/jre/bin/java
+ k=1
+ COMMAND[k]=-Xbootclasspath/a:/usr/local/share/icedtea-web/netx.jar
+ k=2
+ COMMAND[k]=-Xms8m
+ k=3
+ i=0
+ '[' 0 -lt 0 ']'
+ COMMAND[k]=-classpath
+ k=4
+ COMMAND[k]=/usr/local/openjdk6/jre/lib/rt.jar
+ k=5
+ COMMAND[k]=-Dicedtea-web.bin.name=itweb-javaws
+ k=6
+ COMMAND[k]=-Dicedtea-web.bin.location=/usr/local/bin/itweb-javaws
+ k=7
+ COMMAND[k]=net.sourceforge.jnlp.runtime.Boot
+ k=8
+ j=0
+ '[' 0 -lt 1 ']'
+ COMMAND[k]=jviewer.jnlp
+ j=1
+ k=9
+ '[' 1 -lt 1 ']'
+ exec -a javaws /usr/local/openjdk6/jre/bin/java
-Xbootclasspath/a:/usr/local/share/icedtea-web/netx.jar -Xms8m
-classpath /usr/local/openjdk6/jre/lib/rt.jar
-Dicedtea-web.bin.name=itweb-javaws
-Dicedtea-web.bin.location=/usr/local/bin/itweb-javaws
net.sourceforge.jnlp.runtime.Boot jviewer.jnlp
Error: could not find libjava.so
Error: could not find Java 2 Runtime Environment.
$

How do I do the suggested fix?
As root?
as regular user?
i.e, how do I change the attributes.  I see the fix, but don't know
how to apply it :(

Thanks for your help and advice.



Regards,


Antonio
___
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: openjdk6 + iced-teaweb installed, cannot open *.jnlp

2013-01-09 Thread Volodymyr Kostyrko

09.01.2013 18:53, Antonio Olivares:

How do I do the suggested fix?
As root?
as regular user?
i.e, how do I change the attributes.  I see the fix, but don't know
how to apply it :(


I changed the script to not include '-a javaws' in the last line of your 
log:


--- launcher/javaws.in   2012-11-01 18:51:04.0 +0200
+++ launcher/javaws.in  2013-01-09 18:57:35.278323886 +0200
@@ -59,6 +59,6 @@
   k=$((k+1))
 done

-exec -a javaws ${COMMAND[@]}
+exec ${COMMAND[@]}

 exit $?

I don't know why this works actually, maybe there's a misuse of 
PROGRAM_NAME in javaws.in, i.e. PROGRAM_NAME is declared but not used in 
this command. Regardless what I did with the script the only working 
solution for me was removing '-a' option.


--
Sphinx of black quartz, judge my vow.
___
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: openjdk6 + iced-teaweb installed, cannot open *.jnlp

2013-01-09 Thread Antonio Olivares
On Wed, Jan 9, 2013 at 11:02 AM, Volodymyr Kostyrko c.kw...@gmail.com wrote:
 09.01.2013 18:53, Antonio Olivares:

 How do I do the suggested fix?
 As root?
 as regular user?
 i.e, how do I change the attributes.  I see the fix, but don't know
 how to apply it :(


 I changed the script to not include '-a javaws' in the last line of your
 log:

 --- launcher/javaws.in   2012-11-01 18:51:04.0 +0200
 +++ launcher/javaws.in  2013-01-09 18:57:35.278323886 +0200
 @@ -59,6 +59,6 @@
k=$((k+1))
  done

 -exec -a javaws ${COMMAND[@]}
 +exec ${COMMAND[@]}

  exit $?

 I don't know why this works actually, maybe there's a misuse of PROGRAM_NAME
 in javaws.in, i.e. PROGRAM_NAME is declared but not used in this command.
 Regardless what I did with the script the only working solution for me was
 removing '-a' option.


 --
 Sphinx of black quartz, judge my vow.

 --- launcher/javaws.in   2012-11-01 18:51:04.0 +0200
 +++ launcher/javaws.in  2013-01-09 18:57:35.278323886 +0200
 @@ -59,6 +59,6 @@
k=$((k+1))
  done

 -exec -a javaws ${COMMAND[@]}
 +exec ${COMMAND[@]}

  exit $?

where does this file launcher/javaws.in reside?
/usr/local/bin/?

So I can remove the ``-a javaws '' from it to fix it?
I can use a sed command to do it, but I don't know where it is and I
am afraid to screw things up if I use find command :(


Thanks for all your help.  I apologize in advance for asking several times.

Regards,


Antonio
___
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: openjdk6 + iced-teaweb installed, cannot open *.jnlp

2013-01-09 Thread Volodymyr Kostyrko

09.01.2013 19:24, Antonio Olivares:

where does this file launcher/javaws.in reside?
/usr/local/bin/?


Sorry, I had to write that this file is at distribution sources, 
installed copy is at /usr/local/bin/itweb-javaws.



So I can remove the ``-a javaws '' from it to fix it?


I guess so...

--
Sphinx of black quartz, judge my vow.
___
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: openjdk6 + iced-teaweb installed, cannot open *.jnlp

2013-01-09 Thread Antonio Olivares
On Wed, Jan 9, 2013 at 11:27 AM, Volodymyr Kostyrko c.kw...@gmail.com wrote:
 09.01.2013 19:24, Antonio Olivares:

 where does this file launcher/javaws.in reside?
 /usr/local/bin/?


 Sorry, I had to write that this file is at distribution sources, installed
 copy is at /usr/local/bin/itweb-javaws.


 So I can remove the ``-a javaws '' from it to fix it?


 I guess so...


 --

Thank you very much sir!  This did the trick!
Now I will have to do this on several machines :)


Best Regards,



Antonio
___
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


pkgng - Symlinks created by portupgrade?

2013-01-09 Thread Walter Hurry
I am using pkgng.

When I issue 'portupgrade package -p', after build and installation, it 
builds a new package, as advertised. This (by default) is put into /usr/
ports/packages/All.

At the same time, it installs a set of symlinks; one for each relevant 
port category, plus one in /usr/ports/packages/Latest.

It is the naming of this last in which I am interested. Sometimes the 
symlink seems to bear the name (absent the version) of the package, and 
sometimes the name of the port (plus '.txz', of course).

Two questions:

1) Does anyone know the logic used to derive the name of the symlink?

2) Would it be considered a breach of etiquette to email the port 
maintainer (bdrewery) and ask, or is this regarded as acceptable?

'man portupgrade' doesn't seem to shed any light on this, and I am 
unaware of where to seek other documentation.

___
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: pkgng - Symlinks created by portupgrade?

2013-01-09 Thread Matthew Seaman
On 09/01/2013 18:31, Walter Hurry wrote:
 I am using pkgng.
 
 When I issue 'portupgrade package -p', after build and installation, it 
 builds a new package, as advertised. This (by default) is put into /usr/
 ports/packages/All.
 
 At the same time, it installs a set of symlinks; one for each relevant 
 port category, plus one in /usr/ports/packages/Latest.
 
 It is the naming of this last in which I am interested. Sometimes the 
 symlink seems to bear the name (absent the version) of the package, and 
 sometimes the name of the port (plus '.txz', of course).
 
 Two questions:
 
 1) Does anyone know the logic used to derive the name of the symlink?
 
 2) Would it be considered a breach of etiquette to email the port 
 maintainer (bdrewery) and ask, or is this regarded as acceptable?
 
 'man portupgrade' doesn't seem to shed any light on this, and I am 
 unaware of where to seek other documentation.

The layout of /usr/ports/packages is actually down to the ports system
directly and not in the control of any add on software like portupgrade,
portmaster or pkgng.

The files under /usr/ports/packages/Latest are named according to the
LATEST_LINK variable in each port.  It's meant to be unique per-port,
but falls somewhat short.  Various ports have NO_LATEST_LINK set which
suppresses creating that link.

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.

PGP: http://www.infracaninophile.co.uk/pgpkey
JID: matt...@infracaninophile.co.uk



signature.asc
Description: OpenPGP digital signature


Re: Which ports tree through svn?

2013-01-09 Thread Warren Block

On Wed, 9 Jan 2013, Fleuriot Damien wrote:



On Jan 9, 2013, at 3:41 PM, Andrei Brezan andrei...@gmail.com wrote:


Hello list,

I'm using:
FreeBSD myhost.mydomain.com 9.0-RELEASE-p3 FreeBSD 9.0-RELEASE-p3 #0: Tue Jun 
12 02:52:29 UTC 2012 
r...@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64

I want/need to use svn for my ports tree mainly because I need to downgrade 
ports. There is portdowngrade in the ports tree but that relies on cvs which is 
no longer available. The only way that I'm able to do this now is with svn log 
and svn up -r to the revision needed so I get the version that I need in the 
port.

My problem is what do i need to checkout in the first place for 9.0-RELEASE?
svn co svn://svn.freebsd.org/ports/head /usr/ports or svn co 
snv://svn.freebsd.org/tags/RELEASE_9_0_0 /usr/ports?

The first one seems to be up to date but the latter has for eg apache version 
2.2.21 from 2011; I presume from the portfreeze before 9 was released.

Maybe there are any means to downgrade ports while using portsnap that I'm not 
aware of.

Thank you,
Andrei



http://svn.freebsd.org/ports/tags/RELEASE_9_0_0/


Note that, unless I'm mistaken, this branch is frozen so you won't be getting 
any update.


Might as well use the real ports tree, the first option shown above, 
since it also has the previous history.

___
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: sh script problem with capturing return code

2013-01-09 Thread Lowell Gilbert
Fbsd8 fb...@a1poweruser.com writes:

 So the question remains, why is mtree giving a return of zero when it
 finds directories on the target that are not in the spec file?

Okay, I had a hard time figuring out your examples, but I think I've got
an independent repeatable test case for the problem.


mkdir etc home
mtree -c -d  ../out
mtree -d  ../out
echo $?
mkdir home/temp
mtree -d  ../out
echo $?
sed -i   's/^\(home[ ]*\)\(.*\)$/\1ignore/' ../out
mtree -d  ../out
echo $?

The results are:

5045] (lowell-desk) temp mkdir etc home
[5046] (lowell-desk) temp mtree -c -d  ../out
[5047] (lowell-desk) temp mtree -d  ../out
[5048] (lowell-desk) temp echo $?
0
[5049] (lowell-desk) temp mkdir home/temp
[5050] (lowell-desk) temp mtree -d  ../out
home/temp extra
[5051] (lowell-desk) temp echo $?
0
[5052] (lowell-desk) temp sed -i   's/^\(home[ ]*\)\(.*\)$/\1ignore/' ../out
[5053] (lowell-desk) temp mtree -d  ../out
[5054] (lowell-desk) temp echo $?
0


and I think the problem you're having is that the second echo $?
should be 2, although the others are correct at 0. Is that correct? 

One difference from your example is that you're using '-u'. I'm not sure
why you're doing that, but it doesn't affect the bug.

Yours,
  Lowell
-- 
http://be-well.ilk.org/~lowell/
___
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: sh script problem with capturing return code

2013-01-09 Thread Lowell Gilbert
Lowell Gilbert freebsd-questions-lo...@be-well.ilk.org writes:

 and I think the problem you're having is that the second echo $?
 should be 2, although the others are correct at 0. Is that correct? 

It's not; ignore my example. The extra directory was under the ignored
directory, so it's testing the right properties. I think if I create the
new subdirectory under the other main directory, it would be right.
___
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: sh script problem with capturing return code

2013-01-09 Thread Lowell Gilbert
Lowell Gilbert freebsd-questions-lo...@be-well.ilk.org writes:

 It's not; ignore my example. The extra directory was under the ignored
 directory, so it's testing the right properties. I think if I create the
 new subdirectory under the other main directory, it would be right.

Confirmed. The test case now looks like this:

mkdir etc home
mtree -c -d  ../out
mtree -d  ../out
echo $?
echo That was the first: should be 0.
mkdir etc/temp
mtree -u -d  ../out
echo $?
echo That was the second: should be 2.
sed -i   's/^\(home[ ]*\)\(.*\)$/\1ignore/' ../out
mtree -d  ../out
echo $?
echo That was the third: should be 0.


I think it's a real bug, and the test cases don't cover extra elements
at all. Now I just have to figure out the right fix.
___
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


clang

2013-01-09 Thread ajtiM
I had FreeBSD 9.0-RELEASE which was updated with freebsd-update upgrade to 
RC-3 and RC3 with freebsd-update to 9.1 release:

FreeBSD 9.1-RELEASE #0 r243826: Tue Dec  4 06:55:39 UTC 2012 
r...@obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386

Almost 90% of ports I built with clang and in etc/make.conf I have:

CC=clang
CXX=clang++
CPP=clang-cpp

But when I ran clang --version I got:

FreeBSD clang version 3.1 (branches/release_31 156863) 20120523
Target: i386-unknown-freebsd9.0
Thread model: posix

Is it normal, please? With update of FreeBSD from 9.0 to RC3 and to Release I 
din't have any problem

Thank you.

Mitja

http://www.redbubble.com/people/lumiwa
___
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: sh script problem with capturing return code

2013-01-09 Thread Lowell Gilbert
Lowell Gilbert freebsd-questions-lo...@be-well.ilk.org writes:

 I think it's a real bug, and the test cases don't cover extra elements
 at all. Now I just have to figure out the right fix.

I'm pretty sure that the fix is just to set rval on jumping to the
extra tag in vwalk() in src/usr.sbin/mtree/verify.c.

But my hot water heater just exploded, so I may not look at code for a
few more days.
___
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: sh script problem with capturing return code

2013-01-09 Thread Fbsd8

Lowell Gilbert wrote:

Lowell Gilbert freebsd-questions-lo...@be-well.ilk.org writes:


I think it's a real bug, and the test cases don't cover extra elements
at all. Now I just have to figure out the right fix.


I'm pretty sure that the fix is just to set rval on jumping to the
extra tag in vwalk() in src/usr.sbin/mtree/verify.c.

But my hot water heater just exploded, so I may not look at code for a
few more days.


Hello Lowell,
Thank you very much.
I was going crazy trying different combinations of options and script 
logic. I want to thank you for taking my problem seriously and taking 
the time to do your own test cases to verify my findings. Now that I 
know it's a genuine bug in mtree, I can make my plans accordingly. Any 
fix to the mtree utility will take some time to filter down to a regular 
RELEASE. Maybe 9.2 or the big jump to 10.0 by the end of 2013. I will 
leave it up to you the file a PR on this and follow through.
Thanks again, people like you are what makes this questions list so 
valuable and FreeBSD such a great OS. You did outstanding work.


Joe
___
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: sh script problem with capturing return code

2013-01-09 Thread Adam Vande More
On Wed, Jan 9, 2013 at 7:23 PM, Lowell Gilbert 
freebsd-questions-lo...@be-well.ilk.org wrote:

 Lowell Gilbert freebsd-questions-lo...@be-well.ilk.org writes:

  I think it's a real bug, and the test cases don't cover extra elements
  at all. Now I just have to figure out the right fix.

 I'm pretty sure that the fix is just to set rval on jumping to the
 extra tag in vwalk() in src/usr.sbin/mtree/verify.c.

 But my hot water heater just exploded, so I may not look at code for a
 few more days.


I think they are importing NetBSD's updated mtree, perhaps already fixed
there.

-- 
Adam Vande More
___
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


Renaming files

2013-01-09 Thread Odhiambo Washington
I have several files in this format:

rw-r--r--   1 johndoe johndoe20085 Jan  9 19:30 1357744249.26989.mbox:2,
-rw-r--r--   1 johndoe johndoe24419 Jan  9 19:30
1357744250.26989.mbox:2,
-rw-r--r--   1 johndoe johndoe  418 Jan  9 19:30
1357744251.26989.mbox:2,
-rw-r--r--   1 johndoe johndoe  418 Jan  9 19:30
1357744252.26989.mbox:2,
-rw-r--r--   1 johndoe johndoe78426 Jan  9 19:30
1357744254.26989.mbox:2,
-rw-r--r--   1 johndoe johndoe 2561 Jan  9 19:30
1357744255.26989.mbox:2,
-rw-r--r--   1 johndoe johndoe 6971 Jan  9 19:30
1357744257.26989.mbox:2,
-rw-r--r--   1 johndoe johndoe11270 Jan  9 19:30
1357744259.26989.mbox:2,

I'd like to rename them so that the filenames are in the format below:

-rw---   1 johndoe johndoe  197702 Jan 10 03:00
1357776052.V803I33939aM83469.mail.domain.me.net:2,
-rw---   1 johndoe johndoe   14579 Jan 10 03:31
135873.V803I33939bM614733.mail.domain.me.net:2,
-rw---   1 johndoe johndoe   29212 Jan 10 03:46
1357778798.V803I33939cM995892.mail.domain.me.net:2,
-rw---   1 johndoe johndoe2834 Jan 10 04:30
1357781421.V803I33939dM597872.mail.domain.me.net:2,
-rw---   1 johndoe johndoe   10593 Jan 10 06:18
1357787890.V803I33939eM865700.mail.domain.me.net:2,
-rw---   1 johndoe johndoe   43565 Jan 10 07:10
1357791044.V803I33939fM193189.mail.domain.me.net:2,
-rw---   1 johndoe johndoe   15492 Jan 10 07:42
1357792926.V803I3393a0M601349.mail.domain.me.net:2,


The first part of the filename is unique, so I just need to substitute
26989.mbox:2, with V803I33939aM83469.mail.domain.me.net:2, hoping there
will be no clash:(

-- 
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254733744121/+254722743223
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
I can't hear you -- I'm using the scrambler.
___
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: Renaming files

2013-01-09 Thread Devin Teske

On Jan 9, 2013, at 9:29 PM, Odhiambo Washington wrote:

 I have several files in this format:
 
 rw-r--r--   1 johndoe johndoe20085 Jan  9 19:30 1357744249.26989.mbox:2,
 -rw-r--r--   1 johndoe johndoe24419 Jan  9 19:30
 1357744250.26989.mbox:2,
 -rw-r--r--   1 johndoe johndoe  418 Jan  9 19:30
 1357744251.26989.mbox:2,
 -rw-r--r--   1 johndoe johndoe  418 Jan  9 19:30
 1357744252.26989.mbox:2,
 -rw-r--r--   1 johndoe johndoe78426 Jan  9 19:30
 1357744254.26989.mbox:2,
 -rw-r--r--   1 johndoe johndoe 2561 Jan  9 19:30
 1357744255.26989.mbox:2,
 -rw-r--r--   1 johndoe johndoe 6971 Jan  9 19:30
 1357744257.26989.mbox:2,
 -rw-r--r--   1 johndoe johndoe11270 Jan  9 19:30
 1357744259.26989.mbox:2,
 
 I'd like to rename them so that the filenames are in the format below:
 
 -rw---   1 johndoe johndoe  197702 Jan 10 03:00
 1357776052.V803I33939aM83469.mail.domain.me.net:2,
 -rw---   1 johndoe johndoe   14579 Jan 10 03:31
 135873.V803I33939bM614733.mail.domain.me.net:2,
 -rw---   1 johndoe johndoe   29212 Jan 10 03:46
 1357778798.V803I33939cM995892.mail.domain.me.net:2,
 -rw---   1 johndoe johndoe2834 Jan 10 04:30
 1357781421.V803I33939dM597872.mail.domain.me.net:2,
 -rw---   1 johndoe johndoe   10593 Jan 10 06:18
 1357787890.V803I33939eM865700.mail.domain.me.net:2,
 -rw---   1 johndoe johndoe   43565 Jan 10 07:10
 1357791044.V803I33939fM193189.mail.domain.me.net:2,
 -rw---   1 johndoe johndoe   15492 Jan 10 07:42
 1357792926.V803I3393a0M601349.mail.domain.me.net:2,
 
 
 The first part of the filename is unique, so I just need to substitute
 26989.mbox:2, with V803I33939aM83469.mail.domain.me.net:2, hoping there
 will be no clash:(
 

sh -c 'for file in *.26989.mbox:2; do mv $file 
${file%%.*}.V803I33939aM83469.mail.domain.me.net:2; done'
-- 
Devin

_
The information contained in this message is proprietary and/or confidential. 
If you are not the intended recipient, please: (i) delete the message and all 
copies; (ii) do not disclose, distribute or use the message in any manner; and 
(iii) notify the sender immediately. In addition, please be aware that any 
message addressed to our domain is subject to archiving and review by persons 
other than the intended recipient. Thank you.
___
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