mirror of
https://github.com/Linux4Yourself/book.git
synced 2025-01-25 07:42:19 +08:00
48 lines
940 B
Markdown
48 lines
940 B
Markdown
<package-info :package="package" showsbu2 ></package-info>
|
|
|
|
<script>
|
|
new Vue({
|
|
el: '#main',
|
|
data: { package: {}, patch: {} },
|
|
mounted: function () {
|
|
this.getPackage('efivar');
|
|
this.getBzipPatch();
|
|
},
|
|
methods: {
|
|
getPackage: function(name) {
|
|
getPackage(name)
|
|
.then(response => this.package = response);
|
|
},
|
|
getBzipPatch: function() {
|
|
getPackage('efivar-patch')
|
|
.then(response => this.patch = response);
|
|
},
|
|
}
|
|
})
|
|
</script>
|
|
|
|
## Дополнительные необходимые файлы
|
|
|
|
<a :href="patch.url">{{ patch.url}}</a>
|
|
|
|
## Подготовка
|
|
|
|
Примените патч, исправляющий ошибку сборки новыми версиями GCC:
|
|
|
|
<pre class="pre">
|
|
patch -Np1 -i ../{{patch.fileName}}
|
|
</pre>
|
|
|
|
|
|
## Сборка
|
|
|
|
```bash
|
|
make CFLAGS="-O2 -Wno-stringop-truncation"
|
|
```
|
|
|
|
## Установка
|
|
|
|
```bash
|
|
make install LIBDIR=/usr/lib BINDIR=/usr/bin
|
|
```
|