Как собрать (скомпилировать) утилиту grub-mkimage из пакета grub2-common?

Knoppix

Модераторы: Warderer, Модераторы разделов

Ответить
Аватара пользователя
жучара
Сообщения: 950
ОС: астралинукс

Как собрать (скомпилировать) утилиту grub-mkimage из пакета grub2-common?

Сообщение жучара »

Друзья! Собсно. Тут тоже ничего нет. Все мои эксперименты с make- могу показать, конечно, но это просто беспомощность какая-то. Каждый раз весь пакет пересобирать из-за одной утилиты тоже как-то неправильно. Спасибо, кто откликнется. Debian 11.
Я просто читаю маны.
Спасибо сказали:
Аватара пользователя
Bizdelnick
Модератор
Сообщения: 20792
Статус: nulla salus bello
ОС: Debian GNU/Linux

Re: Как собрать (скомпилировать) утилиту grub-mkimage из пакета grub2-common?

Сообщение Bizdelnick »

make grub-mkimage, не?
Пишите правильно:
в консоли
вку́пе (с чем-либо)
в общем
вообще
в течение (часа)
новичок
нюанс
по умолчанию
приемлемо
проблема
пробовать
трафик
Спасибо сказали:
Аватара пользователя
ormorph
Сообщения: 2645
ОС: Gentoo

Re: Как собрать (скомпилировать) утилиту grub-mkimage из пакета grub2-common?

Сообщение ormorph »

Bizdelnick писал:
07.10.2022 01:34
make grub-mkimage, не?
Почти, там нужно ещё предварительно кое что собрать.
make_grub-mkimage.sh:

Код: Выделить всё

#!/bin/bash

pushd grub-core/lib/gnulib/
   make -j$(nproc)
popd
make grub_script.tab.h
make grub_script.yy.h
make grub-mkimage -j$(nproc)
Спасибо сказали:
Аватара пользователя
жучара
Сообщения: 950
ОС: астралинукс

Re: Как собрать (скомпилировать) утилиту grub-mkimage из пакета grub2-common?

Сообщение жучара »

ormorph писал(а):
07.10.2022 12:05
Bizdelnick писал:
07.10.2022 01:34
make grub-mkimage, не?
Почти, там нужно ещё предварительно кое что собрать.
make_grub-mkimage.sh:

Код: Выделить всё

#!/bin/bash

pushd grub-core/lib/gnulib/
   make -j$(nproc)
popd
make grub_script.tab.h
make grub_script.yy.h
make grub-mkimage -j$(nproc)
я по отдельности команды даю, что-то у меня не получается вторая команда.

Shell

user@debian:~/grubi/grub2-2.06$ pushd grub-core/lib/gnulib/
~/grubi/grub2-2.06/grub-core/lib/gnulib ~/grubi/grub2-2.06 ~/grubi/grub2-2.06
user@debian:~/grubi/grub2-2.06/grub-core/lib/gnulib$ make -j$(nproc)
make: *** Не заданы цели и не найден make-файл. Останов.
user@debian:~/grubi/grub2-2.06/grub-core/lib/gnulib$
Я просто читаю маны.
Спасибо сказали:
Аватара пользователя
ormorph
Сообщения: 2645
ОС: Gentoo

Re: Как собрать (скомпилировать) утилиту grub-mkimage из пакета grub2-common?

Сообщение ormorph »

жучара писал(а):
07.10.2022 14:54
я по отдельности команды даю, что-то у меня не получается вторая команда.
Само собою не получается, для начало нужно выполнить конфигурирование.

Shell

$ ./configure
Спасибо сказали:
Аватара пользователя
жучара
Сообщения: 950
ОС: астралинукс

Re: Как собрать (скомпилировать) утилиту grub-mkimage из пакета grub2-common?

Сообщение жучара »

ormorph писал(а):
07.10.2022 15:07
жучара писал(а):
07.10.2022 14:54
я по отдельности команды даю, что-то у меня не получается вторая команда.
Само собою не получается, для начало нужно выполнить конфигурирование.

Shell

$ ./configure
./configure отрабатывает, а потом вот:

Shell

user@debian:~/grubi/grub2-2.06/grub-core/lib/gnulib$ make -j$(nproc)
cd ../../.. && make am--refresh
make[1]: вход в каталог «/home/user/grubi/grub2-2.06»
/usr/bin/python3 gentpl.py Makefile.util.def Makefile.utilgcry.def > Makefile.util.am.new || (rm -f Makefile.util.am.new; exit 1)
CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/bash /home/user/grubi/grub2-2.06/build-aux/missing aclocal-1.15 -I m4
/home/user/grubi/grub2-2.06/build-aux/missing: строка 81: aclocal-1.15: команда не найдена
WARNING: 'aclocal-1.15' is missing on your system.
You should only need it if you modified 'acinclude.m4' or
'configure.ac' or m4 files included by 'configure.ac'.
The 'aclocal' program is part of the GNU Automake package:
<http://www.gnu.org/software/automake>
It also requires GNU Autoconf, GNU m4 and Perl in order to run:
<http://www.gnu.org/software/autoconf>
<http://www.gnu.org/software/m4/>
<http://www.perl.org/>
make[1]: *** [Makefile:3408: aclocal.m4] Ошибка 127
make[1]: *** Ожидание завершения заданий…
mv Makefile.util.am.new Makefile.util.am
make[1]: выход из каталога «/home/user/grubi/grub2-2.06»
make: *** [Makefile:1508: ../../../aclocal.m4] Ошибка 2
user@debian:~/grubi/grub2-2.06/grub-core/lib/gnulib$
automake, естсессно, стоит

Shell

user@debian:~/grubi/grub2-2.06$ dpkg -l automake | tail -n 1
ii automake 1:1.16.3-2 all Tool for generating GNU Standards-compliant Makefiles
user@debian:~/grubi/grub2-2.06$
И да, команда sudo apt-get build-dep grub2-common, естессно, ужа дадена
------------------------------------------------------------------
Я вчера тоже ковырялся-ковырялся, одним из других путей дошёл до такой стадии, когда ему нужен был aclocal-1.15 и всё, дальше не продвинулся. Это один из моих неверных путей был.
Я просто читаю маны.
Спасибо сказали:
Аватара пользователя
ormorph
Сообщения: 2645
ОС: Gentoo

