scapy icon indicating copy to clipboard operation
scapy copied to clipboard

Fix build with setup.py on BSD

Open abajk opened this issue 10 months ago • 3 comments

Building scapy with setup.py has been broken for some time. At least it does not work on FreeBSD. This commit fixes it.

Fixes: 669506bd42e4 ("Migrate to pyproject.toml (secdev#3869)") Signed-off-by: Aleksander Jan Bajkowski [email protected]

abajk avatar Feb 27 '25 20:02 abajk

Hi. Just to be sure, how exactly are you installing Scapy?

gpotter2 avatar Mar 05 '25 11:03 gpotter2

$ python3 setup.py --no-user-cfg  install --single-version-externally-managed --prefix="/usr" --root="<install dir>"

abajk avatar Mar 10 '25 11:03 abajk

It's quite a complicated environment with cross compilation for another architecture. It worked up to version 2.5.0. Full build log:

$ python3 setup.py --no-user-cfg  install --single-version-externally-managed --prefix="/usr" --root="<install dir>"
running install
running build
running install_data
creating <install dir>/usr
creating <install dir>/usr/share
creating <install dir>/usr/share/man
creating <install dir>/usr/share/man/man1
copying doc/scapy.1 -> <install dir>/usr/share/man/man1
running install_egg_info
running egg_info
writing UNKNOWN.egg-info/PKG-INFO
writing dependency_links to UNKNOWN.egg-info/dependency_links.txt
writing top-level names to UNKNOWN.egg-info/top_level.txt
reading manifest file 'UNKNOWN.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'UNKNOWN.egg-info/SOURCES.txt'
Copying UNKNOWN.egg-info to <install dir>/usr/lib/python3.8/site-packages/UNKNOWN-0.0.0-py3.8.egg-info
running install_scripts

abajk avatar Mar 10 '25 11:03 abajk