ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: Andrey Cherepanov <cas@altlinux.org>
To: sisyphus@lists.altlinux.org
Subject: Re: [sisyphus] сборка rpm-пакета & systemd
Date: Mon, 6 Aug 2018 19:25:48 +0700
Message-ID: <fa911c94-4f6e-7263-4e9e-b0b4511cd197@altlinux.org> (raw)
In-Reply-To: <537a7ec9-5daa-f67e-9e5e-3e1a6c8e5ac3@yandex.ru>

06.08.2018 19:12, Шенцев Алексей пишет:
> 06.08.2018 12:28, Антон Мидюков пишет:
>> 06.08.2018 16:13, Шенцев Алексей пишет:
>>> 06.08.2018 12:10, Антон Мидюков пишет:
>>>> 06.08.2018 16:00, Шенцев Алексей пишет:
>>>>>
>>>>> Прописан путь в:
>>>>>
>>>>> fgrep -ir '/usr/lib/systemd/system' *
>>>>>
>>>>> systemd/Makefile.in:SYSTEMD_UNIT_DIR = /usr/lib/systemd/system
>>>>> systemd/Makefile.am:SYSTEMD_UNIT_DIR = /usr/lib/systemd/system
>>>> Эти пути и исправьте
>>>>
>
> Мда, смотрю в книгу и вижу фигу.
>
> Заменить /usr/lib/systemd/system на наш /lib/systemd/system .
> Но сие и не понадобилось.
>
>>> Вопрос как их правильно исправить?
>>>
>>> Т.е. на что?
>>>
>> На %_unitdir, т.е. /lib/systemd/system
>>
>> Кстати, исправьте в спеке %makeinstall на %makeinstall_std, основная 
>> беда скорее в этом у вас.
>
> Спасибо за подсказку про %makeinstall_std. Вы оказались правы, указав 
> %makeinstall_std вместо %makeinstall. Избавился от вышеуказанных проблем.
>
> P.S.: где почитать о различии у нас макросов %makeinstall и 
> %makeinstall_std и областях их применения?
>
В выводе rpm --showrc | less самое надёжное. Или в 
https://www.altlinux.org/ОсобенностиСборкиПакетов#.D0.A3.D1.81.D1.82.D0.B0.D0.BD.D0.BE.D0.B2.D0.BA.D0.B0_.D1.84.D0.B0.D0.B9.D0.BB.D0.BE.D0.B2

В _std добавляется DESTDIR=%buildroot

makeinstall_std    %make_install install DESTDIR=%buildroot

-- 
Andrey Cherepanov
cas@altlinux.org



  reply	other threads:[~2018-08-06 12:25 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     ` Антон Мидюков
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 [this message]
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=fa911c94-4f6e-7263-4e9e-b0b4511cd197@altlinux.org \
    --to=cas@altlinux.org \
    --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