Re: Как собрать (скомпилировать) утилиту grub-mkimage из пакета grub2-common?

Сообщение ormorph »

жучара писал(а):
07.10.2022 15:25
automake, естсессно, стоит
А что за версия automake стоит? Странно что не находит.
Спасибо сказали:
Аватара пользователя
жучара
Сообщения: 950
ОС: астралинукс

Re: Как собрать (скомпилировать) утилиту grub-mkimage из пакета grub2-common?

Сообщение жучара »

ormorph писал(а):
07.10.2022 15:44
жучара писал(а):
07.10.2022 15:25
automake, естсессно, стоит
А что за версия automake стоит? Странно что не находит.

Shell

user@debian:~/grubi/grub2-2.06$ dpkg -l automake | tail -n 1
ii automake 1:1.16.3-2 all Tool for generating GNU Standards-compliant Makefiles
user@debian:~/grubi/grub2-2.06$
при этом весь пакет (dpkg-buildpackage -us -uc) можно собрать.
Я просто читаю маны.
Спасибо сказали:
Аватара пользователя
ormorph
Сообщения: 2645
ОС: Gentoo

Re: Как собрать (скомпилировать) утилиту grub-mkimage из пакета grub2-common?

Сообщение ormorph »

Я исходник брал этот. Проверил на Debian 11, там всё работает. Только хоть бинарник и соберёшь, но нужны ещё модули для нормальной работы от grub.
Спасибо сказали:
Аватара пользователя
жучара
Сообщения: 950
ОС: астралинукс

Re: Как собрать (скомпилировать) утилиту grub-mkimage из пакета grub2-common?

Сообщение жучара »

ormorph писал(а):
07.10.2022 16:04
Я исходник брал этот. Проверил на Debian 11, там всё работает. Только хоть бинарник и соберёшь, но нужны ещё модули для нормальной работы от grub.
Исходники нужно брать отсюда.

Shell

$ cat /etc/apt/sources.list
deb http://deb.debian.org/debian/ bullseye main contrib non-free
deb-src http://deb.debian.org/debian/ bullseye main contrib non-free
$
Всё остальное заслуживает, конечно, внимания, но не сейчас. Сперва разобраться с правильными пакетами, а потом всё остальное.
Я просто читаю маны.
Спасибо сказали:
Аватара пользователя
Bizdelnick
Модератор
Сообщения: 20792
Статус: nulla salus bello
ОС: Debian GNU/Linux

Re: Как собрать (скомпилировать) утилиту grub-mkimage из пакета grub2-common?

Сообщение Bizdelnick »

Делайте так, в свежераспакованных исходниках (не меняя никакие файлы!):

Shell

./configure
make -C grub-core/lib/gnulib/
make grub_script.tab.h grub_script.yy.h
make grub-mkimage
automake для этого не нужен. Нужны make, bison, flex и gcc.
Пишите правильно:
в консоли
вку́пе (с чем-либо)
в общем
вообще
в течение (часа)
новичок
нюанс
по умолчанию
приемлемо
проблема
пробовать
трафик
Спасибо сказали:
Аватара пользователя
ormorph
Сообщения: 2645
ОС: Gentoo

Re: Как собрать (скомпилировать) утилиту grub-mkimage из пакета grub2-common?

Сообщение ormorph »

жучара писал(а):
07.10.2022 16:09
Исходники нужно брать отсюда.
Ну так скачал, что под Gentoo, что под debian собирается без проблем. Даже не знаю что я делаю не так. Скачивал:

Shell

$ apt source grub
Собирал под Debian 11.
Добавлено (16:50):
Хотя пардон, я отдельно распаковывал каталог с исходником. Сейчас сразу зашёл, в каталог после выполнения команды скачивания, и ошибка повторилась. Видно тут дело в патчах.
Спасибо сказали:
Аватара пользователя
жучара
Сообщения: 950
ОС: астралинукс

Re: Как собрать (скомпилировать) утилиту grub-mkimage из пакета grub2-common?

Сообщение жучара »

Bizdelnick писал:
07.10.2022 16:34
Делайте так, в свежераспакованных исходниках (не меняя никакие файлы!):

Shell

./configure
make -C grub-core/lib/gnulib/
make grub_script.tab.h grub_script.yy.h
make grub-mkimage
automake для этого не нужен.
Вот на этой команде make -C grub-core/lib/gnulib/ сбой:

Shell

user@debian:~/grubi/grub2-2.06$ make -C grub-core/lib/gnulib/
make: вход в каталог «/home/user/grubi/grub2-2.06/grub-core/lib/gnulib»
cd ../../.. && make am--refresh
make[1]: вход в каталог «/home/user/grubi/grub2-2.06»
/usr/bin/python3 gentpl.py Makefile.util.def Makefile.utilgcry.def > Makefile.util.am.new || (rm -f Makefile.util.am.new; exit 1)
mv Makefile.util.am.new Makefile.util.am
CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/bash /home/user/grubi/grub2-2.06/build-aux/missing aclocal-1.15 -I m4
/home/user/grubi/grub2-2.06/build-aux/missing: строка 81: aclocal-1.15: команда не найдена
WARNING: 'aclocal-1.15' is missing on your system.
You should only need it if you modified 'acinclude.m4' or
'configure.ac' or m4 files included by 'configure.ac'.
The 'aclocal' program is part of the GNU Automake package:
<http://www.gnu.org/software/automake>
It also requires GNU Autoconf, GNU m4 and Perl in order to run:
<http://www.gnu.org/software/autoconf>
<http://www.gnu.org/software/m4/>
<http://www.perl.org/>
make[1]: *** [Makefile:3408: aclocal.m4] Ошибка 127
make[1]: выход из каталога «/home/user/grubi/grub2-2.06»
make: *** [Makefile:1508: ../../../aclocal.m4] Ошибка 2
make: выход из каталога «/home/user/grubi/grub2-2.06/grub-core/lib/gnulib»
user@debian:~/grubi/grub2-2.06$
Я пробую на двух машинах, на одной, которая создана с помощью virtualbox ну там создать машину, носители, размер, все дела. А вторая создана с помощью
$ sudo debootstrap bullseye bul http://deb.debian.org/debian, результат одинаков.
Я просто читаю маны.
Спасибо сказали:
Аватара пользователя
Bizdelnick
Модератор
Сообщения: 20792
Статус: nulla salus bello
ОС: Debian GNU/Linux

Re: Как собрать (скомпилировать) утилиту grub-mkimage из пакета grub2-common?

Сообщение Bizdelnick »

жучара писал(а):
07.10.2022 16:56
Вот на этой команде make -C grub-core/lib/gnulib/ сбой
Это значит, что какой-то из файлов был изменён или, по крайней мере, имеет неправильную дату модификации. Делайте на исходниках из свежераспакованного архива.
Пишите правильно:
в консоли
вку́пе (с чем-либо)
в общем
вообще
в течение (часа)
новичок
нюанс
по умолчанию
приемлемо
проблема
пробовать
трафик
Спасибо сказали:
Аватара пользователя
жучара
Сообщения: 950
ОС: астралинукс

Re: Как собрать (скомпилировать) утилиту grub-mkimage из пакета grub2-common?

Сообщение жучара »

Bizdelnick писал:
07.10.2022 17:04
жучара писал(а):
07.10.2022 16:56
Вот на этой команде make -C grub-core/lib/gnulib/ сбой
Это значит, что какой-то из файлов был изменён или, по крайней мере, имеет неправильную дату модификации. Делайте на исходниках из свежераспакованного архива.
да я понял. Перечень команд под катом:
ls - показываю, что текущий каталог пуст
apt-get source grub2-common- скачиваю и распаковываю исходники груба
cd grub2-2.06/- перехожу в создавшуюся папку
./configure конфигурирую
make -C grub-core/lib/gnulib/- командую

