I am trying to build a package (oomox) via https://build.opensuse.org. It has a succeeded status but I cannot install it via YAST, I get /bin/env dependency error. I know that it should be /usr/bin/env, but how can I fix this?
Yep, one of my first packages. Still bin/env dependency error when installing via YAST. The shebangs from source (python) files are #!bin/env and I guess that causes the problem after build? Should read more documentation, I’ve just used the info from Arch pkgbuild
I get a bunch of warnings in the log file. How to mark a folder as %config? I can’t find it in documentation. For duplicate files I use %fdupes, but I still get the warnings (I guess it is not used correctly).
And how to tell the build process to change all #!/bin/env to #!/usr/bin/env. I am not sure, but I guess it should be built with #!/usr/bin/env (otherwise I get that dependency error in YAST).
On Tue 08 Nov 2016 07:46:03 AM CST, HidDeNeR wrote:
I get a bunch of warnings in the log file. How to mark a folder as
%config? I can’t find it in documentation. For duplicate files I use
%fdupes, but I still get the warnings (I guess it is not used
correctly).
Thank you in advance.
Hi
If you have a look at some of the python package specs they use perl to
change the shebang…
For example in the %prep section;
Get rid of non-executable-script python warnings
find src/freeseer/ -type f -name '*.py' | while read f; do
perl -n -i -e 'print unless $.==1 && m/^#!/' "$f"
done
–
Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
openSUSE Leap 42.1|GNOME 3.16.2|4.1.34-33-default
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below… Thanks!
# fix shebangs - convert /usr/local/bin/python and /usr/bin/env/python to /usr/bin/python3
for dir in Lib Tools; do
# find *.py, filter to files that contain bad shebangs
find $dir -name '*.py' -type f -print0 \
| xargs -0 grep -lE '^#! *(/usr/.*bin/(env +)?)?python' \
| xargs sed -r -i -e '1s@^#!:space:]]*(/usr/(local/)?bin/(env +)?)?python([0-9]+(\.[0-9]+)?)?@#!/usr/bin/python3@'
done
So I need to convert #!/bin/env python3 to #!/usr/bin/env python3, or even better to !#/usr/bin/python3 (as in the example above). I changed it to
# fix shebangs - convert /usr/local/bin/python and /usr/bin/env/python to /usr/bin/python3
for dir in gui; do
# find *.py, filter to files that contain bad shebangs
find $dir -name '*.py' -type f -print0 \
| xargs -0 grep -lE '^#! *(/bin/(env +)?)?python3@' \
| xargs sed -r -i -e '1s@^#!:space:]]*(/bin/(env +)?)?python3@?@#!/usr/bin/python3@'
done
However, I get a “sed: no input files” error I have no experience with it, need help!
However, I get a “sed: no input files” error I have no experience
with it, need help!
Hi
In your case I thought it was the /bin/env shebang?
Yes, all you would need to do is find /bin/env with /usr/bin/env
–
Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
openSUSE Leap 42.1|GNOME 3.16.2|4.1.34-33-default
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below… Thanks!
It generates the themes. However, by using a preset from the list it generates a theme which gives me a white panel background (even if it is set dark). It just looks as the most themes which have gtk3.20 issues. But oomox was created to get rid of these issues, confused… something is wrong with the app or the package.
I tested oomox before (a couple of months ago) using the github readme and it worked as expected.
Hi
Ahh, OK, not sure then, must be something lurking. Create a new user and login and configure a theme and see how that goes, if it duplicates then it’s probably a packaging issue…