Made build run on debian 12.9
This commit is contained in:
+1
-1
@@ -28,7 +28,7 @@ PYTHON_EXISTS := $(wildcard $(PYTHON))
|
||||
#
|
||||
ifeq ($(PYTHON_EXISTS),$(PYTHON))
|
||||
PY_INCDIR = $(shell $(PYTHON) pyinclude.py)
|
||||
GET_VERSION = "import version as v; print v.VERSION"
|
||||
GET_VERSION = "import version as v; print(v.VERSION)"
|
||||
WMI_VERSION := $(shell cd pysamba ; $(PYTHON) -c $(GET_VERSION))
|
||||
WMI_CPPFLAGS := -I$(PY_INCDIR)
|
||||
endif
|
||||
|
||||
@@ -4,13 +4,13 @@
|
||||
- In Samba/source/pidl/pidl line 583 I already removed the word defined before @$pidl
|
||||
|
||||
### How to Compile
|
||||
- Tested on Debian 9 Stretch
|
||||
- cd /usr/src/
|
||||
- apt-get install autoconf gcc libdatetime-perl make build-essential g++ python-dev
|
||||
- git clone git@github.com:astbss/wmic.git
|
||||
- cd /usr/src/wmic
|
||||
- Tested on Debian 12.9
|
||||
- apt-get install autoconf gcc libdatetime-perl make build-essential g++ python3-dev
|
||||
- git clone ssh://git@gitea.infra.internal.rndsoft.ro:2222/benishor/wmic.git
|
||||
- cd wmic
|
||||
- mkdir -p Samba/source/bin/static/
|
||||
- make "CPP=gcc -E -ffreestanding",
|
||||
- cp Samba/source/bin/wmic /usr/local/bin/
|
||||
- binary is to be found in Samba/source/bin/wmic
|
||||
|
||||
### How to Test it
|
||||
- **Get system information**
|
||||
|
||||
@@ -580,7 +580,7 @@ sub process_file($)
|
||||
require Parse::Pidl::IDL;
|
||||
|
||||
$pidl = Parse::Pidl::IDL::parse_file($idl_file, \@opt_incdirs);
|
||||
defined @$pidl || die "Failed to parse $idl_file";
|
||||
@$pidl || die "Failed to parse $idl_file";
|
||||
require Parse::Pidl::Typelist;
|
||||
Parse::Pidl::Typelist::LoadIdl($pidl);
|
||||
}
|
||||
|
||||
+1
-1
@@ -14,5 +14,5 @@
|
||||
import sys
|
||||
import os
|
||||
version = '.'.join(map(str, sys.version_info[:2]))
|
||||
print os.path.join(sys.prefix, 'include', 'python' + version)
|
||||
print(os.path.join(sys.prefix, 'include', 'python' + version))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user