You are not logged in.

#1 2006-02-19 13:22:36

napoleon
Member
Registered: 2005-04-03
Posts: 176

[Request] Kind request for Amaya PKGBUILD

I tried using the PKGBUILD in AUR to build the latest release of Amaya but I wasn't successful. Can someone please make me a PKGBUILD.

Thnx


A good friend will come and bail you out of jail...BUT a true friend will be sitting next to you saying, "Damn...that was fun!"

Offline

#2 2006-02-19 14:56:32

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: [Request] Kind request for Amaya PKGBUILD

I'm taking a look at it now... I'll see what I can do.
edit: Holy crap that's a gigantic source tarball.

Offline

#3 2006-02-19 16:00:25

napoleon
Member
Registered: 2005-04-03
Posts: 176

Re: [Request] Kind request for Amaya PKGBUILD

hey Cerebral, what up? Is it that big? Well hope you can whip something up. I've got a confession. I wouldn't have tried the new ati package in testing had you not giving the OK. I guess you are our willing ATI guinea pig. Kudos.


A good friend will come and bail you out of jail...BUT a true friend will be sitting next to you saying, "Damn...that was fun!"

Offline

#4 2006-02-19 16:38:18

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: [Request] Kind request for Amaya PKGBUILD

*lol* Yeah, the full-sources tarball is HUGEMONGUS... its got sources for Mesa, wxgtk, and other stuff.

I'm trying to make a package that actually uses the wxgtk library package already available in the repo instead of building it on its own.

Offline

#5 2006-02-19 17:43:46

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: [Request] Kind request for Amaya PKGBUILD

Hm.  After a lot of playing around, I think the existing package in the AUR ought to work fine.  The problem you're having is because you're using Xorg 7 and it expects Xorg 6.8.

Make sure you have the imake package from testing installed before you try to build it, then update the version number and give it a shot.

... hold on, I just had to make a small change to one of the source files.  Give me a bit to make up a patch or something.

argh, now I'm getting some crazy pango error:

/home/travis/pkg/amaya/src/Amaya/WX/wxWidgets_RELEASE/lib/libwx_gtk2u_core-2.6.a(corelib_window.o): In function `wxWindow::GtkGetPangoX11Context()':
window.cpp:(.text+0x16c1): undefined reference to `pango_x_get_context'

Gr!  Give me a bit and I'll try to figure this out.

Offline

#6 2006-02-19 17:58:12

napoleon
Member
Registered: 2005-04-03
Posts: 176

Re: [Request] Kind request for Amaya PKGBUILD

...oops okay waiting ...

==edit==
Good luck. fingers crossed.


A good friend will come and bail you out of jail...BUT a true friend will be sitting next to you saying, "Damn...that was fun!"

Offline

#7 2006-02-19 18:25:38

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: [Request] Kind request for Amaya PKGBUILD

Okay... I think I've got everything sorted out.  I'm making the package from scratch, and if it works, I'll post the modified PKGBUILD and the .patch file here.
ARG, one small mistake in the PKGBUILD that didn't make itself known until after the compile..  well, it compiles right, but it didn't install right.  I think I have it fixed, but now I have to wait through this massive compile process again before I can be sure.  tongue

Offline

#8 2006-02-19 22:24:52

napoleon
Member
Registered: 2005-04-03
Posts: 176

Re: [Request] Kind request for Amaya PKGBUILD

Thanks man you're my hero


A good friend will come and bail you out of jail...BUT a true friend will be sitting next to you saying, "Damn...that was fun!"

Offline

#9 2006-02-19 22:47:30

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: [Request] Kind request for Amaya PKGBUILD

Hm... forums went away for a while.  Anywho, this seems to work for me.  Make sure you use the depends= and makedepends= for the version of Xorg you're using.

PKGBUILD

