From: "Шенцев Алексей" <lex.shen@yandex.ru> To: sisyphus@lists.altlinux.org Subject: Re: [sisyphus] сборка rpm-пакета & systemd Date: Mon, 6 Aug 2018 11:38:45 +0300 Message-ID: <4c3d477f-d1f1-f659-90e0-e999dda28b2a@yandex.ru> (raw) In-Reply-To: <e72de8c5-67af-8e1f-d8d1-20e0c9e8d3a7@ya.ru> 06.08.2018 09:53, Антон Мидюков пишет: > 06.08.2018 13:23, Шенцев Алексей пишет: >> Всем привет! >> >> При сборке пакета получаю такую ошибку: >> >> /bin/mkdir: cannot create directory '/usr/lib/systemd/system': >> Permission denied > Вообще, в Альте эта директория /lib/systemd/system представлена > макросом %_unitdir Имя макроса мне и надо было. > >> >> >> Предпологаю, что надо в спеке указать типа: >> >> >> mkdir -p %buildroot/<хде_там_системд> >> >> >> Но вот как правильно это сделать? >> > Не понятно, откуда взялась эта ошибка? Во время make install Вот в это время и возникает ошибка: Making install in systemd make[1]: Entering directory '/home/ashen/RPM/BUILD/dbmail-3.2.3/systemd' make[2]: Entering directory '/home/ashen/RPM/BUILD/dbmail-3.2.3/systemd' make[2]: Nothing to be done for 'install-exec-am'. GEN dbmail-imapd.service GEN dbmail-lmtpd.service GEN dbmail-pop3d.service GEN dbmail-timsieved.service GEN dbmail.tmpfiles /bin/mkdir -p /usr/lib/systemd/system /bin/mkdir: cannot create directory '/usr/lib/systemd/system': Permission denied make[2]: *** [Makefile:2014: install-systemd] Error 1 как объехать данную ошибку сообразить не могу. запуск autoreconf не помог (хотя может и не правильно запускал) > или вы сами в спеке отдали неверную команду. Отсюда и решение будет > разным. Во втором случае: > mkdir -p %buildroot%_unitdir Это прописано. > > В первом, нужно разбираться, как поменять переменную в Makefile. И тут > опять варианты в зависимости от того, как этот Makefile сформировался. > Makefile формируется через "./configure --enable-systemd" проги. -- С уважением, Шенцев Алексей
next prev parent reply other threads:[~2018-08-06 8:38 UTC|newest] Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top 2018-08-06 6:23 Шенцев Алексей 2018-08-06 6:53 ` Антон Мидюков 2018-08-06 8:38 ` Шенцев Алексей [this message] 2018-08-06 8:38 ` Шенцев Алексей 2018-08-06 8:48 ` Антон Мидюков 2018-08-06 9:00 ` Шенцев Алексей 2018-08-06 9:10 ` Антон Мидюков 2018-08-06 9:13 ` Шенцев Алексей 2018-08-06 9:28 ` Антон Мидюков 2018-08-06 12:12 ` Шенцев Алексей 2018-08-06 12:25 ` Andrey Cherepanov 2018-08-06 13:29 ` Andrew Borodin 2018-08-06 13:16 ` Антон Мидюков 2018-08-06 13:37 ` Шенцев Алексей
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=4c3d477f-d1f1-f659-90e0-e999dda28b2a@yandex.ru \ --to=lex.shen@yandex.ru \ --cc=sisyphus@lists.altlinux.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux Sisyphus discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \ sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru public-inbox-index sisyphus Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.sisyphus AGPL code for this site: git clone https://public-inbox.org/public-inbox.git