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))
|
ifeq ($(PYTHON_EXISTS),$(PYTHON))
|
||||||
PY_INCDIR = $(shell $(PYTHON) pyinclude.py)
|
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_VERSION := $(shell cd pysamba ; $(PYTHON) -c $(GET_VERSION))
|
||||||
WMI_CPPFLAGS := -I$(PY_INCDIR)
|
WMI_CPPFLAGS := -I$(PY_INCDIR)
|
||||||
endif
|
endif
|
||||||
|
|||||||
@@ -4,13 +4,13 @@
|
|||||||
- In Samba/source/pidl/pidl line 583 I already removed the word defined before @$pidl
|
- In Samba/source/pidl/pidl line 583 I already removed the word defined before @$pidl
|
||||||
|
|
||||||
### How to Compile
|
### How to Compile
|
||||||
- Tested on Debian 9 Stretch
|
- Tested on Debian 12.9
|
||||||
- cd /usr/src/
|
- apt-get install autoconf gcc libdatetime-perl make build-essential g++ python3-dev
|
||||||
- apt-get install autoconf gcc libdatetime-perl make build-essential g++ python-dev
|
- git clone ssh://git@gitea.infra.internal.rndsoft.ro:2222/benishor/wmic.git
|
||||||
- git clone git@github.com:astbss/wmic.git
|
- cd wmic
|
||||||
- cd /usr/src/wmic
|
- mkdir -p Samba/source/bin/static/
|
||||||
- make "CPP=gcc -E -ffreestanding",
|
- 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
|
### How to Test it
|
||||||
- **Get system information**
|
- **Get system information**
|
||||||
|
|||||||
@@ -580,7 +580,7 @@ sub process_file($)
|
|||||||
require Parse::Pidl::IDL;
|
require Parse::Pidl::IDL;
|
||||||
|
|
||||||
$pidl = Parse::Pidl::IDL::parse_file($idl_file, \@opt_incdirs);
|
$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;
|
require Parse::Pidl::Typelist;
|
||||||
Parse::Pidl::Typelist::LoadIdl($pidl);
|
Parse::Pidl::Typelist::LoadIdl($pidl);
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -14,5 +14,5 @@
|
|||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
version = '.'.join(map(str, sys.version_info[:2]))
|
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