[opensuse-packaging] BuildRequires: /usr/bin/something allowed?

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

On Thu, 21 Aug 2014 20:45, Kyrill Detinov <lazy.kent@...> wrote:
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+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org

On Thu, 2014-08-21 at 22:45 +0400, Kyrill Detinov wrote:
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 <dimstar@opensuse.org> -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org

On Thu, 21 Aug 2014 21:00:30 +0200 Dimstar / Dominique Leuenberger wrote:
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 - lazy.kent@opensuse.org - BuildRequires /usr/bin/ruby. -- WBR Kyrill

On Thu, 2014-08-21 at 23:57 +0400, Kyrill Detinov wrote:
A better changelog entry explaining things would have helped :) but I keep on preaching that - nobody believes me. -- Dimstar / Dominique Leuenberger <dimstar@opensuse.org> -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org

On Thu, 21 Aug 2014 22:05:16 +0200 Dimstar / Dominique Leuenberger wrote:
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

On Thu, 21 Aug 2014 20:45, Kyrill Detinov <lazy.kent@...> wrote:
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+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org

On Thu, 2014-08-21 at 22:45 +0400, Kyrill Detinov wrote:
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 <dimstar@opensuse.org> -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org

On Thu, 21 Aug 2014 21:00:30 +0200 Dimstar / Dominique Leuenberger wrote:
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 - lazy.kent@opensuse.org - BuildRequires /usr/bin/ruby. -- WBR Kyrill

On Thu, 2014-08-21 at 23:57 +0400, Kyrill Detinov wrote:
A better changelog entry explaining things would have helped :) but I keep on preaching that - nobody believes me. -- Dimstar / Dominique Leuenberger <dimstar@opensuse.org> -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org

On Thu, 21 Aug 2014 22:05:16 +0200 Dimstar / Dominique Leuenberger wrote:
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
participants (3)
-
Dimstar / Dominique Leuenberger
-
Kyrill Detinov
-
Yamaban