FAQ Search Today's Posts Mark Forums Read

» Linux Archive
Home
New Posts
Search
FAQ


Go Back   Linux Archive > Redhat > Fedora Packaging

 
 
LinkBack Thread Tools
 
Old 06-22-2008, 08:44 PM
Rex Dieter
 
Default Requires(hint):

Jason L Tibbitts III wrote:

I've seen packages using Requires(hint): and testing shows that
currently this is handled no differently from a regular Requires:.

I happen to think Requires(hint): is a horrible syntax, because
cognation with Requires(pre, post, preun, etc.): implies that some
%hint scriptlet will be run at some point, but that's neither here nor
there and I suspect that any upstream brain-damage is already a fait
accompli.

However, there's still the question of what to do with Requires(hint):
in Fedora packages. Either we get rid of it or we need to document
what it does and what it might do in the future.

Strawman proposal: ban use of Requires(hint) in Fedora packages.


-1 to ban, this is (potential) rpm functionality at issue here, which
should *first* be discussed with rpm maintainers before any action or
policy be considered.


-- Rex

--
Fedora-packaging mailing list
Fedora-packaging@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-packaging
 
Old 06-23-2008, 09:36 AM
Panu Matilainen
 
Default Requires(hint):

On Sun, 22 Jun 2008, Tom spot Callaway wrote:


On Sun, 2008-06-22 at 02:10 -0400, Tom Lane wrote:

Hm ... so this committee takes it as a given that the maintainer of
RPM can arbitrarily reject any committee decision.


Tom,

I think you're misunderstanding our "lack of backbone" here. In the
recent past, we've generated patches for RPM to fix "obvious bugs",
submitted them upstream, and had them rejected without alternative
suggestions (aside from flame wars). In many cases, our "obvious bugs"
are described by upstream as features.


In the recent past, hmm? Care to refresh my memory, I don't remember
rejecting patches for "obvious bugs"?



