2021-05-02 00:54:26 +08:00
|
|
|
|
<package-info :package="package" showsbu></package-info>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
new Vue({
|
|
|
|
|
el: '#main',
|
|
|
|
|
data: { package: {} },
|
|
|
|
|
mounted: function () {
|
|
|
|
|
this.getPackage('m4');
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
getPackage: function(name) {
|
|
|
|
|
getPackage(name)
|
|
|
|
|
.then(response => this.package = response);
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
</script>
|
|
|
|
|
|
2021-05-03 17:26:21 +08:00
|
|
|
|
## Настройка
|
2021-05-02 00:54:26 +08:00
|
|
|
|
|
|
|
|
|
Во первых примените исправление для новых версий glibc:
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
sed -i 's/IO_ftrylockfile/IO_EOF_SEEN/' lib/*.c
|
|
|
|
|
echo "#define _IO_IN_BACKUP 0x100" >> lib/stdio-impl.h
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
Запустите скрипт `configure`:
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
./configure --prefix=/usr \
|
|
|
|
|
--host=$LIN_TGT \
|
|
|
|
|
--build=$(build-aux/config.guess)
|
|
|
|
|
```
|
|
|
|
|
|
2021-05-03 17:26:21 +08:00
|
|
|
|
## Сборка
|
|
|
|
|
|
2021-05-02 00:54:26 +08:00
|
|
|
|
Соберите пакет:
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
make
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Установка
|
|
|
|
|
|
2021-05-03 17:26:21 +08:00
|
|
|
|
Для установки {{ package.name }} выполните:
|
2021-05-02 00:54:26 +08:00
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
make DESTDIR=$LIN install
|
|
|
|
|
```
|