fails to build https://errors.yoctoproject.org/Errors/Details/498803/ https://errors.yoctoproject.org/Errors/Details/498801/ https://errors.yoctoproject.org/Errors/Details/498804/
On Fri, Sep 11, 2020 at 9:55 AM nefethael <[email protected]> wrote: > > Signed-off-by: Vincent Prince <[email protected]> > --- > ...e-build-settings-from-environment-va.patch | 25 ++++---- > ...-control-use-of-gnu_get_libc_version.patch | 8 +-- > ...001-Use-long-long-instead-of-int64_t.patch | 15 ++--- > ...ion-for-the-macro-__ELF_NATIVE_CLASS.patch | 13 ++-- > .../mongodb/0003-Fix-unknown-prefix-env.patch | 2 +- > .../recipes-dbs/mongodb/mongodb/1296.patch | 12 ++-- > .../mongodb/mongodb/arm64-support.patch | 14 ++--- > .../recipes-dbs/mongodb/mongodb_git.bb | 63 +++++++++++++++---- > 8 files changed, 98 insertions(+), 54 deletions(-) > > diff --git > a/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0001-Tell-scons-to-use-build-settings-from-environment-va.patch > > b/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0001-Tell-scons-to-use-build-settings-from-environment-va.patch > index 190884624..b8a325295 100644 > --- > a/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0001-Tell-scons-to-use-build-settings-from-environment-va.patch > +++ > b/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0001-Tell-scons-to-use-build-settings-from-environment-va.patch > @@ -1,4 +1,4 @@ > -From 1b2e24e14ee72e54e466be2512c78272f62d60b4 Mon Sep 17 00:00:00 2001 > +From 8295bb6a60896fed54d6450bca091aea4eea4fb2 Mon Sep 17 00:00:00 2001 > From: Vincent Prince <[email protected]> > Date: Mon, 16 Sep 2019 13:21:44 +0200 > Subject: [PATCH 01/10] Tell scons to use build settings from environment > @@ -7,14 +7,14 @@ Subject: [PATCH 01/10] Tell scons to use build settings > from environment > Signed-off-by: Sven Ebenfeld <[email protected]> > Signed-off-by: Vincent Prince <[email protected]> > --- > - SConstruct | 8 ++++++-- > - 1 files changed, 8 insertions(+), 2 deletions(-) > + SConstruct | 8 ++++++-- > + 1 file changed, 6 insertions(+), 2 deletions(-) > > diff --git a/SConstruct b/SConstruct > -index 7ebbcbc..e63cf15 100644 > +index 89c044ab78..2044c0ddb8 100644 > --- a/SConstruct > +++ b/SConstruct > -@@ -608,6 +608,7 @@ def variable_arch_converter(val): > +@@ -593,6 +593,7 @@ def variable_arch_converter(val): > 'amd64': 'x86_64', > 'emt64': 'x86_64', > 'x86': 'i386', > @@ -22,7 +22,7 @@ index 7ebbcbc..e63cf15 100644 > } > val = val.lower() > > -@@ -695,7 +696,8 @@ env_vars.Add( > +@@ -723,7 +724,8 @@ env_vars.Add( > ) > > env_vars.Add('CC', > @@ -32,7 +32,7 @@ index 7ebbcbc..e63cf15 100644 > > env_vars.Add('CCFLAGS', > help='Sets flags for the C and C++ compiler', > -@@ -715,7 +717,8 @@ env_vars.Add('CPPPATH', > +@@ -743,7 +745,8 @@ env_vars.Add('CPPPATH', > converter=variable_shlex_converter) > > env_vars.Add('CXX', > @@ -42,15 +42,14 @@ index 7ebbcbc..e63cf15 100644 > > env_vars.Add('CXXFLAGS', > help='Sets flags for the C++ compiler', > -@@ -1018,6 +1021,7 @@ envDict = dict(BUILD_ROOT=buildDir, > - ) > +@@ -1127,6 +1130,7 @@ if get_option('build-tools') == 'next' or > get_option('ninja') == 'next': > + SCons.Tool.DefaultToolpath.insert(0, > os.path.abspath('site_scons/site_tools/next')) > > env = Environment(variables=env_vars, **envDict) > +env.PrependENVPath('PATH', os.getenv('PATH')) > - del envDict > - > - for var in ['CC', 'CXX']: > > + # Only print the spinner if stdout is a tty > + if sys.stdout.isatty(): > -- > -2.7.4 > +2.24.0 > > diff --git > a/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0001-Use-__GLIBC__-to-control-use-of-gnu_get_libc_version.patch > > b/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0001-Use-__GLIBC__-to-control-use-of-gnu_get_libc_version.patch > index d98fa56cb..8d82be1b5 100644 > --- > a/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0001-Use-__GLIBC__-to-control-use-of-gnu_get_libc_version.patch > +++ > b/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0001-Use-__GLIBC__-to-control-use-of-gnu_get_libc_version.patch > @@ -1,4 +1,4 @@ > -From d701ceeb15662038435b80ba556a80c17f76d2dc Mon Sep 17 00:00:00 2001 > +From 6332823f9fdcb571305b716330e67d0b38810868 Mon Sep 17 00:00:00 2001 > From: Vincent Prince <[email protected]> > Date: Mon, 16 Sep 2019 13:30:13 +0200 > Subject: [PATCH 03/10] Use __GLIBC__ to control use of gnu_get_libc_version > @@ -10,7 +10,7 @@ Signed-off-by: Vincent Prince <[email protected]> > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/src/mongo/util/processinfo_linux.cpp > b/src/mongo/util/processinfo_linux.cpp > -index cccb91c..45c4b7d 100644 > +index a968c54727..0d8b8874e2 100644 > --- a/src/mongo/util/processinfo_linux.cpp > +++ b/src/mongo/util/processinfo_linux.cpp > @@ -44,10 +44,10 @@ > @@ -27,7 +27,7 @@ index cccb91c..45c4b7d 100644 > #endif > > #include <boost/filesystem.hpp> > -@@ -546,7 +546,7 @@ void ProcessInfo::SystemInfo::collectSystemInfo() { > +@@ -617,7 +617,7 @@ void ProcessInfo::SystemInfo::collectSystemInfo() { > std::stringstream ss; > ss << "uClibc-" << __UCLIBC_MAJOR__ << "." << __UCLIBC_MINOR__ << "." > << __UCLIBC_SUBLEVEL__; > bExtra.append("libcVersion", ss.str()); > @@ -37,5 +37,5 @@ index cccb91c..45c4b7d 100644 > #endif > if (!verSig.empty()) > -- > -2.7.4 > +2.24.0 > > diff --git > a/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0001-Use-long-long-instead-of-int64_t.patch > > b/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0001-Use-long-long-instead-of-int64_t.patch > index b9c670407..958e09c3d 100644 > --- > a/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0001-Use-long-long-instead-of-int64_t.patch > +++ > b/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0001-Use-long-long-instead-of-int64_t.patch > @@ -1,4 +1,4 @@ > -From 20fcbf2a05ee6542aba942f6006d149db70fb9ce Mon Sep 17 00:00:00 2001 > +From 4e7f15346682482bc2071c7209dec97507d3bc4c Mon Sep 17 00:00:00 2001 > From: Khem Raj <[email protected]> > Date: Sat, 2 Sep 2017 10:03:37 -0700 > Subject: [PATCH 02/10] Use long long instead of int64_t > @@ -8,12 +8,13 @@ error: call to member function 'appendNumber' is ambiguous > since this function expects long long as parameter and not int64_t > > Signed-off-by: Khem Raj <[email protected]> > +Signed-off-by: Vincent Prince <[email protected]> > --- > src/mongo/util/procparser.cpp | 10 +++++----- > 1 file changed, 5 insertions(+), 5 deletions(-) > > diff --git a/src/mongo/util/procparser.cpp b/src/mongo/util/procparser.cpp > -index c574a3f..5ea66b7 100644 > +index 24b9d1e2c9..0f274cfff6 100644 > --- a/src/mongo/util/procparser.cpp > +++ b/src/mongo/util/procparser.cpp > @@ -261,7 +261,7 @@ Status parseProcStat(const std::vector<StringData>& keys, > @@ -23,7 +24,7 @@ index c574a3f..5ea66b7 100644 > - uint64_t value; > + long long value; > > - if (!parseNumberFromString(stringValue, &value).isOK()) > { > + if (!NumberParser{}(stringValue, &value).isOK()) { > value = 0; > @@ -273,7 +273,7 @@ Status parseProcStat(const std::vector<StringData>& keys, > } else { > @@ -32,7 +33,7 @@ index c574a3f..5ea66b7 100644 > - uint64_t value; > + long long value; > > - if (!parseNumberFromString(stringValue, &value).isOK()) { > + if (!NumberParser{}(stringValue, &value).isOK()) { > value = 0; > @@ -366,7 +366,7 @@ Status parseProcMemInfo(const std::vector<StringData>& > keys, > > @@ -41,7 +42,7 @@ index c574a3f..5ea66b7 100644 > - uint64_t value; > + long long value; > > - if (!parseNumberFromString(stringValue, &value).isOK()) { > + if (!NumberParser{}(stringValue, &value).isOK()) { > value = 0; > @@ -522,7 +522,7 @@ Status parseProcDiskStats(const std::vector<StringData>& > disks, > StringData data, > @@ -59,8 +60,8 @@ index c574a3f..5ea66b7 100644 > - uint64_t value; > + long long value; > > - if (!parseNumberFromString(stringValue, &value).isOK()) { > + if (!NumberParser{}(stringValue, &value).isOK()) { > value = 0; > -- > -2.7.4 > +2.24.0 > > diff --git > a/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0002-Add-a-definition-for-the-macro-__ELF_NATIVE_CLASS.patch > > b/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0002-Add-a-definition-for-the-macro-__ELF_NATIVE_CLASS.patch > index 869d2849d..57f4168f5 100644 > --- > a/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0002-Add-a-definition-for-the-macro-__ELF_NATIVE_CLASS.patch > +++ > b/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0002-Add-a-definition-for-the-macro-__ELF_NATIVE_CLASS.patch > @@ -1,4 +1,4 @@ > -From 73c6374ceb0c062e91210cc9ef3e0e9fa30ee514 Mon Sep 17 00:00:00 2001 > +From 28f34191eef1e70c24d2f81b66e4dd40dbefcd35 Mon Sep 17 00:00:00 2001 > From: Khem Raj <[email protected]> > Date: Sat, 2 Sep 2017 12:42:30 -0700 > Subject: [PATCH 04/10] Add a definition for the macro __ELF_NATIVE_CLASS > @@ -6,17 +6,18 @@ Subject: [PATCH 04/10] Add a definition for the macro > __ELF_NATIVE_CLASS > It depends on the native arch's word size. > > Signed-off-by: Khem Raj <[email protected]> > +Signed-off-by: Vincent Prince <[email protected]> > --- > src/mongo/util/stacktrace_posix.cpp | 9 +++++++++ > 1 file changed, 9 insertions(+) > > diff --git a/src/mongo/util/stacktrace_posix.cpp > b/src/mongo/util/stacktrace_posix.cpp > -index 1d7b3d7..f81e329 100644 > +index 531e21bdc2..fa611499e4 100644 > --- a/src/mongo/util/stacktrace_posix.cpp > +++ b/src/mongo/util/stacktrace_posix.cpp > -@@ -39,6 +39,15 @@ > +@@ -42,6 +42,15 @@ > + #include <iostream> > #include <string> > - #include <sys/utsname.h> > > +#if !defined(__GLIBC__) > +#if defined __x86_64__ && !defined __ILP32__ > @@ -28,8 +29,8 @@ index 1d7b3d7..f81e329 100644 > +#endif > + > #include "mongo/base/init.h" > + #include "mongo/bson/json.h" > #include "mongo/config.h" > - #include "mongo/db/jsobj.h" > -- > -2.7.4 > +2.24.0 > > diff --git > a/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0003-Fix-unknown-prefix-env.patch > > b/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0003-Fix-unknown-prefix-env.patch > index 3a27aacfe..910ef0b5f 100644 > --- > a/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0003-Fix-unknown-prefix-env.patch > +++ > b/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0003-Fix-unknown-prefix-env.patch > @@ -2,7 +2,7 @@ Index: git/SConstruct > =================================================================== > --- git.orig/SConstruct > +++ git/SConstruct > -@@ -884,6 +884,14 @@ env_vars.Add('WINDOWS_OPENSSL_BIN', > +@@ -977,6 +977,14 @@ env_vars.Add('WINDOWS_OPENSSL_BIN', > help='Sets the path to the openssl binaries for packaging', > default='c:/openssl/bin') > > diff --git > a/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/1296.patch > b/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/1296.patch > index ae84bcb56..e4ae30776 100644 > --- > a/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/1296.patch > +++ > b/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/1296.patch > @@ -15,15 +15,16 @@ src/mongo/util/net/ssl_manager.cpp:575:79: error: invalid > conversion from 'size_ > if (mongoUnsignedAddOverflow64(tagAndLengthByteCount, derLength, > outLength) || > > Signed-off-by: Fabrice Fontaine <[email protected]> > +Signed-off-by: Vincent Prince <[email protected]> > --- > src/mongo/util/net/ssl_manager.cpp | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/src/mongo/util/net/ssl_manager.cpp > b/src/mongo/util/net/ssl_manager.cpp > -index b93ebe84a4a3..3511eb5d998f 100644 > +index 455a1662a5..e8497bc0d1 100644 > --- a/src/mongo/util/net/ssl_manager.cpp > +++ b/src/mongo/util/net/ssl_manager.cpp > -@@ -782,7 +782,7 @@ class DERToken { > +@@ -810,7 +810,7 @@ public: > * > * Returns a DERToken which consists of the (tag, length, value) tuple. > */ > @@ -32,7 +33,7 @@ index b93ebe84a4a3..3511eb5d998f 100644 > > private: > DERType _type{DERType::EndOfContent}; > -@@ -799,7 +799,7 @@ struct DataType::Handler<DERToken> { > +@@ -827,7 +827,7 @@ struct DataType::Handler<DERToken> { > size_t length, > size_t* advanced, > std::ptrdiff_t debug_offset) { > @@ -41,7 +42,7 @@ index b93ebe84a4a3..3511eb5d998f 100644 > > auto swPair = DERToken::parse(ConstDataRange(ptr, length), > &outLength); > > -@@ -844,7 +844,7 @@ StatusWith<std::string> > readDERString(ConstDataRangeCursor& cdc) { > +@@ -889,7 +889,7 @@ StatusWith<DERInteger> readDERInt(ConstDataRangeCursor& > cdc) { > } > > > @@ -50,3 +51,6 @@ index b93ebe84a4a3..3511eb5d998f 100644 > const size_t kTagLength = 1; > const size_t kTagLengthAndInitialLengthByteLength = kTagLength + 1; > > +-- > +2.24.0 > + > diff --git > a/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/arm64-support.patch > > b/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/arm64-support.patch > index 15bd7da70..1a7bf0fc5 100644 > --- > a/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/arm64-support.patch > +++ > b/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/arm64-support.patch > @@ -1,4 +1,4 @@ > -From c9fc9e9a44b0fb764ce86a5e57f17d3c5bbfd8cd Mon Sep 17 00:00:00 2001 > +From 298d958148f1fb2bb7725fed15c68c09677c14c9 Mon Sep 17 00:00:00 2001 > From: Vincent Prince <[email protected]> > Date: Mon, 16 Sep 2019 13:37:10 +0200 > Subject: [PATCH 05/10] Add alises for arm64 which is same as aarch64 > @@ -12,10 +12,10 @@ Signed-off-by: Vincent Prince > <[email protected]> > 3 files changed, 3 insertions(+), 2 deletions(-) > > diff --git a/SConstruct b/SConstruct > -index e63cf15..5593c78 100644 > +index 448939bdd0..abfd816f3e 100644 > --- a/SConstruct > +++ b/SConstruct > -@@ -1129,6 +1129,7 @@ elif endian == "big": > +@@ -1228,6 +1228,7 @@ if endian == "auto": > processor_macros = { > 'arm' : { 'endian': 'little', 'defines': ('__arm__',) }, > 'aarch64' : { 'endian': 'little', 'defines': ('__arm64__', > '__aarch64__')}, > @@ -24,10 +24,10 @@ index e63cf15..5593c78 100644 > 'ppc64le' : { 'endian': 'little', 'defines': ('__powerpc64__',)}, > 's390x' : { 'endian': 'big', 'defines': ('__s390x__',)}, > diff --git a/src/third_party/IntelRDFPMathLib20U1/SConscript > b/src/third_party/IntelRDFPMathLib20U1/SConscript > -index f23c071..fb82cd6 100644 > +index 58e1b7ba65..bffe83b462 100644 > --- a/src/third_party/IntelRDFPMathLib20U1/SConscript > +++ b/src/third_party/IntelRDFPMathLib20U1/SConscript > -@@ -308,7 +308,7 @@ if processor == 'i386' or processor == 'emscripten': > +@@ -309,7 +309,7 @@ if processor == 'i386' or processor == 'emscripten': > elif processor == 'arm': > cpp_defines['IA32'] = '1' > cpp_defines['ia32'] = '1' > @@ -37,7 +37,7 @@ index f23c071..fb82cd6 100644 > cpp_defines['EFI2'] = '1' > # Using 64 bit little endian > diff --git a/src/third_party/wiredtiger/SConscript > b/src/third_party/wiredtiger/SConscript > -index cdd090b..97a1b3b 100644 > +index d6bd665e23..2f1e656a19 100644 > --- a/src/third_party/wiredtiger/SConscript > +++ b/src/third_party/wiredtiger/SConscript > @@ -152,7 +152,7 @@ condition_map = { > @@ -50,5 +50,5 @@ index cdd090b..97a1b3b 100644 > 'X86_HOST' : env['TARGET_ARCH'] == 'x86_64', > 'ZSERIES_HOST' : env['TARGET_ARCH'] == 's390x', > -- > -2.7.4 > +2.24.0 > > diff --git > a/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb_git.bb > b/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb_git.bb > index 58841ef31..6378c269f 100644 > --- a/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb_git.bb > +++ b/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb_git.bb > @@ -9,12 +9,12 @@ DEPENDS = "openssl libpcap zlib boost curl python3 \ > python3-psutil-native python3-regex-native \ > " > > -inherit scons dos2unix siteinfo python3native > +inherit scons dos2unix siteinfo python3native systemd useradd > > -PV = "4.2.2" > -#v4.2.2 > -SRCREV = "a0bbbff6ada159e19298d37946ac8dc4b497eadf" > -SRC_URI = "git://github.com/mongodb/mongo.git;branch=v4.2 \ > +PV = "4.4.1" > +#v4.4.1 > +SRCREV = "ad91a93a5a31e175f5cbf8c69561e788bbc55ce1" > +SRC_URI = "git://github.com/mongodb/mongo.git;branch=v4.4 \ > > file://0001-Tell-scons-to-use-build-settings-from-environment-va.patch \ > file://0001-Use-long-long-instead-of-int64_t.patch \ > > file://0001-Use-__GLIBC__-to-control-use-of-gnu_get_libc_version.patch \ > @@ -35,11 +35,12 @@ SRC_URI_append_toolchain-clang = "\ > file://0001-asio-Dont-use-experimental-with-clang.patch \ > " > > + > S = "${WORKDIR}/git" > > COMPATIBLE_HOST ?= '(x86_64|i.86|powerpc64|arm|aarch64).*-linux' > > -PACKAGECONFIG ??= "tcmalloc system-pcre" > +PACKAGECONFIG ??= "tcmalloc system-pcre shell" > # gperftools compilation fails for arm below v7 because of missing support of > # dmb operation. So we use system-allocator instead of tcmalloc > PACKAGECONFIG_remove_armv6 = "tcmalloc" > @@ -51,26 +52,64 @@ PACKAGECONFIG[tcmalloc] = > "--use-system-tcmalloc,--allocator=system,gperftools," > PACKAGECONFIG[shell] = ",--js-engine=none,," > PACKAGECONFIG[system-pcre] = "--use-system-pcre,,libpcre," > > -EXTRA_OESCONS = "--prefix=${D}${prefix} \ > +EXTRA_OESCONS = "PREFIX=${prefix} \ > + DESTDIR=${D} \ > LIBPATH=${STAGING_LIBDIR} \ > LINKFLAGS='${LDFLAGS}' \ > CXXFLAGS='${CXXFLAGS}' \ > TARGET_ARCH=${TARGET_ARCH} \ > + MONGO_VERSION=${PV} \ > --ssl \ > --disable-warnings-as-errors \ > --use-system-zlib \ > --nostrip \ > --endian=${@oe.utils.conditional('SITEINFO_ENDIANNESS', > 'le', 'little', 'big', d)} \ > --wiredtiger=${@['off','on'][d.getVar('SITEINFO_BITS') != > '32']} \ > - ${PACKAGECONFIG_CONFARGS} \ > - core" > + --separate-debug \ > + ${PACKAGECONFIG_CONFARGS}" > + > + > +USERADD_PACKAGES = "${PN}" > +USERADD_PARAM_${PN} = "--system --no-create-home --home-dir /var/run/${BPN} > --shell /bin/false --user-group ${BPN}" > + > > scons_do_compile() { > - ${STAGING_BINDIR_NATIVE}/scons ${PARALLEL_MAKE} ${EXTRA_OESCONS} || \ > + ${STAGING_BINDIR_NATIVE}/scons ${PARALLEL_MAKE} ${EXTRA_OESCONS} > install-core || \ > die "scons build execution failed." > } > > scons_do_install() { > - ${STAGING_BINDIR_NATIVE}/scons install ${EXTRA_OESCONS}|| \ > - die "scons install execution failed." > + # install binaries > + install -d ${D}${bindir} > + for i in mongod mongos mongo > + do > + if [ -f ${B}/build/opt/mongo/${i} ] > + then > + install -m 0755 ${B}/build/opt/mongo/${i} ${D}${bindir}/${i} > + else > + bbwarn "${i} does not exists" > + fi > + done > + > + # install config > + install -d ${D}${sysconfdir} > + install -m 0644 ${S}/debian/mongod.conf ${D}${sysconfdir}/ > + > + # install systemd service > + install -d ${D}${systemd_system_unitdir} > + install -m 0644 ${S}/debian/mongod.service > ${D}${systemd_system_unitdir} > + > + # install mongo data folder > + install -m 755 -d ${D}${localstatedir}/lib/${BPN} > + chown ${PN}:${PN} ${D}${localstatedir}/lib/${BPN} > + > + # Log files > + install -m 755 -d ${D}${localstatedir}/log/${BPN} > + chown ${PN}:${PN} ${D}${localstatedir}/log/${BPN} > } > + > +CONFFILES_${PN} = "${sysconfdir}/mongod.conf" > + > +SYSTEMD_SERVICE_${PN} = "mongod.service" > + > + > -- > 2.24.0 > >
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#87007): https://lists.openembedded.org/g/openembedded-devel/message/87007 Mute This Topic: https://lists.openembedded.org/mt/76784016/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
