From: "Антон Мидюков" <midyukov-anton@ya.ru> To: sisyphus@lists.altlinux.org Subject: Re: [sisyphus] сборка rpm-пакета & systemd Date: Mon, 6 Aug 2018 15:48:31 +0700 Message-ID: <5c17fccf-5e09-395f-ad46-59570cc332bb@ya.ru> (raw) In-Reply-To: <edd1fa0e-dd92-2d94-67cb-f3354d2c1e61@yandex.ru> 06.08.2018 15:38, Шенцев Алексей пишет: > 06.08.2018 09:53, Антон Мидюков пишет: >> 06.08.2018 13:23, Шенцев Алексей пишет: >> >>> >>> >>> Предпологаю, что надо в спеке указать типа: >>> >>> >>> 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 не помог (хотя может и не правильно запускал) %autoreconf правильно. > >> или вы сами в спеке отдали неверную команду. Отсюда и решение будет >> разным. Во втором случае: > >> mkdir -p %buildroot%_unitdir > > Это прописано. > >> >> В первом, нужно разбираться, как поменять переменную в Makefile. И >> тут опять варианты в зависимости от того, как этот Makefile >> сформировался. >> > Makefile формируется через "./configure --enable-systemd" проги. > Раз делаете %autoreconf надо править что-то типа Makefile.am, того из чего формируется configure и потом уже Makefile формируется. Видимо, жёстко путь прописан. Если autoreconf не делать, то править configure надо. А вообще можно глянуть на исходники проекта или ваш srpm (git на git.alt если есть)? -- С уважением, Антон Мидюков <antohami@altlinux.org>
next prev parent reply other threads:[~2018-08-06 8:48 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 ` Шенцев Алексей 2018-08-06 8:38 ` Шенцев Алексей 2018-08-06 8:48 ` Антон Мидюков [this message] 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=5c17fccf-5e09-395f-ad46-59570cc332bb@ya.ru \ --to=midyukov-anton@ya.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