public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in net-p2p/deluge: ChangeLog deluge-0.5.6.2.ebuild deluge-0.5.6.1.ebuild
       [not found] <E1InFeX-0000UI-Jz@stork.gentoo.org>
@ 2007-10-31 17:58 ` Donnie Berkholz
  2007-10-31 18:25   ` Marijn Schouten (hkBst)
  2007-11-01  6:22   ` Mike Frysinger
  0 siblings, 2 replies; 6+ messages in thread
From: Donnie Berkholz @ 2007-10-31 17:58 UTC (permalink / raw
  To: gentoo-dev, armin76

On 15:38 Wed 31 Oct     , Raul Porcel (armin76) wrote:
> 1.1                  net-p2p/deluge/deluge-0.5.6.2.ebuild
> 
> file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/deluge/deluge-0.5.6.2.ebuild?rev=1.1&view=markup
> plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/deluge/deluge-0.5.6.2.ebuild?rev=1.1&content-type=text/plain

> pkg_setup() {
> 	if has_version "<dev-libs/boost-1.34" && \
> 		! built_with_use "dev-libs/boost" threads; then
> 		eerror "dev-libs/boost has to be built with threads USE-flag."
> 		die "Missing threads USE-flag for dev-libs/boost"
> 	fi
> }
> 
> src_compile() {
> 	filter-ldflags -Wl,--as-needed
> 
> 	distutils_src_compile
> }

If you moved the filter-ldflags() call up to pkg_setup(), you could drop 
src_compile() altogether to clean up the ebuild a little.

Thanks,
Donnie
-- 
gentoo-dev@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in net-p2p/deluge: ChangeLog deluge-0.5.6.2.ebuild deluge-0.5.6.1.ebuild
  2007-10-31 17:58 ` [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in net-p2p/deluge: ChangeLog deluge-0.5.6.2.ebuild deluge-0.5.6.1.ebuild Donnie Berkholz
@ 2007-10-31 18:25   ` Marijn Schouten (hkBst)
  2007-10-31 18:38     ` Rémi Cardona
  2007-10-31 19:13     ` Donnie Berkholz
  2007-11-01  6:22   ` Mike Frysinger
  1 sibling, 2 replies; 6+ messages in thread
From: Marijn Schouten (hkBst) @ 2007-10-31 18:25 UTC (permalink / raw
  To: gentoo-dev

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Donnie Berkholz wrote:
> On 15:38 Wed 31 Oct     , Raul Porcel (armin76) wrote:
>> 1.1                  net-p2p/deluge/deluge-0.5.6.2.ebuild
>>
>> file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/deluge/deluge-0.5.6.2.ebuild?rev=1.1&view=markup
>> plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/deluge/deluge-0.5.6.2.ebuild?rev=1.1&content-type=text/plain
> 
>> pkg_setup() {
>> 	if has_version "<dev-libs/boost-1.34" && \
>> 		! built_with_use "dev-libs/boost" threads; then
>> 		eerror "dev-libs/boost has to be built with threads USE-flag."
>> 		die "Missing threads USE-flag for dev-libs/boost"
>> 	fi
>> }
>>
>> src_compile() {
>> 	filter-ldflags -Wl,--as-needed
>>
>> 	distutils_src_compile
>> }
> 
> If you moved the filter-ldflags() call up to pkg_setup(), you could drop 
> src_compile() altogether to clean up the ebuild a little.

Wouldn't that make binary packages cry?

Marijn

- --
Marijn Schouten (hkBst), Gentoo Lisp project
<http://www.gentoo.org/proj/en/lisp/>, #gentoo-lisp on FreeNode
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHKMiMp/VmCx0OL2wRAuCGAJ9WdFT5k7bGxZCEJOT0hiwjWZafpgCfYh5F
ONjgCrQ0Y8kf7HI/97YU4AU=
=tPfT
-----END PGP SIGNATURE-----
-- 
gentoo-dev@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in net-p2p/deluge: ChangeLog deluge-0.5.6.2.ebuild deluge-0.5.6.1.ebuild
  2007-10-31 18:25   ` Marijn Schouten (hkBst)
@ 2007-10-31 18:38     ` Rémi Cardona
  2007-10-31 19:13     ` Donnie Berkholz
  1 sibling, 0 replies; 6+ messages in thread
From: Rémi Cardona @ 2007-10-31 18:38 UTC (permalink / raw
  To: gentoo-dev

Marijn Schouten (hkBst) wrote:
> Donnie Berkholz wrote:
>> If you moved the filter-ldflags() call up to pkg_setup(), you could drop 
>> src_compile() altogether to clean up the ebuild a little.
> 
> Wouldn't that make binary packages cry?

In theory, autotools scripts allow users to set env variables only
during the configure phase. Running 'CFLAGS="blah" make' should be
exactly the same as runing make on its own.

So I'd go as far as saying that puting the filter-ldflags() in
src_compile() would not work.

As for what python distutils scripts do exactly ...

Rémi
-- 
gentoo-dev@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in net-p2p/deluge: ChangeLog deluge-0.5.6.2.ebuild deluge-0.5.6.1.ebuild
  2007-10-31 18:25   ` Marijn Schouten (hkBst)
  2007-10-31 18:38     ` Rémi Cardona
@ 2007-10-31 19:13     ` Donnie Berkholz
  1 sibling, 0 replies; 6+ messages in thread
From: Donnie Berkholz @ 2007-10-31 19:13 UTC (permalink / raw
  To: gentoo-dev

On 19:25 Wed 31 Oct     , Marijn Schouten (hkBst) wrote:
> Donnie Berkholz wrote:
> > If you moved the filter-ldflags() call up to pkg_setup(), you could drop 
> > src_compile() altogether to clean up the ebuild a little.
> 
> Wouldn't that make binary packages cry?

Binary packages don't do any linking, so they don't pay any attention to 
LDFLAGS.

Thanks,
Donnie
-- 
gentoo-dev@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in net-p2p/deluge: ChangeLog deluge-0.5.6.2.ebuild deluge-0.5.6.1.ebuild
  2007-10-31 17:58 ` [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in net-p2p/deluge: ChangeLog deluge-0.5.6.2.ebuild deluge-0.5.6.1.ebuild Donnie Berkholz
  2007-10-31 18:25   ` Marijn Schouten (hkBst)
@ 2007-11-01  6:22   ` Mike Frysinger
  2007-11-02  6:22     ` Donnie Berkholz
  1 sibling, 1 reply; 6+ messages in thread
From: Mike Frysinger @ 2007-11-01  6:22 UTC (permalink / raw
  To: gentoo-dev; +Cc: Donnie Berkholz, armin76

[-- Attachment #1: Type: text/plain, Size: 1015 bytes --]

On Wednesday 31 October 2007, Donnie Berkholz wrote:
> On 15:38 Wed 31 Oct     , Raul Porcel (armin76) wrote:
> > 1.1                  net-p2p/deluge/deluge-0.5.6.2.ebuild
> >
> > file :
> > http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/deluge/deluge-0.5
> >.6.2.ebuild?rev=1.1&view=markup plain:
> > http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/deluge/deluge-0.5
> >.6.2.ebuild?rev=1.1&content-type=text/plain
> >
> > pkg_setup() {
> > 	if has_version "<dev-libs/boost-1.34" && \
> > 		! built_with_use "dev-libs/boost" threads; then
> > 		eerror "dev-libs/boost has to be built with threads USE-flag."
> > 		die "Missing threads USE-flag for dev-libs/boost"
> > 	fi
> > }
> >
> > src_compile() {
> > 	filter-ldflags -Wl,--as-needed
> >
> > 	distutils_src_compile
> > }
>
> If you moved the filter-ldflags() call up to pkg_setup(), you could drop
> src_compile() altogether to clean up the ebuild a little.

a better idea is to fix the problem instead of ignoring it with filter-ldflags
-mike

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 827 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in net-p2p/deluge: ChangeLog deluge-0.5.6.2.ebuild deluge-0.5.6.1.ebuild
  2007-11-01  6:22   ` Mike Frysinger
@ 2007-11-02  6:22     ` Donnie Berkholz
  0 siblings, 0 replies; 6+ messages in thread
From: Donnie Berkholz @ 2007-11-02  6:22 UTC (permalink / raw
  To: gentoo-dev; +Cc: armin76

On 02:22 Thu 01 Nov     , Mike Frysinger wrote:
> On Wednesday 31 October 2007, Donnie Berkholz wrote:
> > On 15:38 Wed 31 Oct     , Raul Porcel (armin76) wrote:
> > > 	filter-ldflags -Wl,--as-needed
> >
> > If you moved the filter-ldflags() call up to pkg_setup(), you could drop
> > src_compile() altogether to clean up the ebuild a little.
> 
> a better idea is to fix the problem instead of ignoring it with filter-ldflags

Brilliant, my dear Watson! For anyone who doesn't know how to fix 
--as-needed problems, we've got a guide: 
http://www.gentoo.org/proj/en/qa/asneeded.xml

Thanks,
Donnie
-- 
gentoo-dev@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-11-02  6:24 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <E1InFeX-0000UI-Jz@stork.gentoo.org>
2007-10-31 17:58 ` [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in net-p2p/deluge: ChangeLog deluge-0.5.6.2.ebuild deluge-0.5.6.1.ebuild Donnie Berkholz
2007-10-31 18:25   ` Marijn Schouten (hkBst)
2007-10-31 18:38     ` Rémi Cardona
2007-10-31 19:13     ` Donnie Berkholz
2007-11-01  6:22   ` Mike Frysinger
2007-11-02  6:22     ` Donnie Berkholz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox