Change branch with svn

2013-01-17 Thread David Demelier
Hello folks,

Just wanted to switch from RELEASE-9.1 to 9-STABLE my /usr/src, I was
used to csup, this tool was updating the src tree without removing it.

How can I switch my /usr/src tree to stable/9 branch without removing
old files?

Cheers,
David
___
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 branch with svn

2013-01-17 Thread Volodymyr Kostyrko

17.01.2013 10:47, David Demelier:

Hello folks,

Just wanted to switch from RELEASE-9.1 to 9-STABLE my /usr/src, I was
used to csup, this tool was updating the src tree without removing it.

How can I switch my /usr/src tree to stable/9 branch without removing
old files?


# svn switch ^/stable/9


--
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: OT: What Might Break getbostbyname() ?

2013-01-17 Thread Robert Bonomi
 From owner-freebsd-questi...@freebsd.org  Wed Jan 16 22:08:13 2013
 Date: Wed, 16 Jan 2013 22:04:15 -0600
 From: Tim Daneliuk tun...@tundraware.com
 To: FreeBSD Mailing List freebsd-questions@freebsd.org
 Subject: OT: What Might Break getbostbyname() ?

 This is not really a FreeBSD problem ... in fact, it's happening on
 a Solaris 10 machine. But because the TCP stack and its userland
 interface came from BSD, I am hoping some kind soul might have
 an insight into what's going on ...

 The machine in question does DNS lookups fine via dig or nslookup.
 I believe these connect directly to the DNS server(s) specified
 in /etc/resolv.conf.

 However, any program that uses gethostbyname() - like ping - fails
 and says it cannot resolve the name.

 I'm looking for hints here on why or how gethostbyname() and/or
 the network stack could get clobbered so as to not be able to talk
 to the DNS servers which I know are reachable via dig and nslookup.

dig and nslookup use THEIR OWN resolver routines, =not= the 'standard
library' routines.  Something that fouls the library routines will not
affect dig and nslookup.

Given this is Solaris, check /etc/nis.switch (may not be the exactly
correct name, but close -- I haven't used Solaris in a decade). check
both the file content, and permissions.

You may have to run truss on ping to see what it's getting wrong.


___
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


TrafficCaptain Offer Update

2013-01-17 Thread TrafficCaptain

Hello,

I represent TrafficCaptain - a performance network focused entirely on the 
gaming industry.
In our offers you can find well-known game developers like 
Big Point, Upjers, Ubisoft, Travian, Kabam, Farbflut etc. We are active in 24 
countries with more than 100 offers.

Are you interested in taking a look at our offers? 

OUR NEW ADMANAGER!



It automatically optimizes the display of the best converting offers - in the 
language of your incoming traffic. Depending on the user's country the local 
banner version will be
displayed - for higher conversion and revenue opportunities!
And: It is as easy as integrating a banner!

You can focus your time on your core business while your revenue will increase 
- there is no need to change your offers all the time. 


 

Take advantage of our new AdManager for different game genres! 


WE ARE HIRING!


 

Jump on board and become a TrafficCaptain!
We are looking for talented sales people, programmers and experts of the games 
and online marketing industry to help us to handle our growth:
Visit us at http://www.trafficcaptain.com/job




Best Regards,
Paula Bremann



Tel: +49-40-23706-804

Email: p...@trafficcaptain.com

www.TrafficCaptain.com


To unsubscribe click: http://news.allesguenstiger.com/go/qt77y8ns/3n3l81bj

___
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: time_t definition

2013-01-17 Thread Lowell Gilbert
Polytropon free...@edvax.de writes:

 On Wed, 16 Jan 2013 10:21:03 -0800, Michael Sierchio wrote:
 Top posting for brevity - the fact is, the code in your original
 example is wrong.  There are reasons to complain about argument size
 mismatches, esp. in print functions that call (versions of) malloc.
 You should cast the time_t value explicitly, or use %d instead of %ld.

 This advice looks correct. If you use the source Luke,
 you'll find the following (taken from a 8.2-STABLE/i386
 system source tree):

 /usr/src/sys/sys/types.h (line 253):

   typedef __time_t time_t;

 /usr/src/sys/i386/include/_types.h (line 97):

   typedef __int32_t __time_t;

 /usr/src/sys/i386/include/_types.h (line 55):

   typedef int __int32_t;

 So it boils down to (int), but %ld expects (long). This
 is the exact content of the warning. You can either
 case the (time_t) value to (long), or change %ld to %d
 to avoid the warning.

