<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>115761</bug_id>
          
          <creation_ts>2005-12-16 05:05 0000</creation_ts>
          <short_desc>new version of lgeneral (1.2_beta10)</short_desc>
          <delta_ts>2006-08-25 18:53:31 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Games</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>gunix@comhem.se</reporter>
          <assigned_to>games@gentoo.org</assigned_to>
          <cc>hydonsingore@educities.edu.tw</cc>

      

      
          <long_desc isprivate="0">
            <who>gunix@comhem.se</who>
            <bug_when>2005-12-16 05:05:28 0000</bug_when>
            <thetext>version bump

Reproducible: Always
Steps to Reproduce:
1.
2.
3.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mr_bones_@gentoo.org</who>
            <bug_when>2005-12-16 07:11:28 0000</bug_when>
            <thetext>feel free to attach a working ebuild.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>gunix@comhem.se</who>
            <bug_when>2005-12-31 05:03:26 0000</bug_when>
            <thetext>Created an attachment (id=75861)
ebuild for beta 10

I haven&apos;t tested it yet, but it might perhaps work?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>todd.merrill@comcast.net</who>
            <bug_when>2006-06-04 11:10:48 0000</bug_when>
            <thetext>No, it doesn&apos;t work.

LGeneral 1.2_beta12 was recently released, and I&apos;ve been trying to get it to work with Portage.

As it turns out, I can&apos;t get anything greater than 1.2_beta9 to work with the Portage ebuild.  Simply renaming the ebuild leads to this:

i686-pc-linux-gnu-gcc  -g -Wall  -Wl,-O1 -o lgc-pg  lgc_pg-main.o lgc_pg-units.o lgc_pg-shp.o lgc_pg-nations.o lgc_pg-terrain.o lgc_pg-maps.o lgc_pg-scenarios.o lgc_pg-list.o lgc_pg-misc.o lgc_pg-parser.o  ../util/libutil.a -lSDL -lpthread
i686-pc-linux-gnu-gcc: ../util/libutil.a: No such file or directory
i686-pc-linux-gnu-gcc  -g -Wall  -Wl,-O1 -o shptool  shptool-shptool.o shptool-misc.o shptool-shp.o  ../util/libutil.a -lSDL -lpthread
i686-pc-linux-gnu-gcc: ../util/libutil.a: No such file or directory
make[1]: *** [lgc-pg] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [shptool] Error 1
make[1]: Leaving directory `/var/tmp/portage/lgeneral-1.2_beta12/work/lgc-pg/lgc-pg&apos;
make: *** [all-recursive] Error 1

/var/tmp/portage/lgeneral-1.2_beta12/work/lgc-pg/util/libutil.a does not exist.

If I comment out line 40, cd lgc-pg, I can get as far as lgc-pg converting the units graphics data, but it stops:

LGeneral Converter for Panzer General (DOS version) v1.2beta-12
Copyright 2002-2005 Michael Speck
Released under GNU GPL
---
Settings:
  Source: /var/tmp/portage/lgeneral-1.2_beta12/work/pg-data
  Destination: /var/tmp/portage/lgeneral-1.2_beta12/image///usr/share/games/lgeneral
  Use Individual Palettes
Converting:
  nation database...
  nation flag graphics...
  unit data base...
overwrite flags of StuGIIIb to : artillery</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>todd.merrill@comcast.net</who>
            <bug_when>2006-06-04 11:10:48 0000</bug_when>
            <thetext>No, it doesn&apos;t work.

LGeneral 1.2_beta12 was recently released, and I&apos;ve been trying to get it to work with Portage.

As it turns out, I can&apos;t get anything greater than 1.2_beta9 to work with the Portage ebuild.  Simply renaming the ebuild leads to this:

i686-pc-linux-gnu-gcc  -g -Wall  -Wl,-O1 -o lgc-pg  lgc_pg-main.o lgc_pg-units.o lgc_pg-shp.o lgc_pg-nations.o lgc_pg-terrain.o lgc_pg-maps.o lgc_pg-scenarios.o lgc_pg-list.o lgc_pg-misc.o lgc_pg-parser.o  ../util/libutil.a -lSDL -lpthread
i686-pc-linux-gnu-gcc: ../util/libutil.a: No such file or directory
i686-pc-linux-gnu-gcc  -g -Wall  -Wl,-O1 -o shptool  shptool-shptool.o shptool-misc.o shptool-shp.o  ../util/libutil.a -lSDL -lpthread
i686-pc-linux-gnu-gcc: ../util/libutil.a: No such file or directory
make[1]: *** [lgc-pg] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [shptool] Error 1
make[1]: Leaving directory `/var/tmp/portage/lgeneral-1.2_beta12/work/lgc-pg/lgc-pg&apos;
make: *** [all-recursive] Error 1

/var/tmp/portage/lgeneral-1.2_beta12/work/lgc-pg/util/libutil.a does not exist.

If I comment out line 40, cd lgc-pg, I can get as far as lgc-pg converting the units graphics data, but it stops:

LGeneral Converter for Panzer General (DOS version) v1.2beta-12
Copyright 2002-2005 Michael Speck
Released under GNU GPL
---
Settings:
  Source: /var/tmp/portage/lgeneral-1.2_beta12/work/pg-data
  Destination: /var/tmp/portage/lgeneral-1.2_beta12/image///usr/share/games/lgeneral
  Use Individual Palettes
Converting:
  nation database...
  nation flag graphics...
  unit data base...
