From 08dc159ff4e90a50a8cddda23f0a2a940a99c2ca Mon Sep 17 00:00:00 2001 From: Saul Wold Date: Fri, 20 Sep 2019 08:41:15 -0700 Subject: [PATCH] Fix shebang interperter for dependency generation This address the following error from rpmlint: [ 7s] worker-utils.noarch: E: env-script-interpreter (Badness: 9) /usr/bin/topology.py /usr/bin/env python [ 7s] This script uses 'env' as an interpreter. For the rpm runtime dependency [ 7s] detection to work, the shebang #!/usr/bin/env python needs to be patched into [ 7s] #!/usr/bin/python otherwise the package dependency generator merely adds a [ 7s] dependency on /usr/bin/env rather than the actual interpreter /usr/bin/python. [ 7s] Alternatively, if the file should not be executed, then ensure that it is not [ 7s] marked as executable or don't install it in a path that is reserved for [ 7s] executables. Story: 2006564 Task: 36742 Change-Id: Ib788065d542573d5d7b239f206011d3d5c92ff41 Signed-off-by: Saul Wold --- utilities/worker-utils/worker-utils/topology.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utilities/worker-utils/worker-utils/topology.py b/utilities/worker-utils/worker-utils/topology.py index 08ed4c52..99fdef08 100755 --- a/utilities/worker-utils/worker-utils/topology.py +++ b/utilities/worker-utils/worker-utils/topology.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/python ################################################################################ # Copyright (c) 2013 Wind River Systems, Inc. #