Вот результаты (отрицательные)
тут команды с выводом
user@debian:~/grubi$ ls
user@debian:~/grubi$
user@debian:~/grubi$ apt-get source grub2-common
Чтение списков пакетов… Готово
Используется «grub2» в качестве исходного пакета вместо «grub2-common»
ВНИМАНИЕ: работа над пакетом «grub2» ведётся в системе управления версиями «Git»:
https://salsa.debian.org/grub-team/grub.git
Используйте:
git clone https://salsa.debian.org/grub-team/grub.git
для получения последних (возможно, невыпущенных) обновлений пакета.
Необходимо скачать 7 674 kB архивов исходного кода.
Пол:1 http://deb.debian.org/debian bullseye/main grub2 2.06-3~deb11u1 (dsc) [7 125 B]
Пол:2 http://deb.debian.org/debian bullseye/main grub2 2.06-3~deb11u1 (tar) [6 582 kB]
Пол:3 http://deb.debian.org/debian bullseye/main grub2 2.06-3~deb11u1 (asc) [833 B]
Пол:4 http://deb.debian.org/debian bullseye/main grub2 2.06-3~deb11u1 (diff) [1 084 kB]
Получено 7 674 kB за 1с (5 467 kB/s)
dpkg-source: инфо: извлечение grub2 в grub2-2.06
dpkg-source: инфо: распаковывается grub2_2.06.orig.tar.xz
dpkg-source: инфо: распаковывается grub2_2.06-3~deb11u1.debian.tar.xz
dpkg-source: инфо: using patch list from debian/patches/series
dpkg-source: инфо: накладывается olpc-prefix-hack.patch
dpkg-source: инфо: накладывается core-in-fs.patch
dpkg-source: инфо: накладывается dpkg-version-comparison.patch
dpkg-source: инфо: накладывается grub-legacy-0-based-partitions.patch
dpkg-source: инфо: накладывается disable-floppies.patch
dpkg-source: инфо: накладывается grub.cfg-400.patch
dpkg-source: инфо: накладывается gfxpayload-keep-default.patch
dpkg-source: инфо: накладывается install-stage2-confusion.patch
dpkg-source: инфо: накладывается mkrescue-efi-modules.patch
dpkg-source: инфо: накладывается mkconfig-loopback.patch
dpkg-source: инфо: накладывается restore-mkdevicemap.patch
dpkg-source: инфо: накладывается gettext-quiet.patch
dpkg-source: инфо: накладывается install-efi-fallback.patch
dpkg-source: инфо: накладывается mkconfig-ubuntu-recovery.patch
dpkg-source: инфо: накладывается install-locale-langpack.patch
dpkg-source: инфо: накладывается mkconfig-nonexistent-loopback.patch
dpkg-source: инфо: накладывается default-grub-d.patch
dpkg-source: инфо: накладывается blacklist-1440x900x32.patch
dpkg-source: инфо: накладывается mkconfig-ubuntu-distributor.patch
dpkg-source: инфо: накладывается linuxefi.patch
dpkg-source: инфо: накладывается mkconfig-signed-kernel.patch
dpkg-source: инфо: накладывается install-signed.patch
dpkg-source: инфо: накладывается wubi-no-windows.patch
dpkg-source: инфо: накладывается maybe-quiet.patch
dpkg-source: инфо: накладывается install-efi-adjust-distributor.patch
dpkg-source: инфо: накладывается quick-boot.patch
dpkg-source: инфо: накладывается quick-boot-lvm.patch
dpkg-source: инфо: накладывается gfxpayload-dynamic.patch
dpkg-source: инфо: накладывается vt-handoff.patch
dpkg-source: инфо: накладывается probe-fusionio.patch
dpkg-source: инфо: накладывается ignore-grub_func_test-failures.patch
dpkg-source: инфо: накладывается mkconfig-recovery-title.patch
dpkg-source: инфо: накладывается install-powerpc-machtypes.patch
dpkg-source: инфо: накладывается ieee1275-clear-reset.patch
dpkg-source: инфо: накладывается ppc64el-disable-vsx.patch
dpkg-source: инфо: накладывается grub-install-pvxen-paths.patch
dpkg-source: инфо: накладывается insmod-xzio-and-lzopio-on-xen.patch
dpkg-source: инфо: накладывается grub-install-extra-removable.patch
dpkg-source: инфо: накладывается mkconfig-other-inits.patch
dpkg-source: инфо: накладывается zpool-full-device-name.patch
dpkg-source: инфо: накладывается net-read-bracketed-ipv6-addr.patch
dpkg-source: инфо: накладывается bootp-new-net_bootp6-command.patch
dpkg-source: инфо: накладывается efinet-uefi-ipv6-pxe-support.patch
dpkg-source: инфо: накладывается bootp-process-dhcpack-http-boot.patch
dpkg-source: инфо: накладывается efinet-set-network-from-uefi-devpath.patch
dpkg-source: инфо: накладывается efinet-set-dns-from-uefi-proto.patch
dpkg-source: инфо: накладывается fix-lockdown.patch
dpkg-source: инфо: накладывается skip-grub_cmd_set_date.patch
dpkg-source: инфо: накладывается bash-completion-drop-have-checks.patch
dpkg-source: инфо: накладывается at_keyboard-module-init.patch
dpkg-source: инфо: накладывается uefi-secure-boot-cryptomount.patch
dpkg-source: инфо: накладывается efi-variable-storage-minimise-writes.patch
dpkg-source: инфо: накладывается grub-install-removable-shim.patch
dpkg-source: инфо: накладывается dejavu-font-path.patch
dpkg-source: инфо: накладывается xen-no-xsm-policy-in-non-xsm-options.patch
dpkg-source: инфо: накладывается pc-verifiers-module.patch
dpkg-source: инфо: накладывается debug_verifiers.patch
dpkg-source: инфо: накладывается mkimage-fix-section-sizes.patch
dpkg-source: инфо: накладывается tpm-unknown-error-non-fatal.patch
dpkg-source: инфо: накладывается xfs-fix-v4-superblock.patch
dpkg-source: инфо: накладывается tests-ahci-update-qemu-device-name.patch
dpkg-source: инфо: накладывается minilzo-2.10.patch
dpkg-source: инфо: накладывается 0063-loader-efi-chainloader-Simplify-the-loader-state.patch
dpkg-source: инфо: накладывается 0064-commands-boot-Add-API-to-pass-context-to-loader.patch
dpkg-source: инфо: накладывается 0065-loader-efi-chainloader-Use-grub_loader_set_ex.patch
dpkg-source: инфо: накладывается 0066-kern-efi-sb-Reject-non-kernel-files-in-the-shim_lock.patch
dpkg-source: инфо: накладывается 0067-kern-file-Do-not-leak-device_name-on-error-in-grub_f.patch
dpkg-source: инфо: накладывается 0068-video-readers-png-Abort-sooner-if-a-read-operation-f.patch
dpkg-source: инфо: накладывается 0069-video-readers-png-Refuse-to-handle-multiple-image-he.patch
dpkg-source: инфо: накладывается 0070-video-readers-png-Drop-greyscale-support-to-fix-heap.patch
dpkg-source: инфо: накладывается 0071-video-readers-png-Avoid-heap-OOB-R-W-inserting-huff-.patch
dpkg-source: инфо: накладывается 0072-video-readers-png-Sanity-check-some-huffman-codes.patch
dpkg-source: инфо: накладывается 0073-video-readers-jpeg-Abort-sooner-if-a-read-operation-.patch
dpkg-source: инфо: накладывается 0074-video-readers-jpeg-Do-not-reallocate-a-given-huff-ta.patch
dpkg-source: инфо: накладывается 0075-video-readers-jpeg-Refuse-to-handle-multiple-start-o.patch
dpkg-source: инфо: накладывается 0076-video-readers-jpeg-Block-int-underflow-wild-pointer-.patch
dpkg-source: инфо: накладывается 0077-normal-charset-Fix-array-out-of-bounds-formatting-un.patch
dpkg-source: инфо: накладывается 0078-net-netbuff-Block-overly-large-netbuff-allocs.patch
dpkg-source: инфо: накладывается 0079-net-ip-Do-IP-fragment-maths-safely.patch
dpkg-source: инфо: накладывается 0080-net-dns-Fix-double-free-addresses-on-corrupt-DNS-res.patch
dpkg-source: инфо: накладывается 0081-net-dns-Don-t-read-past-the-end-of-the-string-we-re-.patch
dpkg-source: инфо: накладывается 0082-net-tftp-Prevent-a-UAF-and-double-free-from-a-failed.patch
dpkg-source: инфо: накладывается 0083-net-tftp-Avoid-a-trivial-UAF.patch
dpkg-source: инфо: накладывается 0084-net-http-Do-not-tear-down-socket-if-it-s-already-bee.patch
dpkg-source: инфо: накладывается 0085-net-http-Fix-OOB-write-for-split-http-headers.patch
dpkg-source: инфо: накладывается 0086-net-http-Error-out-on-headers-with-LF-without-CR.patch
dpkg-source: инфо: накладывается 0087-fs-f2fs-Do-not-read-past-the-end-of-nat-journal-entr.patch
dpkg-source: инфо: накладывается 0088-fs-f2fs-Do-not-read-past-the-end-of-nat-bitmap.patch
dpkg-source: инфо: накладывается 0089-fs-f2fs-Do-not-copy-file-names-that-are-too-long.patch
dpkg-source: инфо: накладывается 0090-fs-btrfs-Fix-several-fuzz-issues-with-invalid-dir-it.patch
dpkg-source: инфо: накладывается 0091-fs-btrfs-Fix-more-ASAN-and-SEGV-issues-found-with-fu.patch
dpkg-source: инфо: накладывается 0092-fs-btrfs-Fix-more-fuzz-issues-related-to-chunks.patch
dpkg-source: инфо: накладывается reenable_os-prober.patch
user@debian:~/grubi$
user@debian:~/grubi$ cd grub2-2.06/
user@debian:~/grubi/grub2-2.06$
user@debian:~/grubi/grub2-2.06$ ./configure
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for cmp... cmp
checking for bison... bison
checking for ranlib... ranlib
checking for gawk... (cached) mawk
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking for flex... flex
checking lex output file root... lex.yy
checking lex library... -lfl
checking whether yytext is a pointer... yes
checking for bison... (cached) bison
checking whether make sets $(MAKE)... (cached) yes
checking whether ln -s works... yes
checking for makeinfo... /usr/bin/makeinfo
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking dependency style of gcc... (cached) gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking whether _XOPEN_SOURCE should be defined... no
checking for Minix Amsterdam compiler... no
checking for ar... ar
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking dependency style of gcc... gcc3
checking for a Python interpreter with version >= 2.6... python3
checking for python3... /usr/bin/python3
checking for python3 version... 3.9
checking for python3 platform... linux
checking for python3 script directory... ${prefix}/lib/python3.9/site-packages
checking for python3 extension module directory... ${exec_prefix}/lib/python3.9/site-packages
checking for g++... yes
checking for a sed that does not truncate output... /usr/bin/sed
checking whether NLS is requested... yes
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking 32-bit host C ABI... no
checking for the common suffixes of directories in the library search path... lib,lib
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyCurrent... no
checking for GNU gettext in libc... yes
checking whether to use NLS... yes
checking where the gettext function comes from... libc
checking for special C compiler options needed for large files... (cached) no
checking for _FILE_OFFSET_BITS value needed for large files... (cached) no
checking whether byte ordering is bigendian... no
checking size of void *... 8
checking size of long... 8
checking size of off_t... 8
checking for help2man... /usr/bin/help2man
checking for posix_memalign... yes
checking for memalign... yes
checking for getextmntent... no
checking for atexit... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/mount.h usability... yes
checking sys/mount.h presence... yes
checking for sys/mount.h... yes
checking sys/mnttab.h usability... no
checking sys/mnttab.h presence... no
checking for sys/mnttab.h... no
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for sys/types.h... (cached) yes
checking for features.h... yes
checking for linewrap.h... no
checking for unistd.h... (cached) yes
checking for sys/param.h... (cached) yes
checking for sys/socket.h... yes
checking for dirent.h... yes
checking for fnmatch.h... yes
checking for wctype.h... yes
checking for sys/stat.h... (cached) yes
checking for getopt.h... yes
checking for sys/cdefs.h... yes
checking for langinfo.h... yes
checking for limits.h... (cached) yes
checking for xlocale.h... no
checking for wchar.h... yes
checking for sys/mman.h... yes
checking for malloc.h... yes
checking for sys/time.h... yes
checking for stdint.h... (cached) yes
checking for strings.h... (cached) yes
checking for sysexits.h... yes
checking for crtdefs.h... no
checking sys/mkdev.h usability... no
checking sys/mkdev.h presence... no
checking for sys/mkdev.h... no
checking sys/sysmacros.h usability... yes
checking sys/sysmacros.h presence... yes
checking for sys/sysmacros.h... yes
checking for struct statfs.f_fstypename... no
checking for struct statfs.f_mntfromname... no
checking util.h usability... no
checking util.h presence... no
checking for util.h... no
checking whether -Wtrampolines work... yes
checking for gcc... gcc
checking for size_t... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for inline... inline
checking for C/C++ restrict keyword... __restrict
checking whether clearerr_unlocked is declared... yes
checking whether feof_unlocked is declared... yes
checking whether ferror_unlocked is declared... yes
checking whether fflush_unlocked is declared... yes
checking whether fgets_unlocked is declared... yes
checking whether fputc_unlocked is declared... yes
checking whether fputs_unlocked is declared... yes
checking whether fread_unlocked is declared... yes
checking whether fwrite_unlocked is declared... yes
checking whether getc_unlocked is declared... yes
checking whether getchar_unlocked is declared... yes
checking whether putc_unlocked is declared... yes
checking whether putchar_unlocked is declared... yes
checking for flockfile... yes
checking for funlockfile... yes
checking for btowc... yes
checking for _set_invalid_parameter_handler... no
checking for fchdir... yes
checking for fcntl... yes
checking for symlink... yes
checking for mempcpy... yes
checking for fnmatch... yes
checking for isblank... yes
checking for iswctype... yes
checking for mbsrtowcs... yes
checking for wmemchr... yes
checking for wmemcpy... yes
checking for wmempcpy... yes
checking for getdelim... yes
checking for getdtablesize... yes
checking for getprogname... no
checking for getexecname... no
checking for mbsinit... yes
checking for mbrtowc... yes
checking for isascii... yes
checking for mprotect... yes
checking for nl_langinfo... yes
checking for lstat... yes
checking for openat... yes
checking for sleep... yes
checking for strdup... yes
checking for strndup... yes
checking for pipe... yes
checking for vasnprintf... no
checking for snprintf... yes
checking for wcrtomb... yes
checking for iswcntrl... yes
checking for wcwidth... yes
checking whether strerror_r is declared... yes
checking for strerror_r... yes
checking whether strerror_r returns char *... yes
checking whether <wchar.h> uses 'inline' correctly... yes
checking for nl_langinfo and CODESET... yes
checking for a traditional french locale... none
checking whether the preprocessor supports include_next... yes
checking whether system header files limit the line length... no
checking whether // is distinct from /... no
checking for complete errno.h... yes
checking whether fchdir is declared... yes
checking for working fcntl.h... yes
checking for pid_t... yes
checking for mode_t... yes
checking for mbstate_t... yes
checking whether stat file-mode macros are broken... no
checking for nlink_t... yes
checking whether getcwd (NULL, 0) allocates memory for result... yes
checking for getcwd with POSIX signature... yes
checking whether getdelim is declared... yes
checking whether getdtablesize is declared... yes
checking whether getline is declared... yes
checking for getopt.h... (cached) yes
checking for getopt_long_only... yes
checking whether getopt is POSIX compatible... yes
checking for working GNU getopt function... yes
checking for working GNU getopt_long function... yes
checking whether limits.h has LLONG_MAX, WORD_BIT, ULLONG_WIDTH etc.... yes
checking for wchar_t... yes
checking for good max_align_t... yes
checking whether NULL can be used in arbitrary expressions... yes
checking whether imported symbols can be declared weak... yes
checking whether the linker supports --as-needed... yes
checking whether the linker supports --push-state... yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking for multithread API to use... posix
checking whether malloc, realloc, calloc are POSIX compliant... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for unsigned long long int... yes
checking for long long int... yes
checking for a traditional japanese locale... none
checking for a transitional chinese locale... none
checking for a french Unicode locale... none
checking for mmap... yes
checking for MAP_ANONYMOUS... yes
checking whether memchr works... yes
checking whether memrchr is declared... yes
checking for O_CLOEXEC... yes
checking for promoted mode_t type... mode_t
checking whether lstat correctly handles trailing slash... yes
checking whether alarm is declared... yes
checking whether we are using the GNU C Library >= 2.1 or uClibc... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for wint_t... yes
checking whether wint_t is too small... no
checking whether stdint.h conforms to C99... yes
checking whether stdint.h predates C++11... no
checking whether stdint.h has UINTMAX_WIDTH etc.... yes
checking whether strdup is declared... yes
checking whether strerror(0) succeeds... yes
checking whether strndup is declared... yes
checking whether strnlen is declared... yes
checking for struct timespec in <time.h>... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for intmax_t... yes
checking where to find the exponent in a 'double'... word 1 bit 20
checking whether snprintf returns a byte count as in C99... yes
checking for snprintf... (cached) yes
checking for strnlen... yes
checking for wcslen... yes
checking for wcsnlen... yes
checking for mbrtowc... (cached) yes
checking for wcrtomb... (cached) yes
checking whether _snprintf is declared... no
checking whether vsnprintf is declared... yes
checking for alloca as a compiler built-in... yes
checking whether program_invocation_name is declared... yes
checking whether program_invocation_short_name is declared... yes
checking whether program_invocation_name is defined... yes
checking whether program_invocation_short_name is defined... yes
checking whether btowc(0) is correct... yes
checking whether btowc(EOF) is correct... guessing yes
checking for __builtin_expect... yes
checking whether this system has an arbitrary file name length limit... yes
checking for dirfd... yes
checking whether dirfd is declared... yes
checking whether dirfd is a macro... no
checking whether // is distinct from /... (cached) no
checking whether dup2 works... yes
checking for error_at_line... yes
checking whether fcntl handles F_DUPFD correctly... yes
checking whether fcntl understands F_DUPFD_CLOEXEC... needs runtime check
checking for flexible array member... yes
checking whether conversion from 'int' to 'long double' works... yes
checking for working POSIX fnmatch... yes
checking for working getdelim function... yes
checking whether getdtablesize works... yes
checking for getline... yes
checking for working getline function... yes
checking whether program_invocation_name is declared... (cached) yes
checking whether program_invocation_short_name is declared... (cached) yes
checking whether __argv is declared... no
checking whether langinfo.h defines CODESET... yes
checking whether langinfo.h defines T_FMT_AMPM... yes
checking whether langinfo.h defines ALTMON_1... yes
checking whether langinfo.h defines ERA... yes
checking whether langinfo.h defines YESEXPR... yes
checking whether the compiler supports the __inline keyword... yes
checking whether locale.h conforms to POSIX:2001... yes
checking whether struct lconv is properly defined... yes
checking for pthread_rwlock_t... yes
checking whether pthread_rwlock_rdlock prefers a writer to a reader... no
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... (cached) yes
checking whether mbrtowc handles incomplete characters... guessing yes
checking whether mbrtowc works as well as mbtowc... guessing yes
checking whether mbrtowc handles a NULL pwc argument... guessing yes
checking whether mbrtowc handles a NULL string argument... guessing yes
checking whether mbrtowc has a correct return value... guessing yes
checking whether mbrtowc returns 0 when parsing a NUL character... guessing yes
checking whether mbrtowc works on empty input... yes
checking whether the C locale is free of encoding errors... no
checking whether mbrtowc handles incomplete characters... (cached) guessing yes
checking whether mbrtowc works as well as mbtowc... (cached) guessing yes
checking whether mbrtowc handles incomplete characters... (cached) guessing yes
checking whether mbrtowc works as well as mbtowc... (cached) guessing yes
checking whether mbsrtowcs works... guessing yes
checking whether mbswidth is declared in <wchar.h>... no
checking for mbstate_t... (cached) yes
checking for mempcpy... (cached) yes
checking for memrchr... yes
checking whether YESEXPR works... yes
checking whether open recognizes a trailing slash... yes
checking whether program_invocation_name is declared... (cached) yes
checking whether program_invocation_short_name is declared... (cached) yes
checking for rawmemchr... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible realloc... yes
checking for working re_compile_pattern... no
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking whether isblank is declared... yes
checking for stdint.h... (cached) yes
checking for SIZE_MAX... yes
checking whether sleep is declared... yes
checking for working sleep... yes
checking for ssize_t... yes
checking whether stat handles trailing slashes on files... yes
checking for struct stat.st_atim.tv_nsec... yes
checking whether struct stat.st_atim is of type struct timespec... yes
checking for struct stat.st_birthtimespec.tv_nsec... no
checking for struct stat.st_birthtimensec... no
checking for struct stat.st_birthtim.tv_nsec... no
checking for working stdalign.h... yes
checking for good max_align_t... (cached) yes
checking whether NULL can be used in arbitrary expressions... (cached) yes
checking which flavor of printf attribute matches inttypes macros... system
checking for strcasecmp... yes
checking for strncasecmp... yes
checking whether strncasecmp is declared... yes
checking for strchrnul... yes
checking whether strchrnul works... yes
checking for working strerror function... yes
checking for working strndup... yes
checking for working strnlen... yes
checking for nlink_t... (cached) yes
checking for ptrdiff_t... yes
checking for vsnprintf... yes
checking whether snprintf respects a size of 1... yes
checking whether printf supports POSIX/XSI format strings with positions... yes
checking whether mbrtowc handles incomplete characters... (cached) guessing yes
checking whether mbrtowc works as well as mbtowc... (cached) guessing yes
checking whether wcrtomb return value is correct... guessing yes
checking whether iswcntrl works... yes
checking for towlower... yes
checking for wctype_t... yes
checking for wctrans_t... yes
checking whether wcwidth is declared... yes
checking whether wcwidth works reasonably in UTF-8 locales... yes
checking for stdint.h... (cached) yes
checking which extra warnings work... -Wextra -Wattributes -Wendif-labels -Winit-self -Wint-to-pointer-cast -Winvalid-pch -Wmissing-field-initializers -Wnonnull -Woverflow -Wvla -Wpointer-to-int-cast -Wstrict-aliasing -Wvariadic-macros -Wvolatile-register-var -Wpointer-sign -Wmissing-include-dirs -Wmissing-prototypes -Wmissing-declarations -Wformat=2
checking for objcopy... objcopy
checking for strip... strip
checking for nm... nm
checking for ranlib... ranlib
checking which extra warnings work... -Wextra -Wattributes -Wendif-labels -Winit-self -Wint-to-pointer-cast -Winvalid-pch -Wmissing-field-initializers -Wnonnull -Woverflow -Wvla -Wpointer-to-int-cast -Wstrict-aliasing -Wvariadic-macros -Wvolatile-register-var -Wpointer-sign -Wmissing-include-dirs -Wmissing-prototypes -Wmissing-declarations -Wformat=2
checking if compiling with clang... no
checking for options to compile assembly...
checking whether -falign-loops works... yes
checking whether -malign-loops works... yes
checking whether -freg-struct-return works... yes
checking for options to get soft-float... -msoft-float
checking whether -fno-dwarf2-cfi-asm works... yes
checking whether -mno-stack-arg-probe works... yes
checking whether -fno-asynchronous-unwind-tables works... yes
checking whether -fno-unwind-tables works... yes
checking whether -fno-ident works... yes
checking for target linking format... -melf_i386
checking whether options required for efiemu work... yes
checking for efiemu64 linking format... -melf_x86_64
checking whether option -Qn works... no
checking whether `gcc' has `-fPIE' as default... yes
checking whether linker accepts -no-pie... yes
checking whether linker accepts -nopie... no
checking whether linker needs disabling of PIE to work... no
checking whether `gcc' has `-fPIC' as default... no
checking whether `gcc' accepts `-fstack-protector'... yes
checking whether `gcc' accepts `-fstack-protector-strong'... yes
checking whether `gcc' accepts `-mstack-protector-guard=global'... yes
checking whether `gcc' accepts `-mstack-arg-probe'... no
checking if C symbols get an underscore after compilation... no
checking whether target compiler is working... yes
checking whether objcopy works for absolute addresses... yes
checking whether linker accepts --build-id=none... yes
checking if __bss_start is defined by the compiler... yes
checking if edata is defined by the compiler... yes
checking if _edata is defined by the compiler... yes
checking if end is defined by the compiler... yes
checking if _end is defined by the compiler... yes
checking whether nm works... yes
checking whether nm accepts -P... yes
checking whether nm accepts --defined-only... yes
checking whether -nostdinc -isystem works... yes
checking whether -Wtrampolines work... yes
checking for FREETYPE... yes
checking ft2build.h usability... yes
checking ft2build.h presence... yes
checking for ft2build.h... yes
checking whether byte ordering is bigendian... no
checking for BUILD_FREETYPE... yes
checking ft2build.h usability... yes
checking ft2build.h presence... yes
checking for ft2build.h... yes
checking for fuse_main_real in -lfuse... yes
checking fuse/fuse.h usability... yes
checking fuse/fuse.h presence... yes
checking for fuse/fuse.h... yes
checking libdevmapper.h usability... yes
checking libdevmapper.h presence... yes
checking for libdevmapper.h... yes
checking for dm_task_create in -ldevmapper... yes
checking for dm_log_with_errno_init in -ldevmapper... yes
checking for lzma_code in -llzma... yes
checking lzma.h usability... yes
checking lzma.h presence... yes
checking for lzma.h... yes
checking libzfs.h usability... no
checking libzfs.h presence... no
checking for libzfs.h... no
checking libnvpair.h usability... no
checking libnvpair.h presence... no
checking for libnvpair.h... no
checking for libzfs_init in -lzfs... no
checking whether ln -s can handle directories properly... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating grub-core/Makefile
config.status: creating grub-core/lib/gnulib/Makefile
config.status: creating po/Makefile.in
config.status: creating docs/Makefile
config.status: creating util/bash-completion.d/Makefile
config.status: creating stamp-h
config.status: creating config.h
config.status: creating config-util.h
config.status: linking include/grub/i386 to include/grub/cpu
config.status: linking include/grub/i386/pc to include/grub/machine
config.status: executing depfiles commands
config.status: executing po-directories commands
config.status: creating po/POTFILES
config.status: creating po/Makefile
*******************************************************
GRUB2 will be compiled with following components:
Platform: i386-pc
With devmapper support: Yes
With memory debugging: No
With disk cache statistics: No
With boot time statistics: No
efiemu runtime: Yes
grub-mkfont: Yes
grub-mount: Yes
starfield theme: No (No DejaVu found)
With libzfs support: No (need zfs library)
Build-time grub-mkfont: Yes
With unifont from /usr/share/fonts/X11/misc/unifont.pcf.gz
With liblzma from -llzma (support for XZ-compressed mips images)
With stack smashing protector: No
*******************************************************
user@debian:~/grubi/grub2-2.06$
user@debian:~/grubi/grub2-2.06$ make -C grub-core/lib/gnulib/
make: вход в каталог «/home/user/grubi/grub2-2.06/grub-core/lib/gnulib»
cd ../../.. && make am--refresh
make[1]: вход в каталог «/home/user/grubi/grub2-2.06»
/usr/bin/python3 gentpl.py Makefile.util.def Makefile.utilgcry.def > Makefile.util.am.new || (rm -f Makefile.util.am.new; exit 1)
mv Makefile.util.am.new Makefile.util.am
CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/bash /home/user/grubi/grub2-2.06/build-aux/missing aclocal-1.15 -I m4
/home/user/grubi/grub2-2.06/build-aux/missing: строка 81: aclocal-1.15: команда не найдена
WARNING: 'aclocal-1.15' is missing on your system.
You should only need it if you modified 'acinclude.m4' or
'configure.ac' or m4 files included by 'configure.ac'.
The 'aclocal' program is part of the GNU Automake package:
<http://www.gnu.org/software/automake>
It also requires GNU Autoconf, GNU m4 and Perl in order to run:
<http://www.gnu.org/software/autoconf>
<http://www.gnu.org/software/m4/>
<http://www.perl.org/>
make[1]: *** [Makefile:3408: aclocal.m4] Ошибка 127
make[1]: выход из каталога «/home/user/grubi/grub2-2.06»
make: *** [Makefile:1508: ../../../aclocal.m4] Ошибка 2
make: выход из каталога «/home/user/grubi/grub2-2.06/grub-core/lib/gnulib»
user@debian:~/grubi/grub2-2.06$
user@debian:~/grubi/grub2-2.06$
Я просто читаю маны.
Спасибо сказали:
Аватара пользователя
Bizdelnick
Модератор
Сообщения: 20792
Статус: nulla salus bello
ОС: Debian GNU/Linux

