zopencommunity / man-dbport

Tool for generating manual pages for Unix programs
Apache License 2.0
0 stars 2 forks source link

man-db .env is not pulling in libiconv #18

Closed MikeFultonDev closed 1 year ago

MikeFultonDev commented 1 year ago

Even though we specify:

export ZOPEN_RUNTIME_DEPS="groff libiconv less ncurses"

the generated .env is not pulling in the program iconv (which is part of libiconv) and is required. Not sure if the runtime env var spec is wrong or if the zopen build code has a problem.

I see .runtimedeps in the generated install but I don't see any reference to it in the .env

IgorTodorovskiIBM commented 1 year ago

I'm unable to reproduce it:

IgorTodorovskiIBM commented 1 year ago

.depsenv has this:

if [ -f "../libiconv/.env" ]; then
  if [[ $(type echo) == 'echo is a shell builtin' ]]; then
    pushd "../libiconv" >/dev/null
    . ./.env
    popd >/dev/null
  else
    cd "../libiconv" && . ./.env; cd - >/dev/null
  fi
fi
MikeFultonDev commented 1 year ago

when i do:

zopen install man-db

and then do: cd $HOME/zopen/prod/man I don't see a .depsenv file and when I run . ./.env and then do: type -a iconv I still get /bin/iconv

IgorTodorovskiIBM commented 1 year ago

This was not working because @MikeFultonDev had a corrupt .zopen-setup that was pointing to a different install location