Opened 11 years ago

Closed 11 years ago

#29 closed defect (fixed)

libtool: create repo and import patches by KOMH

Reported by: dmik Owned by:
Priority: major Milestone:
Component: Version:
Severity: Keywords:
Cc:

Description

Many autoconf-based projects need libtool (e.g. expat, see #23). There is a port of libtool to OS/2 buy KOMH already: http://hobbes.nmsu.edu/download/pub/os2/dev/util/libtool-2.4.2.zip. We will check it, import and create an RPM for it.

Change History (3)

comment:1 by dmik, 11 years ago

Of course it's not as simple as it could be. It seems that the port of KOMH is EMX-oriented (no support for emxomfld etc). So some work is needed. It doesn't work in our RPM env out of the box. There is a number of small problems besides adding OMF support, like no EOLs when generating .DEF files on OS/2 — some unexpected expansion turns \n into just n. KOMH must be using a different shell that does it right for some strange reason.

comment:2 by dmik, 11 years ago

Type: taskdefect

I fixed the \n problem in r764. This script shows the problem:

E="printf %s\\n"
a="\$E hello,world"
cs=$a
eval c=\"$cs\"
eval "$c"

Even if $E is escaped at line 1, it's not enough since the resulting cmd is evaluated twice. This works:

E="printf %s\\n"
a="\\\$E hello,world"
cs=$a
eval c=\"$cs\"
eval "$c"

Note that what you see in the commit is the "source" version. This version gets escaped once by the installer script (which makes it look like the example above).

Also, I fixed OMF generation in r765. There's also a small fix in r766. With this, this ticket is considered to be done. A libtool RPM will follow soon.

comment:3 by dmik, 11 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.