Author Topic: (update) edgar 0.51  (Read 1815 times)

Offline Ertain

  • Sr. Member
  • ****
  • Posts: 365
  • I come in peace. And for some nachos.
(update) edgar 0.51
« on: September 25, 2009, 02:32:13 PM »
I'm trying to build an RPM for the game Edgar.  The game only came with a makefile, so I've been trying to use that.  When it gets to the part in the specfile about installing it rpmbuild keep trying to install it in the usual place (/usr/local/).  I'm trying to make it go to the right place, but it won't work.

I've looked into the makefile and it uses the standard variables to install it.

Code: [Select]
PREFIX = $(DESTDIR)/usr
BIN_DIR = $(PREFIX)/games/
DOC_DIR = $(PREFIX)/share/doc/$(PROG)/
ICON_DIR = $(PREFIX)/share/icons/hicolor/
## And so on

So I tried setting "PREFIX" with the command "%{buildroot}".  However that doesn't work.  Then I tried passing "DESTDIR=$RPM_BUILD_ROOT" but that doesn't work, either.  If you're wondering, here's the commands I used:

Code: [Select]
%build
make VERSION=%{version} RELEASE=%{release} PREFIX=%{buildroot}

##That didn't work.  So I tried:
%install
make install DESTDIR=$RPM_BUILD_ROOT

Any ideas on making this build?
« Last Edit: March 11, 2010, 01:14:05 PM by Ertain »
"She's the boss, apple sauce!"
 -Frank Cho

Offline slick50

  • Full Member
  • ***
  • Posts: 168
    • http://www.linuxgator.org/
Re: edgar 0.30
« Reply #1 on: September 26, 2009, 10:02:23 AM »
I sent you a PM as the makefile needs a patch to build it from what I see?
Anyways it builds now. ;)
Registered Linux User #404200 Get counted:-) http://counter.li.org/

Offline Ertain

  • Sr. Member
  • ****
  • Posts: 365
  • I come in peace. And for some nachos.
Re: edgar 0.30
« Reply #2 on: September 26, 2009, 12:26:37 PM »
Again, thanks for the assist. ;D
"She's the boss, apple sauce!"
 -Frank Cho

Offline Ertain

  • Sr. Member
  • ****
  • Posts: 365
  • I come in peace. And for some nachos.
