Bug#776540: game-data-packager: please add support for games working with gemrbd engine

Markus Koschany apo at gambaru.de
Sun Oct 4 11:27:39 UTC 2015


Am 03.10.2015 um 22:04 schrieb Simon McVittie:
[...]
> We don't currently have a good way to spell "the file with sha1sum
> 1234... should be installed as foo1.dat in the English data but foo2.dat
> in German". Is that what you're asking for?
> 
> If some files are identical, there's syntax for adding symlinks (see
> tyrian.yaml).

Hi,

I have pushed my latest revision to branch baldurs-gate. My problem is
that I have seven files with identical names but different sizes and
hashsums. e.g.

 # English Linux installer
  842       e5526c907bb56ec72f8e6cf4eb30fc2e Baldur.ini

 # German Linux installer
  905       2dc7b81c210ed13ea88f509c765d4b76 Baldur.ini

My first attempt was to list all files from both installers under
size_and_md5: and sha1sums: but obviously g-d-p doesn't like this scheme
and fails with an assertion error

AssertionError: ('trying to set size of "%s" to both %d and %d',
'Baldur.ini', 842, 905)


I would like to express:

If Baldur.ini in GameData with size 905 and md5sum
2dc7b81c210ed13ea88f509c765d4b76
	is_valid: true
	install_to baldurs-gate1-de package

If Baldur.ini in directory with size 905 and md5sum
2dc7b81c210ed13ea88f509c765d4b76 AND Baldur.ini in directory with size
842 e5526c907bb56ec72f8e6cf4eb30fc2e Baldur.ini
	raise exception ("That doesn't look like a valid archive")

If Baldur.ini with size and hashsum as declared in baldurs-gate-1.yaml
NOT IN GameData then give up

The current workaround seems to be to rename those files and to append a
language specific suffix. Then one has to declare another stanza where
"file x" is installed as "file y". (e.g. dig.yaml) Baldur's Gate from
gog requires a manual repack, so this technique is quite annoying.

Another problem: the English version ships

	data/AREA1700.BIF

the German version

	Data/AREA1700.BIF
	
Both files are identical. My hope was that g-d-p would recognize the
hashsums for both of them when I declare
	
  25300442  496788a2ce730353acf26d2bebf0471c AREA1700.BIF

and accepts that I install the same file into the data directory
(English version) or the Data directory (German version). Unfortunately
this fails with another error message at build time.
For the last issue symlinking would be an option but this is rather
inconvenient when you have to process a lot of files like that.

Markus

	


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-games-devel/attachments/20151004/cc8facbd/attachment.sig>


More information about the Pkg-games-devel mailing list