* [gentoo-dev] epatch_user usage
@ 2012-04-24 3:45 Doug Goldstein
2012-04-24 3:57 ` Arun Raghavan
` (3 more replies)
0 siblings, 4 replies; 16+ messages in thread
From: Doug Goldstein @ 2012-04-24 3:45 UTC (permalink / raw
To: gentoo-dev
So I've just had one reservation when using epatch_user for allowing
users to apply patches. And that's figuring out when to run
eautoreconf. I don't necessarily want to run it unconditionally but
sometimes users have patches which touch autoconf files but my
existing patch set doesn't so I'm not calling eautoreconf. Does anyone
have a suggested way to handle this?
Thanks.
--
Doug Goldstein
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [gentoo-dev] epatch_user usage
2012-04-24 3:45 [gentoo-dev] epatch_user usage Doug Goldstein
@ 2012-04-24 3:57 ` Arun Raghavan
2012-04-24 4:05 ` Michał Górny
` (2 subsequent siblings)
3 siblings, 0 replies; 16+ messages in thread
From: Arun Raghavan @ 2012-04-24 3:57 UTC (permalink / raw
To: gentoo-dev
On 24 April 2012 09:15, Doug Goldstein <cardoe@gentoo.org> wrote:
> So I've just had one reservation when using epatch_user for allowing
> users to apply patches. And that's figuring out when to run
> eautoreconf. I don't necessarily want to run it unconditionally but
> sometimes users have patches which touch autoconf files but my
> existing patch set doesn't so I'm not calling eautoreconf. Does anyone
> have a suggested way to handle this?
grub2 checks for a DO_AUTORECONF env. var. to decide whether to run
eautoreconf. This does cause some QA warnings, though.
--
Arun Raghavan
http://arunraghavan.net/
(Ford_Prefect | Gentoo) & (arunsr | GNOME)
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [gentoo-dev] epatch_user usage
2012-04-24 3:45 [gentoo-dev] epatch_user usage Doug Goldstein
2012-04-24 3:57 ` Arun Raghavan
@ 2012-04-24 4:05 ` Michał Górny
2012-04-24 4:14 ` Alexandre Rostovtsev
2012-04-24 4:10 ` Mike Frysinger
2012-04-26 4:45 ` [gentoo-dev] " Ryan Hill
3 siblings, 1 reply; 16+ messages in thread
From: Michał Górny @ 2012-04-24 4:05 UTC (permalink / raw
To: gentoo-dev; +Cc: cardoe
[-- Attachment #1: Type: text/plain, Size: 532 bytes --]
On Mon, 23 Apr 2012 22:45:36 -0500
Doug Goldstein <cardoe@gentoo.org> wrote:
> So I've just had one reservation when using epatch_user for allowing
> users to apply patches. And that's figuring out when to run
> eautoreconf. I don't necessarily want to run it unconditionally but
> sometimes users have patches which touch autoconf files but my
> existing patch set doesn't so I'm not calling eautoreconf. Does anyone
> have a suggested way to handle this?
inherit autotools-utils
--
Best regards,
Michał Górny
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 316 bytes --]
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [gentoo-dev] epatch_user usage
2012-04-24 3:45 [gentoo-dev] epatch_user usage Doug Goldstein
2012-04-24 3:57 ` Arun Raghavan
2012-04-24 4:05 ` Michał Górny
@ 2012-04-24 4:10 ` Mike Frysinger
2012-04-24 4:15 ` Michał Górny
2012-04-24 4:33 ` Doug Goldstein
2012-04-26 4:45 ` [gentoo-dev] " Ryan Hill
3 siblings, 2 replies; 16+ messages in thread
From: Mike Frysinger @ 2012-04-24 4:10 UTC (permalink / raw
To: gentoo-dev; +Cc: Doug Goldstein
[-- Attachment #1: Type: Text/Plain, Size: 546 bytes --]
On Monday 23 April 2012 23:45:36 Doug Goldstein wrote:
> So I've just had one reservation when using epatch_user for allowing
> users to apply patches. And that's figuring out when to run
> eautoreconf. I don't necessarily want to run it unconditionally but
> sometimes users have patches which touch autoconf files but my
> existing patch set doesn't so I'm not calling eautoreconf. Does anyone
> have a suggested way to handle this?
just always call it when the user applies patches. i don't see a big deal.
epatch_user && eautoreconf
-mike
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [gentoo-dev] epatch_user usage
2012-04-24 4:05 ` Michał Górny
@ 2012-04-24 4:14 ` Alexandre Rostovtsev
2012-04-24 4:18 ` Michał Górny
0 siblings, 1 reply; 16+ messages in thread
From: Alexandre Rostovtsev @ 2012-04-24 4:14 UTC (permalink / raw
To: gentoo-dev
On Tue, 2012-04-24 at 06:05 +0200, Michał Górny wrote:
> On Mon, 23 Apr 2012 22:45:36 -0500
> Doug Goldstein <cardoe@gentoo.org> wrote:
>
> > So I've just had one reservation when using epatch_user for allowing
> > users to apply patches. And that's figuring out when to run
> > eautoreconf. I don't necessarily want to run it unconditionally but
> > sometimes users have patches which touch autoconf files but my
> > existing patch set doesn't so I'm not calling eautoreconf. Does anyone
> > have a suggested way to handle this?
>
> inherit autotools-utils
That doesn't help the numerous packages that don't ship some of the
autoconf macros they use in their source tarball, and therefore require
additional build-time dependencies (gnome-common, gtk-doc-am, and so
forth) to provide the macros needed for eautoreconf.
-Alexandre.
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [gentoo-dev] epatch_user usage
2012-04-24 4:10 ` Mike Frysinger
@ 2012-04-24 4:15 ` Michał Górny
2012-04-24 4:25 ` Mike Frysinger
2012-04-24 4:33 ` Doug Goldstein
1 sibling, 1 reply; 16+ messages in thread
From: Michał Górny @ 2012-04-24 4:15 UTC (permalink / raw
To: gentoo-dev; +Cc: vapier, Doug Goldstein
[-- Attachment #1: Type: text/plain, Size: 730 bytes --]
On Tue, 24 Apr 2012 00:10:30 -0400
Mike Frysinger <vapier@gentoo.org> wrote:
> On Monday 23 April 2012 23:45:36 Doug Goldstein wrote:
> > So I've just had one reservation when using epatch_user for allowing
> > users to apply patches. And that's figuring out when to run
> > eautoreconf. I don't necessarily want to run it unconditionally but
> > sometimes users have patches which touch autoconf files but my
> > existing patch set doesn't so I'm not calling eautoreconf. Does
> > anyone have a suggested way to handle this?
>
> just always call it when the user applies patches. i don't see a big
> deal. epatch_user && eautoreconf
> -mike
No configure.{ac,in} present!
--
Best regards,
Michał Górny
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 316 bytes --]
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [gentoo-dev] epatch_user usage
2012-04-24 4:14 ` Alexandre Rostovtsev
@ 2012-04-24 4:18 ` Michał Górny
2012-04-24 4:27 ` Mike Frysinger
0 siblings, 1 reply; 16+ messages in thread
From: Michał Górny @ 2012-04-24 4:18 UTC (permalink / raw
To: gentoo-dev; +Cc: tetromino
[-- Attachment #1: Type: text/plain, Size: 1234 bytes --]
On Tue, 24 Apr 2012 00:14:15 -0400
Alexandre Rostovtsev <tetromino@gentoo.org> wrote:
> On Tue, 2012-04-24 at 06:05 +0200, Michał Górny wrote:
> > On Mon, 23 Apr 2012 22:45:36 -0500
> > Doug Goldstein <cardoe@gentoo.org> wrote:
> >
> > > So I've just had one reservation when using epatch_user for
> > > allowing users to apply patches. And that's figuring out when to
> > > run eautoreconf. I don't necessarily want to run it
> > > unconditionally but sometimes users have patches which touch
> > > autoconf files but my existing patch set doesn't so I'm not
> > > calling eautoreconf. Does anyone have a suggested way to handle
> > > this?
> >
> > inherit autotools-utils
>
> That doesn't help the numerous packages that don't ship some of the
> autoconf macros they use in their source tarball, and therefore
> require additional build-time dependencies (gnome-common, gtk-doc-am,
> and so forth) to provide the macros needed for eautoreconf.
We can't help them unless you want the whole tree (including those
packages) to forcedly depend on them.
It's simply better just to assume: if user wants user patches, he/she
needs to have necessary deps installed.
--
Best regards,
Michał Górny
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 316 bytes --]
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [gentoo-dev] epatch_user usage
2012-04-24 4:15 ` Michał Górny
@ 2012-04-24 4:25 ` Mike Frysinger
2012-04-24 8:35 ` Michał Górny
0 siblings, 1 reply; 16+ messages in thread
From: Mike Frysinger @ 2012-04-24 4:25 UTC (permalink / raw
To: Michał Górny; +Cc: gentoo-dev, Doug Goldstein
[-- Attachment #1: Type: Text/Plain, Size: 857 bytes --]
On Tuesday 24 April 2012 00:15:45 Michał Górny wrote:
> On Tue, 24 Apr 2012 00:10:30 -0400 Mike Frysinger wrote:
> > On Monday 23 April 2012 23:45:36 Doug Goldstein wrote:
> > > So I've just had one reservation when using epatch_user for allowing
> > > users to apply patches. And that's figuring out when to run
> > > eautoreconf. I don't necessarily want to run it unconditionally but
> > > sometimes users have patches which touch autoconf files but my
> > > existing patch set doesn't so I'm not calling eautoreconf. Does
> > > anyone have a suggested way to handle this?
> >
> > just always call it when the user applies patches. i don't see a big
> > deal. epatch_user && eautoreconf
>
> No configure.{ac,in} present!
if the package doesn't have configure.{ac,in} files, then why would he be
talking about eautoreconf ?
-mike
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [gentoo-dev] epatch_user usage
2012-04-24 4:18 ` Michał Górny
@ 2012-04-24 4:27 ` Mike Frysinger
0 siblings, 0 replies; 16+ messages in thread
From: Mike Frysinger @ 2012-04-24 4:27 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: Text/Plain, Size: 451 bytes --]
On Tuesday 24 April 2012 00:18:59 Michał Górny wrote:
> It's simply better just to assume: if user wants user patches, he/she
> needs to have necessary deps installed.
if the package doesn't ever run autotools itself, i think this assumption is
fine. set AUTOTOOLS_AUTO_DEPEND=no before inherting things and always run
autotools if the user applies patches. otherwise we penalize a lot of people
who don't apply custom patches.
-mike
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [gentoo-dev] epatch_user usage
2012-04-24 4:10 ` Mike Frysinger
2012-04-24 4:15 ` Michał Górny
@ 2012-04-24 4:33 ` Doug Goldstein
1 sibling, 0 replies; 16+ messages in thread
From: Doug Goldstein @ 2012-04-24 4:33 UTC (permalink / raw
To: Mike Frysinger; +Cc: gentoo-dev
On Mon, Apr 23, 2012 at 11:10 PM, Mike Frysinger <vapier@gentoo.org> wrote:
> On Monday 23 April 2012 23:45:36 Doug Goldstein wrote:
>> So I've just had one reservation when using epatch_user for allowing
>> users to apply patches. And that's figuring out when to run
>> eautoreconf. I don't necessarily want to run it unconditionally but
>> sometimes users have patches which touch autoconf files but my
>> existing patch set doesn't so I'm not calling eautoreconf. Does anyone
>> have a suggested way to handle this?
>
> just always call it when the user applies patches. i don't see a big deal.
> epatch_user && eautoreconf
> -mike
That works. I was wondering if you guys did anything more crafty but
this is fine.
Thanks all for the input.
--
Doug Goldstein
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [gentoo-dev] epatch_user usage
2012-04-24 4:25 ` Mike Frysinger
@ 2012-04-24 8:35 ` Michał Górny
0 siblings, 0 replies; 16+ messages in thread
From: Michał Górny @ 2012-04-24 8:35 UTC (permalink / raw
To: gentoo-dev; +Cc: vapier, Doug Goldstein
[-- Attachment #1: Type: text/plain, Size: 1099 bytes --]
On Tue, 24 Apr 2012 00:25:56 -0400
Mike Frysinger <vapier@gentoo.org> wrote:
> On Tuesday 24 April 2012 00:15:45 Michał Górny wrote:
> > On Tue, 24 Apr 2012 00:10:30 -0400 Mike Frysinger wrote:
> > > On Monday 23 April 2012 23:45:36 Doug Goldstein wrote:
> > > > So I've just had one reservation when using epatch_user for
> > > > allowing users to apply patches. And that's figuring out when
> > > > to run eautoreconf. I don't necessarily want to run it
> > > > unconditionally but sometimes users have patches which touch
> > > > autoconf files but my existing patch set doesn't so I'm not
> > > > calling eautoreconf. Does anyone have a suggested way to handle
> > > > this?
> > >
> > > just always call it when the user applies patches. i don't see a
> > > big deal. epatch_user && eautoreconf
> >
> > No configure.{ac,in} present!
>
> if the package doesn't have configure.{ac,in} files, then why would
> he be talking about eautoreconf ?
Ah, so we're talking per-package now. Sorry, thought it would be forced
everywhere.
--
Best regards,
Michał Górny
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 316 bytes --]
^ permalink raw reply [flat|nested] 16+ messages in thread
* [gentoo-dev] Re: epatch_user usage
2012-04-24 3:45 [gentoo-dev] epatch_user usage Doug Goldstein
` (2 preceding siblings ...)
2012-04-24 4:10 ` Mike Frysinger
@ 2012-04-26 4:45 ` Ryan Hill
2012-04-26 5:06 ` Zac Medico
3 siblings, 1 reply; 16+ messages in thread
From: Ryan Hill @ 2012-04-26 4:45 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 861 bytes --]
On Mon, 23 Apr 2012 22:45:36 -0500
Doug Goldstein <cardoe@gentoo.org> wrote:
> So I've just had one reservation when using epatch_user for allowing
> users to apply patches. And that's figuring out when to run
> eautoreconf. I don't necessarily want to run it unconditionally but
> sometimes users have patches which touch autoconf files but my
> existing patch set doesn't so I'm not calling eautoreconf. Does anyone
> have a suggested way to handle this?
It's kind of hacky, but what about having the user `touch eautoreconf` in the
patch directory? Or a file named "post_patch" containing a list of commands
to run.
Could we detect user patches touching autoconf files somehow, maybe by
hashing them beforehand or grepping patch headers, or would this be too error
prone?
--
fonts, gcc-porting
toolchain, wxwidgets
@ gentoo.org
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [gentoo-dev] Re: epatch_user usage
2012-04-26 4:45 ` [gentoo-dev] " Ryan Hill
@ 2012-04-26 5:06 ` Zac Medico
2012-05-04 4:50 ` Jeroen Roovers
0 siblings, 1 reply; 16+ messages in thread
From: Zac Medico @ 2012-04-26 5:06 UTC (permalink / raw
To: gentoo-dev
On 04/25/2012 09:45 PM, Ryan Hill wrote:
> Could we detect user patches touching autoconf files somehow, maybe by
> hashing them beforehand
There's an implementation of that inside autotools-utils_src_prepare.
--
Thanks,
Zac
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [gentoo-dev] Re: epatch_user usage
2012-04-26 5:06 ` Zac Medico
@ 2012-05-04 4:50 ` Jeroen Roovers
2012-05-04 20:23 ` Michał Górny
0 siblings, 1 reply; 16+ messages in thread
From: Jeroen Roovers @ 2012-05-04 4:50 UTC (permalink / raw
To: gentoo-dev
On Wed, 25 Apr 2012 22:06:08 -0700
Zac Medico <zmedico@gentoo.org> wrote:
> On 04/25/2012 09:45 PM, Ryan Hill wrote:
> > Could we detect user patches touching autoconf files somehow, maybe
> > by hashing them beforehand
>
> There's an implementation of that inside autotools-utils_src_prepare.
There's all kinds of reasons to not use autotools-utils.eclass.
I wouldn't want to see another python.eclass bullying around the tree.
Sincerely,
jer
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [gentoo-dev] Re: epatch_user usage
2012-05-04 4:50 ` Jeroen Roovers
@ 2012-05-04 20:23 ` Michał Górny
2012-05-05 6:01 ` Ryan Hill
0 siblings, 1 reply; 16+ messages in thread
From: Michał Górny @ 2012-05-04 20:23 UTC (permalink / raw
To: gentoo-dev; +Cc: jer
[-- Attachment #1: Type: text/plain, Size: 676 bytes --]
On Fri, 4 May 2012 06:50:12 +0200
Jeroen Roovers <jer@gentoo.org> wrote:
> On Wed, 25 Apr 2012 22:06:08 -0700
> Zac Medico <zmedico@gentoo.org> wrote:
>
> > On 04/25/2012 09:45 PM, Ryan Hill wrote:
> > > Could we detect user patches touching autoconf files somehow,
> > > maybe by hashing them beforehand
> >
> > There's an implementation of that inside
> > autotools-utils_src_prepare.
>
> There's all kinds of reasons to not use autotools-utils.eclass.
> I wouldn't want to see another python.eclass bullying around the tree.
504 autotools-utils.eclass
3186 python.eclass
Do you have any real arguments?
--
Best regards,
Michał Górny
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 316 bytes --]
^ permalink raw reply [flat|nested] 16+ messages in thread
* [gentoo-dev] Re: epatch_user usage
2012-05-04 20:23 ` Michał Górny
@ 2012-05-05 6:01 ` Ryan Hill
0 siblings, 0 replies; 16+ messages in thread
From: Ryan Hill @ 2012-05-05 6:01 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 1245 bytes --]
On Fri, 4 May 2012 22:23:31 +0200
Michał Górny <mgorny@gentoo.org> wrote:
> > There's all kinds of reasons to not use autotools-utils.eclass.
> > I wouldn't want to see another python.eclass bullying around the tree.
>
> 504 autotools-utils.eclass
> 3186 python.eclass
>
> Do you have any real arguments?
I think his point was that like the python eclass, autotools-utils requires
you to give up a lot of control over your ebuild to it. It started out as a
simple way to standardize common autotools-related tasks. Then it began
growing and adding a bunch of stuff that, while I'm sure was useful to some,
I didn't need or had to handle differently. Then these features started
becoming interdependent and I started getting bug reports about how my
packages were misusing the eclass because I didn't want to cede full control
over to its phase functions.
Don't get me wrong, I understand the reasons why it has to work the way it
does and I'm sure most people are fine with it. But I'm wary about giving
that much power over to an eclass I can't control. I hate exported phase
functions in general though, so read into that what you will.
--
fonts, gcc-porting
toolchain, wxwidgets
@ gentoo.org
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 16+ messages in thread
end of thread, other threads:[~2012-05-05 5:53 UTC | newest]
Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-24 3:45 [gentoo-dev] epatch_user usage Doug Goldstein
2012-04-24 3:57 ` Arun Raghavan
2012-04-24 4:05 ` Michał Górny
2012-04-24 4:14 ` Alexandre Rostovtsev
2012-04-24 4:18 ` Michał Górny
2012-04-24 4:27 ` Mike Frysinger
2012-04-24 4:10 ` Mike Frysinger
2012-04-24 4:15 ` Michał Górny
2012-04-24 4:25 ` Mike Frysinger
2012-04-24 8:35 ` Michał Górny
2012-04-24 4:33 ` Doug Goldstein
2012-04-26 4:45 ` [gentoo-dev] " Ryan Hill
2012-04-26 5:06 ` Zac Medico
2012-05-04 4:50 ` Jeroen Roovers
2012-05-04 20:23 ` Michał Górny
2012-05-05 6:01 ` Ryan Hill
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox