ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: Sviatoslav Sviridov <svd@altlinux.ru>
To: ALT Linux Sisyphus discussion list <sisyphus@lists.altlinux.org>
Subject: Re: [sisyphus] I: updated package - subversion
Date: Wed, 30 Nov 2005 17:06:15 +0200
Message-ID: <438DBFE7.1060304@altlinux.ru> (raw)
In-Reply-To: <20051125225511.GA17307@basalt.office.altlinux.org>


[-- Attachment #1.1: Type: text/plain, Size: 1978 bytes --]

Dmitry V. Levin wrote on 11/26/2005 12:55 AM:
> У меня тоже не получилось, даже
> --query-repackage --build='--with swig_pl'
> не помогло (какой-то макрос не был определён), пришлось в spec-файл залезть.
>   
Вернулся сейчас с subversion в связи с приближающимся выходом 1.3.0...
И таки вспомнил почему там ругань на неопределнные макросы была (сам
тоже пробовал --query-repackage тогда, но не получилось также)...

А ругается потому, что макросы раскрываются до того, как все остальное
выполняется. Соответственно, если зависимость на пакет, предоставляющий
макросы, обернута в какой-нить %if_with/%endif, то сначала будет warning
насчет ненайденного макроса, а потом только насчет неудовлетворенной
зависимости.

В аттаче пример спека, показывающего такое поведение.
При не установленном rpm-build-java получаем следующе:

$ rpmbuild -bp test.spec
warning: Macro %_javadir not found
error: failed build dependencies:
        rpm-build-java   is needed by test-0.0.1-alt1

Но варнинги - это ерунда... Проблема в том, что выскакивает ошибка на
тот же самый макрос. Но ошибка уже в другом месте -- в секции %files.
Если из приаттаченного спека сделать src.rpm и попробовать его
пересобрать в хэшере, то он пересоберется. Но если его пересобираться с
ключем --query-repackage, то облимится:

$ hsh --query-repackage ~/build
/home/svd/RPM/SRPMS/test/test-0.0.1-alt1.src.rpm
Components: hasher
Processing pkglists... hasher done
Processing srclists...  hasher done
Creating component releases... done
Updating global release file... done
Appending MD5Sum... hasher done
All your base are belong to us!!!
warning: Macro %_javadir not found
warning: Macro %_javadir not found
warning: Macro %_javadir not found
error: Macro %_javadir not found
error: line 37: %_javadir/test.jar

А вопрос все это навеяло такой:
Все еще можно заворачивать сборочные зависимости в условия, или это
чревато? ;)

-- 
Best Regards,
Sviatoslav Sviridov


[-- Attachment #1.2: test.spec --]
[-- Type: text/plain, Size: 645 bytes --]

%def_with java

Name: test
Version: 0.0.1
Release: alt1

Summary: Test
License: GPL
Group: Development/Other
Url: http://wiki.sisyphus.ru/

Packager: Sviatoslav Sviridov <svd@altlinux.ru>

%if_with java
BuildPreReq: rpm-build-java
%endif

%description
This is test package to test something...

%prep
echo "%%_javadir is \"%_javadir\""

%build
%if_with java

%endif

%install
%__mkdir_p %buildroot%_javadir
%if_with java
:> %buildroot%_javadir/test.jar
%endif

%files
%if_with java
%_javadir/test.jar
%endif

%changelog
* Wed Nov 30 2005 Sviatoslav Sviridov <svd@altlinux.ru> 0.0.1-alt1
- Initial build

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]

  parent reply	other threads:[~2005-11-30 15:06 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-16 21:51 Sviataslau Svirydau
2005-08-17  8:56 ` [sisyphus] " Anton Farygin
2005-08-17  9:10   ` Sviataslau Svirydau
2005-11-25 16:37 ` [sisyphus] " Dmitry V. Levin
2005-11-25 17:27   ` Alexander Bokovoy
2005-11-25 17:38     ` Dmitry V. Levin
2005-11-25 17:50       ` Alexander Bokovoy
2005-11-25 18:26         ` [sisyphus] " Michael Shigorin
2005-11-25 18:43           ` Dmitry V. Levin
2005-11-25 20:16             ` Michael Shigorin
2005-11-25 19:20           ` Alexander Bokovoy
2005-11-25 22:08   ` [sisyphus] " Sviatoslav Sviridov
2005-11-25 22:55     ` Dmitry V. Levin
2005-11-26  9:12       ` Vladimir Lettiev
2005-11-26 11:57         ` Vladimir Lettiev
2005-11-26 15:12           ` Dmitry V. Levin
2005-11-26 18:10           ` Sviatoslav Sviridov
2005-11-26 20:42             ` Aleksey Avdeev
2005-11-26 21:52               ` Sviataslau Svirydau
2005-11-26 22:08                 ` Aleksey Avdeev
2005-11-27 22:34             ` Sviataslau Svirydau
2005-11-30 15:06       ` Sviatoslav Sviridov [this message]
2005-11-30 15:27         ` [sisyphus][JT] " Sviataslau Svirydau
2005-11-30 15:37           ` [sisyphus] Re: [JT] " Vitaly Ostanin
2005-11-30 15:43             ` Sviataslau Svirydau
2005-11-30 16:26           ` Grigory Batalov

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=438DBFE7.1060304@altlinux.ru \
    --to=svd@altlinux.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