# Contributor: Dalius <dagis@takas.lt>
pkgname=amaya
pkgver=9.4
pkgrel=1
pkgdesc="W3C's Editor/Browser"
url="http://www.w3.org/Amaya/"
groups=
provides=
#XORG 6 DEPENDS LINES:
depends=('gtk2' 'x-server' 'pango')
makedepends=()
#XORG 7 DEPENDS LINES:
#depends=('gtk2' 'libxxf86vm' 'libxext' 'libx11' 'libxinerama' 'pango')
#makedepends=('imake')
conflicts=()
replaces=()
backup=()
install=()
source=(http://www.w3.org/Amaya/Distribution/$pkgname-fullsrc-$pkgver.tgz AmayaSubPanel.patch)
md5sums=('7035c3322d214fa155ae490e872e0764' 'ad0540a5450feee888957a4bf4f6646f')

build() {

  # Apply patch to AmayaSubPanel.h
  cd $startdir/src/Amaya/thotlib/internals/h 
  patch -p0 AmayaSubPanel.h $startdir/src/AmayaSubPanel.patch
  
  # Set up WX dir and configure to build with wx
  cd $startdir/src/Amaya
  mkdir WX
  cd WX
  ../configure --prefix=/usr/share --with-wx || return 1
  
  # Add PangoX library to WX_LIBRARIES since it's needed
  sed -ie "/^WX_LIBRARIES/ s/-lpango-1.0 /-lpango-1.0 -lpangox-1.0 /g" Options.orig

  # Build Amaya
  make || return 1

  # Install to /usr/share
  install -d -m755 $startdir/pkg/usr/share $startdir/pkg/usr/bin
  make prefix=$startdir/pkg/usr/share install || return 1

  # Create symlinks to binaries
  rm -r $startdir/pkg/usr/share/bin
  cd $startdir/pkg/usr/bin
  ln -sf /usr/share/Amaya-9.4/wx/bin/amaya amaya
}

AmayaSubPanel.patch

*** AmayaSubPanel.h.old    2006-02-19 13:20:21.000000000 -0500
--- AmayaSubPanel.h    2006-02-19 12:52:23.000000000 -0500
***************
*** 10,15 ****
--- 10,16 ----
  
  class AmayaFloatingPanel;
  class AmayaNormalWindow;
+ class AmayaSubPanelManager;
  
  /*
   *  Description:  - AmayaSubPanel contains a sub-panel (xhtml, ...)

Offline

#10 2006-02-20 00:12:53

Gullible Jones
Member
Registered: 2004-12-29
Posts: 4,863

Re: [Request] Kind request for Amaya PKGBUILD

And Xorg 7 switched over to Current like 30 minutes ago, so some fixes might be needed soon. :shock:

Offline

#11 2006-02-20 00:22:48

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: [Request] Kind request for Amaya PKGBUILD

Gullible Jones wrote:

And Xorg 7 switched over to Current like 30 minutes ago, so some fixes might be needed soon. :shock:

o rly?  omg!  big_smile

*lol* Yes... I can see this wreaking utter HAVOC on many packages currently in the AUR and [community]....

Offline

#12 2006-02-20 00:27:35

napoleon
Member
Registered: 2005-04-03
Posts: 176

Re: [Request] Kind request for Amaya PKGBUILD

I just tired and this is what i get

==> Starting build()...
patching file AmayaSubPanel.h
Hunk #1 FAILED at 10.
1 out of 1 hunk FAILED -- saving rejects to file AmayaSubPanel.h.rej

It goes on to compile but buils fails after a while.


A good friend will come and bail you out of jail...BUT a true friend will be sitting next to you saying, "Damn...that was fun!"

Offline

#13 2006-02-20 00:40:26

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: [Request] Kind request for Amaya PKGBUILD

napoleon wrote:

I just tired and this is what i get
It goes on to compile but buils fails after a while.

That's odd.  I just tried patching it three or four times and it worked fine.  Are you sure you have the patch exactly as it is pasted?  No extra newlines before or after or anything like that?

I made a slight change to the PKGBUILD, see if that helps.

Offline

#14 2006-02-20 01:10:39

napoleon
Member
Registered: 2005-04-03
Posts: 176

Re: [Request] Kind request for Amaya PKGBUILD

Well i tried several times and i get the same error message with the patching. I use xorg7 btw. thanks.


A good friend will come and bail you out of jail...BUT a true friend will be sitting next to you saying, "Damn...that was fun!"

Offline

#15 2006-02-20 01:18:26

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: [Request] Kind request for Amaya PKGBUILD

allrighty, try grabbing the exact patch file I use from here: http://www.student.cs.uwaterloo.ca/~tjwillar/arch

See if that helps.

Offline

#16 2006-02-20 07:07:54

napoleon
Member
Registered: 2005-04-03
Posts: 176

Re: [Request] Kind request for Amaya PKGBUILD

Patch from your site was ok  tongue  but now i have this error:

g++: ../redland/raptor/.libs/libraptor.a: No such file or directory
make[1]: *** [../bin/amaya] Error 1
make[1]: Leaving directory `/home/napoleon/LocalPackages/amaya/src/Amaya/WX/amaya'
make: *** [amaya_prog] Error 2

. Thanks


A good friend will come and bail you out of jail...BUT a true friend will be sitting next to you saying, "Damn...that was fun!"

Offline

#17 2006-02-20 12:31:05

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: [Request] Kind request for Amaya PKGBUILD

... crap.  I don't really have the time to work on it today (midterm tonight, must study)
The build worked fine for me. sad  I'll see if I can set aside some time tomorrow to mess around with it.

Offline

#18 2006-02-20 20:24:27

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: [Request] Kind request for Amaya PKGBUILD

napoleon wrote:

Patch from your site was ok  tongue  but now i have this error:

g++: ../redland/raptor/.libs/libraptor.a: No such file or directory
make[1]: *** [../bin/amaya] Error 1
make[1]: Leaving directory `/home/napoleon/LocalPackages/amaya/src/Amaya/WX/amaya'
make: *** [amaya_prog] Error 2

. Thanks

Do you have  raptor installed?

$ pacman -Qo /usr/lib/libraptor.a 
/usr/lib/libraptor.a is owned by raptor 1.4.7-2

Offline

#19 2006-02-20 21:11:59

napoleon
Member
Registered: 2005-04-03
Posts: 176

Re: [Request] Kind request for Amaya PKGBUILD

Yes i have it installed. Thats why i'm confused.  :?


A good friend will come and bail you out of jail...BUT a true friend will be sitting next to you saying, "Damn...that was fun!"

Offline

#20 2006-02-20 22:54:55

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: [Request] Kind request for Amaya PKGBUILD

Snowman: amaya builds its OWN raptor, mesa, wxgtk, and possibly other components, then links statically against the built libraries.  hmm

Offline

#21 2006-02-21 01:37:34

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: [Request] Kind request for Amaya PKGBUILD

Cerebral wrote:

Snowman: amaya builds its OWN raptor, mesa, wxgtk, and possibly other components, then links statically against the built libraries.  hmm

I see. I should've read the 1st page of the thread before posting.  roll

Offline

#22 2006-02-21 16:16:59

napoleon
Member
Registered: 2005-04-03
Posts: 176

Re: [Request] Kind request for Amaya PKGBUILD

Hey Cerebral, I hope your exams went well. I know you aced it big_smile . Cheers.


A good friend will come and bail you out of jail...BUT a true friend will be sitting next to you saying, "Damn...that was fun!"

Offline

#23 2006-02-21 21:02:56

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: [Request] Kind request for Amaya PKGBUILD

Hey, if anyone else wants to start with the PKGBUILD I've put here and try to figure this out, go ahead.  I won't be able to work on it today, or probbly not even for the next week due to midterms.  SO much stuff to do. sad  Sorry, napoleon.

Offline

#24 2006-02-21 21:07:11

napoleon
Member
Registered: 2005-04-03
Posts: 176

Re: [Request] Kind request for Amaya PKGBUILD

Hey thanks and i wish you all the best in your exams  big_smile


A good friend will come and bail you out of jail...BUT a true friend will be sitting next to you saying, "Damn...that was fun!"

Offline

Board footer

Powered by FluxBB