Re: Как собрать (скомпилировать) утилиту grub-mkimage из пакета grub2-common?

Сообщение Bizdelnick »

Ну всё правильно, там ведь куча патчей ещё накладывается. Видимо, какие-то из них затрагивают файлы, требующие пересоздания Makefile (например, Makefile.am). Если Вам действительно нужны эти патчи, делайте autoreconf. Тут уже могут понадобиться и automake, и autoconf, и ещё куча всего, причём, возможно, специфических версий. В данном случае вот, как минимум, automake-1.15 не хватает.
Пишите правильно:
в консоли
вку́пе (с чем-либо)
в общем
вообще
в течение (часа)
новичок
нюанс
по умолчанию
приемлемо
проблема
пробовать
трафик
Спасибо сказали:
Аватара пользователя
жучара
Сообщения: 950
ОС: астралинукс

Re: Как собрать (скомпилировать) утилиту grub-mkimage из пакета grub2-common?

Сообщение жучара »

Bizdelnick писал:
07.10.2022 17:52
Ну всё правильно, там ведь куча патчей ещё накладывается. Видимо, какие-то из них затрагивают файлы, требующие пересоздания Makefile (например, Makefile.am). Если Вам действительно нужны эти патчи, делайте autoreconf. Тут уже могут понадобиться и automake, и autoconf, и ещё куча всего, причём, возможно, специфических версий. В данном случае вот, как минимум, automake-1.15 не хватает.
так а делать-то чего? Ладно, я понял, искать automake-1.15. Хорошо, почему тогда dpkg-buildpackage -us -uc без проблем отрабатывает?
Я просто читаю маны.
Спасибо сказали:
Аватара пользователя
Bizdelnick
Модератор
Сообщения: 20792
Статус: nulla salus bello
ОС: Debian GNU/Linux