Re: edgar 0.31
« Reply #3 on: September 28, 2009, 12:21:58 PM »
Hello once again.  I've built the pack but when I run it the game spews out an error.
Quote
Locale is en_US.UTF-8
Loaded up PAK file with 2257 entries
Setting mapName to Tutorial Map
Loading music from music/jk_village.xm
Uncompressing music/jk_village.xm
Writing to /home/user/.parallelrealities/edgar/pakdata
Uncompressed to /home/user/.parallelrealities/edgar/pakdata
Loading '/home/user/.parallelrealities/edgar/pakdata'
Loading tiles from caves
Loading ambience from grasslands
Setting background speed to 0.3
Setting background speed 2 to 0.0
Added Trigger "TUTORIAL_SECRET" with total 1
Done reloading inventory
Production Version
Loading script file data/scripts/tutorial_intro.dat
*** glibc detected *** edgar: free(): invalid next size (normal): 0x0a404bb8 ***
======= Backtrace: =========
/lib/i686/libc.so.6[0xb7d1bd9d]
/lib/i686/libc.so.6(__libc_free+0x83)[0xb7d1bf23]
/usr/lib/libSDL-1.2.so.0[0xb7e9ea6f]
======= Memory map: ========
08048000-080a4000 r-xp 00000000 08:09 49669      /usr/bin/edgar
080a4000-080a7000 rw-p 0005c000 08:09 49669      /usr/bin/edgar
080a7000-08639000 rw-p 080a7000 00:00 0
0a34c000-0a556000 rw-p 0a34c000 00:00 0          [heap]
b6b00000-b6b21000 rw-p b6b00000 00:00 0
b6b21000-b6c00000 ---p b6b21000 00:00 0
b6cd0000-b6df2000 rw-p b6cd0000 00:00 0
b6dfc000-b6ed1000 rw-p b6dfc000 00:00 0
b6ed1000-b6ed2000 ---p b6ed1000 00:00 0
b6ed2000-b76d2000 rw-p b6ed2000 00:00 0
b76d2000-b7768000 rw-s 00000000 00:08 1081345    /SYSV00000000 (deleted)
b7768000-b776c000 r-xp 00000000 08:09 1180112    /usr/lib/libXfixes.so.3.1.0
b776c000-b776d000 rw-p 00003000 08:09 1180112    /usr/lib/libXfixes.so.3.1.0
b776d000-b7776000 r-xp 00000000 08:09 20181      /usr/lib/libXcursor.so.1.0.2
b7776000-b7777000 rw-p 00008000 08:09 20181      /usr/lib/libXcursor.so.1.0.2
b7777000-b777e000 r-xp 00000000 08:09 3670250    /usr/lib/libXrandr.so.2.2.0
b777e000-b777f000 rw-p 00006000 08:09 3670250    /usr/lib/libXrandr.so.2.2.0
b777f000-b7787000 r-xp 00000000 08:09 756429     /lib/libnss_files-2.4.so
b7787000-b7789000 rw-p 00007000 08:09 756429     /lib/libnss_files-2.4.so
b77b3000-b77ef000 r--p 00000000 08:09 37037      /usr/share/locale/UTF-8/LC_CTYPE
b77ef000-b78d3000 r--p 00000000 08:09 42964      /usr/share/locale/UTF-8/LC_COLLATE
b78d3000-b78d5000 rw-p b78d3000 00:00 0
b78d5000-b78da000 r-xp 00000000 08:09 1180104    /usr/lib/libXdmcp.so.6.0.0
b78da000-b78db000 rw-p 00004000 08:09 1180104    /usr/lib/libXdmcp.so.6.0.0
b78db000-b78f6000 r-xp 00000000 08:09 3145844    /usr/lib/libxcb.so.1.0.0
b78f6000-b78f7000 rw-p 0001a000 08:09 3145844    /usr/lib/libxcb.so.1.0.0
b78f7000-b78f8000 r-xp 00000000 08:09 3145834    /usr/lib/libxcb-xlib.so.0.0.0
b78f8000-b78f9000 rw-p 00000000 08:09 3145834    /usr/lib/libxcb-xlib.so.0.0.0
b78f9000-b78fe000 r-xp 00000000 08:09 756412     /lib/libgpm.so.1.19.0
b78fe000-b78ff000 rw-p 00004000 08:09 756412     /lib/libgpm.so.1.19.0
b78ff000-b7961000 r-xp 00000000 08:09 17086      /usr/lib/libslang.so.1.4.9
b7961000-b7966000 rw-p 00062000 08:09 17086      /usr/lib/libslang.so.1.4.9
b7966000-b797e000 rw-p b7966000 00:00 0
b797e000-b7988000 r-xp 00000000 08:09 756409     /lib/libgcc_s-4.1.1.so.1
b7988000-b7989000 rw-p 0000a000 08:09 756409     /lib/libgcc_s-4.1.1.so.1
b7989000-b7a7f000 r-xp 00000000 08:09 15707      /usr/lib/libX11.so.6.2.0
b7a7f000-b7a83000 rw-p 000f5000 08:09 15707      /usr/lib/libX11.so.6.2.0
b7a83000-b7a99000 r-xp 00000000 08:09 1180096    /usr/lib/libICE.so.6.3.0
b7a99000-b7a9a000 rw-p 00015000 08:09 1180096    /usr/lib/libICE.so.6.3.0
b7a9a000-b7a9c000 rw-p b7a9a000 00:00 0
b7a9c000-b7aa4000 r-xp 00000000 08:09 1180098    /usr/lib/libSM.so.6.0.0
b7aa4000-b7aa5000 rw-p 00007000 08:09 1180098    /usr/lib/libSM.so.6.0.0
b7aa5000-b7aa7000 r-xp 00000000 08:09 1180102    /usr/lib/libXau.so.6.0.0
b7aa7000-b7aa8000 rw-p 00001000 08:09 1180102    /usr/lib/libXau.so.6.0.0
b7aa8000-b7aa9000 rw-p b7aa8000 00:00 0
b7aa9000-b7b23000 r-xp 00000000 08:09 16193      /usr/lib/libfreetype.so.6.3.20
b7b23000-b7b27000 rw-p 00079000 08:09 16193      /usr/lib/libfreetype.so.6.3.20
b7b27000-b7b36000 r-xp 00000000 08:09 756267     /lib/i686/libpthread-2.4.so
b7b36000-b7b38000 rw-p 0000e000 08:09 756267     /lib/i686/libpthread-2.4.so
b7b38000-b7b3a000 rw-p b7b38000 00:00 0
b7b3a000-b7b52000 r-xp 00000000 08:09 6552       /usr/lib/libaa.so.1.0.4
b7b52000-b7b54000 rw-p 00018000 08:09 6552       /usr/lib/libaa.so.1.0.4
b7b54000-b7b55000 rw-p b7b54000 00:00 0
b7b55000-b7b5c000 r-xp 00000000 08:09 16046      /usr/lib/libgg.so.0.0.9
b7b5c000-b7b5e000 rw-p 00007000 08:09 16046      /usr/lib/libgg.so.0.0.9
b7b5e000-b7b5f000 rw-p b7b5e000 00:00 0
b7b5f000-b7b65000 r-xp 00000000 08:09 16055      /usr/lib/libgii.so.0.0.9
b7b65000-b7b66000 rw-p 00005000 08:09 16055      /usr/lib/libgii.so.0.0.9
b7b66000-b7b67000 rw-p b7b66000 00:00 0
b7b67000-b7b72000 r-xp 00000000 08:09 16048      /usr/lib/libggi.so.2.0.1
b7b72000-b7b73000 rw-p 0000a000 08:09 16048      /usr/lib/libggi.so.2.0.1
b7b73000-b7b75000 r-xp 00000000 08:09 756401     /lib/libdl-2.4.so
b7b75000-b7b77000 rw-p 00001000 08:09 756401     /lib/libdl-2.4.so
b7b77000-b7b86000 r-xp 00000000 08:09 15962      /usr/lib/libdirect-0.9.so.25.0.0
b7b86000-b7b87000 rw-p 0000e000 08:09 15962      /usr/lib/libdirect-0.9.so.25.0.0
b7b87000-b7b8d000 r-xp 00000000 08:09 16017      /usr/lib/libfusion-0.9.so.25.0.0
b7b8d000-b7b8e000 rw-p 00005000 08:09 16017      /usr/lib/libfusion-0.9.so.25.0.0
b7b8e000-b7bec000 r-xp 00000000 08:09 15964      /usr/lib/libdirectfb-0.9.so.25.0.0
b7bec000-b7bee000 rw-p 0005d000 08:09 15964      /usr/lib/libdirectfb-0.9.so.25.0.0
b7bee000-b7c41000 r-xp 00000000 08:09 1180128    /usr/lib/libXt.so.6.0.0
b7c41000-b7c45000 rw-p 00052000 08:09 11Aborted
I can't even figure out where to begin.  It relies on SDL, SDL_image, SDL_Mixer, SDL_TTF, and Zlib.  I don't think it requires any OpenGL stuff, so it's not tied to my graphic drivers.
"She's the boss, apple sauce!"
 -Frank Cho

