lua 5.1.4

3 views
Skip to first unread message

leith

unread,
Dec 23, 2009, 11:39:21 AM12/23/09
to minix3
I found this message on the wiki (and in this group)

http://groups.google.com/group/minix3/browse_thread/thread/1f7951999677a276/733132b377807df6

and found it worked well, except when I wanted to run "make install"
Apparently the minix "install" utility does not support the "-p" flag,
which according to a linux manage for install:

-p, --preserve-timestamps
apply access/modification times of SOURCE files to
corresponding destination files

I modified the toplevel Makefile and removed that -p from the "INSTALL
= install" and it worked!

Moritz Wilhelmy

unread,
Dec 23, 2009, 12:54:38 PM12/23/09
to min...@googlegroups.com
That probably is okay because timestamps don't seem so important for
me... (at least not in this case)
a lua port to minix is indeed great. Lua is such a lovely language...

A thing I noticed about interpreted languages other than lua is
that they are quire outdated... e.g. python on minix is still at 1.5
anyway, lua is easy to port to any platform because it's portable code
which just requires an ANSI conforming C compiler. Good job, thanks!

Kind regards

Moritz


2009/12/23 leith <leit...@gmail.com>:

> --
>
> You received this message because you are subscribed to the Google Groups "minix3" group.
> To post to this group, send email to min...@googlegroups.com.
> To unsubscribe from this group, send email to minix3+un...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/minix3?hl=en.
>
>
>

Leith Brandeland

unread,
Dec 23, 2009, 1:32:38 PM12/23/09
to min...@googlegroups.com
I will work on making an official package....

AntoineLeca

unread,
Dec 26, 2009, 8:51:55 AM12/26/09
to minix3
On Dec 23th, 16:39Z, leith wrote:
> Apparently the minix "install" utility does not support the "-p" flag,
> which according to a linux manage for install:
>
>  -p, --preserve-timestamps
>               apply access/modification times of SOURCE files to
> corresponding destination files
>
> I modified the toplevel Makefile and removed that -p from the "INSTALL
> = install" and it worked!

install(1) comes from BSD, and is not specified by Posix.2 (not even
mentionned in the Rationale about dropped utilities).
The version which come with 4.4/Lite2 is typical, and only supports
install [-cs] [-f flags] [-g group] [-m mode] [-o owner]

Minix have quite some more flags
install [-lcszN] [-g group] [-m mode] [-o owner] [-S stack]
install -d [-o owner] [-g group] [-m mode] directory

The -f feature is specific to FFS if I understand correctly.
On the other hand, -z and -N (N between 1 and 9) implements an
additional compressing stage, which is not seen elsewhere and should
probably not be relied on. -l also is Minix-specific, and furthermore
have a different syntax from an equivalent option in NetBSD.
-S is special Minix stuff, and it was even mandatory in many Makefiles
before 3.1.4!

From 1996 on, *BSD derivatives support a few more options, including
-C Copy the file, as if the -c option is specified, except
if the
target file already exists and the files are the same, then
don't
change the modification time of the target.

-p Preserve the modification time. Copy the file, as if the
-C
(Compare and copy) option is specified, except if the target
file
doesn't already exist or is different, then preserve the modifi-
cation time of the file.

I see it implemented in all the main derivatives (and in GNU coreutils
too, as noted above), so perhaps we should implement it in Minix too?

Also implemented widely is -b (to make backups). The default suffix
can be changed with -B in *BSD, and -S in GNU coreutils (why?)

Antoine

Moritz Wilhelmy

unread,
Jan 5, 2010, 8:29:20 AM1/5/10
to min...@googlegroups.com
Hey

can't be so hard to implement, feel free to do it... (and commit! :)
for -B and -S, just make -S an alias so everybody is happy and shuts up

Moritz

2009/12/26 AntoineLeca <antoine...@gmail.com>:

Reply all
Reply to author
Forward
0 new messages