Opened 10 years ago

Closed 10 years ago

#84 closed defect (invalid)

Our bash port is broken, and doesn't work with the RPM/YUM environment properly

Reported by: dbanet Owned by:
Priority: major Milestone: milestone1
Component: rpm Version:
Severity: Keywords:
Cc:

Description

For example, let's take the coreutils package:

[C:\]yum install coreutils
Setting up Install Process
Package coreutils-8.6-11.oc00.i386 already installed and latest version
Nothing to do

And let's take for example the env utility.
As you may see, the coreutils RPM package contains this tool, \usr\bin\env.exe, but also ships with another file, \usr\bin\env:

[C:\]ls \usr\bin\env*
\usr\bin\env  \usr\bin\env.exe  \usr\bin\envset.cmd

It (the \usr\bin\env file) has got the following content:

/@unixroot/usr/bin/env.exe

Those files exist for many many other utilities, and were obviously created for some reason, but bash (also obviously) fails to handle them:

[WORKSTATION|C:/]env
bash.exe: Execution failed because of module "C:\USR\BIN\ENV"
bash.exe: c:/USR/BIN/env: No such file or directory

But if I delete the \usr\bin\env file:

[WORKSTATION|C:/]rm --verbose /usr/bin/env
removed `/usr/bin/env'

All things get back to normal:

[WORKSTATION|C:/]env
SOMBASE=C:\Util\OS2TK45\som
SMINCLUDE=C:\APPS\OS2TK45\h;C:\APPS\OS2TK45\idl;.;C:\APPS\OS2TK45\som\include;C:\Util\OS2TK45\h;C:\Util\OS2TK45\idl;C:\Util\OS2TK45\som\include;
IKEYMAN_HOME=C:\IBMGSK
MMBASE=C:\MMOS2;
WORKPLACE_NATIVE=0
USER_INI=C:\OS2\OS2.INI
JAVA_HIGH_MEMORY=1
HOSTNAME=WORKSTATION
MMREF=MMREF1.INF+MMREF2.INF+MMREF3.INF
IPF_KEYS=SBCS
DMIPATH=C:\DMISL\BIN
DIRCMD=/V
TMPDIR=C:\var\temp
C1=VBE2GRAD
DPATH=C:\APPS\OS2TK45\som\common\system;C:\APPS\OS2TK45\som\msg;C:\APPS\OS2TK45\msg;C:\MPTN;C:\IBMCOM;C:\IBMLAN\NETPROG;C:\IBMLAN;C:\MUGLIB;C:\ECS\LANG;C:\IBMCOM\MACS;C:\OS2;C:\OS2\SYSTEM;C:\OS2\MDOS\WINOS2;C:\OS2\INSTALL;C:\;C:\OS2\BITMAP;C:\OS2\MDOS;C:\OS2\APPS;C:\MMOS2;C:\MMOS2\INSTALL;C:\APPS\4OS2;C:\Util\OS2TK45\som\common\system;C:\Util\OS2TK45\som\msg;C:\Util\OS2TK45\msg;
INIT_FILE_NAMES=netgui
SYSTEM_INI=C:\OS2\OS2SYS.INI
WPS_COMMUNICATION=YES
VIDEO_DEVICES=VIO_SVGA
SOMDDIR=C:\OS2\ETC\DSOM
OS=ecs
LIBC_HOOK_DLLS=C:\OS2\DLL\klibccfg.dll@_kLIBCInitPath!pathrewrite
ANT_HOME=C:\usr
SMCLASSES=wptypes.idl
USER=root
UNZIPOPT=-C
RUNWORKPLACE=C:\OS2\PMSHELL.EXE
IKEYMAN50_HOME=C:\IBMGSK50
UNIXROOT=C:
TEMP=C:\var\temp
ETC=C:\MPTN\ETC
RESTARTOBJECTS=STARTUPFOLDERSONLY,REBOOTONLY
PERLLIB_PREFIX=/perl5/lib;C:/usr/lib
LIB=C:\APPS\OS2TK45\som\lib;C:\APPS\OS2TK45\lib;C:\APPS\OS2TK45\samples\mm\lib;C:\APPS\OS2TK45\speech\lib;C:\Util\OS2TK45\som\lib;C:\Util\OS2TK45\lib;C:\Util\OS2TK45\samples\mm\lib;C:\Util\OS2TK45\speech\lib;
NCDEBUG=4000
ULSPATH=C:\LANGUAGE
SCKILLFEATUREENABLED=ON
LOGFILES=C:\var\log
MOZ_PLUGIN_PATH=C:\Apps\MOZ_PLUG
DISPLAYTYPE=VGA
NLSPATH=C:\APPS\OS2TK45\msg\%N;C:\MPTN\MSG\NLS\%N;C:\TCPIP\msg\ENUS850\%N;C:\Util\OS2TK45\msg\%N;
TCPLANG=en_US
PATH=C:\Apps\Java6\bin;C:\usr\lib\qt4\bin;C:\ecs\install\WARPIN;C:\Util\FC2;C:\APPS\OS2TK45\som\common;C:\APPS\OS2TK45\som\bin;C:\APPS\OS2TK45\bin;C:\ECS\SYSTEM\SESS\BIN;C:\MPTN\BIN;C:\TCPIP\BIN;C:\IBMCOM;C:\IBMLAN\NETPROG;C:\MUGLIB;C:\APPS\NETSCAPE\PROGRAM;C:\ECS\BIN;C:\EMX\BIN;C:\IBMGSK50\BIN;C:\IBMGSK40\BIN;C:\IBMGSK\BIN;C:\OS2;C:\OS2\SYSTEM;C:\OS2\MDOS\WINOS2;C:\OS2\INSTALL;C:\;C:\OS2\MDOS;C:\OS2\APPS;C:\USR\SBIN;C:\USR\BIN;C:\APPS\OPENJDK6\BIN;C:\MMOS2\FREEDB;C:\MMOS2;C:\MMOS2\MMPLAYER;C:\APPS\4OS2;C:\APPS\OPENSSH;C:\Util\NDFS;C:\Util\OS2TK45\som\common;C:\Util\OS2TK45\som\bin;C:\Util\OS2TK45\bin;C:\Util\WatchCat;;
SOMIR=C:\OS2\ETC\SOM.IR;C:\OS2\ETC\WPSH.IR;C:\OS2\ETC\WPDSERV.IR;C:\OS2\ETC\REXX.IR;C:\APPS\OS2TK45\som\common\etc\214\som.ir;C:\Util\OS2TK45\som\common\etc\214\som.ir;
PWD=C:/
WP_OBJHANDLE=168115
SOMRUNTIME=C:\Util\OS2TK45\som\common
HELPNDX=epmkwhlp.ndx
HELP=C:\APPS\OS2TK45\help;C:\MPTN;C:\MPTN\HELP;C:\ecs\help;C:\OS2\HELP;C:\ECS\SYSTEM\AMouse;C:\PrtUtils\markvis;C:\IBMLAN\NETPROG;C:\TCPIP\HELP;C:\MMOS2\HELP;C:\APPS\4OS2;C:\Util\OS2TK45\help;
GREEXT=PANOGREX
GRADD_CHAINS=C1
VIO_SVGA=DEVICE(BVHVGA,BVHSVGA)
JAVA_HOME=C:\Apps\Java6
WPSREF=WPS1.INF+WPS2.INF+WPS3.INF
DLSINI=C:\IBMLAN\NETPROG\NETGUI.INI
SCCANBENUKED=ON
LANG=en_US
SHELLHANDLESINC=20
TZ=MSK-4
NSPR_OS2_NO_HIRES_TIMER=1
LANINSTEP=S:\cid\server\IBMLS
IPFC=C:\Util\OS2TK45\ipfc
WORKPLACE_PRIMARY_CP=1
DEVICEFONTDISABLED=YES
USE_HOSTS_FIRST=1
OSDIR=C:\ecs
OS2_SHELL=C:\OS2\CMD.EXE
NDFSDIR=C:\Util\NDFS
KEYS=ON
INIT_FILE_RANGES=200
IKEYMAN40_HOME=C:\IBMGSK40
SHLVL=1
HOME=C:\Home\root
EPMPATH=C:\OS2\APPS;
PROGRAMS=C:\Apps
GLOSSARY=C:\OS2\HELP\GLOSS;
DSPPATH=C:\MMOS2\DSP;
BOOKSHELF=C:\APPS\OS2TK45\book;C:\IBMLAN\NETPROG;C:\OS2\BOOK;C:\ecs\book;C:\TCPIP\HELP;C:\MMOS2;C:\APPS\4OS2;C:\Util\OS2TK45\book;C:\Util\WatchCat;
PROMPT=[$p]
ENH_SUSPEND=2
COMSPEC=C:\OS2\CMD.EXE
TMP=C:\var\temp
PERL_SH_DIR=C:/usr/bin
NOLARGENTEXEICON=1
SMEMIT=h;ih;c
CLASSPATH=C:\TCPIP\java
MOZILLA_HOME=C:\Home\root
SMB_EXE=C:\ECS\SYSTEM\Samba
PMREF=PM1.INF+PM2.INF+PM3.INF+PM4.INF+PM5.INF
BIGICONS=C:\ecs\icons\BIGICONS
SMADDSTAR=1
MMYIELD=10
GPIREF=GPI1.INF+GPI2.INF+GPI3.INF+GPI4.INF
MMSTREAM=/S:64 /P:64 /H:256 /Q:1024 /E:1024
SANE_CONFIG_DIR=C:\APPS\TAME\conf
INCLUDE=C:\APPS\WATCOM\H;C:\APPS\WATCOM\H\OS2;C:\APPS\OS2TK45\som\include;C:\APPS\OS2TK45\inc;C:\APPS\OS2TK45\h\gl;C:\APPS\OS2TK45\h;C:\APPS\OS2TK45\h\libc;.;C:\APPS\OS2TK45\speech\h;C:\Util\OS2TK45\som\include;C:\Util\OS2TK45\inc;C:\Util\OS2TK45\h;C:\Util\OS2TK45\h\gl;C:\Util\OS2TK45\h\libc;C:\Util\OS2TK45\speech\h;
CPREF=CP1.INF+CP2.INF+CP3.INF
WORKPLACE__PROCESS=NO
ENH_STRETCH=NO
NWDBPATH=C:\IBMLAN\NETPROG
AUTOSTART=PROGRAMS,TASKLIST,FOLDERS
_=c:/USR/BIN/env.exe

I have no idea why is this...

Change History (2)

comment:1 by dbanet, 10 years ago

Milestone: milestone1

comment:2 by Yuri Dario, 10 years ago

Resolution: invalid
Status: newclosed

The current bash binary shipped with RPM is an old prebuilt binary taken from the net.

So this ticket is not valid until someone takes care of porting newer code.

This binary is EMX compiled, so it cannot understand symlinks done by libc.

And the correct trac for reporting is 'ports', this trac is only for rpm and strictly related tools.

Note: See TracTickets for help on using tickets.