Re: Как собрать (скомпилировать) утилиту grub-mkimage из пакета grub2-common?

Сообщение Bizdelnick »

жучара писал(а):
07.10.2022 17:59
так а делать-то чего?
Bizdelnick писал:
07.10.2022 17:52
делайте autoreconf
жучара писал(а):
07.10.2022 17:59
почему тогда dpkg-buildpackage -us -uc без проблем отрабатывает?
Не знаю. Лог надо смотреть и rules.
Пишите правильно:
в консоли
вку́пе (с чем-либо)
в общем
вообще
в течение (часа)
новичок
нюанс
по умолчанию
приемлемо
проблема
пробовать
трафик
Спасибо сказали:
Аватара пользователя
ormorph
Сообщения: 2645
ОС: Gentoo

Re: Как собрать (скомпилировать) утилиту grub-mkimage из пакета grub2-common?

Сообщение ormorph »

На самом деле всё довольно просто. Когда выполняется команда:

Shell

$ apt source grub2
Скачивается исходник и на него налаживается патч, в том числе и на файлы конфигурации. Что бы не было ошибки и всё работало нужно просто выполнить:

Shell

$ autoreconf
А далее все перечисленные действия уже будут работать.
Спасибо сказали:
Аватара пользователя
жучара
Сообщения: 950
ОС: астралинукс