Offline Ertain

  • Sr. Member
  • ****
  • Posts: 365
  • I come in peace. And for some nachos.
Re: edgar 0.32
« Reply #4 on: October 05, 2009, 06:06:38 PM »
Bump this for the latest version.

It looks like the makefile is messed up again.  It keep trying to install in the usual "/usr/local/" when I try to build it with rpmbuild.  The darn Makefile patch isn't working this time.
"She's the boss, apple sauce!"
 -Frank Cho

Offline ShowMeRon

  • Full Member
  • ***
  • Posts: 162
Re: edgar 0.32
« Reply #5 on: October 13, 2009, 05:10:19 AM »
ver. 33 came out Oct 6th. I downloaded it from their website(rpm) and installed it using kpackage. It runs fine for me. But I'm stuck in the Fortress basement banging my head to figure it out, hehe.
take me drunk......i'm home                                                                                  Registered Linux user #446923

Offline Ertain

  • Sr. Member
  • ****
  • Posts: 365
  • I come in peace. And for some nachos.
Re: edgar 0.32
« Reply #6 on: October 14, 2009, 01:29:47 AM »
Yeah you have to remember it's still beta.

It doesn't run on my system.  Probably wants 3D or something.
"She's the boss, apple sauce!"
 -Frank Cho

Offline Ertain

  • Sr. Member
  • ****
  • Posts: 365
  • I come in peace. And for some nachos.
Re: edgar 0.46
« Reply #7 on: February 09, 2010, 01:31:09 PM »
Wow, haven't updated this in a while.  :o

The same darn thing keeps happening: due to the Makefile being written incorrectly (at least for cross-platform purposes) it keeps trying to install the files in /usr/games/ instead of first installing them in the RPM source directories and then packing them into an RPM package.  Thanks to slick50's patch the previous files were able to compile and build into a package.

Here's the error message that arises:
Code: [Select]
# After packing the data files into edgar.pak
Compressing 100%..
Completed
mkdir -p /usr/games/
mkdir -p /usr/share/icons/hicolor/16x16/apps
mkdir -p /usr/share/icons/hicolor/32x32/apps
mkdir -p /usr/share/icons/hicolor/64x64/apps
mkdir -p /usr/share/applications/
cp locale/pl.mo /usr/share/locale/pl/LC_MESSAGES/edgar.mo
cp: cannot create regular file `/usr/share/locale/pl/LC_MESSAGES/edgar.mo': Permission denied
make: *** [install] Error 1
"She's the boss, apple sauce!"
 -Frank Cho

Offline Ertain

  • Sr. Member
  • ****
  • Posts: 365
  • I come in peace. And for some nachos.
Re: (update) edgar 0.51
« Reply #8 on: March 11, 2010, 01:14:50 PM »
And I have updated this to 0.51.  I have already sent over the source package via DropBox.
"She's the boss, apple sauce!"
 -Frank Cho