Opened 18 years ago

Closed 18 years ago

Last modified 5 years ago

#2487 closed defect (fixed)

DEB: debian/control generated incorrectly

Reported by: SF/ys_ Owned by: fingolfin
Priority: normal Component: Port: Linux
Version: Keywords:
Cc: Game:

Description

The debian/control file is generated incorrectly,
because an incorrect version string. It looks like
this:

Version: -0cvs20060204

Error is in debian/prepare, line 7

VERSION=`sed -n -e 's/CVS//g' -e 's/^const char
\*gScummVMVersion = "\(.*\)";/\1/p' base/main.cpp
`-0cvs`date +%Y%m%d`

It seems version is now defined in a constant at
base/internal_version.h and then it's called from
main.cpp, so it fails to check version.

Changing that line by this one seems to fix it:

VERSION=`sed -n -e 's/#define //g' -e 's/cvs//g' -e
's/SCUMMVM_VERSION "\(.*\)"/\1/p'
base/internal_version.h `-0cvs`date +%Y%m%d`

Ticket imported from: #1423793. Ticket imported from: bugs/2487.

Change History (3)

comment:1 by fingolfin, 18 years ago

Owner: set to fingolfin
Resolution: fixed
Status: newclosed

comment:2 by fingolfin, 18 years ago

This has been fixed in SVN (see also patch #1434866).

comment:3 by digitall, 5 years ago

Component: Port: Linux
Note: See TracTickets for help on using tickets.