Libelektra: Build Server `ex` Not Found

Created on 21 Aug 2018  路  7Comments  路  Source: ElektraInitiative/libelektra

I added in my PR #2198 a new flag and suppressed it in tests/icheck.suppression but
the build server says:

scripts/run_icheck: 51: scripts/run_icheck: ex: not found

Full log: https://build.libelektra.org/jenkins/blue/organizations/jenkins/libelektra/detail/PR-2198/3/pipeline/221/

I think the command ex is not installed on the build server because I work with the docker image locally and installed vim by hand and the run_icheckwent through.

bug build

Most helpful comment

I added ed to the docker image and used the change suggested by @sanssecours in #2198 and it worked!

All 7 comments

i would prefer to not install even more into our images (they are bloated as is). Can the line be rewritten to use sed or another already available tool?

If ed is available, it should work after you replace:

ex '+g/^.*'"$line"'.*$/d' -cwq "$ICHECK_DIR/new_interface.h"

with

printf 'H\ng/^.*%s.*$/d\nw\n' "$line" | ed -s "$ICHECK_DIR/new_interface.h"

.

ok, I will rewrite it!

Well ed is not in the image.

Well ed is not in the image.

In that case I think we should just install ed. It is a standard POSIX utility after all.

I added ed to the docker image and used the change suggested by @sanssecours in #2198 and it worked!

PR #2198 is merged thus this issue resolved!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dmoisej picture dmoisej  路  3Comments

sanssecours picture sanssecours  路  4Comments

markus2330 picture markus2330  路  4Comments

e1528532 picture e1528532  路  4Comments

dominicjaeger picture dominicjaeger  路  3Comments