Discussion:
BuildRequires: /usr/bin/something allowed?
Kyrill Detinov
2014-08-21 18:45:23 UTC
Permalink
Thu, 21 Aug 2014 22:39:33 +0400

Hello.

I need a clarification: does rpm allow
"BuildRequires: /usr/bin/something" in a spec?
--
WBR
Kyrill
Yamaban
2014-08-21 18:54:18 UTC
Permalink
Post by Kyrill Detinov
Thu, 21 Aug 2014 22:39:33 +0400
Hello.
I need a clarification: does rpm allow
"BuildRequires: /usr/bin/something" in a spec?
Depends on rpm-version, compiled feature-set, and checking tools.

Even if, there are some gotcha's:

Only if the "/usr/bin/something" is used in a line with:
"Provides: /usr/bin/something" in an other package.
Listing such a file in "%files" is not enough.

Even then it's error-prone, as it does not allow versioning.
Avoid if possible.

AFAIK, the rule-set of (open)SUSE says "NO" to such thing,
but I could be wrong.

- Yamaban.
--
To unsubscribe, e-mail: opensuse-packaging+***@opensuse.org
To contact the owner, e-mail: opensuse-packaging+***@opensuse.org
Dimstar / Dominique Leuenberger
2014-08-21 19:00:30 UTC
Permalink
Post by Kyrill Detinov
Thu, 21 Aug 2014 22:39:33 +0400
Hello.
I need a clarification: does rpm allow
"BuildRequires: /usr/bin/something" in a spec?
Kyrill,

RPM does - but note that our Metadata does not provide most filebased
provides - so there is a good chance that your (Build)Requires is not
satisfied inside OBS.

Cheers,
DimStar
--
Dimstar / Dominique Leuenberger <***@opensuse.org>
--
To unsubscribe, e-mail: opensuse-packaging+***@opensuse.org
To contact the owner, e-mail: opensuse-packaging+***@opensuse.org
Kyrill Detinov
2014-08-21 19:57:06 UTC
Permalink
On Thu, 21 Aug 2014 21:00:30 +0200 Dimstar / Dominique Leuenberger
Post by Dimstar / Dominique Leuenberger
RPM does - but note that our Metadata does not provide most filebased
provides - so there is a good chance that your (Build)Requires is not
satisfied inside OBS.
And I see, that is not satisfied in my case. :(

https://build.opensuse.org/package/show/home:Lazy_Kent/rubyripper

In the Factory repo only: "nothing provides /usr/bin/ruby".
All the others repos are built succeeded.

In the same time I get (running Factory):
% zypper se --provides "/usr/bin/ruby"

S | ИЌя | ЗаключеМОе | ТОп
--+---------------------+-------------------------------------------------------------------+------
i | ruby | ИМтерпретОруеЌый ПбъектМП-ПрОеМтОрПваММый язык сцеМарОев | пакет
| rubygem-ruby_parser | ruby_parser (RP) is a ruby parser written in pure ruby (utilizing | пакет
| rubygem-rubyforge | A script which automates a limited set of rubyforge operations | пакет
| rubygem-text-hyphen | Text::Hyphen is a Ruby library to hyphenate words in various | пакет

Don't ask, why it is required. I don't remember.
I've found this in the changelog:

-------------------------------------------------------------------
Wed Oct 23 09:16:52 UTC 2013 - ***@opensuse.org

- BuildRequires /usr/bin/ruby.
--
WBR
Kyrill
Dimstar / Dominique Leuenberger
2014-08-21 20:05:16 UTC
Permalink
Post by Kyrill Detinov
On Thu, 21 Aug 2014 21:00:30 +0200 Dimstar / Dominique Leuenberger
Post by Dimstar / Dominique Leuenberger
RPM does - but note that our Metadata does not provide most filebased
provides - so there is a good chance that your (Build)Requires is not
satisfied inside OBS.
And I see, that is not satisfied in my case. :(
https://build.opensuse.org/package/show/home:Lazy_Kent/rubyripper
In the Factory repo only: "nothing provides /usr/bin/ruby".
All the others repos are built succeeded.
% zypper se --provides "/usr/bin/ruby"
S | Имя | Заключение | Тип
--+---------------------+-------------------------------------------------------------------+------
i | ruby | Интерпретируемый объектно-ориентированный язык сценариев | пакет
| rubygem-ruby_parser | ruby_parser (RP) is a ruby parser written in pure ruby (utilizing | пакет
| rubygem-rubyforge | A script which automates a limited set of rubyforge operations | пакет
| rubygem-text-hyphen | Text::Hyphen is a Ruby library to hyphenate words in various | пакет
Don't ask, why it is required. I don't remember.
-------------------------------------------------------------------
- BuildRequires /usr/bin/ruby.
A better changelog entry explaining things would have helped :) but I
keep on preaching that - nobody believes me.
--
Dimstar / Dominique Leuenberger <***@opensuse.org>
--
To unsubscribe, e-mail: opensuse-packaging+***@opensuse.org
To contact the owner, e-mail: opensuse-packaging+***@opensuse.org
Kyrill Detinov
2014-08-21 20:41:44 UTC
Permalink
On Thu, 21 Aug 2014 22:05:16 +0200 Dimstar / Dominique Leuenberger
Post by Dimstar / Dominique Leuenberger
A better changelog entry explaining things would have helped :) but I
keep on preaching that - nobody believes me.
Not me! I believe and follow your suggestions.
In that case I thought it is clear, for me at least.
I guess, I need ruby executable, not versioned.

BTW, have you ever seen ALT Linux changelogs? For example:
http://packages.altlinux.org/en/Sisyphus/srpms/akonadi/changelog
--
WBR
Kyrill
Loading...