Even if the representations boil down to the same thing, the cast is
still a good idea. You may *know* (for example) that time_t is really an
int, but you don't know that it always will be. printf() (like other
variadic functions) loses type information, so make *sure* you cast the
type to what the format says it is, because the Usual Arithmetic
Conversions cannot come in to save your bacon if (when) you're wrong.
___
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: absurd I/O perf with ZFS: hangs on zfs-cv)

2013-01-17 Thread Eitan Adler
On 17 January 2013 07:52, Fabian Keil freebsd-lis...@fabiankeil.de wrote:
 Eitan Adler li...@eitanadler.com wrote:
 I don't think there are any laptops with large amounts of RAM
 as far as ZFS is concerned.

Haha okay: 8GB of RAM.

 It is taking me 45 minutes to make 5 commits to git.  Something is
 wrong here but I have no idea what I should be looking at.  Any ideas?

 Try sysutils/zfs-stats to get a rough idea of how ZFS is using
 the available memory.

Anything in particular I should be looking for?

 If you already followed tuning advice from the Internet without
 benchmarking it, try reverting it.

I have done absolutely no tuning.  Is there anything in particular I
*should* tune?

 Once you have gathered some more information it might make sense
 to ask again on freebsd-fs@.

Ack.

 On a new system it's probably not an issue, but the recommendation
 is to keep around 20% of the pool free to keep the performance up.

Good to know.  I will be careful here.


-- 
Eitan Adler
___
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: OT: What Might Break getbostbyname() ?

2013-01-17 Thread Tim Daneliuk

