public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user]  hacking an ebuild
@ 2007-06-19 11:34 James
  2007-06-19 12:01 ` Galevsky
  2007-06-19 12:32 ` Alan McKinnon
  0 siblings, 2 replies; 15+ messages in thread
From: James @ 2007-06-19 11:34 UTC (permalink / raw
  To: gentoo-user

Hello,


The devs seems to be busy. Also, I should have learn this some time
ago anyway. There is a existing ebuild for JFFNMS, but, it is masked
for amd64. Is there a guide I can follow to use an x86 ebuild and
create an amd64 derivative ebuild? Since it uses php and other high
level software, I would not think that this is a terrible difficult
process....?

If not, can somebody briefly itemized what needs to be done,
in very general terms, to hack together an ebuild for amd64
when one exist for x86?


James



-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] hacking an ebuild
  2007-06-19 11:34 [gentoo-user] hacking an ebuild James
@ 2007-06-19 12:01 ` Galevsky
  2007-06-19 12:32 ` Alan McKinnon
  1 sibling, 0 replies; 15+ messages in thread
From: Galevsky @ 2007-06-19 12:01 UTC (permalink / raw
  To: gentoo-user

I advise you to read the dev howto at
http://www.gentoo.org/doc/en/index.xml?catid=gentoodev

Gal'

2007/6/19, James <wireless@tampabay.rr.com>:
> Hello,
>
>
> The devs seems to be busy. Also, I should have learn this some time
> ago anyway. There is a existing ebuild for JFFNMS, but, it is masked
> for amd64. Is there a guide I can follow to use an x86 ebuild and
> create an amd64 derivative ebuild? Since it uses php and other high
> level software, I would not think that this is a terrible difficult
> process....?
>
> If not, can somebody briefly itemized what needs to be done,
> in very general terms, to hack together an ebuild for amd64
> when one exist for x86?
>
>
> James
>
>
>
> --
> gentoo-user@gentoo.org mailing list
>
>
-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user]  hacking an ebuild
  2007-06-19 11:34 [gentoo-user] hacking an ebuild James
  2007-06-19 12:01 ` Galevsky
@ 2007-06-19 12:32 ` Alan McKinnon
  2007-06-20  0:37   ` [gentoo-user] " James
  2007-06-20 11:24   ` [gentoo-user] " Bo Ørsted Andresen
  1 sibling, 2 replies; 15+ messages in thread