Re: Как собрать (скомпилировать) утилиту grub-mkimage из пакета grub2-common?

Сообщение жучара »

Мне вот непонятно, почему везде пишут, что нужно выполнять такие команды:
./configure
make
make install
Тут, например, пишут. Да везде.
А про autoreconf нигде не пишут, почему так? Ну где-то конечно, пишут, но не перед перечнем вышеупомянутых команд.
Я просто читаю маны.
Спасибо сказали:
Аватара пользователя
ormorph
Сообщения: 2645
ОС: Gentoo

Re: Как собрать (скомпилировать) утилиту grub-mkimage из пакета grub2-common?

Сообщение ormorph »

Потому, что в большинстве случаев это autoreconf не требуется. Этот случай к ним не относится.
Спасибо сказали:
Аватара пользователя
жучара
Сообщения: 950
ОС: астралинукс

Re: Как собрать (скомпилировать) утилиту grub-mkimage из пакета grub2-common?

Сообщение жучара »

ormorph писал(а):
09.10.2022 04:55
Потому, что в большинстве случаев это autoreconf не требуется. Этот случай к ним не относится.
получается, на всякий случай надо писать autoreconf
Я просто читаю маны.
Спасибо сказали:
Аватара пользователя
ormorph
Сообщения: 2645
ОС: Gentoo

