Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
metadata-collect-agent
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
metadata-collect-agent
Commits
1c52b854
Commit
1c52b854
authored
Jan 31, 2022
by
Ophélie Gagnard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WIP: Change directories organisation.
parent
029fcc31
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
75 additions
and
0 deletions
+75
-0
flb.conf
flb.conf
+17
-0
installation/metadata-collect-agent/Makefile
installation/metadata-collect-agent/Makefile
+58
-0
installation/metadata-collect-agent/parse_link_errors.py
installation/metadata-collect-agent/parse_link_errors.py
+0
-0
No files found.
flb.conf
0 → 100644
View file @
1c52b854
[
SERVICE
]
flush
5
[
INPUT
]
name
tail
path
/
var
/
log
/
metadata_collect
.
log
[
output
]
name
fluentbit_wendelin
match
*
streamtool_uri
https
://
softinst157546
.
host
.
vifib
.
net
/
erp5
/
portal_ingestion_policies
/
metadata_upload
user
zope
password
qxrfkwod
buffer_type
memory
flush_interval
60
s
disable_retry_limit
true
reference
c
-
light
-
data_05
installation/metadata-collect-agent/Makefile
0 → 100644
View file @
1c52b854
ifeq
(,)
INCLUDE_PYTHON
=
$(
shell
pkg-config
--cflags
python3 |
cut
-f
1
-d
" "
)
else
INCLUDE_PYTHON
=
-I
/srv/slapgrid/slappart6/srv/runner/shared/python3/2e435adf7e2cb7d97668da52532ac7f3/include/python3.7m
OPENSSL_PATH
=
/srv/slapgrid/slappart6/srv/runner/shared/openssl/24bd61db512fe6e4e0d214ae77943d75
INCLUDE_OPENSSL
=
-I
$(OPENSSL_PATH)
/include
LIBRARY_OPENSSL
=
-L
$(OPENSSL_PATH)
/lib
RUNPATH_OPENSSL
=
-Wl
,-rpath
=
$(OPENSSL_PATH)
/lib
FMTLIB_PATH
=
/srv/slapgrid/slappart6/srv/runner/shared/fmtlib/d524cc3d1a798a140778558556ec6d0c
INCLUDE_FMTLIB
=
-I
$(FMTLIB_PATH)
/include
LIBRARY_FMTLIB
=
-L
$(FMTLIB_PATH)
/lib
RUNPATH_FMTLIB
=
-Wl
,-rpath
=
$(FMTLIB_PATH)
/lib
INCLUDE_DIRS
=
$(INCLUDE_PYTHON)
$(INCLUDE_OPENSSL)
$(INCLUDE_FMTLIB)
LIBPATHS
=
$(LIBRARY_OPENSSL)
$(LIBRARY_FMTLIB)
RUNPATHS
=
$(RUNPATH_OPENSSL)
$(RUNPATH_FMTLIB)
LDFLAGS
=
$(LIBPATHS)
$(RUNPATHS)
endif
#EXE = main
#CXX = g++
#CPPFLAGS = -O2 -g -Wno-unused-result -Wsign-compare -pthread $(INCLUDE_DIRS)
#LDFLAGS += -Wl,--unresolved-symbols=ignore-all
LDLIBS
=
-lcrypto
-lfmt
EXT_SUFFIX
:=
$(
shell
python3
-c
"import sysconfig; print(sysconfig.get_config_var('EXT_SUFFIX'
))
"
)
EXT
=
$(EXE)$(EXT_SUFFIX)
# Build without Python runtime
all
:
main.cpp
#
$(EXE)
mkdir
-p
logs
# Error expected here, writing a C program using the error messages
-
g++
-O2
-g
-Wno-unused-result
-Wsign-compare
-pthread
$(INCLUDE_PYTHON)
main.cpp
-lcrypto
-lfmt
-o
main 2> logs/link_errors
./parse_link_errors.py < logs/link_errors
make fake_python.o
g++
-O2
-g
-Wno-unused-result
-Wsign-compare
-pthread
$(INCLUDE_PYTHON)
main.cpp fake_python.o
-lcrypto
-lfmt
-o
metadata-collect-agent
#-ln -f ../../metadata-collect-agent metadata-collect-agent
-
ln
-f
metadata-collect-agent ../../dracut.module/90metadata-collect/metadata-collect-agent
#-ln -f metadata-collect-agent ../../debian.package.unsafe/unsafe-boot-metadata-collect-agent/sbin/metadata-collect-agent
%.cpp
:
%.pyx
@
echo
"[Cython Compiling
$^
->
$@
]"
python3
-c
"from Cython.Compiler.Main import main; main(command_line=1)"
$^
--cplus
-3
@
rm
-f
$(
subst
.cpp,.h,
$@
)
%
:
%.cpp
@
echo
"[C++ Compiling
$^
->
$@
]"
$(LINK.cpp)
$^
$(LOADLIBES)
$(LDLIBS)
-o
$@
.PHONY
:
all
installation/parse_link_errors.py
→
installation/
metadata-collect-agent/
parse_link_errors.py
View file @
1c52b854
File moved
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment