Package: eclipse-titan
Version: 6.3.0-1
Severity: important

The TITAN makefile generator will generate makefiles on Debian whcih will not 
build.

I suppose the reason is that Debian installs the TITAN 
files/libraries/executables in
a structure that's different from what upstream TITAN assumes, and that as a 
result,
the generated Makefile will not work.

During the past months, I've been using the following sed-script in many of my 
TITAN
projects and use it to post-process the generated Makefiles.  That's a kludge, 
but it
works:

sed -i -e 's/# TTCN3_DIR = /TTCN3_DIR = \/usr/' Makefile
sed -i -e 's/LDFLAGS = /LDFLAGS = -L \/usr\/lib\/titan /' Makefile
sed -i -e 's/CPPFLAGS = -D$(PLATFORM) -I$(TTCN3_DIR)\/include/CPPFLAGS = 
-D$(PLATFORM) -I$(TTCN3_DIR)\/include -I\/usr\/include\/titan/' Makefile
# below lines were not needed for TITAN 6.1.0 but are for TITAN >= 6.3.0
sed -i -e 's/TTCN3_DIR = $/TTCN3_DIR = \/usr/' Makefile
sed -i -e 's/\/bin\/compiler/\/bin\/ttcn3_compiler/' Makefile

The latest version of this work-around/kludge is maintained at
http://git.osmocom.org/osmo-ttcn3-hacks/tree/regen-makefile.sh

A proper solution would probably be for Debian to apply a patch on the TITAN 
source code
to make sur the generated Makefile uses the paths to which the binaries + 
libraries are
installed in Debian.


-- System Information:
Debian Release: buster/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.14.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Init: systemd (via /run/systemd/system)

Versions of packages eclipse-titan depends on:
ii  default-jdk   2:1.8-59
ii  expect        5.45.3-1
ii  libc6         2.25-3
ii  libgcc1       1:7.2.0-17
ii  libncurses5   6.0+20171125-1
ii  libpcap-dev   1.8.1-5
ii  libpcre3-dev  2:8.39-8
ii  libsctp-dev   1.0.17+dfsg-1+b1
ii  libssl-dev    1.1.0g-2
ii  libssl1.1     1.1.0g-2
ii  libstdc++6    7.2.0-17
ii  libtinfo5     6.0+20171125-1
ii  libxml2       2.9.4+dfsg1-5.1
ii  libxml2-dev   2.9.4+dfsg1-5.1
ii  make          4.1-9.1
ii  perl          5.26.1-3
ii  python        2.7.14-3

eclipse-titan recommends no packages.

eclipse-titan suggests no packages.

-- no debconf information

Reply via email to