Re: Problem with implicit rule in make

2014-05-03 Thread Roberto E. Vargas Caballero
> There is nothing in the posix description that says anything about default
> rules to recreate archives.

Maybe I am wrong, but this part of posix seems to say another thing:


5. The most common use of the archive interface follows. Here,
it is assumed that the source files are all C-language
source:

lib: lib(file1.o) lib(file2.o) lib(file3.o)
@echo lib is now up-to-date

The .c.a rule is used to make file1.o, file2.o, and file3.o
and insert them into lib.

You can check it in Examples section of 
http://pubs.opengroup.org/onlinepubs/009695399/utilities/make.html.


Regards,

-- 
Roberto E. Vargas Caballero



Problem with implicit rule in make

2014-05-03 Thread Roberto E. Vargas Caballero
Hi,

I have the following simple Makefile:

CPPFLAGS = -I../inc

all: libcc.a

libcc.a: libcc.a(die.o) libcc.a(xcalloc.o) libcc.a(xmalloc.o)

clean:
rm -f *.o *.a

which should generate a static library using a default rule. This Makefile
works in another systems, and it is accepted by POSIX standards [1]. The
rule in /usr/share/mk/sys.mk is:

.c.a:
${COMPILE.c} ${.IMPSRC}
${AR} ${ARFLAGS} $@ $*.o
rm -f $*.o

but when I run make I get this output:

$ make
cc -O2 -pipe  -I../inc -c die.c
cc -O2 -pipe  -I../inc -c xcalloc.c
cc -O2 -pipe  -I../inc -c xmalloc.c

Anyone could point me what is the problem?

Regards,

[1] http://pubs.opengroup.org/onlinepubs/009695399/utilities/make.html

-- 
Roberto E. Vargas Caballero



Re: {r,s}mkx entries in terminfo db missing

2014-03-25 Thread Roberto E. Vargas Caballero
> I solved it (for the moment) by patching st, as patching st
> is something you most likely do anyways.  The patch, including 
> a description, can be found on the suckless wiki [1].

But this solution is a bit tricky, becuase you will have problems
in the moment you connect to another system where the definition
of st-git is not present. Maybe the best solution can be update the
definition of st in OpenBSD.

Regards,

-- 
Roberto E. Vargas Caballero



Re: Are there any default password managers in OpenBSD?

2013-12-05 Thread Roberto E. Vargas Caballero
> function getpass {
>   gpg --decrypt $HOME/pw.gpg | grep "^$1" | awk '{print $2}' \
>   | tr -d '\n' |  xclip -i 
> }
> 
> The plaintext of pw.gpg has lines like this:
> 
> key   password

I have something similar, but instead of having all the password in
a single file, I have only file by each password, so the script
is more simple.

Regards,

-- 
Roberto E. Vargas Caballero



Re: OpenBSD not forwarding to specific sites

2013-09-30 Thread Roberto E. Vargas Caballero
> Since starting the thread I have changed my pf.conf on advice of other
> users to have these lines...
> set reassemble yes no-df
> match in  on pppoe0 scrub (max-mss 1440 no-df reassemble tcp)
> 
> Any more ideas?

I have a similar problem here, and I still doesn't found the solution,
but maybe your problem can be related to [1], in the section
"pf and window scaling)" (you can found some information about it
in [2]).

Good luck,

[1] http://fatsquirrel.org/veghead/wot/openbsd.php
[2] http://wheel.troxo.com/2008/06/05/tcp-window-scaling-conundrum
-- 
Roberto E. Vargas Caballero

k...@shike2.com
http://www.shike2.com



Re: mailx : mime handling?

2013-09-26 Thread Roberto E. Vargas Caballero
> On the other side, if you begin adding mime, the you should follow
> adding pgp, etc, and the we have another inflated mail program.

Could be good a tool that only transform a file into a mime attachment.
Sometimes I use mpack/munpack, but they do more things, like creating
subject or to headers and even it sends the mail.
> 
> I think, people that do not use mailx, do it, because they like other
> programs. Inflating mailx will not bring them to use it. And the 
> external programs are also usefull iin other contexts for everybody.

I use mutt basically because it has threading support, and I cannot live
without it.

Best regards,

-- 
Roberto E. Vargas Caballero

k...@shike2.com
http://www.shike2.com



Re: mailx : mime handling?

2013-09-25 Thread Roberto E. Vargas Caballero
> It would be nice if metamail works again. Perhaps to have something
> like an editor to be called with ~e (when EDITOR is set to it) in mail
> that allow to add attachments and to call another editor for writing
> the text. For reading IMAP it would be nice to have the possibility
> to "mount" the remote folder as a local file (no work in FUSE?). 
> Another question is how to send with alternative smtp servers.

I use fetchmail for getting my external folders with imap. It is really
simple and fits fine with the rest of my mail system.

-- 
Roberto E. Vargas Caballero

k...@shike2.com
http://www.shike2.com



Re: cvsync, rsync

2013-09-17 Thread Roberto E. Vargas Caballero
> But in general, in case of foul play, you have ways ways more 
> to worry about than whether your hash is going to match!
> 
> (and the attacks we know about for md5 and sha1 are of the "choose preimage
> variety", so it's for files A and B that *the attacker* can choose, not your
> own A file, and a B file chosen by the attacker).

In git case, you have also to think the damage due to the attack is also limited
due to the distributed behaviour of it. Maybe someone can create a git object
with the same hash value of one previous, but this change will not be propagated
in the net, so all the others copies of the original object will be conserved
in the network. And of course, the probability of creating a new git object
with the same hash than other previous and correct linked is zero.


-- 
Roberto E. Vargas Caballero

k...@shike2.com
http://www.shike2.com