The Fedora RPM maintainers (who are actually RPM's upstream as well)
don't want to carry these patches either, taking an "upstream or
nothing" approach to this.


Well, that's one of the big principles in Fedora, isn't it?


In addition, when we've suggested fixes to RPM, we've gotten the
feedback of "is it in the Packaging Guidelines"?


There seems to be a serious disconnect here, something being in Fedora
packaging guidelines sure as hell isn't a prerequisite for getting patches
accepted to rpm.org upstream. And I certainly don't recall asking for such
a thing, if some response I've given has given you that impression then
please point it out and lets straighten up the apparent miscommunication.



Accordingly, we've adopted the strategy that:

1. It is not in the Packaging Committee's mandate (or ability) to be
able to force patches into RPM.
2. The next best thing is to make guidelines which describe how RPM
should/must be used in Fedora.
3. When applicable, the Packaging Committee will make suggestions based
around our guidelines to RPM upstream in the hopes that our guidelines
will be made obsolete.

For example, it is only now that RPM is working on setting a default
BuildRoot, something we set guidelines for over a year ago.


Yes, catching up years of abandon doesn't happen overnight...

As for Requires(randomcrap), sure it's a bug that RPM doesn't catch the
error and bail out, and "hint" is just random crap as far as RPM is
concerned.


Now, of course the same could be said about putting versions into
changelog "author field" - it's just an ancient bug in RPM it doesn't
catch "trailing garbage after email address", it just happens to be so
widely abused (and even encouraged in various packaging standards) that
just making the spec parser treat it as an error is not really an option.


...if you catch my drift...

I'm all for making the spec syntax stricter and saner, but things are not
always so black and white. Knowingly putting invalid things into specs
just because rpm doesn't currently happen to trip on them certainly does
not help the cause, see above wrt the version-in-changelog thing.


- Panu -

--
Fedora-packaging mailing list
Fedora-packaging@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-packaging
 
Old 06-23-2008, 05:29 PM
Remi Collet
 
Default Requires(hint):

Jason L Tibbitts III a écrit :

I've seen packages using Requires(hint): and testing shows that
currently this is handled no differently from a regular Requires:.


Using this have one usefull purpose : documentation.

Ok, we can also use

# Optional dependency
Requires: foo

My 0.02 €

Regards

--
Fedora-packaging mailing list
Fedora-packaging@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-packaging
 
Old 06-25-2008, 09:02 AM
Panu Matilainen
 
Default Requires(hint):

On Mon, 23 Jun 2008, Remi Collet wrote:


Jason L Tibbitts III a écrit :

I've seen packages using Requires(hint): and testing shows that
currently this is handled no differently from a regular Requires:.


Using this have one usefull purpose : documentation.


Abusing bugs in software for documentation purposes? Lets not...


Ok, we can also use

# Optional dependency
Requires: foo


Yes, that's what comments are for.

- Panu -

--
Fedora-packaging mailing list
Fedora-packaging@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-packaging
 
Old 06-25-2008, 12:50 PM
"Christopher Stone"
 
Default Requires(hint):

On Wed, Jun 25, 2008 at 1:02 AM, Panu Matilainen
<pmatilai@laiskiainen.org> wrote:
> On Mon, 23 Jun 2008, Remi Collet wrote:
>
>> Jason L Tibbitts III a écrit :
>>>
>>> I've seen packages using Requires(hint): and testing shows that
>>> currently this is handled no differently from a regular Requires:.
>>
>> Using this have one usefull purpose : documentation.
>
> Abusing bugs in software for documentation purposes? Lets not...

It works well for me, so I will continue to "abuse" the "bug" for
documentation purposes.

My personal opinion is that this thread is making a big deal out of nothing.

--
Fedora-packaging mailing list
Fedora-packaging@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-packaging
 
Old 06-25-2008, 01:02 PM
Ralf Corsepius
 
Default Requires(hint):

On Wed, 2008-06-25 at 04:50 -0700, Christopher Stone wrote:
> On Wed, Jun 25, 2008 at 1:02 AM, Panu Matilainen
> <pmatilai@laiskiainen.org> wrote:
> > On Mon, 23 Jun 2008, Remi Collet wrote:
> >
> >> Jason L Tibbitts III a écrit :
> >>>
> >>> I've seen packages using Requires(hint): and testing shows that
> >>> currently this is handled no differently from a regular Requires:.
> >>
> >> Using this have one usefull purpose : documentation.
> >
> > Abusing bugs in software for documentation purposes? Lets not...
>
> It works well for me, so I will continue to "abuse" the "bug" for
> documentation purposes.
>
> My personal opinion is that this thread is making a big deal out of nothing.

Provided what you say:
+1 to Tibbs' initial proposal on banning Requires(hint)

Rationale: It's undocumented, error-prone pollution to spec files, which
is likely to show harmful effects once rpm/yum/apt etc. should start
support it.

Ralf




--
Fedora-packaging mailing list
Fedora-packaging@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-packaging
 
Old 06-25-2008, 03:13 PM
"Christopher Stone"
 
Default Requires(hint):

On Wed, Jun 25, 2008 at 5:02 AM, Ralf Corsepius <rc040203@freenet.de> wrote:
> On Wed, 2008-06-25 at 04:50 -0700, Christopher Stone wrote:
>> On Wed, Jun 25, 2008 at 1:02 AM, Panu Matilainen
>> <pmatilai@laiskiainen.org> wrote:
>> > On Mon, 23 Jun 2008, Remi Collet wrote:
>> >
>> >> Jason L Tibbitts III a écrit :
>> >>>
>> >>> I've seen packages using Requires(hint): and testing shows that
>> >>> currently this is handled no differently from a regular Requires:.
>> >>
>> >> Using this have one usefull purpose : documentation.
>> >
>> > Abusing bugs in software for documentation purposes? Lets not...
>>
>> It works well for me, so I will continue to "abuse" the "bug" for
>> documentation purposes.
>>
>> My personal opinion is that this thread is making a big deal out of nothing.
>
> Provided what you say:
> +1 to Tibbs' initial proposal on banning Requires(hint)
>
> Rationale: It's undocumented, error-prone pollution to spec files, which
> is likely to show harmful effects once rpm/yum/apt etc. should start
> support it.

If rpm/yum/apt ever started to support it, then that would be the
greatest thing ever. Too bad that wont ever happen.

--
Fedora-packaging mailing list
Fedora-packaging@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-packaging
 
Old 06-25-2008, 03:56 PM
Ralf Corsepius
 
Default Requires(hint):

On Wed, 2008-06-25 at 07:13 -0700, Christopher Stone wrote:
> On Wed, Jun 25, 2008 at 5:02 AM, Ralf Corsepius <rc040203@freenet.de> wrote:


> > Rationale: It's undocumented, error-prone pollution to spec files, which
> > is likely to show harmful effects once rpm/yum/apt etc. should start
> > support it.
>
> If rpm/yum/apt ever started to support it, then that would be the
> greatest thing ever.
Well, it would be a random accident if your constructs would match with
rpm's "then syntax".

E.g. openSUSE's rpm has such constructs, but they are using a different
*spec-syntax. They have "Recommends:, Supplements:, Enhances:,
Suggests:", not Requires(hint).

> Too bad that wont ever happen.
You can never be sure. openSUSE claims to be supporting them.

Whether these are useful is a different matter.

Ralf


--
Fedora-packaging mailing list
Fedora-packaging@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-packaging
 
Old 06-25-2008, 06:13 PM
Enrico Scholz
 
Default Requires(hint):

Ralf Corsepius <rc040203@freenet.de> writes:

> E.g. openSUSE's rpm has such constructs, but they are using a
> different *spec-syntax. They have "Recommends:, Supplements:,
> Enhances:, Suggests:", not Requires(hint).

'Suggests:' + 'Recommends:' are synonyms for 'Requires(hint)' in upstream
rpm (which creates corresponding RPMTAG_SUGGESTS* tags for them).



Enrico

--
Fedora-packaging mailing list
Fedora-packaging@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-packaging
 
Old 06-26-2008, 07:41 AM
Panu Matilainen
 
Default Requires(hint):

On Wed, 25 Jun 2008, Enrico Scholz wrote:


Ralf Corsepius <rc040203@freenet.de> writes:


E.g. openSUSE's rpm has such constructs, but they are using a
different *spec-syntax. They have "Recommends:, Supplements:,
Enhances:, Suggests:", not Requires(hint).


'Suggests:' + 'Recommends:' are synonyms for 'Requires(hint)' in upstream
rpm (which creates corresponding RPMTAG_SUGGESTS* tags for them).


Requires(hint) is only synonym for Requires(randomjunk) for rpm.org which
is the upstream rpm for Fedora.


- Panu -

--
Fedora-packaging mailing list
Fedora-packaging@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-packaging
 

Thread Tools




All times are GMT. The time now is 08:19 AM.

VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org