summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2021-03-19Add macros for new /hal/bin and /hal/sbin pathtizen_6.5.m2_releasesubmit/tizen_base/20210329.052725submit/tizen_6.5_base/20211027.201101submit/tizen_6.5_base/20211027.183101submit/tizen_6.5_base/20211026.180901accepted/tizen/base/tool/20210331.053905accepted/tizen/6.5/base/tool/20211027.120635accepted/tizen/6.5/base/20230714.002705accepted/tizen_6.5_base_toolChanwoo Choi1-0/+2
Tizen 6.5 feature supports new /hal path which including the HAL backend packages depend on h/w device. Need the following macros for HAL backend packages: - %{_hal_bindir} : /hal/bin - %{_hal_sbindir} : /hal/sbin Change-Id: I758eec8cd2a21849f21d254f29a911cc2862b828 Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
2021-02-23Fix generate empty debugsource packages with rpm 4.14.1submit/tizen_base/20210223.130441submit/tizen_base/20210223.120237accepted/tizen/base/tool/20210302.233540biao716.wang6-60/+46
Change-Id: I6492ba2f49b43470edff096685621147bdadbcfc Signed-off-by: biao716.wang <biao716.wang@samsung.com>
2021-01-25Remove timeout logic to wait for shared lock in db3.c filesubmit/tizen_base/20210222.062837biao716.wang1-38/+17
Change-Id: Ia689033d2c145335fcc0038651a6b6ee66dad518 Signed-off-by: biao716.wang <biao716.wang@samsung.com>
2021-01-14Add macros for new /hal pathsubmit/tizen_base/20210121.021519submit/tizen_base/20210115.063702accepted/tizen/base/tool/20210125.051925Chanwoo Choi1-0/+7
Tizen 6.5 feature[1] supports new /hal path which including the HAL backend packages depend on h/w device. Need the following macros for HAL backend packages. - %{_hal_prefix} : /hal - %{_hal_libdir} : /hal/lib64 or /hal/lib - %{_hal_includedir} : /hal/include - %{_hal_sysconfdir} : /hal/etc - %{_hal_datadir} : /hal/share - %{_hal_licensedir} : /hal/share/licenses Change-Id: Ica958dbef37b1b23762c7b5e337161b3d8e0498b Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
2021-01-05upgrade rpm version to 4.14.1upstream/4.14.1.1submit/tizen_base/20210113.025730submit/tizen_base/20210105.160930accepted/tizen/base/tool/20210118.215949biao716.wang427-79494/+144715
Change-Id: Iab5438d6e4d45c937b191c03e9ef5dd3fad165c8 Signed-off-by: biao716.wang <biao716.wang@samsung.com>
2020-12-02Fix building issue for tizen_base(configure: error: --with-msm given, but ↵submit/tizen_base/20201207.074011submit/tizen_base/20201203.051919submit/tizen_base/20201203.032811submit/tizen_base/20201203.031009submit/tizen_base/20201130.233154accepted/tizen/base/tool/20201213.215638jiankang.fan2-4/+3
attr/xattr.h not found). attr package's version be upgraded since Tizen 6.5 <attr/xattr.h> header; use <sys/xattr.h> instead Change-Id: I5a6dd9a2923ec0d2a4f15f9e608219448bdaa634 Signed-off-by: jiankang.fan <jiankang.fan@samsung.com>
2020-08-21Fix the issue for [ASAN][BUG] stack-use-after-scope in crash-manager on TM1submit/tizen_base/20201123.090647submit/tizen_base/20200825.071216submit/tizen_6.0_base/20201123.091612accepted/tizen/base/tool/20201125.225050accepted/tizen/6.0/base/tool/20201125.224919accepted/tizen/6.0/base/20230713.143043accepted/tizen_6.0_base_tooljiankang.fan1-1/+1
https://code.sec.samsung.net/jira/browse/TSIX-3628 The external pointer(keyp) refers to a local variable(mi_offset), but beyond the scope of the local variable, the pointer is still referenced. Change-Id: I2a9ee984e3e290a8f41c7d3cf4444786e087c41b Signed-off-by: jiankang.fan <jiankang.fan@samsung.com>
2020-05-07scripts: Fix eu-strip for files with 'debug' in pathnametizen_6.0.m2_releasesubmit/tizen_base/20200604.081031submit/tizen_base/20200511.102732submit/tizen_base/20200507.115505submit/tizen_6.0_base_hotfix/20201102.162702submit/tizen_6.0_base_hotfix/20201030.192502submit/tizen_6.0_base/20201029.184802accepted/tizen/base/20200608.211044accepted/tizen/6.0/base/tool/hotfix/20201102.085444accepted/tizen/6.0/base/tool/hotfix/20201030.124344accepted/tizen/6.0/base/tool/20201029.111542accepted/tizen/6.0/base/20201029.105819tizen_6.0_base_hotfixaccepted/tizen_6.0_base_tool_hotfixSlava Barinov1-1/+1
find-debuginfo.sh erroneously detected files with 'debug' in name as files which do have debuginfo sections. Change-Id: Ie18714130f2ee315cdabf56e521eb6f63cb98e8b Signed-off-by: Slava Barinov <v.barinov@samsung.com>
2020-03-04Filter out all debug files not starting with current package namesubmit/tizen_base/20200306.122724submit/tizen_base/20200305.112253accepted/tizen/base/20200309.015355Slava Barinov1-0/+4
This removes errors like cpio: glibc-2.24/csu: Cannot stat: No such file or directory Change-Id: Ib1a710b72a44be4bc5fd2e6871ef277c66068149 Signed-off-by: Slava Barinov <v.barinov@samsung.com>
2020-01-31Revert "Adding -std=gnu++11 command-line option to CXXFLAGS"submit/tizen_base/20200205.104845accepted/tizen/base/20200207.013601Dongkyun Son2-5/+5
This reverts commit 4998addba8f80a46875b84d7a9a20f4ccddff863. From https://gcc.gnu.org/gcc-6/changes.html The default mode for C++ is now -std=gnu++14 instead of -std=gnu++98. Change-Id: I6a0ea547436bc22352ca15df9da52fab73de582c
2019-08-01Merge "Fix binutils strip support" into tizen_basetizen_5.5.m2_releasesubmit/tizen_base/20190801.003618submit/tizen_5.5_base_wearable_hotfix/20201023.155602submit/tizen_5.5_base_mobile_hotfix/20201023.171502submit/tizen_5.5_base/20191030.000001accepted/tizen/base/20190805.091705accepted/tizen/5.5/base/wearable/hotfix/20201023.080232accepted/tizen/5.5/base/mobile/hotfix/20201023.083823accepted/tizen/5.5/base/20191030.084033tizen_5.5_tvtizen_5.5_base_wearable_hotfixtizen_5.5_base_mobile_hotfixtizen_5.5_baseaccepted/tizen_5.5_base_wearable_hotfixaccepted/tizen_5.5_base_mobile_hotfixaccepted/tizen_5.5_baseDongkyun Son1-2/+3
2019-08-01Fix binutils strip supportMikhail Kashkarov1-2/+3
1. Debug information was not connected with stripped part without .gnu_debuglink (eu-strip creates this section automatically) 2. chmod 444 was wrongly propagated to the binaries with the same .debug.id when we put stripped output in the initial input. Change-Id: Ie82a46daf8d8aaea0c3f31d97e99fabc6e8bf68f
2019-07-30Fix uninitialized data read SVACE issuesubmit/tizen_base/20190731.040839Slava Barinov1-1/+1
Change-Id: Ie77018682ed64f7f55eb7f40bf153578801f2a30 Signed-off-by: Slava Barinov <v.barinov@samsung.com>
2019-07-25Add support for strip (binutils) instead of default eu-strip (elfutils)Mikhail Kashkarov1-0/+1
eu-strip doesn't support custom section removing other than .comment: $ /usr/lib/rpm/find-debuginfo.sh --strip-option=--remove-section=.gnu.build.attributes ... eu-strip: -R option supports only .comment section find-debuginfo.sh selects strip/eu-strip based on: if [ "$STRIP_DEFAULT_PACKAGE" != "binutils" ]; So nothing is changed without: %define _enable_binutils_strip 1 %define _rpm_strip_option --remove-section=.gnu.build.attributes Change-Id: Ie37c61c3ae2b91a37ab57c92b96e459bfed7a698
2019-04-11fix tizen directory error right issue in docker opensuse42.1submit/tizen_base/20190528.094414submit/tizen_base/20190515.001408submit/tizen_base/20190513.032510submit/tizen_base/20190429.063955submit/tizen_base/20190416.052043accepted/tizen/base/20190530.225302biao.wang1-0/+2
Change-Id: I68eca62b65b69a5535626c757a2826262a842eb0
2019-03-18Fix detection of rpm arch typesubmit/tizen_base/20190326.000421accepted/tizen/base/20190402.084607Vyacheslav Cherkashin1-1/+1
`uname -m` command does not correctly identify the architecture to build the package because the buildroot architecture may be different from the kernel architecture Change-Id: Ic88898ddd9317301305a2c5c676857186ccb96ac Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
2019-01-02Notify about buildinfo parsing fail, fix leaksubmit/tizen_base/20190108.221718accepted/tizen/base/20190111.055034sandbox/dkson95/mergeMikhail Kashkarov1-0/+2
Without setting 'rc' code packing is failed with OK message: [ 2687s] error: Can't parse BUILDINFO tag: unknown error [ 2687s] Wrote: /home/abuild/rpmbuild/RPMS/armv7l/tizen-locale-0.1-2.49.armv7l.rpm As the result rpm was not wrote and process exits successfully without errors. Change-Id: I56a2a99b4347e056f79beda21180d1013148f4b6
2018-12-27Add default %_buildinfo for packagessubmit/tizen_base/20181228.105429Slava Barinov1-0/+6
Change-Id: I99dcdb6bbd713eef5ce2e9c85fa6c532ac45e04a Signed-off-by: Slava Barinov <v.barinov@samsung.com>
2018-12-27Move %_buildinfo setup into %pack sectionSlava Barinov2-9/+22
This allows to change %_buildinfo tag during the package build if required and allows customization of tag basing on build environment, e.g. for ASan builds. Change-Id: I0104c0eed3c16ac6edccc2c7a74fb12d38fff8aa Signed-off-by: Slava Barinov <v.barinov@samsung.com>
2018-10-29Add BUILDINFO rpm tagsubmit/tizen_base/20181031.095739accepted/tizen/base/20181102.125658Slava Barinov2-1/+13
The tag is intended for storage of Sanitizer build information or toolchain details. The tag is array of strings and it can be added to .spec file using line BuildInfo: buildtag1 buildtag2 or by defining tag trough %define _buildinfo buildtag1 Also the tag value can be queried using regular rpm query syntax: rpm -qp --queryformat "[%{BUILDINFO}\n]" The storage is intended for use at least for sanitized firmwares, but can be reused for storing any information required for Tizen build details. Change-Id: Icfc0c384c5a5d3b82973ee0be9345e396723174c Signed-off-by: Slava Barinov <v.barinov@samsung.com>
2018-06-11Remove LD_AS_NEEDED env variablesubmit/tizen_base/20180611.080608submit/tizen_5.0_base/20181101.000002accepted/tizen/base/20180615.200136accepted/tizen/5.0/base/20181101.091432tizen_5.0_basesandbox/test/rpm_upgradeaccepted/tizen_5.0_baseUkJung Kim1-1/+0
LD_AS_NEEDED env variable is not supported Change-Id: I4727e323a3b79129e22942224366931861776a99
2018-04-24Merge "Single security manifest in debuginfo package" into tizen_basesubmit/tizen_base/20180607.041826sandbox/soong9/rpm_4.14.1sandbox/dnxowls/rpm_4.14.1_upgradeChunhua Liu1-3/+3
2018-04-13Revert "Enable Armoring Feature - Add pie option"SoonKyu Park1-2/+2
This reverts commit 079d890dfd09f5c175d05387c05bfdd7e47c66b4. It results in build failure on x86_64 architecture Change-Id: I81ffe5e19ad252c27549f3f3c2ccfd16dceed6a6
2018-04-10Add LGPL-2.0+ license notification on rpm.spec fileSoonKyu Park1-1/+1
Change-Id: Id6a78df4c4683ebf348915b24d5f6fefe2b429e5
2018-03-26Single security manifest in debuginfo packageKrzysztof Jackiewicz1-3/+3
Rpm builder adds one security manifest for each debug file in debuginfo package. For packages containing more than one binary this leads to creation of multiple copies of the manifest in the debuginfo package. The msm plugin expects only one manifest and if there's more of them, it treats it as an error and falls back to the default policy ("No manifest in this package. Creating default one"). As a result the debug files get their labels from the installing process. This leads to access denials when unprivileged processes try to access the debug files. This commit modifies the builder so that the security manifest is added only once. Change-Id: I8c29897d80664af0760eb2e3204baec1fe7ecdb2
2018-01-25Add scriptlet-specific disablers for %pretrans and %posttranssubmit/tizen_base/20180330.050344Panu Matilainen5-5/+24
- Previously %pretrans and %posttrans were tied to --nopre and --nopost disablers (since commit 0b2d7775c5e828652e45829f551352b93890bbc8) because back then, there was no room new disablers in rpmtransFlags bitfield. This is no longer the case as of rpm >= 4.9.x where a bunch of obsolete flags were axed, so we can now add specific --nopretrans and --noposttrans switches + corresponding flags. - This is obviously a behavior change as --nopre and --nopost no longer affect %pretrans and %posttrans, but --noscripts behavior remains the same. Change-Id: I7d8ebba44573f0a72a4eecfc8040af86e95409ce
2018-01-24Enable Armoring Feature - Add pie optionsubmit/tizen_base/20180124.070639SoonKyu Park1-2/+2
Change-Id: Iab46b1827bb37d14aaa8235cf992eb8fc2b3b564
2017-12-18Modify Prevent warning - case of 'RESOURCE_LEAK' : adjust malloc-free ↵submit/tizen_base/20171218.123350accepted/tizen/base/20171222.155030SoonKyu Park1-0/+1
combination Change-Id: If7b72745e0ef8fae3e3991e61a37ca26cde67723
2017-10-16Add armv7hl support.submit/tizen_base/20171024.003248accepted/tizen/base/20171027.152135Mikhail Kashkarov2-0/+5
Change-Id: I5f1d6a591fdff247328f72e1b531a0e1b0aaf9d1
2017-09-04Added _debug_manifest to set SMACK label to "_" for debug packagessubmit/tizen_base/20170830.083645accepted/tizen/base/20170908.223808Slava Barinov5-2/+20
Tizen debuginfo and debugsource packages have arbitrary SMACK labels, which are inherited from the process that performs installation. Sometimes this leads to "Access denied" while reading debuginfo by tools. Change-Id: I321a327ba8bf651b4875df42082522f4867cadee Signed-off-by: Slava Barinov <v.barinov@samsung.com>
2017-08-17Apply ASLR optionsubmit/tizen_base/20170818.014231accepted/tizen/base/20170901.225508SoonKyu Park1-1/+10
Change-Id: I12544b91c972bcb563e92bff9d76ea5cf289280d
2017-04-24Adding -std=gnu++11 command-line option to CXXFLAGStizen_4.0.m1_releasesubmit/tizen_base/20170428.015534submit/tizen_4.0_base/20170828.000001submit/tizen_4.0_base/20170828.000000submit/tizen_4.0_base/20170811.071500accepted/tizen/base/20170429.025002accepted/tizen/4.0/base/20170828.221319accepted/tizen/4.0/base/20170811.093014Dongkyun, Son2-5/+5
GCC 6 defaults to -std=gnu++14 instead of -std=gnu++98: the C++11 standard, plus GNU extensions. Tizen prefer to update to gnu++11, bringing in the C++11 changes but not the C++14 ones. Change-Id: Idd30e078bf3c9ec1d31c833b5ed68f686308d410 Signed-off-by: Dongkyun, Son <dongkyun.s@samsung.com>
2017-04-18Added %posttrans log message for verbose informationUkJung Kim1-0/+4
It takes long time when running %posttrans scripts of packages but there is no way to know what is urunning. This change adds log message before running each %posttrans script. Change-Id: I774d1dd28ab6a81ea40da392f293f5a86fa69e43
2017-04-12Fix the script install proceduresubmit/tizen_base/20170412.105805accepted/tizen/base/20170413.143945Slava Barinov2-3/+3
When the %rpmhome is not set to libdir the install order is wrong. Change-Id: I5f79075298731ec1c60333c3ee0f5c583b07f16b Signed-off-by: Slava Barinov <v.barinov@samsung.com>
2017-04-11packaging: revert rpmlibdir to /usr/lib/Dongkyun, Son1-1/+1
This change will not have below error on aarch64 caused by rpmconfigdir error: Unable to open /usr/lib/rpm/rpmrc for reading: Too many levels of symbolic links. Change-Id: Ic896e64c80bd91a36f0bf4214c9ad4cfe55da2a7 Signed-off-by: Dongkyun, Son <dongkyun.s@samsung.com>
2017-04-06fixup! [4.0] Use strip (instead of eu-strip) to support --strip-debug of ↵submit/tizen_base/20170410.064620Youngsoo Choi1-2/+3
*.so at build time The command strip has been in use building for chromium-efl like below. $ strip --remove-section=.comment -o /PATH/TO/libchromium-ewk.so.debug /PATH/TO/libchromium-ewk.so Also, it has been expected that the argument libchromium-ewk.so.debug will have section .debug_* and another argument libchromium-ewk.so will be stripped. Btw, the libchromium-ewk.so.debug doesn't have the section .debug_* but the libchromium-ewk.so still has the section. The argument files need to be switched each other. With this CL, the libchromium-ewk.so.debug properly has the section .debug_* like below and libchromium-ewk.so is stripped. > ... > 28 .debug_line 048e8963 00000000 00000000 0231a318 2**0 > CONTENTS, READONLY, DEBUGGING > 29 .debug_info b61b6cbd 00000000 00000000 06c02c7b 2**0 > CONTENTS, READONLY, DEBUGGING > 30 .debug_abbrev 0349bf7f 00000000 00000000 bcdb9938 2**0 > CONTENTS, READONLY, DEBUGGING > 31 .debug_aranges 004047a0 00000000 00000000 c02558b8 2**3 > CONTENTS, READONLY, DEBUGGING > 32 .debug_ranges 015dbc78 00000000 00000000 c065a058 2**3 > CONTENTS, READONLY, DEBUGGING > ... > 34 .debug_loc 08b66519 00000000 00000000 c1c35cfd 2**0 > CONTENTS, READONLY, DEBUGGING > 35 .debug_str 10b85beb 00000000 00000000 ca79c216 2**0 > CONTENTS, READONLY, DEBUGGING > 36 .debug_frame 00d2f1b4 00000000 00000000 db321e04 2**2 > CONTENTS, READONLY, DEBUGGING > ... The file size is like below. before) 3.5G libchromium-ewk.so 36M libchromium-ewk.so.debug after) 36M libchromium-ewk.so 3.5G libchromium-ewk.so.debug Bug: http://suprem.sec.samsung.net/jira/browse/RWASP-807 Change-Id: I11e80373fa9973663ee2c7b2092ae9a5f678cbc8 Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
2017-04-03Add %license to all sub-packagessubmit/tizen_base/20170403.103251SoonKyu Park1-0/+4
Change-Id: I1214981ceb82d53c96becbe9d59e87e6272897bd
2017-02-27Add support for %_rpmconfigdirSlava Barinov5-28/+40
This allows moving rpm configs in x86_64 environment to prevent clashing in multilib environments. Change-Id: I8aa94d47f6b6fc6cb1ece88417363bb57ac8c14c Signed-off-by: Slava Barinov <v.barinov@samsung.com>
2017-02-28Revert "Add support for Recommends:, Suggests:, Supplements: and Enhances:"submit/tizen_base/20170228.034447accepted/tizen/base/20170228.084720SoonKyu Park10-112/+8
This reverts commit c31c49f42b54dcf6edb8804e633e6b6985acbb41. Change-Id: I94a88f43ba2db764c7c3a9435683ca26fe97c565
2017-02-28Revert "Backporting weak dependencies"SoonKyu Park2-20/+4
This reverts commit 822fe26c20549c1e891d874316cf91a7b244c23d. Change-Id: Ic866ff716b4d547b4499f701b7577d025b89e8db
2017-02-14[4.0] Support alternative way to choose between strip and eu-stripsubmit/tizen_base/20170216.050845accepted/tizen/base/20170217.190209Geunsik Lim1-1/+7
This commit is to solve a stripping issue of chromium-efl (m53). Note that up-to-date elfutils package(e.g., the elfutils version 0.168 (3a45dbbe7) have fixed this issue. However, GPLv3 is a problem. Let's support an alternative way to choose between strip (binutils) and eu-strip (elfutils) to handle in case of a large shared object such as chromium project. The default strip of rpmbuild is eu-strip. * Case study: chromium-efl(m53) Here is how to replace eu-strip (elfutils) with strip (binutils): $ vi ./packaging/<git-package-name>.spec # Let's replace eu-strip (elf-utils) with strip (binutils) in %install. export STRIP_DEFAULT_PACKAGE="binutils" Change-Id: Idca08e2f65ea084c6b5eb3c5cd218477f6da1a5f Signed-off-by: Geunsik Lim <geunsik.lim@samsung.com>
2017-01-24[4.0] Use strip (instead of eu-strip) to support --strip-debug of *.so at ↵submit/tizen_base/20170210.011342Geunsik Lim1-1/+1
build time eu-strip can not normally remove debugging symbols in case of a large so file such as libchromium-efl.so (2.8GiB) at build time. The up-to-date version of eu-strip handles this issue by merging the commit that was submitted by Mark Wielaard as following: http://www.mail-archive.com/elfutils-devel@lists.fedorahosted.org/msg04444.html In order to avoid eu-strip modification such as backporting, use strip(binutils) instead of eu-strip(elfutils) because the existing strip has already fixed this issue. before) eu-strip --remove-comment $g $strip_option -f "$1" "$2" || exit after) strip --remove-section=.comment $g $strip_option -o "$1" "$2" || exit * build error: eu-strip: /home/abuild/rpmbuild/BUILDROOT/chromium-efl-53.2785.0.36-1.arm/usr/ lib/libchromium-ewk.so: INTERNAL ERROR 936 (0.153-Jan 6 2017): cannot read data from file * unit test: $ sudo chroot ~/GBS-ROOT/local/BUILD-ROOTS/scratch.armv7l.0/ /bin/bash $ strip --remove-section=.comment -g ./libchromium-efl.so $ ls -al * evaluation: $ sudo chroot ~/GBS-ROOT/local/BUILD-ROOTS/scratch.armv7l.0/ /bin/bash $ rpm -ivh rpm-build-4.11.0.1-0.armv7l.rpm --force --nodeps $ git checkout tizen_m53_beta $ gbs build --define "nodebug 0" ...... (or ./tizen_src/build/build_mobile.sh -P tzmb_v3.0_target-TM1_mirror -A armv7l) Change-Id: I7ae755b1f4570a28c0fc3088801b12f2ffd21808 Reported-by: Youngsoo Choi <kenshin.choi@samsung.com> Signed-off-by: Geunsik Lim <geunsik.lim@samsung.com> Reviewed-by: Dongkyun Son <dongkyun.s@samsung.com>
2017-01-10Backporting weak dependenciessubmit/tizen_base/20170116.123126accepted/tizen/base/20170120.121825MyungJoo Ham2-4/+20
Additional modifications to support weak dependencies (resolving errors from the cherry-pick) rebased. Change-Id: I34e9a5b11853dd4c0862dfbb119a3a5b7dd4f2bd Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
2017-01-09Add support for Recommends:, Suggests:, Supplements: and Enhances:Florian Festi10-8/+112
Change-Id: I24f0b1c0e98003a75b097c8afe7be19e21506695 Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
2017-01-02Only use multi thread support with liblzma >= 5.2.0submit/tizen_base/20170102.104445accepted/tizen/base/20170106.101320Florian Festi1-2/+15
Change-Id: Icac0310111aa3b59197af934659f7b94ca403059
2017-01-02prevent exceeding 32 bit memory limitations with multithreaded xz compressionPer Øyvind Karlsen1-0/+43
As 32 bit build suffers under the limitation of 32 bit address space, regardless of it's environment would be ie. 64 bit and not have this constration, rpm must make sure not to exceed this memory limitation. When using multithreaded xz compression, the number of threads used will increase the memory usage, making it necessary to check the memory required with the number of threads to be used. Number of compression threads will therefore be kept reduced untill amount of memory required won't exceed this limitation. For 32 bit binaries running under 64 bit host environment, where less available memory will be reserved for kernel, easing memory constraints, determination of this will be done by a combination of checking host arch as well as whether 32 bit personality flag is set, thereby still allow a sligthly greater memory usage for such cases to avoid imposing unnecessatry limitations under such environments. Change-Id: Ie72827d3067a353a8a48faff9b65595c99f60a4c
2017-01-02Add support for multithreaded xz compressionPer Øyvind Karlsen1-1/+29
Change-Id: I77af75943420c65868672f05cbde73563370c351
2017-01-02add support for setting xz memlimitPer Øyvind Karlsen1-1/+2
Change-Id: If7513a85c77692983bc2cb948f5b92eea3b304d8
2017-01-02add rpmlog(RPMLOG_ERR, ...) for liblzma return codesPer Øyvind Karlsen1-0/+13
Change-Id: I25c017827b38e2141dcff4d6bfd398f9e1a008c2
2017-01-02reflect default xz & lzma compression level changes in macros as wellPer Øyvind Karlsen1-2/+2
Change-Id: I3b95d39e0385ad50a6e8ed244757dd1fa8797f6e