Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Mozilla 1.5 Final + Epiphany 1.0.2 Fix
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
darkie
n00b
n00b


Joined: 06 Jun 2002
Posts: 23
Location: USA

PostPosted: Thu Oct 16, 2003 4:26 am    Post subject: Mozilla 1.5 Final + Epiphany 1.0.2 Fix Reply with quote

problem: you managed to get Mozilla 1.5 final installed (i did it with a tiny mod to 1.4-r4 ebuild), and you want a shiny new Epiphany 1.0.2 installed, but alas the ./configure script complains that you don't have Mozilla 1.4, 1.5a, 1.5b, or 1.6a. Thats right no support for 1.5 final yet....

well this is a really simple trick, just make the configure script support 1.5 :P

if you know how to modify ebuilds to apply a patch during src_unpack() use this info
Code:
--- epiphany-1.0.2.old/configure        2003-10-15 23:58:55.000000000 -0400
+++ epiphany-1.0.2/configure    2003-10-15 23:59:20.000000000 -0400
@@ -20825,6 +20825,7 @@
 1.4.1) MOZILLA_SNAPSHOT=9 ;;
  1.5a) MOZILLA_SNAPSHOT=10 ;;
  1.5b) MOZILLA_SNAPSHOT=11 ;;
+ 1.5)  MOZILLA_SNAPSHOT=11 ;;
  1.6a) MOZILLA_SNAPSHOT=12 ;;
 trunk) MOZILLA_SNAPSHOT=12 ;;
     *) { { echo "$as_me:$LINENO: error:


You can see it was as easy as adding 1.5) to the configure script. This worked for me, I am typing this in e1.0.2 now with mozilla 1.5 installed, both from source :P

Step by step for the queezy (NOTE: this may not work for you, I probably cannont help either because I had to learn all this stuff on the fly, I am by far a guru 8O )

1) open up epiphany-1.0.2.ebuild in your favorite editor, i use nano for this.
Code:
 nano -w /usr/portage/net-www/epiphany/epiphany-1.0.2.ebuild

2) add this just BEFORE pkg_setup() { line
Code:
 src_unpack() {
            unpack ${A}
            epatch /usr/portage/net-www/epiphany/files/mozilla-1.5-fix.patch
}

3) change to /usr/portage/net-www/epiphany/files
Code:
 cd /usr/portage/net-www/epiphany/files

4) use nano (or fav editor) like above, and create a new file mozilla-1.5-fix.patch
Code:
 nano -w mozilla-1.5-fix.patch

5) paste the code i first listed above into this file and save it (ctrl-o ctrl-x in nano)
6) cd .. to get back one directory (takes you to /usr/portage/net-www/epiphany/) and type this:
Code:
 ebuild epiphany-1.0.2.ebuild digest

7) now run (same directory) this:
Code:
emerge epiphany-1.0.2.ebuild


and wait for it to finish!

Possible problems:

errors on the patch: make sure /usr/portage/net-www/epiphany/files/mozilla-1.5-fix.patch exists and has the first code lisiting pasted into it.

final note: I am far from perfect and this is my first time toying with ebuilds and patching from an ebuild... please let me know if I made any mistakes or how i can make things better. Also let me know if i left out any steps lol.

Remember this worked for ME.. it may not work for you. Enjoy.

update: the patch can also be seen here.
_________________
Got Gentoo?
Back to top
View user's profile Send private message
Lovechild
Advocate
Advocate


Joined: 17 May 2002
Posts: 2858
Location: Århus, Denmark

PostPosted: Thu Oct 16, 2003 7:19 am    Post subject: Reply with quote

I just set it to build against 1.5b and it worked.

I also found that 1.5 seemed to be tagged wrong in CVS, so checking out mozilla_1_5_branch made it compile like it was suppose to.
Back to top
View user's profile Send private message
darkie
n00b
n00b


Joined: 06 Jun 2002
Posts: 23
Location: USA

PostPosted: Thu Oct 16, 2003 3:54 pm    Post subject: yea Reply with quote

I downloaded a 1.5 tarball from mozilla.org before it got swamped and some files were missing?

so later on i grabbed the 1.5 release branch from CVS and it compiled fine.

the joys of compiling ;)
_________________
Got Gentoo?
Back to top
View user's profile Send private message
crazy-bee
Apprentice
Apprentice


Joined: 03 Jan 2003
Posts: 170

PostPosted: Mon Oct 20, 2003 8:35 am    Post subject: Reply with quote

The same problem exists with galeon-1.3.9. Unfortunately, I dont know how to make a patch file, otherwise it would work with the epiphany patch darkie made.
Back to top
View user's profile Send private message
Evil Dark Archon
Guru
Guru


Joined: 21 Dec 2002
Posts: 562
Location: Santa Rosa, CA

PostPosted: Mon Oct 20, 2003 9:47 pm    Post subject: Reply with quote

in both cases modifying the ebuild to change

Code:
--with-mozilla-snapshot=${moz_ver}


to

Code:
--with-mozilla-snapshot=1.5b


it will compile and run fine although there is a new version of epiphany (probably masked unstable) that already has 1.5 final support.
Back to top
View user's profile Send private message
crazy-bee
Apprentice
Apprentice


Joined: 03 Jan 2003
Posts: 170

PostPosted: Tue Oct 21, 2003 7:41 pm    Post subject: Reply with quote

@evil: thanks, that worked brillant for galeon-1.3.9 !!!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum