Re: Never forget a special trick...

2012-03-04 Thread Erich Dollansky
Hi,

On Monday 05 March 2012 12:25:10 Julian Elischer wrote:
> On 3/4/12 12:47 PM, Devin Teske wrote:
> > On Mar 4, 2012, at 12:29 PM, Phillip Spring wrote:
> >
> >> Dear anonymous open-source enthusiasts friends,
> >>
> >> How to echo a string backwards into a terminal?
> >> For example (or something like this):
> >>
> >> # echo @_foo_$
> >> oof
> >>
> >> Or it could be something else (that's because I forgot it):
> >>
> >> # echo $_bar_@
> >> rab
> >>
> >> Someone told me how to do it but I can't remember this trick.
> >> I just remember the date it happened: Oct-13-2011
> >>
> >
> > You're looking for rev(1)
> >
> > Example:
> >
> > # echo foo | rev
> > oof
> >
> gosh, how did I survive so long without this program..?

how? I did not and wrote it myself recently after a stupid program inverted 
randomly the output sequence.
> 
> oh yeah..  I remember.. never needed to do that..

You have been lucky.

Erich
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"


Re: Never forget a special trick...

2012-03-04 Thread Julian Elischer

On 3/4/12 12:47 PM, Devin Teske wrote:

On Mar 4, 2012, at 12:29 PM, Phillip Spring wrote:


Dear anonymous open-source enthusiasts friends,

How to echo a string backwards into a terminal?
For example (or something like this):

# echo @_foo_$
oof

Or it could be something else (that's because I forgot it):

# echo $_bar_@
rab

Someone told me how to do it but I can't remember this trick.
I just remember the date it happened: Oct-13-2011



You're looking for rev(1)

Example:

# echo foo | rev
oof


gosh, how did I survive so long without this program..?

oh yeah..  I remember.. never needed to do that..


___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"


Re: [clang] Build error on r232474 (and a few before, don't know exactly which)

2012-03-04 Thread Brandon Falk

On 3/3/2012 9:29 PM, Brandon Falk wrote:

On 3/3/2012 9:13 PM, Joshua Isom wrote:

On 3/3/2012 6:30 PM, Dimitry Andric wrote:


Huh, that's weird.  I see no reason that it wouldn't install cc during
the cross-tools stage, unless you have WITHOUT_GCC in your src.conf 
(and

aren't using WITH_CLANG_IS_CC at the same time).

Can you post your src.conf file, please?


I've had this happen for a while but kept forgetting to post a pr.

If you define WITHOUT_GCC, a cc isn't created in 
/usr/obj/usr/src/tmp/usr/bin but if you go into the directory and do 
a symbolic link from clang, and restart make with -DNO_CLEAN it'll 
work and complete.  One of the programs hardcodes cc and doesn't 
check the environment, I forget which.


Built the code until it failed. Then did a `ln -s 
/usr/obj/root/src/tmp/usr/bin/clang /usr/obj/root/src/tmp/usr/bin/cc` 
and a `make -DNO_CLEAN -j12 buildworld` and it finished just fine.


Thanks for the help, although we've got to sort this hardcode out 
somewhere :P


-Brandon Falk


FIXED

Sometime between 12 hours prior, and r232529 this bug was fixed. Just 
did a successful build on r232529.


-Brandon
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"


Re: Never forget a special trick...

2012-03-04 Thread Nate Dobbs
On Sun, Mar 4, 2012 at 3:29 PM, Phillip Spring <
gatinhodosseusson...@hotmail.com> wrote:

>
> Dear anonymous open-source enthusiasts friends,
>
> How to echo a string backwards into a terminal?
> For example (or something like this):
>
> # echo @_foo_$
> oof
>
> Or it could be something else (that's because I forgot it):
>
> # echo $_bar_@
> rab
>
> Someone told me how to do it but I can't remember this trick.
> I just remember the date it happened: Oct-13-2011
>
> []'s
> Phillip.
>  ___
> freebsd-hackers@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
>

I'm not entirely sure how to do this in any arbitrary shell - although you
could simply use the 'rev' command.

%echo HELLO! | rev
!OLLEH

Here is a link to the man page:

http://unixhelp.ed.ac.uk/CGI/man-cgi?rev


-- 
Cheers,

Nate Dobbs RHCE
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"


Where and when /etc/fstab is checking during boot

2012-03-04 Thread Robert Simmons
I've just finished working though building a FreeBSD box with an
encrypted root partition as mentioned in the geli(8) man page: "Ask
for the passphrase on boot, before the root partition is mounted.
This makes it possible to use an encrypted root partition.  One will
still need bootable unencrypted storage with a /boot/ directory, which
can be a CD-ROM disc or USB pen-drive, that can be removed after
boot."

I've noticed something quite interesting about the way that fstab is
read during boot.  If you follow the instructions exactly as they are
written in the geli(8) man page you soon discover that you also must
have an /etc/fstab file in that same unencrypted partition.  But this
need not be the complete fstab file.  It only needs to have the one
line that describes /.

Later, after the encrypted partition is mounted, the /etc/fstab inside
the encrypted partition is then read and all other partitions listed
in fstab are mounted as written there.

I've tested this by putting empty fstabs and fstabs with just the line
for / in both locations and booting to see what happens.

Is this the correct behavior?  Shouldn't the fstab file be read
completely once and not twice?
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"


Never forget a special trick - Asking for the real information

2012-03-04 Thread Phillip Spring

Dear anonymous open-source enthusiasts friends,

Nevermind my previous question and please forget that this list is a place for 
any ingenuous subject.
I believe I have followed the instructions searching for answers before asking 
for help.
But the information I'm looking for surely isn't found by using apropos or man 
-k or even grep -ir. So...

Anybody already noticed the PID numbers from ps output increasing too much?
And after rebooting several times You realize that You are not alone?
Then You give up and simple watch the console messages talking with you?
But there's no prompt to login or to run a shell, only the cursor blinking!
You literally matrix out with others true rail transport modellers... really?
They talk about magic and utopia and You learn something special... very 
special!
The end.

Enough said, I just forgot the escape sequences to authenticate as console 
operator.
Yes, I admit I failed to my first lesson and I don't deserve any second chances.
If You think that magic and utopia I just said isn't truth, maybe we are on the 
same boat forever.

Otherwise just follow the book,

Phillip.

  
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"


Re: Never forget a special trick...

2012-03-04 Thread Devin Teske

On Mar 4, 2012, at 12:29 PM, Phillip Spring wrote:

> 
> Dear anonymous open-source enthusiasts friends,
> 
> How to echo a string backwards into a terminal?
> For example (or something like this):
> 
> # echo @_foo_$
> oof
> 
> Or it could be something else (that's because I forgot it):
> 
> # echo $_bar_@
> rab
> 
> Someone told me how to do it but I can't remember this trick.
> I just remember the date it happened: Oct-13-2011 
> 


You're looking for rev(1)

Example:

# echo foo | rev
oof

-- 
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-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"


Never forget a special trick...

2012-03-04 Thread Phillip Spring

Dear anonymous open-source enthusiasts friends,

How to echo a string backwards into a terminal?
For example (or something like this):

# echo @_foo_$
oof

Or it could be something else (that's because I forgot it):

# echo $_bar_@
rab

Someone told me how to do it but I can't remember this trick.
I just remember the date it happened: Oct-13-2011 

[]'s
Phillip.  
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"


Re: How to submit a new port along with its distfile?

2012-03-04 Thread Conrad J. Sabatier
On Sun, 4 Mar 2012 09:19:42 -0800
Kevin Oberman  wrote:

> On Fri, Mar 2, 2012 at 10:59 PM, Conrad J. Sabatier 
> wrote:
> > If anyone's interested, the package is call mkreadmes-1.0.  It's a C
> > language version of the port's collection's "make readmes" (or, if
> > you will, the perl "make_readmes" script under the Tools
> > directory).  I wrote this because I was very dissatisfied with the
> > speed of rebuilding the README.html files after I update my ports
> > tree.  This new tool I've written cuts the time down to practically
> > nothing.  I can now rebuild all the README.html files for the
> > entire ports tree in less than 30 seconds.  Depending on system
> > load, I've actually seen it run in as little as @ 15 seconds.
> >
> > If you want to try it before it becomes an official port, it's
> > already available on Sourceforge right now.  It should compile and
> > install very easily on any FreeBSD system, even without the port
> > framework wrapper.
> >
> > The source archive is available at:
> >
> > http://sourceforge.net/projects/mkreadmes/files/mkreadmes-1.0.tar.bz2/download
> >
> > A README file is included in the distribution.  Online help is also
> > available via the "-h" command line option.
> >
> > Please don't hesitate to send me any questions, comments,
> > suggestions, bug reports, etc.
> 
> Conrad,
> 
> Thanks so much for mkreadmes. It works as advertised and this is  the
> first time in years that I have built all of the READMEs because it
> just took way, way too long to do so before mkreadmes.

Thank you very much for the kind words.  That's very nice to hear.
Yes, I'm quite pleased myself with how the program turned out.
Honestly, though, I never expected the performance difference to be
nearly as dramatic as it turned out to be.  :-)

Apparently, though, there's a latent bug in the program that only crops
up under certain conditions.  Just discovered it this morning.  Working
on a fix.  Also, Marco Steinbach has reported that the program won't
run in a jail environment, due to the attempt to elevate the
program's priority setting.

Note to hackers: what is the recommended method for determining if a
process is running in a jail?  I've been thinking of using sysctl(),
but wondering if there's a better way.

Getting to work on it today. Hope to have a new version to submit very
soon.

Conrad

-- 
Conrad J. Sabatier
conr...@cox.net
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"


Re: [clang] Build error on r232474 (and a few before, don't know exactly which)

2012-03-04 Thread Pegasus Mc Cleaft
On Sunday 04 March 2012 02:29:08 Brandon Falk wrote:
> > If you define WITHOUT_GCC, a cc isn't created in
> > /usr/obj/usr/src/tmp/usr/bin but if you go into the directory and do a
> > symbolic link from clang, and restart make with -DNO_CLEAN it'll work
> > and complete.  One of the programs hardcodes cc and doesn't check the
> > environment, I forget which.
> > ___
> > freebsd-hackers@freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> > To unsubscribe, send any mail to
> > "freebsd-hackers-unsubscr...@freebsd.org"
> 
> Built the code until it failed. Then did a `ln -s
> /usr/obj/root/src/tmp/usr/bin/clang /usr/obj/root/src/tmp/usr/bin/cc`
> and a `make -DNO_CLEAN -j12 buildworld` and it finished just fine.
> 
> Thanks for the help, although we've got to sort this hardcode out
> somewhere :P

Brandon, 
I had the same problem for a while but what I did to get around the 
problem was define WITH_CLANG_IS_CC=no in the /etc/src.conf and that created 
cc and the build continued. 

Peg
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"