overwrite flags of StuGIIIb to : artillery°suppr_fire
Jadgpanzer 38 -&gt; Jagdpanzer 38          [correct spelling]
overwrite flags of StuG IV to : artillery°suppr_fire
Jadgpz IV/48 -&gt; Jagdpz IV/48            [correct spelling]
Jadgpz IV/70 -&gt; Jagdpz IV/70            [correct spelling]
JadgPanther -&gt; JagdPanther              [correct spelling]
JadgTiger -&gt; JagdTiger          [correct spelling]
ST BT-5 gets initiative bonus +3
ST BT-7 gets initiative bonus +3
ST T-28M1 gets initiative bonus +3
ST T-34/40 gets initiative bonus +3
ST T-34/41 gets initiative bonus +3
ST T-34/43 gets initiative bonus +3
ST T-34/85 gets initiative bonus +3
ST T-70 gets initiative bonus +3
ST T-60 gets initiative bonus +3
ST T-40 gets initiative bonus +3
ST KV-1/39 gets initiative bonus +3
ST KV-1/41 gets initiative bonus +3
ST KV-1/42 gets initiative bonus +3
ST KV-2 gets initiative bonus +3
ST KV-85 gets initiative bonus +3
ST IS-2 gets initiative bonus +3
overwrite flags of IT Sem M-40 to : artillery°suppr_fire
overwrite flags of IT Sem M-42M to : artillery°suppr_fire
  unit graphics...
/var/tmp/portage/lgeneral-1.2_beta12/work/lgc-pg/lgc-pg/share/games/lgeneral/convdata/strength.bmp: Couldn&apos;t open /var/tmp/portage/lgeneral-1.2_beta12/work/lgc-pg/lgc-pg/share/games/lgeneral/convdata/strength.bmp
*** glibc detected *** /var/tmp/portage/lgeneral-1.2_beta12/work/lgc-pg/lgc-pg/lgc-pg: double free or corruption (out): 0xa7ee8178 ***
/usr/local/portage/games-strategy/lgeneral/lgeneral-1.2_beta12.ebuild: line 44:  7115 Aborted                 SDL_VIDEODRIVER=dummy &quot;${WORKDIR}/lgc-pg/lgc-pg/lgc-pg&quot; -s &quot;${WORKDIR}/${DATA}&quot; -d &quot;${D}/${GAMES_DATADIR}/lgeneral&quot;

The paths are all messed up.  However, it worked for converting some fo the previous databases.  It seems the lgc-pg is appending it&apos;s working directory to the path.  Interestingly, libutil.a exists this time around.

I don&apos;t know enough about ebuilds to fix this.  Believe me, I&apos;ve tried.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>azamat.hackimov@gmail.com</who>
            <bug_when>2006-08-09 05:13:27 0000</bug_when>
            <thetext>This is error in code lgc-pg. lgc-pg for working must be placed in /usr/bin, not /usr/games/bin or somewhere.

Location of problem:
/lgc-pg/misc.c:418
In function *get_gamedir(void):
    static const char suffix[] = &quot;/share/games/lgeneral&quot;;

Below suffix added to ${PREFIX} (for ebuild - ${GAMES_PREFIX}, or /usr/games) instead to ${GAMES_DATADIR_BASE} (/usr/share)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>tupone@gentoo.org</who>
            <bug_when>2006-08-25 18:53:31 0000</bug_when>
            <thetext>1.2 beta 12 version is now in portage. Thanks for report.</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>75861</attachid>
            <date>2005-12-31 05:03 0000</date>
            <desc>ebuild for beta 10</desc>
            <filename>lgeneral-1.2_beta10.ebuild</filename>
            <type>text/plain</type>
            <data encoding="base64">IyBDb3B5cmlnaHQgMTk5OS0yMDA1IEdlbnRvbyBGb3VuZGF0aW9uCiMgRGlzdHJpYnV0ZWQgdW5k
ZXIgdGhlIHRlcm1zIG9mIHRoZSBHTlUgR2VuZXJhbCBQdWJsaWMgTGljZW5zZSB2MgojICRIZWFk
ZXI6IC92YXIvY3Zzcm9vdC9nZW50b28teDg2L2dhbWVzLXN0cmF0ZWd5L2xnZW5lcmFsL2xnZW5l
cmFsLTEuMl9iZXRhMTAuZWJ1aWxkLHYgMS40IDIwMDUvMTEvMDkgMDE6MzI6MDIgbXJfYm9uZXIg
RXhwICQKCmluaGVyaXQgZXV0aWxzIGdhbWVzCgpEQVRBPXBnLWRhdGEKTVlfUD0iJHtQL18vfSIK
TVlfUD0iJHtNWV9QL2JldGEvYmV0YS19IgpERVNDUklQVElPTj0iQSBQYW56ZXIgR2VuZXJhbCBj
bG9uZSB3cml0dGVuIGluIFNETCIKSE9NRVBBR0U9Imh0dHA6Ly9sZ2FtZXMuc291cmNlZm9yZ2Uu
bmV0L2luZGV4LnBocD9wcm9qZWN0PUxHZW5lcmFsIgpTUkNfVVJJPSJtaXJyb3I6Ly9zb3VyY2Vm
b3JnZS9sZ2VuZXJhbC8ke01ZX1B9LnRhci5negoJbWlycm9yOi8vc291cmNlZm9yZ2UvbGdlbmVy
YWwvJHtEQVRBfS50YXIuZ3oiCgpMSUNFTlNFPSJHUEwtMiIKU0xPVD0iMCIKS0VZV09SRFM9In54
ODYiCklVU0U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