From: Alan McKinnon @ 2007-06-19 12:32 UTC (permalink / raw
  To: gentoo-user

On Tuesday 19 June 2007, James wrote:
> Hello,
>
>
> The devs seems to be busy. Also, I should have learn this some time
> ago anyway. There is a existing ebuild for JFFNMS, but, it is masked
> for amd64. Is there a guide I can follow to use an x86 ebuild and
> create an amd64 derivative ebuild? Since it uses php and other high
> level software, I would not think that this is a terrible difficult
> process....?
>
> If not, can somebody briefly itemized what needs to be done,
> in very general terms, to hack together an ebuild for amd64
> when one exist for x86?

I took a quick look inside the ebuils. Nothing there seems amd64 
specific, so here's how I would proceed;

Create a user overlay in the usual place - $PORTDIR/local/
Copy the ebuild there as normal
modify KEYWORDS="~x86 ~amd64
Check that all the dependencies have amd64 ebuilds as well
emerge jffnms and see what happens

alan


-- 
Optimists say the glass is half full,
Pessimists say the glass is half empty,
Developers say wtf is the glass twice as big as it needs to be?

Alan McKinnon
alan at linuxholdings dot co dot za
+27 82, double three seven, one nine three five
-- 
gentoo-user@gentoo.org mailing list



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

* [gentoo-user]  Re: hacking an ebuild
  2007-06-19 12:32 ` Alan McKinnon
@ 2007-06-20  0:37   ` James
  2007-06-20 11:24   ` [gentoo-user] " Bo Ørsted Andresen
  1 sibling, 0 replies; 15+ messages in thread
From: James @ 2007-06-20  0:37 UTC (permalink / raw
  To: gentoo-user

Alan McKinnon <alan <at> linuxholdings.co.za> writes:


> Create a user overlay in the usual place - $PORTDIR/local/
> Copy the ebuild there as normal
> modify KEYWORDS="~x86 ~amd64
> Check that all the dependencies have amd64 ebuilds as well
> emerge jffnms and see what happens

Ok this sounds like just the sort of advise
I was looking for. If I run into
trouble I'll post again.


Thanks Alan,


James




-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user]  hacking an ebuild
  2007-06-19 12:32 ` Alan McKinnon
  2007-06-20  0:37   ` [gentoo-user] " James
@ 2007-06-20 11:24   ` Bo Ørsted Andresen
  2007-06-20 11:29     ` Abraham Marín Pérez
                       ` (2 more replies)
  1 sibling, 3 replies; 15+ messages in thread
From: Bo Ørsted Andresen @ 2007-06-20 11:24 UTC (permalink / raw
  To: gentoo-user

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

On Tuesday 19 June 2007 14:32:15 Alan McKinnon wrote:
> I took a quick look inside the ebuils. Nothing there seems amd64
> specific, so here's how I would proceed;
>
> Create a user overlay in the usual place - $PORTDIR/local/
> Copy the ebuild there as normal
> modify KEYWORDS="~x86 ~amd64
> Check that all the dependencies have amd64 ebuilds as well
> emerge jffnms and see what happens

What? Why? Just add 'net-analyzer/jffnms ~x86' 
to /etc/portage/package.keywords? No matter what the KEYWORDS of an ebuild 
are (or aren't) they can be accepted by a proper entry in package.keywords 
(** if empty)...

-- 
Bo Andresen

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

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

* Re: [gentoo-user]  hacking an ebuild
  2007-06-20 11:24   ` [gentoo-user] " Bo Ørsted Andresen
@ 2007-06-20 11:29     ` Abraham Marín Pérez
  2007-06-20 11:36       ` Bo Ørsted Andresen
  2007-06-20 12:28     ` Alan McKinnon
  2007-06-20 23:32     ` [gentoo-user] " James
  2 siblings, 1 reply; 15+ messages in thread
From: Abraham Marín Pérez @ 2007-06-20 11:29 UTC (permalink / raw
  To: gentoo-user

Bo Ørsted Andresen escribió:
> On Tuesday 19 June 2007 14:32:15 Alan McKinnon wrote:
>   
>> I took a quick look inside the ebuils. Nothing there seems amd64
>> specific, so here's how I would proceed;
>>
>> Create a user overlay in the usual place - $PORTDIR/local/
>> Copy the ebuild there as normal
>> modify KEYWORDS="~x86 ~amd64
>> Check that all the dependencies have amd64 ebuilds as well
>> emerge jffnms and see what happens
>>     
>
> What? Why? Just add 'net-analyzer/jffnms ~x86' 
> to /etc/portage/package.keywords? No matter what the KEYWORDS of an ebuild 
> are (or aren't) they can be accepted by a proper entry in package.keywords 
> (** if empty)...
>
>   
I think the problem here is that the package is masked, not marked as 
unstable; that's the reason to create a new ebuild not affected by the 
general portage.mask... Am I right?

-- 
-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user]  hacking an ebuild
  2007-06-20 11:29     ` Abraham Marín Pérez
@ 2007-06-20 11:36       ` Bo Ørsted Andresen
  0 siblings, 0 replies; 15+ messages in thread
From: Bo Ørsted Andresen @ 2007-06-20 11:36 UTC (permalink / raw
  To: gentoo-user

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

On Wednesday 20 June 2007 13:29:56 Abraham Marín Pérez wrote:
> >> Create a user overlay in the usual place - $PORTDIR/local/
> >> Copy the ebuild there as normal
> >> modify KEYWORDS="~x86 ~amd64
> >> Check that all the dependencies have amd64 ebuilds as well
> >> emerge jffnms and see what happens
> >
> > What? Why? Just add 'net-analyzer/jffnms ~x86'
> > to /etc/portage/package.keywords? No matter what the KEYWORDS of an
> > ebuild are (or aren't) they can be accepted by a proper entry in
> > package.keywords (** if empty)...
>
> I think the problem here is that the package is masked, not marked as
> unstable; that's the reason to create a new ebuild not affected by the
> general portage.mask... Am I right?

No. First of all it's not masked. Secondly if it was masked it could be 
unmasked through /etc/portage/package.unmask...

-- 
Bo Andresen

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

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

* Re: [gentoo-user]  hacking an ebuild
  2007-06-20 11:24   ` [gentoo-user] " Bo Ørsted Andresen
  2007-06-20 11:29     ` Abraham Marín Pérez
@ 2007-06-20 12:28     ` Alan McKinnon
  2007-06-20 23:32     ` [gentoo-user] " James
  2 siblings, 0 replies; 15+ messages in thread
From: Alan McKinnon @ 2007-06-20 12:28 UTC (permalink / raw
  To: gentoo-user

On Wednesday 20 June 2007, Bo Ørsted Andresen wrote:
> On Tuesday 19 June 2007 14:32:15 Alan McKinnon wrote:
> > I took a quick look inside the ebuils. Nothing there seems amd64
> > specific, so here's how I would proceed;
> >
> > Create a user overlay in the usual place - $PORTDIR/local/
> > Copy the ebuild there as normal
> > modify KEYWORDS="~x86 ~amd64
> > Check that all the dependencies have amd64 ebuilds as well
> > emerge jffnms and see what happens
>
> What? Why? Just add 'net-analyzer/jffnms ~x86'
> to /etc/portage/package.keywords? No matter what the KEYWORDS of an
> ebuild are (or aren't) they can be accepted by a proper entry in
> package.keywords (** if empty)...

<sigh>

Yes, you are right. What was I thinking? It must have been late at the 
time.

alan



-- 
Optimists say the glass is half full,
Pessimists say the glass is half empty,
Developers say wtf is the glass twice as big as it needs to be?

Alan McKinnon
alan at linuxholdings dot co dot za
+27 82, double three seven, one nine three five
--
gentoo-user@gentoo.org mailing list



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

* [gentoo-user]  Re: hacking an ebuild
  2007-06-20 11:24   ` [gentoo-user] " Bo Ørsted Andresen
  2007-06-20 11:29     ` Abraham Marín Pérez
  2007-06-20 12:28     ` Alan McKinnon
@ 2007-06-20 23:32     ` James
  2007-06-21  8:01       ` Alan McKinnon
  2007-06-21 11:54       ` Bo Ørsted Andresen
  2 siblings, 2 replies; 15+ messages in thread
From: James @ 2007-06-20 23:32 UTC (permalink / raw
  To: gentoo-user

Bo Ørsted Andresen <bo.andresen <at> zlin.dk> writes:




> What? Why? Just add 'net-analyzer/jffnms ~x86' 


On amd64?

It tried this. It allowed the standard page to be emerge, but
it fails to compile
dev-libs/apr-util-0.9.12  fails to compile, so, jffnms cannot compile.


> to /etc/portage/package.keywords? No matter what the 
> KEYWORDS of  an ebuild 
> are (or aren't) they can be accepted by a proper 
> entry in  package.keywords 
> (** if empty)...


Not sure what you are saying here. Can you give me the explicit line
to add to the /etc/portage/package.keywords


confused....


James

-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user]  Re: hacking an ebuild
  2007-06-20 23:32     ` [gentoo-user] " James
@ 2007-06-21  8:01       ` Alan McKinnon
  2007-06-21 12:00         ` Bo Ørsted Andresen
  2007-06-22 20:24         ` James
  2007-06-21 11:54       ` Bo Ørsted Andresen
  1 sibling, 2 replies; 15+ messages in thread
From: Alan McKinnon @ 2007-06-21  8:01 UTC (permalink / raw
  To: gentoo-user

On Thursday 21 June 2007, James wrote:
> Bo Ørsted Andresen <bo.andresen <at> zlin.dk> writes:

> > to /etc/portage/package.keywords? No matter what the
> > KEYWORDS of  an ebuild
> > are (or aren't) they can be accepted by a proper
> > entry in  package.keywords
> > (** if empty)...
>
> Not sure what you are saying here. Can you give me the explicit line
> to add to the /etc/portage/package.keywords
>
>
> confused....

<section-name>/<package-name> * ~* **

This will make the package visible under just about any circumstance, 
whether it is stable, unstable or not keyworded for your arch.

see 'man 5 portage', section package.keywords around about line 330 for 
more info. This feature is relatively new and if you last read the 
howtos some time ago (like me...) you might not be aware of it yet

alan

-- 
Optimists say the glass is half full,
Pessimists say the glass is half empty,
Developers say wtf is the glass twice as big as it needs to be?

Alan McKinnon
alan at linuxholdings dot co dot za
+27 82, double three seven, one nine three five
--
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user]  Re: hacking an ebuild
  2007-06-20 23:32     ` [gentoo-user] " James
  2007-06-21  8:01       ` Alan McKinnon
@ 2007-06-21 11:54       ` Bo Ørsted Andresen
  2007-06-22 20:42         ` James
  1 sibling, 1 reply; 15+ messages in thread
From: Bo Ørsted Andresen @ 2007-06-21 11:54 UTC (permalink / raw
  To: gentoo-user

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

On Thursday 21 June 2007 01:32:39 James wrote:
> Bo Ørsted Andresen <bo.andresen <at> zlin.dk> writes:
> > What? Why? Just add 'net-analyzer/jffnms ~x86'
>
> On amd64?

Yes.

> It tried this. It allowed the standard page to be emerge, but
> it fails to compile
> dev-libs/apr-util-0.9.12  fails to compile, so, jffnms cannot compile.

Fails how?

> > to /etc/portage/package.keywords? No matter what the
> > KEYWORDS of  an ebuild
> > are (or aren't) they can be accepted by a proper
> > entry in  package.keywords
> > (** if empty)...
>
> Not sure what you are saying here. Can you give me the explicit line
> to add to the /etc/portage/package.keywords

I did.

-- 
Bo Andresen

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

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

* Re: [gentoo-user]  Re: hacking an ebuild
  2007-06-21  8:01       ` Alan McKinnon
@ 2007-06-21 12:00         ` Bo Ørsted Andresen
  2007-06-22 20:24         ` James
  1 sibling, 0 replies; 15+ messages in thread
From: Bo Ørsted Andresen @ 2007-06-21 12:00 UTC (permalink / raw
  To: gentoo-user

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

On Thursday 21 June 2007 10:01:56 Alan McKinnon wrote:
> > > to /etc/portage/package.keywords? No matter what the
> > > KEYWORDS of  an ebuild
> > > are (or aren't) they can be accepted by a proper
> > > entry in  package.keywords
> > > (** if empty)...
> >
> > Not sure what you are saying here. Can you give me the explicit line
> > to add to the /etc/portage/package.keywords
> >
> >
> > confused....
>
> <section-name>/<package-name> * ~* **

* accepts any stable keyword. ~* accepts any testing keyword. -* accepts -* 
keywords. ** accepts even if there are no keywords at all (which means 
basically anything will be accepted)... I'd never use ** where it isn't 
necessary...

> This will make the package visible under just about any circumstance,
> whether it is stable, unstable or not keyworded for your arch.

It's also redundant (in that ** will cover anything anyway)... ;)

> see 'man 5 portage', section package.keywords around about line 330 for
> more info. This feature is relatively new and if you last read the
> howtos some time ago (like me...) you might not be aware of it yet

Only ** was added recently. At the same time KEYWORDS="-*" was banned in 
favour of KEYWORDS="".

-- 
Bo Andresen

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

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

* [gentoo-user]  Re: hacking an ebuild
  2007-06-21  8:01       ` Alan McKinnon
  2007-06-21 12:00         ` Bo Ørsted Andresen
@ 2007-06-22 20:24         ` James
  1 sibling, 0 replies; 15+ messages in thread
From: James @ 2007-06-22 20:24 UTC (permalink / raw
  To: gentoo-user

Alan McKinnon <alan <at> linuxholdings.co.za> writes:


> > Not sure what you are saying here. Can you give me the explicit line
> > to add to the /etc/portage/package.keywords

> <section-name>/<package-name> * ~* **


Hello Alan,

That is a very cool bit of detail you have provided. 
Most excellent! Now that I have that trick, I have
several things to revisit....

thx


James

-- 
gentoo-user@gentoo.org mailing list



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

* [gentoo-user]  Re: hacking an ebuild
  2007-06-21 11:54       ` Bo Ørsted Andresen
@ 2007-06-22 20:42         ` James
  2007-06-22 22:42           ` Bo Ørsted Andresen
  0 siblings, 1 reply; 15+ messages in thread
From: James @ 2007-06-22 20:42 UTC (permalink / raw
  To: gentoo-user

Bo Ørsted Andresen <bo.andresen <at> zlin.dk> writes:

> > > What? Why? Just add 'net-analyzer/jffnms ~x86'
> > On amd64?
> Yes.

Well after using alan's suggestion and getting JFFNMS to compile
I just had to try this out. It worked too!

Can you explain why using ~x86 on an amd64 machine works
in the /etc/portage/package.keywords file? 
It seem I need to do some more reading....


> > dev-libs/apr-util-0.9.12  fails to compile, so, jffnms cannot compile.
> Fails how?

Paraphrased, it said that the Berkeley database was not installed. 
Looking at the  available packages ('eix berkeley' and then 'eix db')
I figured out that is was because that berkdb is a general system
flag I set in 'make.conf'. So for 'apr-util' in the 'package.use' 
file I just removed this flag (-berkdb). I'm not certain what effect
this will have on my system or JFFNMS, if any at all.... Once this
was fixed using your method or alan's method, JFFNMS compiled.


Now JFFNMS is installed and it's time to configure it and test it.
thanks for all of the help.....

James




-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user]  Re: hacking an ebuild
  2007-06-22 20:42         ` James
@ 2007-06-22 22:42           ` Bo Ørsted Andresen
  0 siblings, 0 replies; 15+ messages in thread
From: Bo Ørsted Andresen @ 2007-06-22 22:42 UTC (permalink / raw
  To: gentoo-user

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

On Friday 22 June 2007 22:42:33 James wrote:
> > > > What? Why? Just add 'net-analyzer/jffnms ~x86'
> > >
> > > On amd64?
> >
> > Yes.
>
> Well after using alan's suggestion and getting JFFNMS to compile
> I just had to try this out. It worked too!
>
> Can you explain why using ~x86 on an amd64 machine works
> in the /etc/portage/package.keywords file?
> It seem I need to do some more reading....

Because that's the keyword the ebuild has? Why wouldn't it? package.keywords 
specifies what keywords you are willing to accept for a given package atom...

-- 
Bo Andresen

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

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

end of thread, other threads:[~2007-06-22 22:47 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-19 11:34 [gentoo-user] hacking an ebuild James
2007-06-19 12:01 ` Galevsky
2007-06-19 12:32 ` Alan McKinnon
2007-06-20  0:37   ` [gentoo-user] " James
2007-06-20 11:24   ` [gentoo-user] " Bo Ørsted Andresen
2007-06-20 11:29     ` Abraham Marín Pérez
2007-06-20 11:36       ` Bo Ørsted Andresen
2007-06-20 12:28     ` Alan McKinnon
2007-06-20 23:32     ` [gentoo-user] " James
2007-06-21  8:01       ` Alan McKinnon
2007-06-21 12:00         ` Bo Ørsted Andresen
2007-06-22 20:24         ` James
2007-06-21 11:54       ` Bo Ørsted Andresen
2007-06-22 20:42         ` James
2007-06-22 22:42           ` Bo Ørsted Andresen

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