1
1
Fork 0

Правила сборки для ЗОСРВ "Нейтрино" редакции 2020

This commit is contained in:
parent e4ecd03e3f
commit e70c623d72
21 changed files with 85 additions and 0 deletions

2
Makefile Normal file
View File

@ -0,0 +1,2 @@
LIST=OS
include recurse.mk

31
README.md Normal file
View File

@ -0,0 +1,31 @@
Сборка проекта в ЗОСРВ "Нейтрино" редакции 2020
===============================================
Для всех архитектур:
```
make -j16 install
```
Только для x86:
```
CPULIST=x86 make -j16 install
```
**Порт nano проверен на работоспособность условно и, вероятно, потребует дополнительной адаптации.**
**Поддержка мыши отключена (требуется более новый ncurses).**
Зависимости
===========
1. В процессе сборки происходит скачивание `gnulib`
Запуск
===========
```
export TERM=xterm
nano
```

15
common.mk Normal file
View File

@ -0,0 +1,15 @@
ifndef QCONFIG
QCONFIG=qconfig.mk
endif
include $(QCONFIG)
CONFIGUREFLAGS += --disable-maintainer-mode
#CONFIGUREFLAGS += --disable-browser
#CONFIGUREFLAGS += --disable-utf8
CONFIGUREFLAGS += --disable-mouse
CPPFLAGS += -D_QNX_SOURCE=1
CFLAGS += -D_QNX_SOURCE=1
include $(MKFILES_ROOT)/autotools.mk
include $(MKFILES_ROOT)/qtargets.mk

2
nto/Makefile Normal file
View File

@ -0,0 +1,2 @@
LIST=CPU
include recurse.mk

2
nto/aarch64/Makefile Normal file
View File

@ -0,0 +1,2 @@
LIST=VARIANT
include recurse.mk

View File

@ -0,0 +1 @@
include ../../../common.mk

2
nto/arm/Makefile Normal file
View File

@ -0,0 +1,2 @@
LIST=VARIANT
include recurse.mk

1
nto/arm/o.le.v7/Makefile Normal file
View File

@ -0,0 +1 @@
include ../../../common.mk

1
nto/arm/o.le/Makefile Normal file
View File

@ -0,0 +1 @@
include ../../../common.mk

2
nto/e2k/Makefile Normal file
View File

@ -0,0 +1,2 @@
LIST=VARIANT
include recurse.mk

1
nto/e2k/o.le/Makefile Normal file
View File

@ -0,0 +1 @@
include ../../../common.mk

2
nto/mips/Makefile Normal file
View File

@ -0,0 +1,2 @@
LIST=VARIANT
include recurse.mk

1
nto/mips/o.be/Makefile Normal file
View File

@ -0,0 +1 @@
include ../../../common.mk

View File

@ -0,0 +1 @@
include ../../../common.mk

1
nto/mips/o.le/Makefile Normal file
View File

@ -0,0 +1 @@
include ../../../common.mk

2
nto/ppc/Makefile Normal file
View File

@ -0,0 +1,2 @@
LIST=VARIANT
include recurse.mk

View File

@ -0,0 +1 @@
include ../../../common.mk

1
nto/ppc/o.be/Makefile Normal file
View File

@ -0,0 +1 @@
include ../../../common.mk

2
nto/x86/Makefile Normal file
View File

@ -0,0 +1,2 @@
LIST=VARIANT
include recurse.mk

1
nto/x86/o/Makefile Normal file
View File

@ -0,0 +1 @@
include ../../../common.mk

View File

@ -2065,8 +2065,12 @@ void treat(char *tempfile_name, char *theprogram, bool spelling)
size_t was_x = openfile->current_x;
bool was_at_eol = (openfile->current->data[openfile->current_x] == '\0');
struct stat fileinfo;
#ifndef __KPDA__
long timestamp_sec = 0;
long timestamp_nsec = 0;
#else /* __KPDA__ */
time_t timestamp = 0;
#endif /* __KPDA__ */
static char **arguments = NULL;
pid_t thepid;
int program_status, errornumber;
@ -2085,8 +2089,12 @@ void treat(char *tempfile_name, char *theprogram, bool spelling)
return;
}
#ifndef __KPDA__
timestamp_sec = (long)fileinfo.st_mtim.tv_sec;
timestamp_nsec = (long)fileinfo.st_mtim.tv_nsec;
#else /* __KPDA__ */
timestamp = (time_t)fileinfo.st_mtime;
#endif /* __KPDA__ */
}
/* Exit from curses mode to give the program control of the terminal. */
@ -2128,9 +2136,14 @@ void treat(char *tempfile_name, char *theprogram, bool spelling)
free(arguments[0]);
/* When the temporary file wasn't touched, say so and leave. */
#ifndef __KPDA__
if (timestamp_sec > 0 && stat(tempfile_name, &fileinfo) == 0 &&
(long)fileinfo.st_mtim.tv_sec == timestamp_sec &&
(long)fileinfo.st_mtim.tv_nsec == timestamp_nsec) {
#else /* __KPDA__ */
if (timestamp > 0 && stat(tempfile_name, &fileinfo) == 0 &&
(time_t)fileinfo.st_mtime == timestamp) {
#endif /* __KPDA__ */
statusline(REMARK, _("Nothing changed"));
return;
}