Re: Как собрать (скомпилировать) утилиту grub-mkimage из пакета grub2-common?

Сообщение ormorph »

жучара писал(а):
09.10.2022 10:09
получается, на всякий случай надо писать autoreconf
Это вы сами пришли к такому мы воду. Я вам этого не советовал.
Спасибо сказали:
Аватара пользователя
Bizdelnick
Модератор
Сообщения: 20792
Статус: nulla salus bello
ОС: Debian GNU/Linux

Re: Как собрать (скомпилировать) утилиту grub-mkimage из пакета grub2-common?

Сообщение Bizdelnick »

жучара писал(а):
08.10.2022 23:11
Мне вот непонятно, почему везде пишут, что нужно выполнять такие команды:
./configure
make
make install
Тут, например, пишут. Да везде.
А про autoreconf нигде не пишут, почему так? Ну где-то конечно, пишут, но не перед перечнем вышеупомянутых команд.
Потому что таков workflow autoconf. Разработчик перед выпуском релиза генерирует конфигурационные скрипты с помощью autoconf, automake и т. п., запаковывает их в архив и публикует. Пользователь распаковывает архив, выполняет конфигурацию (configure) и сборку (make). Наложение патчей нарушает этот workflow. Если Вы изменяете файлы, на основе которых генерируются конфигурационные скрипты, то Вы должны знать, как их перегенерировать после этого, потому что берёте на себя уже функции разработчика.

P. S. autoconf — самая уродливая сборочная система из известных мне.
Добавлено (14:19):
жучара писал(а):
09.10.2022 10:09
получается, на всякий случай надо писать autoreconf
Нет, просто на всякий случай — не надо. Надо только тогда, когда надо.
Пишите правильно:
в консоли
вку́пе (с чем-либо)
в общем
вообще
в течение (часа)
новичок
нюанс
по умолчанию
приемлемо
проблема
пробовать
трафик
Спасибо сказали:
Ответить