On Thu, January 17, 2013 6:49 am, Dan Nelson wrote:
 First, check /etc/nsswitch.conf and verify that dns is listed on the
 hosts: line.  Next, try disabling nscd (svcadm disable
 name-service-cache) , and then running truss ping www.google.com (make
 sure to reenable nscd when you're done debugging).  You should see
 syscalls
 to open /etc/resolv.conf, read the contents, and then open a socket to
 the
 nameserver listed in that file.



Dan and Robert -

Thanks for your replies.   It seems that someone removed DNS
from the hosts line in nsswitch.conf and this is what was
breaking ordinarily userland resolver calls.  WHY they did this
is unclear to me.

I appreciate you folks taking the time here...

___
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: OT: What Might Break getbostbyname() ?

2013-01-17 Thread Tim Daneliuk

On Thu, January 17, 2013 6:49 am, Dan Nelson wrote:
 First, check /etc/nsswitch.conf and verify that dns is listed on the
 hosts: line.  Next, try disabling nscd (svcadm disable
 name-service-cache) , and then running truss ping www.google.com (make
 sure to reenable nscd when you're done debugging).  You should see
 syscalls
 to open /etc/resolv.conf, read the contents, and then open a socket to
 the
 nameserver listed in that file.



Dan and Robert -

Thanks for your replies.   It seems that someone removed DNS
from the hosts line in nsswitch.conf and this is what was
breaking ordinarily userland resolver calls.  WHY they did this
is unclear to me.

I appreciate you folks taking the time here...

___
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: OT: What Might Break getbostbyname() ?

2013-01-17 Thread Tim Daneliuk

On Thu, January 17, 2013 6:49 am, Dan Nelson wrote:
 First, check /etc/nsswitch.conf and verify that dns is listed on the
 hosts: line.  Next, try disabling nscd (svcadm disable
 name-service-cache) , and then running truss ping www.google.com (make
 sure to reenable nscd when you're done debugging).  You should see
 syscalls
 to open /etc/resolv.conf, read the contents, and then open a socket to
 the
 nameserver listed in that file.



Dan and Robert -

Thanks for your replies.   It seems that someone removed DNS
from the hosts line in nsswitch.conf and this is what was
breaking ordinarily userland resolver calls.  WHY they did this
is unclear to me.

I appreciate you folks taking the time here...

___
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


Replacement for KGET from KDE3

2013-01-17 Thread RW

I'm looking for a replacement for kget from KDE3 which I use
with Konqueror on easynews.com. As the site has download accounting
and I have a slow dsl line I have hundreds of files queued-up - often
for months.

Ideally what I after is something similar

- Browser integration
- The ability to queue and reorder downloads with only one or a few
  downloading at once
- doesn't lose the queue on crashes.
- authentication, and ideally SSL, support


I thought I'd be able to get something working with Firefox+flashgot,
but aria dumps core, flashgot doesn't seem to do anything with
steadflow, urlgfe isn't recognised by flashgot and wxdfast doesn't seen
to be able to authenticate to easynews (any doesn't seem to have any
queue support anyway).

The last time I tried kget from KDE4 they'd removed the queue
management and made it like Opera and  Firefox's built-in download
manager.
___
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 8.2 with pre-built KDE 3.5 package from FreeBSD 7.1 DVD

2013-01-17 Thread Georg Reilinger
Hi everybody,


My issue is the following:

As far as I know, FreeBSD has completely dropped support for KDE 3.5. 

Whether it's the ports, or the pkg_add precompiled binaries. Am I right in 

assuming this?


I am currently running a live version of FreeBSD 8.2 with KDE 4.8. The thing 

here is, that KDE 4 is simply too heavy for my system. For example: it is 

impossible for me to have two open shells at the same time. Once I exit a 

given shell, I can't open another one due to a lack of resources, even after 
having 

turned off all the extra stuff - plasma desktop, nepomuk...

As a consequence, I can see myself do two possible things, to have a system 

running with KDE 3.5 once again:

1. Go back to an older release of FreeBSD and install KDE 3.5 from the 

precompiled binaries that are on the DVD donwload version.
Judging by the release announcements, this should be 7.1.

http://www.freebsd.org/releases/7.1R/announce.html

This is something that I don't really feel like doing.

2. To be honest, I am quite happy with 8.2 and I would like to keep it for 
some time to come. In other words, is there a way to keep 8.2 and still 
have KDE 3.5 along with it? For example has anyone ever tried to 
install a 7.1 pre-built package (KDE 3.5 in this case) on an 8.2 system? 
Is that be possible?


Any other solutions?


Many thanks
Georg
___
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: FreeBSD 8.2 with pre-built KDE 3.5 package from FreeBSD 7.1 DVD

2013-01-17 Thread Ralf Mardorf
Some decisions from upstream are a PITA. I'm from Linux, it's more  
up-to-date than FreeBSD. On Linux I switched from KDE 3 to GNOME 2, when  
KDE 4 was introduced and from GNOME 2 to Xfce, when GNOME 3 was  
introduced. There are forks of GNOME 2, but I guess there's no fork of KDE  
3. Some users claim that it should be possible to set up KDE 4, that it  
become equal to KDE 3. I doubt that. Another issue are hard dependencies,  
such as the dependency to the buggy pulseaudio. You better get rid of KDE  
and start to accustom to another DE.


2 Cents,
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: FreeBSD 8.2 with pre-built KDE 3.5 package from FreeBSD 7.1 DVD

2013-01-17 Thread Georg Reilinger





 Von: Ralf Mardorf ralf.mard...@rocketmail.com
An: freebsd-questions@freebsd.org freebsd-questions@freebsd.org 
Gesendet: 2:37 Freitag, 18.Januar 2013
Betreff: Re: FreeBSD 8.2 with pre-built KDE 3.5 package from FreeBSD 7.1 DVD 
 
-- Some decisions from upstream are a PITA. I'm from Linux, it's more 
up-to-date than FreeBSD. On Linux I switched from KDE 3 to GNOME 2, when KDE 4 
was introduced and from GNOME 2 to Xfce, when GNOME 3 was introduced.

I have tried both, GNOME and Xfce. Found both to be kinda yuckie. Not really 
feeling at home here.


-- There are forks of GNOME 2, but I guess there's no fork of KDE 3. 

Actually there is. It is called Trinity: http://www.trinitydesktop.org/ , but I 
don't know, if it is currently supported on FreeBSD.
If not, may be a reason, to become a porter!

-- Some users claim that it should be possible to set up KDE 4, that it become 
equal to KDE 3. I doubt that. 

I highly and holily second that. I have heard quite a few people complain about 
KDE 4's heavy hunger for resources.

-- Another issue are hard dependencies, such as the dependency to the buggy 
pulseaudio. You better get rid of KDE and start to accustom to another DE.

This would be my very last option. As you can see, I am still working on a go 
around here.


2 Cents,
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: [Bulk] FreeBSD 8.2 with pre-built KDE 3.5 package from FreeBSD 7.1 DVD

2013-01-17 Thread Mike Jeays


On Fri, 18 Jan 2013 01:25:03 + (GMT)
Georg Reilinger georgreilin...@yahoo.de wrote:

 Hi everybody,
 
 
 My issue is the following:
 
 As far as I know, FreeBSD has completely dropped support for KDE 3.5. 
 
 Whether it's the ports, or the pkg_add precompiled binaries. Am I right in 
 
 assuming this?
 
 
 I am currently running a live version of FreeBSD 8.2 with KDE 4.8. The thing 
 
 here is, that KDE 4 is simply too heavy for my system. For example: it is 
 
 impossible for me to have two open shells at the same time. Once I exit a 
 
 given shell, I can't open another one due to a lack of resources, even after 
 having 
 
 turned off all the extra stuff - plasma desktop, nepomuk...
 
 As a consequence, I can see myself do two possible things, to have a system 
 
 running with KDE 3.5 once again:
 
 1. Go back to an older release of FreeBSD and install KDE 3.5 from the 
 
 precompiled binaries that are on the DVD donwload version.
 Judging by the release announcements, this should be 7.1.
 
 http://www.freebsd.org/releases/7.1R/announce.html
 
 This is something that I don't really feel like doing.
 
 2. To be honest, I am quite happy with 8.2 and I would like to keep it for 
 some time to come. In other words, is there a way to keep 8.2 and still 
 have KDE 3.5 along with it? For example has anyone ever tried to 
 install a 7.1 pre-built package (KDE 3.5 in this case) on an 8.2 system? 
 Is that be possible?
 
 
 Any other solutions?
 
 
 Many thanks
 Georg
 ___
 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


I run xfce4 with FreeBSD 9.0 on an old Pentium 4 with 1.5 GB, and it works 
well. Resource
requirements are much less than the latest KDE, and Unity is even more 
unworkable.
KDE and Gnome have got very bloated in the last few years, IMHO and less 
intuitive.
They seem to be going backwards. The multiple desktop feature is one of the main
things that set Unix-style desktops way ahead of Windows, and now they have 
become
harder to use.

___
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: FreeBSD 8.2 with pre-built KDE 3.5 package from FreeBSD 7.1 DVD

2013-01-17 Thread Ralf Mardorf
On Fri, 18 Jan 2013 03:06:15 +0100, Georg Reilinger  
georgreilin...@yahoo.de wrote:

http://www.trinitydesktop.org/


Oops, I've forgotten that there is that fork. However, I suspect that KDE  
and GNOME forks will suffer from Qt and GTK dependencies, resp. the  
manpower (coders and user base, aka testers) to maintain the forks. A lot  
of people don't like that DEs do look like and behave similar as DEs for  
tablet PCs do, so in the near future, those forks might become more  
important. OTOH KDE 4 still is a classic DE and not one of those tablet PC  
like DEs.

___
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


tar compression

2013-01-17 Thread Fbsd8
The man page for tar command says there a 4 different compress types you 
can use, xz, bzip, bzip2 and gzip.


Which one is the fastest and compresses the most?
I am using -z option for gzip and it sure is slow.
Hoping one of the other zip options are better.
What do you guys use?

Another question about tar is can I have tar create a compressed bkup
of 2 files and a directory tree all in single tar command?
___
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: tar compression

2013-01-17 Thread Georg Reilinger
If it doesn't necessarily have to be tar, then I'd recommend using 7zip:

archivers/p7zip

It has among the best compression ratios.





 Von: Fbsd8 fb...@a1poweruser.com
An: FreeBSD questions questi...@freebsd.org 
Gesendet: 3:29 Freitag, 18.Januar 2013
Betreff: tar  compression
 
The man page for tar command says there a 4 different compress types you can 
use, xz, bzip, bzip2 and gzip.

Which one is the fastest and compresses the most?
I am using -z option for gzip and it sure is slow.
Hoping one of the other zip options are better.
What do you guys use?

Another question about tar is can I have tar create a compressed bkup
of 2 files and a directory tree all in single tar command?
___
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: tar compression

2013-01-17 Thread Fbsd8

Georg Reilinger wrote:

If it doesn't necessarily have to be tar, then I'd recommend using 7zip:

archivers/p7zip

It has among the best compression ratios.


The man page for tar command says there a 4 different compress types you can 
use, xz, bzip, bzip2 and gzip.

Which one is the fastest and compresses the most?
I am using -z option for gzip and it sure is slow.
Hoping one of the other zip options are better.
What do you guys use?

Another question about tar is can I have tar create a compressed bkup
of 2 files and a directory tree all in single tar command?



Sorry,that will not work for me.
Has to be something that comes as part of the base system.
___
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: tar compression

2013-01-17 Thread Ralf Mardorf
On Fri, 18 Jan 2013 03:46:31 +0100, Georg Reilinger  
georgreilin...@yahoo.de wrote:



If it doesn't necessarily have to be tar, then I'd recommend using 7zip:

archivers/p7zip

It has among the best compression ratios.


It doesn't archive permissions.

I guess the best compression ratio to pack and unpack time ratio is tar.gz  
if it's needed to archive the permissions too.


http://comments.gmane.org/gmane.linux.debian.user/443063
___
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: tar compression

2013-01-17 Thread Joe Altman
On Thu, Jan 17, 2013 at 09:29:55PM -0500, Fbsd8 wrote:
 The man page for tar command says there a 4 different compress types
 you can use, xz, bzip, bzip2 and gzip.

xz uses Lempel-Ziv-Markov chain algorithm.
bzip2 uses Burrows-Wheeler transform.
 
 Which one is the fastest and compresses the most?

Sounds like a case of fast or cheap: choose one.

Or is it fast or expensive? Or maybe it's all just bragging.

OTOH, apropos compression may be instructive:

7z (and related)

 I am using -z option for gzip and it sure is slow.
 Hoping one of the other zip options are better.
 What do you guys use?

Used to use bzip2 and tar. Nowadays I just place files on a big disk
that only runs when I backup my bits.

 Another question about tar is can I have tar create a compressed bkup
 of 2 files and a directory tree all in single tar command?

For directories, I've used this:

tar -cf - -C srcdir . | tar xpf - -C destdir

The tar man page has this:

tar -czf file.tar.gz source.c source.h 

Since anything is a file, it seems to me it would work on a directory
with this:

tar -czf file.tar.gz source.c source.h /path/to/directory

I also note that (since you've mentioned mtree) the man page on tar
provides an example on mtree. Could this be applied to your needs?

Best regards,

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: tar compression

2013-01-17 Thread Joe Altman
On Fri, Jan 18, 2013 at 03:59:39AM +0100, Ralf Mardorf wrote:
 
 It doesn't archive permissions.

Which is why, if it is used, one *must* (or *should*) use tar.

Best,

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: svn-export Re: svn bdb checkout?

2013-01-17 Thread Xyne
Peter Vereshagin wrote:

I believe 'amd64' is the common architecture these days and 'perl malloc' is 
the
feature needed for profiling and/or leaks detection.

Good news is that such a stuff can be redone with forks instead of threads but
it should take me the time amount I'm not supposed to have of the any early.

By itself perl threading has a fabulously bad luck history, recently
criticized for instance at: 

  https://speakerdeck.com/stevan_little/perl-is-not-dead-it-is-a-dead-end

Thank you.

Hi,

I'm the author of svn-export. I haven't really touched the code since I wrote
it in 2009 and back then I tended to write most things in noobish Perl.
Although it should not be difficult to replace threading with forking (and I
agree that Perl threading is generally to be avoided), I think I would rather
just rewrite it cleanly in Python. Among other things it will simplify argument
parsing and subprocess invocation via standard library functions. 

This would be in Python 3 but I could try to restrict it to be compatible with
Python 2 if necessary.

Would that be better than patching/porting the current Perl version? If so then
I will put it on my todo list, but I am unlikely to have any time in the coming
weeks to work on it.

Incidentally, when looking at the code now I noticed that there were some SVN
options missing. I have added those in today's release.

Regards,
Xyne

p.s. I have not subscribed to this list, so please keep me in CC if you would
like me to reply (in case this isn't done automatically).
___
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


Error upgrading Chromium

2013-01-17 Thread Kurt Buff
Just updated from 8.3 to FreeBSD 9.0-RELEASE-p3, and am reinstalling ports.
Chromium is giving me two errors and bombing out.

The errors are:

media/audio/pulst/pulse_output.cc:89L28: error: use of undeclared
identifier 'kChannelOrderings'; did you mean 'ChannelOrder'?
 int channel_position = kChannelOrderings[channel_layout][channel];
^
ChannelOrder

./media/base/channel/_layout.h:121:18: note: 'ChannelOrder' declared here
MEDIA_EXPORT int ChannelOrder(ChannelLayout layout, Channels, channel);
 ^

media/audio/pulse_output.cc:89:45: error: type 'int (media::ChannelLayout,
  media::Channels)' does not provide a subscript operator
int channel_position = kChannelOrderings[channel_layout][channel];

2 errors generated.
gmake: *** [out/Release/obj.target/media/media/audio/pulse/pulse_output.0]
Error 1

I've googled trying to see what if anyting this might be, and see nothing...

Anyone have thoughts on this?

Thanks,

Kurt
___
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: time_t definition

2013-01-17 Thread Polytropon
On Thu, 17 Jan 2013 09:24:27 -0500, Lowell Gilbert wrote:
 Polytropon free...@edvax.de writes:
 
  On Wed, 16 Jan 2013 10:21:03 -0800, Michael Sierchio wrote:
  Top posting for brevity - the fact is, the code in your original
  example is wrong.  There are reasons to complain about argument size
  mismatches, esp. in print functions that call (versions of) malloc.
  You should cast the time_t value explicitly, or use %d instead of %ld.
 
  This advice looks correct. If you use the source Luke,
  you'll find the following (taken from a 8.2-STABLE/i386
  system source tree):
 
  /usr/src/sys/sys/types.h (line 253):
 
  typedef __time_t time_t;
 
  /usr/src/sys/i386/include/_types.h (line 97):
 
  typedef __int32_t __time_t;
 
  /usr/src/sys/i386/include/_types.h (line 55):
 
  typedef int __int32_t;
 
  So it boils down to (int), but %ld expects (long). This
  is the exact content of the warning. You can either
  case the (time_t) value to (long), or change %ld to %d
  to avoid the warning.
 
 Even if the representations boil down to the same thing, the cast is
 still a good idea. You may *know* (for example) that time_t is really an
 int, but you don't know that it always will be.

That's fully correct. The same way as input data should be
validated (instead of blindly trusted), types that are not
the simple and obvious ones can explicitely be cast into
the required form. The -W options for cc can help here.



 printf() (like other
 variadic functions) loses type information, so make *sure* you cast the
 type to what the format says it is, because the Usual Arithmetic
 Conversions cannot come in to save your bacon if (when) you're wrong.

Relying on what one knows about one specific architecture
should not be transitioned to everywhere. This idea makes
code portable.

Especially the system's types that do not sound like what
one usually associates to the format descriptors, e. g. %d
is for (int), %ld is for (long), %c is for (char), should
be cast into the respective format-related type if the
variable accessed is of some obscure (time_t), (size_t)
or any other non-obvious type. And if you're accidentally
casting (int) to (int) - no problem, bacon saved. :-)



-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
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: FreeBSD 8.2 with pre-built KDE 3.5 package from FreeBSD 7.1 DVD

2013-01-17 Thread Polytropon
On Fri, 18 Jan 2013 01:25:03 + (GMT), Georg Reilinger wrote:
 As far as I know, FreeBSD has completely dropped support for KDE 3.5. 

As for other desktop environments, yes.



 Whether it's the ports, or the pkg_add precompiled binaries. Am I right in 
 assuming this?

I think KDE 3 is still in ports, but will be scheduled for removal,
as KDE 4 is the place where development takes place, and there seems
to be no active development on KDE 3 that can be built (!) on FreeBSD
due to lack of contribution.



 I am currently running a live version of FreeBSD 8.2 with KDE 4.8.

May I ask which live system this is?



 The thing 
 here is, that KDE 4 is simply too heavy for my system. For example: it is 
 impossible for me to have two open shells at the same time. Once I exit a 
 given shell, I can't open another one due to a lack of resources, even after 
 having 
 turned off all the extra stuff - plasma desktop, nepomuk...

Excuse me... you're joking, right? I assume you have a plentycore
processor with Gigs of RAM, and already two shells show a problem?
That sounds totally wrong.

When you play a music file and move the window, do you get skipping
audio, too?

Just scary...



 As a consequence, I can see myself do two possible things, to have a system 
 running with KDE 3.5 once again:
 
 1. Go back to an older release of FreeBSD and install KDE 3.5 from the 
 precompiled binaries that are on the DVD donwload version.
 Judging by the release announcements, this should be 7.1.

Yes, this will work. But note that you are running an OS that
has been gone out of support, so you probably won't be able
to install newer software using ports or packages. However,
you can use the system as is, and even use ports as long 
as the distfiles are still kept available online.



 2. To be honest, I am quite happy with 8.2 and I would like to keep it for 
 some time to come. In other words, is there a way to keep 8.2 and still 
 have KDE 3.5 along with it? For example has anyone ever tried to 
 install a 7.1 pre-built package (KDE 3.5 in this case) on an 8.2 system? 
 Is that be possible?

That should be possible if you install the required compat7x
port on the system. Keep an eye on dependencies and make sure
you won't be shooting your feet. A good start would be to
install the KDE stuff on a clean system (right after compat7x)
so there won't be much confusion.




-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
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: svn-export Re: svn bdb checkout?

2013-01-17 Thread Warren Block

On Fri, 18 Jan 2013, Xyne wrote:


I'm the author of svn-export. I haven't really touched the code since I wrote
it in 2009 and back then I tended to write most things in noobish Perl.
Although it should not be difficult to replace threading with forking (and I
agree that Perl threading is generally to be avoided), I think I would rather
just rewrite it cleanly in Python. Among other things it will simplify argument
parsing and subprocess invocation via standard library functions.

This would be in Python 3 but I could try to restrict it to be compatible with
Python 2 if necessary.

Would that be better than patching/porting the current Perl version? If so then
I will put it on my todo list, but I am unlikely to have any time in the coming
weeks to work on it.


A working version in any language would be great.  A better version in 
Python would be nice, too, but it's the working part that's important.



Incidentally, when looking at the code now I noticed that there were some SVN
options missing. I have added those in today's release.

Regards,
Xyne

p.s. I have not subscribed to this list, so please keep me in CC if you would
like me to reply (in case this isn't done automatically).


It's standard procedure for the FreeBSD lists.
___
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: time_t definition

2013-01-17 Thread Thomas D. Dean

On 01/17/13 06:24, Lowell Gilbert wrote:




A lot of discussion about what I can do other than understand why gcc 
does not keep track of the basic typedef.


Mayhe the question is beyond this list.

Thanks for the replies.

Tom Dean

___
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


Dependencies after port tree update

2013-01-17 Thread Ralf Mardorf

Hi :)

I had to do a portsnap fetch update to compile icedtea-web and run into  
a dependency hell. Most apps can't be launched anymore. When I deinstall,  
recompile the new versions and install them, I have tons of dependencies  
for each app.


Is there a way to automatically recompile all broken apps and dependencies?

If needed I could restore from a dump backup and continue with repeating  
the portsnap fetch update or what ever else, but I would prefer to fix  
the install.


Regards,
Ralf

--
FreeBSD 9.1-RELEASE amd64
___
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: Dependencies after port tree update

2013-01-17 Thread Polytropon
On Fri, 18 Jan 2013 05:46:06 +0100, Ralf Mardorf wrote:
 Is there a way to automatically recompile all broken apps and dependencies?

Yes, using a port management tool such as portmaster should be
able to resolve all those problems automatically, usually by
explicitely requesting the compile everything (update all
ports) action. See the EXAMPLES section of man portmaster
for how to do this.



-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
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: time_t definition

2013-01-17 Thread Polytropon
On Thu, 17 Jan 2013 20:46:25 -0800, Thomas D. Dean wrote:
 A lot of discussion about what I can do other than understand why gcc 
 does not keep track of the basic typedef.

As explained, gcc issues a valid (!) warning because there
was a type mismatch: You tried to printf() a (long) value
with %ld, but a (int) value (requiring %d) was supplied to
the function.

It's not gcc's job to advice the programmer on what he should
do. You _intendedly_ write something, and the compiler treats
your words as truth. If you formulate something wrong, the
compiler will complain, and that's okay. Warnings are a good
means to deal with such minor errors.



 Mayhe the question is beyond this list.

Allow me to repeat, just to be sure I haven't missed an
important point:

gcc47 -O2 -pipe  -I../../include -std=gnu99 -fstack-protector 
-Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized 
-Wno-pointer-sign -c data-collection.c 
data-collection.c: In function 'main': 
data-collection.c:214:4: error: format '%ld' expects argument of type 
'long int', but argument 3 has type 'time_t' [-Werror=format] 
data-collection.c:234:4: error: format '%ld' expects argument of type 
'long int', but argument 3 has type 'time_t' [-Werror=format] 
cc1: all warnings being treated as errors 
*** [data-collection.o] Error code 1

The compiler option -Werror=format informs you:

format '%ld' expects argument of type 'long int',
but argument 3 has type 'time_t'

That matches the source:

 gettimeofday(spi_stop, tz); / * line 211 */ 
   printf(Loop %d, SPI  %ld %ld\n, 
  loop, 
  spi_stop.tv_sec, spi_stop.tv_usec); 
   gettimeofday(disk_stop, tz);/* line 231 */ 
   printf(Loop %d, Disk %ld %ld\n, 
  loop, 
  disk_stop.tv_sec, disk_stop.tv_usec);

disk_stop.tv_sec and disk_stop.tv_usec are (timt_t).

You've properly included the include files for time_t variables.
There are recursive typedefs as follows:

/usr/src/sys/sys/types.h (line 253):

typedef __time_t time_t;

/usr/src/sys/i386/include/_types.h (line 97):

typedef __int32_t __time_t;

/usr/src/sys/i386/include/_types.h (line 55):

typedef int __int32_t;

In the end, you have this type chain:

int - __int32_t -- __time_t - time_t

Or in the reverse order:

time_t - __time_t - __int32_t - int

So _at least here_ (!), (time_t) is equivalent to (int).

Repeating: In your format string, you request a position for a
(long) argument, but gcc encounters an (int) value instead and
validly issues the proper warning.

So to speak, you're doing something wrong here. You can avoid
the problem by typecasting the (time_t) values to (long):

   printf(Loop %d, SPI  %ld %ld\n, 
  loop, 
  (long)spi_stop.tv_sec, (long)spi_stop.tv_usec); 

Or you can change the format parameter to %d:

   printf(Loop %d, SPI  %d %d\n, 
  loop, 
  spi_stop.tv_sec, spi_stop.tv_usec); 

However, the most clean solution is to combine both methods:
Cast the (time_t) values to (int) _and_ use the %d placeholder:

   printf(Loop %d, SPI  %d %d\n, 
  loop, 
  (int)spi_stop.tv_sec, (int)spi_stop.tv_usec); 

The reason is simple: You should not blindly _rely_ on the
assumtion that (time_t) which you know is some integer type
is _exactly_ (int) -- it doesn't neccessarily have to be.
Similarly, you shouldn't assume that it's (long) either.

I hope this verbose explanation has been easy to understand.





-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
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