Package Details: semgrep-bin 0.54.0-1

Git Clone URL: https://aur.archlinux.org/semgrep-bin.git (read-only, click to copy)
Package Base: semgrep-bin
Description: Fast and syntax-aware semantic code pattern search for many languages: like grep but for code
Upstream URL: https://github.com/returntocorp/semgrep
Keywords: code grep
Licenses: LGPL2.1
Provides: semgrep
Submitter: aloxaf
Maintainer: aloxaf
Last Packager: aloxaf
Votes: 3
Popularity: 0.036643
First Submitted: 2020-05-23 02:08
Last Updated: 2021-06-06 03:34

Latest Comments

1 2 Next › Last »

0xdbe commented on 2021-04-27 12:20

@aloxaf

It's working with yay.

Many thanks.

aloxaf commented on 2021-04-27 10:05

@0xdbe

Fixed. Please try again with yay.

0xdbe commented on 2021-04-27 08:47

This package failed to build with yay (yay v10.2.1 - libalpm v12.0.2):

==> WARNING: Using existing $srcdir/ tree
==> Starting build()...
Traceback (most recent call last):
  File "~/.cache/yay/semgrep-bin/src/semgrep-0.48.0/setup.py", line 85, in <module>
    src = find_executable(binary_env, binary_name)
  File "~/.cache/yay/semgrep-bin/src/semgrep-0.48.0/setup.py", line 73, in find_executable
    raise Exception(
Exception: Could not find 'semgrep-core' executable, tried 'SEMGREP_CORE_BIN' and system 'semgrep-core'
==> ERROR: A failure occurred in build().
    Aborting...

aloxaf commented on 2021-01-19 13:00

@dkasak Oh sorry! It's a stupid mistake -- I forgot to remove the debug code.

dkasak commented on 2021-01-19 12:47

@aloxaf, the latest version failed to build for me with yay. I then cloned the repository and tried running makepkg directly but it failed again:

[...]

running egg_info
writing semgrep.egg-info/PKG-INFO
writing dependency_links to semgrep.egg-info/dependency_links.txt
writing entry points to semgrep.egg-info/entry_points.txt
writing requirements to semgrep.egg-info/requires.txt
writing top-level names to semgrep.egg-info/top_level.txt
reading manifest file 'semgrep.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'semgrep.egg-info/SOURCES.txt'
copying semgrep/rule_schema.yaml -> build/lib/semgrep
chmod: cannot access 'build/lib/semgrep/bin/semgrep-core': No such file or directory
chmod: cannot access 'build/lib/semgrep/bin/spacegrep': No such file or directory
==> ERROR: A failure occurred in build().
    Aborting...

I then did some manual mucking around in the pkg dir after which the makepkg succeeded. I'm not sure what made it succeed, but one of the things I did was to copy semgrep-core and spacegrep from $srcdir/semgrep-files to $srcdir/semgrep-0.37.0/semgrep/bin manually.

TL;DR: The package doesn't build cleanly as it stands and I think you might have missed it because you did a manual step like me before.

aloxaf commented on 2020-11-10 14:04

@dkasak

Thanks. They are now removed.

dkasak commented on 2020-11-10 13:39

@aloxaf, the conflict with the python-hypothesis package is still present in the new version of the package. I guess it's an upstream packaging error; it's a bit weird to use a non-namespaced tests package.

Perhaps you could just delete everything under /usr/lib/python3.8/site-packages/tests from this package as a workaround, given that it appears it's just test code?

dkasak commented on 2020-10-24 07:52

There's a conflict with python-hypothesis happening now:

python-hypothesis: /usr/lib/python3.8/site-packages/tests/__init__.py exists in filesystem (owned by semgrep-bin)
python-hypothesis: /usr/lib/python3.8/site-packages/tests/__pycache__/__init__.cpython-38.opt-1.pyc exists in filesystem (owned by semgrep-bin)
python-hypothesis: /usr/lib/python3.8/site-packages/tests/__pycache__/__init__.cpython-38.pyc exists in filesystem (owned by semgrep-bin)
python-hypothesis: /usr/lib/python3.8/site-packages/tests/__pycache__/conftest.cpython-38.opt-1.pyc exists in filesystem (owned by semgrep-bin)
python-hypothesis: /usr/lib/python3.8/site-packages/tests/__pycache__/conftest.cpython-38.pyc exists in filesystem (owned by semgrep-bin)
python-hypothesis: /usr/lib/python3.8/site-packages/tests/conftest.py exists in filesystem (owned by semgrep-bin)

Also, 0.28.0 is out.

dkasak commented on 2020-09-19 15:19

It's working great, thanks a lot!

aloxaf commented on 2020-09-19 14:52

@dkasak Thanks again!

How about now?