Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 152367 - NWN enhancements (movies, user data, and more)
Summary: NWN enhancements (movies, user data, and more)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 83291 143362
  Show dependency tree
 
Reported: 2006-10-22 06:01 UTC by Denis Dupeyron (RETIRED)
Modified: 2007-06-17 19:27 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
nwn-data-1.29-r1.ebuild (nwn-data-1.29-r1.ebuild,7.84 KB, text/plain)
2006-10-22 06:03 UTC, Denis Dupeyron (RETIRED)
Details
nwn-1.68-r1.ebuild (nwn-1.68-r1.ebuild,5.23 KB, text/plain)
2006-10-22 06:03 UTC, Denis Dupeyron (RETIRED)
Details
fixinstall (fixinstall,2.62 KB, text/plain)
2006-10-22 06:04 UTC, Denis Dupeyron (RETIRED)
Details
Patch to change 2 'linugas' occurences into 'linguas' (linugas.patch,672 bytes, patch)
2006-11-19 03:01 UTC, Denis Dupeyron (RETIRED)
Details | Diff
Patch for nwn-data-1.29-r1.ebuild to fix URLs of language files. (linguas-url.patch,895 bytes, patch)
2006-11-22 13:19 UTC, Denis Dupeyron (RETIRED)
Details | Diff
01-read-n.patch (01-read-n.patch,383 bytes, patch)
2006-12-03 04:03 UTC, Denis Dupeyron (RETIRED)
Details | Diff
02-postinst.patch (02-postinst.patch,479 bytes, patch)
2006-12-03 04:10 UTC, Denis Dupeyron (RETIRED)
Details | Diff
03-typos.patch (03-typos.patch,739 bytes, patch)
2006-12-03 04:13 UTC, Denis Dupeyron (RETIRED)
Details | Diff
04-disk-handling.patch (04-disk-handling.patch,3.44 KB, patch)
2006-12-03 04:26 UTC, Denis Dupeyron (RETIRED)
Details | Diff
05-nwmovies.patch (05-nwmovies.patch,1.16 KB, patch)
2006-12-03 04:40 UTC, Denis Dupeyron (RETIRED)
Details | Diff
06-nwuser.patch (06-nwuser.patch,427 bytes, patch)
2006-12-03 04:41 UTC, Denis Dupeyron (RETIRED)
Details | Diff
07-nowin-fix.patch (07-nowin-fix.patch,603 bytes, patch)
2006-12-03 05:06 UTC, Denis Dupeyron (RETIRED)
Details | Diff
08-fix-perms.patch (08-fix-perms.patch,355 bytes, patch)
2006-12-03 05:36 UTC, Denis Dupeyron (RETIRED)
Details | Diff
09-retain-ini.patch (09-retain-ini.patch,691 bytes, patch)
2006-12-06 10:25 UTC, Denis Dupeyron (RETIRED)
Details | Diff
10-external-sdl.patch (10-external-sdl.patch,671 bytes, patch)
2006-12-06 10:34 UTC, Denis Dupeyron (RETIRED)
Details | Diff
11-nowin-warnings.patch (11-nowin-warnings.patch,1.76 KB, patch)
2006-12-06 10:41 UTC, Denis Dupeyron (RETIRED)
Details | Diff
01-subdir-fix.patch (01-subdir-fix.patch,2.05 KB, patch)
2006-12-06 10:52 UTC, Denis Dupeyron (RETIRED)
Details | Diff
02-IUSE.patch (02-IUSE.patch,654 bytes, patch)
2006-12-06 10:54 UTC, Denis Dupeyron (RETIRED)
Details | Diff
03-nwmovies.patch (03-nwmovies.patch,1.66 KB, patch)
2006-12-06 11:13 UTC, Denis Dupeyron (RETIRED)
Details | Diff
04-fixinstall.patch (04-fixinstall.patch,651 bytes, patch)
2006-12-06 11:26 UTC, Denis Dupeyron (RETIRED)
Details | Diff
nwn-data-1.29-r1.ebuild (nwn-data-1.29-r1.ebuild,15.98 KB, text/plain)
2006-12-06 11:47 UTC, Denis Dupeyron (RETIRED)
Details
nwn-1.68-r1.ebuild (nwn-1.68-r1.ebuild,8.18 KB, text/plain)
2006-12-06 11:51 UTC, Denis Dupeyron (RETIRED)
Details
09-retain-ini.patch (09-retain-ini.patch,702 bytes, patch)
2006-12-14 04:43 UTC, Denis Dupeyron (RETIRED)
Details | Diff
11-nowin-warnings.patch (11-nowin-warnings.patch,1.51 KB, patch)
2006-12-14 04:50 UTC, Denis Dupeyron (RETIRED)
Details | Diff
12-elog-typo.patch (12-elog-typo.patch,344 bytes, patch)
2006-12-14 04:55 UTC, Denis Dupeyron (RETIRED)
Details | Diff
13-movies.patch (13-movies.patch,2.69 KB, patch)
2006-12-16 10:04 UTC, Denis Dupeyron (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Denis Dupeyron (RETIRED) gentoo-dev 2006-10-22 06:01:49 UTC
Chris,

I'm currently retiring from Gentoo, as you may already know, and I'm packing up my stuff. I had this in my local overlay, so I cleaned it up a bit and here it is. This should close bug #83291 and bug #143362, but there's more thant just that.

Changelog, compared to nwn-data-1.29/nwn-1.68 :
* More descriptive in terms of what CD is needed and when, in all possible cases (nwn-data).
* Cleaned-up dependencies (nwn-data)
* Movies are now supported through nwmovies and BinkPlayer (nwn-data, nwn). Installation is either from the CDs with USE="nowin" or from a previous installation.
* All user data is now kept in ~/.nwn using nwuser (nwn-data, nwn).

Please find nwn-data-1.29-r1.ebuild, nwn-1.68-r1.ebuild and the new (backward compatible) fixinstall below. Do not hesitate to contact me in case you have any question.

Denis.
Comment 1 Denis Dupeyron (RETIRED) gentoo-dev 2006-10-22 06:03:16 UTC
Created attachment 100210 [details]
nwn-data-1.29-r1.ebuild
Comment 2 Denis Dupeyron (RETIRED) gentoo-dev 2006-10-22 06:03:51 UTC
Created attachment 100211 [details]
nwn-1.68-r1.ebuild
Comment 3 Denis Dupeyron (RETIRED) gentoo-dev 2006-10-22 06:04:23 UTC
Created attachment 100212 [details]
fixinstall
Comment 4 Denis Dupeyron (RETIRED) gentoo-dev 2006-10-22 06:10:25 UTC
Sorry, I forgot on line in the changelog :

* nls USE flag for forcing the installation in english eventhough you have LINGUAS set to one of the supported languages (quite a few users have complained about this in the past). In this case you'd want to set USE="-nls" for nwn-data and nwn in your /etc/portage/package.use.

Denis.
Comment 5 Chris Gianelloni (RETIRED) gentoo-dev 2006-10-23 07:09:38 UTC
Ehh... I'll check these out.  I've been updating the nwn-data and nwn ebuilds already for other reasons, so I'll see about incorporating these changes.  Of course, it might be a while since I'm going to have to manually pull out the changes by hand.
Comment 6 Chris Gianelloni (RETIRED) gentoo-dev 2006-10-23 07:10:05 UTC
...and accept it so Mr_Bones_ doesn't bug me to do it later... ;]
Comment 7 Denis Dupeyron (RETIRED) gentoo-dev 2006-10-23 10:17:30 UTC
(In reply to comment #5)
> Ehh... I'll check these out.  I've been updating the nwn-data and nwn ebuilds
> already for other reasons, so I'll see about incorporating these changes.  Of
> course, it might be a while since I'm going to have to manually pull out the
> changes by hand.

If you prefer a patch or would like me to incorporate these changes into your ebuilds (in which case you'd have to send them to me), just say so. The sooner the better, while it's still fresh in my lazy brain.

Denis.
Comment 8 Chris Gianelloni (RETIRED) gentoo-dev 2006-11-17 13:40:22 UTC
Well, I added my ebuilds (masked) to the tree today.  If you have the time and energy to make patches, I'd be all for it.  Otherwise, I'll get this implemented before I unmask it, but it'll likely take a bit longer.
Comment 9 Ryan Hill (RETIRED) gentoo-dev 2006-11-17 18:41:03 UTC
>>> Unpacking source...
sed: can't read /var/tmp/portage/games-rpg/nwn-data-1.29-r1/work/nwn/nwn: No such file or directory

!!! ERROR: games-rpg/nwn-data-1.29-r1 failed.
Call stack:
  ebuild.sh, line 1568:   Called dyn_unpack
  ebuild.sh, line 708:   Called src_unpack
  nwn-data-1.29-r1.ebuild, line 415:   Called die

!!! sed nwn

Comment 10 Denis Dupeyron (RETIRED) gentoo-dev 2006-11-17 23:30:47 UTC
(In reply to comment #8)
> Well, I added my ebuilds (masked) to the tree today.  If you have the time and
> energy to make patches, I'd be all for it.  Otherwise, I'll get this
> implemented before I unmask it, but it'll likely take a bit longer.

Great ! I'll have a look at them.

Denis.
Comment 11 Denis Dupeyron (RETIRED) gentoo-dev 2006-11-19 03:01:11 UTC
Created attachment 102331 [details, diff]
Patch to change 2 'linugas' occurences into 'linguas'

Chris,

I have found what seems to be 2 typos in the nwn-data ebuild. Two 'linugas' occurences that I suppose are actually 'linguas'. The patch above fixes those.

Also, I have started adding my stuff into your ebuilds, and I can't seem to download some of the language files to remake the digests. They're neither on Bioware's servers (or they're having issues since yesterday), or on our mirrors. Has the URL changed (I doubt, my guess is Bioware kicked them for being too old), and if not, could you please upload them on our mirrors ?

Denis.
Comment 12 Chris Gianelloni (RETIRED) gentoo-dev 2006-11-21 08:39:11 UTC
(In reply to comment #11)
> Also, I have started adding my stuff into your ebuilds, and I can't seem to
> download some of the language files to remake the digests. They're neither on
> Bioware's servers (or they're having issues since yesterday), or on our
> mirrors. Has the URL changed (I doubt, my guess is Bioware kicked them for
> being too old), and if not, could you please upload them on our mirrors ?

I cannot put them on our mirrors.  We were specifically asked not to put any of the NWN content on our mirrors.  Anyway, the download location is correct.  Bioware's downloads constantly suck, so I would just say to try again.  Also, I'd prefer it if any changes were sent as patches, rather then touching the ebuilds directly, since I am still making lots of modifications locally.
Comment 13 Denis Dupeyron (RETIRED) gentoo-dev 2006-11-22 13:19:18 UTC
Created attachment 102570 [details, diff]
Patch for nwn-data-1.29-r1.ebuild to fix URLs of language files.

(In reply to comment #12)
> I cannot put them on our mirrors.  We were specifically asked not to put any of
> the NWN content on our mirrors.  Anyway, the download location is correct. 
> Bioware's downloads constantly suck, so I would just say to try again.

Chris,

I tried and tried again, but couldn't download the files. So I looked around, and I found out that the language files have actually moved. Here's a second patch for nwn-data which fixes their URLs. While I was doing this, I have checked all other URLs, and they look OK.

I'll probably start the real work on these ebuilds over the week-end. BTW, there is a potential issue with nwmovies and/or nwuser on amd64. I had found tricks on  both Gentoo and Bioware forums to get them to compile. I can look for them again, but my point is that I don't have access to an amd64 to test them. Would you be able to do this (once I'm done modifying the ebuilds, I mean) ?

Denis.
Comment 14 Chris Gianelloni (RETIRED) gentoo-dev 2006-11-29 13:35:49 UTC
OK.  The URLs should be fixed (once this commit goes through)...
Comment 15 Ryan Hill (RETIRED) gentoo-dev 2006-11-29 20:46:30 UTC
i wonder if we couldn't implement the fullscreen toggling stuff by installing our own patched version libSDL-1.2.so.0.0.5 in /opt/nwn/lib.  

we'd have to use libsdl-1.2.9 since it was the last version before they overhauled fullscreen handling.  another reason for wanting our own build is that there are already a few pkgs that DEPEND on >=libsdl-1.2.10.

http://home.woh.rr.com/nwmovies/
https://bugs.gentoo.org/show_bug.cgi?id=129294

Comment 16 Denis Dupeyron (RETIRED) gentoo-dev 2006-12-03 04:03:02 UTC
Created attachment 103255 [details, diff]
01-read-n.patch

Here's the first in the series of patches I have promised. This first batch is for the nwn-data ebuild. They're numbered to indicate in what order they should be used to apply cleanly.

This one is a simple one-liner. As of version 3.2 (I think), bash requires an argument after 'read -n'. Without it, the ebuild goes in an endless loop.
Comment 17 Denis Dupeyron (RETIRED) gentoo-dev 2006-12-03 04:10:44 UTC
Created attachment 103256 [details, diff]
02-postinst.patch

This fixes what I think is an error in triggering the long postinst message that explains that files should be manually copied from a previous installation. I believe you want to show this message only when both cdinstall AND nowin aren't used. If either cdinstall or nowin is used, there is no need to manually copy anything.
Comment 18 Denis Dupeyron (RETIRED) gentoo-dev 2006-12-03 04:13:19 UTC
Created attachment 103257 [details, diff]
03-typos.patch

Fixes two minor and harmless typos, but, hey, while I was at it... ;o)
Comment 19 Denis Dupeyron (RETIRED) gentoo-dev 2006-12-03 04:26:56 UTC
Created attachment 103259 [details, diff]
04-disk-handling.patch

This one makes use of the CDROM_NAME variables of the cdrom functions in eutils.eclass. The output is clearer for the user, and the ebuild is slightly simpler.
Comment 20 Denis Dupeyron (RETIRED) gentoo-dev 2006-12-03 04:40:42 UTC
Created attachment 103261 [details, diff]
05-nwmovies.patch

Adds support for nwmovies.
Comment 21 Denis Dupeyron (RETIRED) gentoo-dev 2006-12-03 04:41:57 UTC
Created attachment 103262 [details, diff]
06-nwuser.patch

Adds support for nwuser.
Comment 22 Denis Dupeyron (RETIRED) gentoo-dev 2006-12-03 05:06:53 UTC
Created attachment 103265 [details, diff]
07-nowin-fix.patch

Fixes handling of the nowin USE flag.

When installing from the original CD set and with USE="cdinstall -nowin", the ebuild wants to unpack the huge nwresources tarball. But with -nowin, this tarball isn't listed in SRC_URI, so it can't find it.

With cdinstall in the USE flags, the only things that are missing are chitin.key, some useless text file, and a few demo modules. So I have fixed the ebuild so that it fetches the only one that's really needed (chitin.key) from CD1. Which makes that the 1.2 GB nwresource tarball isn't needed anymore. Yay!
Comment 23 Denis Dupeyron (RETIRED) gentoo-dev 2006-12-03 05:36:10 UTC
Created attachment 103269 [details, diff]
08-fix-perms.patch

Fixes permissions of files directly copied from CD3 of the original CD set.
Comment 24 Denis Dupeyron (RETIRED) gentoo-dev 2006-12-06 10:25:00 UTC
Created attachment 103466 [details, diff]
09-retain-ini.patch

Renames nwn.ini to nwn.ini.default, and copies the link to nwn.ini.default to nwn.ini in the user's directory only the first time nwn is started.

This allows users to retain their option settings and not have them overwritten every time they play.
Comment 25 Denis Dupeyron (RETIRED) gentoo-dev 2006-12-06 10:34:42 UTC
Created attachment 103467 [details, diff]
10-external-sdl.patch

Switches to the external SDL library by default. nwn-data already depends on >=libSDL-1.2.5, so this is OK, and we can only assume that, being specifically compiled for the machine that's running it, it will be more optimized. Although it probably doesn't matter much.

Plus, it solves some issues that users may have with alsa!=oss.

Note that nwmovies needs to know what SDL library to use, so this needs to be in sync with what happens in src_compile() in the nwn ebuild (see below). And since most users will switch to the external SDL anyway, doing it ahead of them saves us having them ranting about nwmovies not working after they switched.
Comment 26 Denis Dupeyron (RETIRED) gentoo-dev 2006-12-06 10:41:38 UTC
Created attachment 103468 [details, diff]
11-nowin-warnings.patch

Warns the user about what can, can't, may or will be installed depending on various combinations of nowin and other USE flags.

It also allows installing with both cdinstall and nowin. It seems silly at first, but cdinstall doesn't install the (mostly useless) demo modules, and nowin doesn't install SoU, HoU, and the movies. Thus, those who want the whole thing can have it, at the price of playing with a lot of CDs and downloading a 1.1+ GB tarball.
Comment 27 Denis Dupeyron (RETIRED) gentoo-dev 2006-12-06 10:52:06 UTC
Created attachment 103470 [details, diff]
01-subdir-fix.patch

From now on, the patches are for the nwn ebuild, not nwn-data.

This one fixes the creation of multiple language subdirectories, as described in [1].

And since it uses Chris's trick of symlinking stuff from a user's subdirectory, it makes the nwuser patch above (see comment #21) useless.

[1] https://bugs.gentoo.org/show_bug.cgi?id=155831#c13
Comment 28 Denis Dupeyron (RETIRED) gentoo-dev 2006-12-06 10:54:12 UTC
Created attachment 103471 [details, diff]
02-IUSE.patch

IUSE fixes.
Comment 29 Denis Dupeyron (RETIRED) gentoo-dev 2006-12-06 11:13:35 UTC
Created attachment 103476 [details, diff]
03-nwmovies.patch

Adds nwmovies support.

Note that I have no idea if this will work for amd64, as I don't have access to one. If it doesn't work, maybe using a precompiled binary like it is done for nwmouse is a solution. Maybe there are other solutions, I don't know.

Note also that there are TEXTREL and exec stacks warnings, but there's no point looking into that until it's confirmed to work on amd64 or a solution is found.
Comment 30 Denis Dupeyron (RETIRED) gentoo-dev 2006-12-06 11:26:45 UTC
Created attachment 103477 [details, diff]
04-fixinstall.patch

Due to the multilanguage installation in subdirectories, some files or directories could not be found anymore by fixinstall. Luckily, since they are installed by the ebuild (and not manually copied from a previous install as it can be the case for some data files), they don't need to be fixed. So I removed their names from fixinstall.

This was the last patch.
Comment 31 Denis Dupeyron (RETIRED) gentoo-dev 2006-12-06 11:47:15 UTC
Created attachment 103480 [details]
nwn-data-1.29-r1.ebuild

Final ebuild for nwn-data.
Comment 32 Denis Dupeyron (RETIRED) gentoo-dev 2006-12-06 11:51:33 UTC
Created attachment 103481 [details]
nwn-1.68-r1.ebuild

Final ebuild for nwn.
Comment 33 Anton Romanov 2006-12-07 02:04:28 UTC
(In reply to comment #31)
> Created an attachment (id=103480) [edit]
> nwn-data-1.29-r1.ebuild
> 
> Final ebuild for nwn-data.
> 

why can't you add unpacking of KingMakerSetup.exe for diamond pack?
Comment 34 Denis Dupeyron (RETIRED) gentoo-dev 2006-12-07 11:35:33 UTC
(In reply to comment #33)
> why can't you add unpacking of KingMakerSetup.exe for diamond pack?

Because I don't own a copy of the diamond pack and I had never heard of this KingMakerSetup.exe before today.

Why don't you write a patch for it and post it here ?

Denis.
Comment 35 Denis Dupeyron (RETIRED) gentoo-dev 2006-12-08 10:35:03 UTC
(In reply to comment #25)
> Created an attachment (id=103467) [edit]
> 10-external-sdl.patch
> 
> Switches to the external SDL library by default.

Maybe not such a good idea after all. After nwmovies failed today to locate the patterns to start patching the executable, I had a quick look at the code for nwmovies. My conclusion is that in the context of Gentoo, and assuming you'd use the external SDL, the whole thing has a better probability to fail than to work (and Jakub will love us for the amount of bugs that'll generate). Plus, using the included SDL library (maybe along with a precompiled libelf like for nwmouse) would probably solve the amd64 compatibility issue.

So here's what we could do :
* forget about (nwn-data's) 10-external-sdl.patch
* fix (nwn's) 03-nwmovies.patch accordingly (easy)
* get a precompiled libelf if we need it, why not the one from nwmouse (BTW, why not go all the way? Couldn't we package nwouse in nwn's ebuild so that everybody gets it automatically? In other words, are there cases when it's not a good idea to use nwmouse?)
* let users know that if they use the external SDL at all they're on their own
* maybe drop the SDL completely from RDEPEND

We could also provide a precompiled nwmovies.so.

Chris (and others), what do you think ?

Denis.
Comment 36 Chris Gianelloni (RETIRED) gentoo-dev 2006-12-08 14:50:17 UTC
Actually, I *really* prefer that individual updates are done as individual bugs.  If you have code for Kingmaker, file a separate bug.

Denis, I'll be looking into these as time permits.  I have an AMD64, so I'll be able to test that everything works there.  Also, I am likely to *not* take the SDL patch.  With other binary games, we force the user to use any libraries shipped with the game over system libraries.  This makes the support easier for upstream, as they don't have to worry about what we have changed.  In the case of some upstreams, they refused to support Gentoo for the longest time until I informed them of this games policy.  We consider the shipped libraries as part of the game package, and only replace them if they're actually broken.

Now, what changes do I need to make if I'm not using the 10-external-sdl patch?
Comment 37 Anton Romanov 2006-12-09 03:39:16 UTC
(In reply to comment #36)
> Actually, I *really* prefer that individual updates are done as individual
> bugs.  If you have code for Kingmaker, file a separate bug.
bug #157595
Comment 38 Chris Gianelloni (RETIRED) gentoo-dev 2006-12-12 08:37:46 UTC
I would prefer that nwmovies is a separate ebuild, like nwmouse is.  The reason for it is simple.  Not everybody wants it, and it can potentially cause issues with the game, so being able to disable/remove the package when doing debugging is paramount, especially on a huge binary game such as this.
Comment 39 Denis Dupeyron (RETIRED) gentoo-dev 2006-12-12 10:08:46 UTC
(In reply to comment #38)
> I would prefer that nwmovies is a separate ebuild, like nwmouse is.

That's how I started working on nwmovies, but I can't remember why I merged it into the main ebuild at some point. Anyway, your reasons for making it separate are more than valid, so let's do it this way.

Sorry for not being more reactive to your requests above, but I'm rather busy at the moment. I'll try and post an ebuild for nwmovies and fix the patches that are impacted before the week-end.

Do we need a 'movies' or similar USE flag in nwn-data to avoid installing the movie files in case the user doesn't want to install nwmovies? Or do we install them from the nwmovies ebuild (forcing the user to more disk juggling)? Any other ideas ? Don't care ?

Denis.
Comment 40 Chris Gianelloni (RETIRED) gentoo-dev 2006-12-12 14:50:14 UTC
Don't worry about being responsive, you've been awesome.  You really are helping me get lots of things I've wanted to put into these ebuilds done on a much quicker time scale than I would have alone.  As for the movies, I would say using the "videos" USE flag works, since that's what we've been using on other ebuilds.
Comment 41 Denis Dupeyron (RETIRED) gentoo-dev 2006-12-14 04:43:10 UTC
Created attachment 104034 [details, diff]
09-retain-ini.patch

New version of the retain-ini patch for nwn-data.
Comment 42 Denis Dupeyron (RETIRED) gentoo-dev 2006-12-14 04:50:59 UTC
Created attachment 104035 [details, diff]
11-nowin-warnings.patch

New version of the nowin-warnings patch that gives feedback to the user about nowin handling and allows emerging with nowin and cdinstall at the same time.
Comment 43 Denis Dupeyron (RETIRED) gentoo-dev 2006-12-14 04:55:42 UTC
Created attachment 104036 [details, diff]
12-elog-typo.patch

Fixes typo in pkg_postinst (elgo!=elog).
Comment 44 Denis Dupeyron (RETIRED) gentoo-dev 2006-12-14 05:03:46 UTC
Comment on attachment 104034 [details, diff]
09-retain-ini.patch

>--- nwn-data-1.29-r1.ebuild.orig	2006-12-14 13:30:01.000000000 +0100
>+++ nwn-data-1.29-r1.ebuild	2006-12-14 13:32:58.000000000 +0100
>@@ -364,6 +364,10 @@
> 	fi
> 	# These files aren't needed and come from the patches (games-rpg/nwn)
> 	rm -f data/patch.bif patch.key
>+
>+	# Rename nwn.ini to avoid overwriting it every time
>+	mv nwn.ini nwn.ini.default
>+
> 	sed -i -e 's,/bin/sh,/bin/bash,g' -e '\:^./nwmain .*:i \
> '"dir='${dir}';LINGUAS='${LINGUAS}'"' \
> die() { \
>@@ -406,6 +410,9 @@
> 	done \
> fi \
> cd "${p}" || die "cd ${p}" \
>+if [[ ! -a nwn.ini ]]; then \
>+	cp nwn.ini.default nwn.ini \
>+fi \
> if [[ -r ./nwmouse.so ]]; then \
> 	export XCURSOR_PATH="$(pwd)" \
> 	export XCURSOR_THEME=nwmouse \
Comment 45 Denis Dupeyron (RETIRED) gentoo-dev 2006-12-16 09:56:35 UTC
(In reply to comment #44)
> (From update of attachment 104034 [details, diff] [edit])

What was that ? I don't remember being drunk on thursday night ? Was I *that* drunk then ? ;o)

Anyway, we're almost there. nwn-data just needs another patch to support movies (see next post below). The nwn ebuild is OK, except we don't need 03-nwmovies.patch since we want nwmovies to come from another ebuild. And we need that nwmovies ebuild, which I will post where it belongs, that is bug #143362. It's done, it only needs some more testing and polishing, so I'll post it later today.

Denis.
Comment 46 Denis Dupeyron (RETIRED) gentoo-dev 2006-12-16 10:04:46 UTC
Created attachment 104146 [details, diff]
13-movies.patch

OK, this was the last one.

Here's a list of what patches are needed (because this all looks like a big mess, now).

nwn-data :
01-read-n.patch
02-postinst.patch
03-typos.patch
04-disk-handling.patch
07-nowin-fix.patch
08-fix-perms.patch
09-retain-ini.patch
11-nowin-warnings.patch
12-elog-typo.patch
13-movies.patch

nwn:
01-subdir-fix.patch
02-IUSE.patch
04-fixinstall.patch

Denis.
Comment 47 Chris Gianelloni (RETIRED) gentoo-dev 2006-12-19 08:44:43 UTC
I've now updated all of this in the tree with the patch list from comment #46 so we should be golden.
Comment 48 Denis Dupeyron (RETIRED) gentoo-dev 2006-12-22 04:19:35 UTC
(In reply to comment #47)
> I've now updated all of this in the tree with the patch list from comment #46
> so we should be golden.

Cool !

Shouldn't bugs #83291 and #157988 be closed, then ?

Denis.
Comment 49 Chris Gianelloni (RETIRED) gentoo-dev 2006-12-22 08:45:30 UTC
I haven't added the nwmovies package yet, so 143362 needs to stay open.  I'll close 83291 once I unmask this beast.  I still want to try to fix any remaining issues before I unmask it.  Do you have the Diamond pack?  If so, does it work?

My set (Original + SoU + HoU = Deluxe) worked just fine, but I cannot test any of the other sets.  If it does work, please comment on the Diamond not working bug.

Thanks
Comment 50 Denis Dupeyron (RETIRED) gentoo-dev 2007-01-19 19:23:34 UTC
(In reply to comment #49)

Sorry, I missed that comment as I was out of town for Christmas, and then failed to see it.

> Do you have the Diamond pack? If so, does it work?

I only have the original CD set and both expansion packs, so I can't help here. Maybe we could directly ping our users that have the Diamond pack and ask them to test the new stuff ? Do you want me to do it ?

Denis.
Comment 51 Ryan Hill (RETIRED) gentoo-dev 2007-01-19 19:47:24 UTC
No, Diamond isn't working.  I have a patch on bug #155831.

I also can't get NWN to work with xcb, but that's another bug.