biao716.wang [Fri, 9 Jun 2023 06:05:58 +0000 (15:05 +0900)]
correct to use right hookFunc in rpmpluginsCallFileConflict
Change-Id: I172f3fada936e6af8026afe647f475b5b086c258
Signed-off-by: biao716.wang <biao716.wang@samsung.com>
biao716.wang [Thu, 27 Apr 2023 06:26:54 +0000 (15:26 +0900)]
Merge remote-tracking branch 'origin/tizen_7.0_base' into tizen_base
Change-Id: Ib0394ae94b21938a4ec886877b481d8254515c2f
biao716.wang [Thu, 30 Mar 2023 06:50:29 +0000 (15:50 +0900)]
Fix vd build error with rpm 4.14 for writing %files debuginfo
This patch is compatible with old writing way in spec file for vd projects.
in some vd project, there is such section:
%file debuginfo
XXXXX
In current logic, there is no need to write this way in rpm 4.14, it will check if
there is XXX.debug kind of files, if there is none, no debuginfo package is generated.
But in vd projects' spec, it put some files which is not XXX.debug files to debuginfo package,
this is not allowed in rpm 4.14.
Change-Id: I735bed46de8b6c67fb0730476544075d332b46b4
Signed-off-by: biao716.wang <biao716.wang@samsung.com>
biao716.wang [Tue, 21 Mar 2023 06:08:48 +0000 (15:08 +0900)]
Fix build error: Ignore rewrite "%package debuginfo" section in spec file
Change-Id: I4ecc81988f64c395aef10b4f7c089fba1cc9e614
Signed-off-by: biao716.wang <biao716.wang@samsung.com>
wang biao [Fri, 24 Feb 2023 03:37:58 +0000 (11:37 +0800)]
Fix CVE-2021-3421: Be much more careful about copying data from the signature header
https://github.com/rpm-software-management/rpm/commit/
d6a86b5e69e46cc283b1e06c92343319beb42e21
have to change something to apply this patch.
Change-Id: I7a9ca96884f5a6181bfe156b1dd59a6cf10f36f7
Signed-off-by: wang biao <biao716.wang@samsung.com>
wang biao [Thu, 23 Feb 2023 07:03:36 +0000 (15:03 +0800)]
Fix CVE-2021-20266: hdrblobInit() needs bounds checks too
https://github.com/rpm-software-management/rpm/commit/
8f4b3c3cab8922a2022b9e47c71f1ecf906077ef
Fix CVE-2021-3521: Validate and require subkey binding signatures on PGP public keys
https://github.com/rpm-software-management/rpm/commit/
bd36c5dc9fb6d90c46fbfed8c2d67516fc571ec8
Change-Id: I3daeff22a4f7240923cb1eb82bc9822cd3737d86
Signed-off-by: wang biao <biao716.wang@samsung.com>
Andrey Kazmin [Thu, 8 Jul 2021 10:59:25 +0000 (13:59 +0300)]
Remove SIGTRAP from block list for HWASan build
HWASan uses SIGTRAP to report an error. Do not block it.
Change-Id: I5c89ae4930a3cb2edddbc3034d430356557cddba
Signed-off-by: Andrey Kazmin <a.kazmin@partner.samsung.com>
Chanwoo Choi [Fri, 19 Mar 2021 05:01:46 +0000 (14:01 +0900)]
Add macros for new /hal/bin and /hal/sbin path
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>
biao716.wang [Tue, 23 Feb 2021 08:00:38 +0000 (17:00 +0900)]
Fix generate empty debugsource packages with rpm 4.14.1
Change-Id: I6492ba2f49b43470edff096685621147bdadbcfc
Signed-off-by: biao716.wang <biao716.wang@samsung.com>
biao716.wang [Mon, 25 Jan 2021 08:58:12 +0000 (17:58 +0900)]
Remove timeout logic to wait for shared lock in db3.c file
Change-Id: Ia689033d2c145335fcc0038651a6b6ee66dad518
Signed-off-by: biao716.wang <biao716.wang@samsung.com>
Chanwoo Choi [Wed, 13 Jan 2021 08:05:34 +0000 (17:05 +0900)]
Add macros for new /hal path
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>
biao716.wang [Tue, 5 Jan 2021 05:51:28 +0000 (14:51 +0900)]
upgrade rpm version to 4.14.1
Change-Id: Iab5438d6e4d45c937b191c03e9ef5dd3fad165c8
Signed-off-by: biao716.wang <biao716.wang@samsung.com>
jiankang.fan [Wed, 2 Dec 2020 12:26:39 +0000 (21:26 +0900)]
Fix building issue for tizen_base(configure: error: --with-msm given, but 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>
jiankang.fan [Fri, 21 Aug 2020 05:52:50 +0000 (14:52 +0900)]
Fix the issue for [ASAN][BUG] stack-use-after-scope in crash-manager on TM1
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>
Slava Barinov [Thu, 7 May 2020 08:45:28 +0000 (11:45 +0300)]
scripts: Fix eu-strip for files with 'debug' in pathname
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>
Slava Barinov [Wed, 4 Mar 2020 06:41:24 +0000 (09:41 +0300)]
Filter out all debug files not starting with current package name
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>
Dongkyun Son [Fri, 31 Jan 2020 08:06:59 +0000 (17:06 +0900)]
Revert "Adding -std=gnu++11 command-line option to CXXFLAGS"
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
Dongkyun Son [Thu, 1 Aug 2019 11:25:32 +0000 (11:25 +0000)]
Merge "Fix binutils strip support" into tizen_base
Mikhail Kashkarov [Tue, 30 Jul 2019 20:50:49 +0000 (23:50 +0300)]
Fix binutils strip support
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
Slava Barinov [Tue, 30 Jul 2019 07:36:30 +0000 (10:36 +0300)]
Fix uninitialized data read SVACE issue
Change-Id: Ie77018682ed64f7f55eb7f40bf153578801f2a30
Signed-off-by: Slava Barinov <v.barinov@samsung.com>
Mikhail Kashkarov [Thu, 25 Jul 2019 11:54:04 +0000 (14:54 +0300)]
Add support for strip (binutils) instead of default eu-strip (elfutils)
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
biao.wang [Thu, 11 Apr 2019 12:40:31 +0000 (20:40 +0800)]
fix tizen directory error right issue in docker opensuse42.1
Change-Id: I68eca62b65b69a5535626c757a2826262a842eb0
Vyacheslav Cherkashin [Mon, 18 Mar 2019 17:10:02 +0000 (20:10 +0300)]
Fix detection of rpm arch type
`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>
Mikhail Kashkarov [Fri, 28 Dec 2018 14:37:16 +0000 (17:37 +0300)]
Notify about buildinfo parsing fail, fix leak
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
Slava Barinov [Wed, 14 Nov 2018 08:13:08 +0000 (11:13 +0300)]
Add default %_buildinfo for packages
Change-Id: I99dcdb6bbd713eef5ce2e9c85fa6c532ac45e04a
Signed-off-by: Slava Barinov <v.barinov@samsung.com>
Slava Barinov [Wed, 12 Dec 2018 07:59:45 +0000 (10:59 +0300)]
Move %_buildinfo setup into %pack section
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>
Slava Barinov [Wed, 3 Oct 2018 08:33:36 +0000 (11:33 +0300)]
Add BUILDINFO rpm tag
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>
UkJung Kim [Fri, 13 Apr 2018 04:39:43 +0000 (13:39 +0900)]
Remove LD_AS_NEEDED env variable
LD_AS_NEEDED env variable is not supported
Change-Id: I4727e323a3b79129e22942224366931861776a99
Chunhua Liu [Tue, 24 Apr 2018 09:04:56 +0000 (09:04 +0000)]
Merge "Single security manifest in debuginfo package" into tizen_base
SoonKyu Park [Fri, 13 Apr 2018 06:14:20 +0000 (15:14 +0900)]
Revert "Enable Armoring Feature - Add pie option"
This reverts commit
079d890dfd09f5c175d05387c05bfdd7e47c66b4.
It results in build failure on x86_64 architecture
Change-Id: I81ffe5e19ad252c27549f3f3c2ccfd16dceed6a6
SoonKyu Park [Tue, 10 Apr 2018 06:22:20 +0000 (15:22 +0900)]
Add LGPL-2.0+ license notification on rpm.spec file
Change-Id: Id6a78df4c4683ebf348915b24d5f6fefe2b429e5
Krzysztof Jackiewicz [Mon, 26 Mar 2018 15:28:22 +0000 (17:28 +0200)]
Single security manifest in debuginfo package
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
Panu Matilainen [Wed, 10 Apr 2013 08:31:41 +0000 (11:31 +0300)]
Add scriptlet-specific disablers for %pretrans and %posttrans
- 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
SoonKyu Park [Wed, 24 Jan 2018 06:19:49 +0000 (15:19 +0900)]
Enable Armoring Feature - Add pie option
Change-Id: Iab46b1827bb37d14aaa8235cf992eb8fc2b3b564
SoonKyu Park [Mon, 18 Dec 2017 11:42:42 +0000 (20:42 +0900)]
Modify Prevent warning - case of 'RESOURCE_LEAK' : adjust malloc-free combination
Change-Id: If7b72745e0ef8fae3e3991e61a37ca26cde67723
Mikhail Kashkarov [Thu, 11 May 2017 09:25:38 +0000 (12:25 +0300)]
Add armv7hl support.
Change-Id: I5f1d6a591fdff247328f72e1b531a0e1b0aaf9d1
Slava Barinov [Tue, 18 Jul 2017 10:21:10 +0000 (13:21 +0300)]
Added _debug_manifest to set SMACK label to "_" for debug packages
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>
SoonKyu Park [Thu, 17 Aug 2017 11:58:15 +0000 (20:58 +0900)]
Apply ASLR option
Change-Id: I12544b91c972bcb563e92bff9d76ea5cf289280d
Dongkyun, Son [Mon, 24 Apr 2017 12:25:18 +0000 (21:25 +0900)]
Adding -std=gnu++11 command-line option to CXXFLAGS
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>
UkJung Kim [Tue, 28 Mar 2017 01:13:30 +0000 (10:13 +0900)]
Added %posttrans log message for verbose information
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
Slava Barinov [Tue, 11 Apr 2017 07:23:55 +0000 (10:23 +0300)]
Fix the script install procedure
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>
Dongkyun, Son [Mon, 10 Apr 2017 22:40:02 +0000 (07:40 +0900)]
packaging: revert rpmlibdir to /usr/lib/
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>
Youngsoo Choi [Wed, 5 Apr 2017 10:29:07 +0000 (19:29 +0900)]
fixup! [4.0] Use strip (instead of eu-strip) to support --strip-debug of *.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>
SoonKyu Park [Mon, 3 Apr 2017 08:02:51 +0000 (17:02 +0900)]
Add %license to all sub-packages
Change-Id: I1214981ceb82d53c96becbe9d59e87e6272897bd
Slava Barinov [Fri, 27 Jan 2017 12:21:36 +0000 (15:21 +0300)]
Add support for %_rpmconfigdir
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>
SoonKyu Park [Tue, 28 Feb 2017 01:13:52 +0000 (10:13 +0900)]
Revert "Add support for Recommends:, Suggests:, Supplements: and Enhances:"
This reverts commit
c31c49f42b54dcf6edb8804e633e6b6985acbb41.
Change-Id: I94a88f43ba2db764c7c3a9435683ca26fe97c565
SoonKyu Park [Tue, 28 Feb 2017 01:13:18 +0000 (10:13 +0900)]
Revert "Backporting weak dependencies"
This reverts commit
822fe26c20549c1e891d874316cf91a7b244c23d.
Change-Id: Ic866ff716b4d547b4499f701b7577d025b89e8db
Geunsik Lim [Sat, 11 Feb 2017 14:25:40 +0000 (23:25 +0900)]
[4.0] Support alternative way to choose between strip and eu-strip
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>
Geunsik Lim [Mon, 23 Jan 2017 11:04:31 +0000 (20:04 +0900)]
[4.0] Use strip (instead of eu-strip) to support --strip-debug of *.so at 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>
MyungJoo Ham [Wed, 26 Oct 2016 08:32:32 +0000 (17:32 +0900)]
Backporting weak dependencies
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>
Florian Festi [Mon, 17 Feb 2014 10:27:49 +0000 (11:27 +0100)]
Add support for Recommends:, Suggests:, Supplements: and Enhances:
Change-Id: I24f0b1c0e98003a75b097c8afe7be19e21506695
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Florian Festi [Thu, 26 Nov 2015 10:07:47 +0000 (11:07 +0100)]
Only use multi thread support with liblzma >= 5.2.0
Change-Id: Icac0310111aa3b59197af934659f7b94ca403059
Per Øyvind Karlsen [Thu, 8 Sep 2016 23:52:39 +0000 (01:52 +0200)]
prevent exceeding 32 bit memory limitations with multithreaded xz compression
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
Per Øyvind Karlsen [Wed, 12 Aug 2015 01:15:42 +0000 (03:15 +0200)]
Add support for multithreaded xz compression
Change-Id: I77af75943420c65868672f05cbde73563370c351
Per Øyvind Karlsen [Wed, 12 Aug 2015 01:12:06 +0000 (03:12 +0200)]
add support for setting xz memlimit
Change-Id: If7513a85c77692983bc2cb948f5b92eea3b304d8
Per Øyvind Karlsen [Wed, 12 Aug 2015 01:12:27 +0000 (03:12 +0200)]
add rpmlog(RPMLOG_ERR, ...) for liblzma return codes
Change-Id: I25c017827b38e2141dcff4d6bfd398f9e1a008c2
Per Øyvind Karlsen [Tue, 22 Sep 2015 16:42:59 +0000 (18:42 +0200)]
reflect default xz & lzma compression level changes in macros as well
Change-Id: I3b95d39e0385ad50a6e8ed244757dd1fa8797f6e
Per Øyvind Karlsen [Tue, 22 Sep 2015 18:50:02 +0000 (20:50 +0200)]
lowest xz compression level is '0'
Change-Id: Ie430058a1ecd3c03627060c1b32080d0d47a3877
Thierry Vignaud [Thu, 12 Feb 2009 10:59:31 +0000 (10:59 +0000)]
really default to default XZ compression level
which BTW fix the default compression level which is 6 instead of 7
Change-Id: I8b9b50a2cd1f64169477a72cc4d36a374d7a9867
SoonKyu Park [Tue, 30 Aug 2016 07:38:05 +0000 (16:38 +0900)]
msm related macros are defined in post scrpit of rpm-security-plugin
Remove msm related macros inside macros.in file
Change-Id: I3ae680b13739f92624f757934fe884737c9181bf
SoonKyu Park [Tue, 23 Aug 2016 09:50:14 +0000 (18:50 +0900)]
Modify regular expression inside packaging/libsymlink.attr with 'file' package upgrade
Change-Id: I4cecbdb5034cef6ca42b8a8ed95792e73bf81c04
SoonKyu Park [Tue, 12 Jul 2016 13:17:42 +0000 (22:17 +0900)]
Change 'libdir' macro re-definition
libdir macro which is re-defined in each platform macro : is not defined by ARCH but by _host_cpu
Change-Id: I2b5a10c817a1b8703bc3e51e8970ea73e49c5815
SoonKyu Park [Thu, 30 Jun 2016 09:55:35 +0000 (18:55 +0900)]
Add the default path in the script file
Change-Id: Ie5ccab262eed0494676bddfeba7ee16c25698a79
SoonKyu Park [Sun, 1 May 2016 08:18:29 +0000 (17:18 +0900)]
Add '_rpm_ko_strip_option' which is used in strip of ko files
Change-Id: I24e489e0a965a85310d045435100f5ad2e95a592
SoonKyu Park [Fri, 18 Mar 2016 06:50:32 +0000 (15:50 +0900)]
Modify __libsymlink_exclude_path to exclude path - add ^/usr/lib/debug
Change-Id: Id4a2f8473d111284afbdb7760736b2a84a5954e4
SoonKyu Park [Thu, 10 Mar 2016 05:20:12 +0000 (14:20 +0900)]
Modify __libsymlink_exclude_path to exclude path whose name has digit
Change-Id: I37f9794b4d009c6c7241b91d1c15b4c60633f62b
SoonKyu Park [Thu, 25 Feb 2016 00:20:27 +0000 (09:20 +0900)]
Make symlink file add to fileattr
Change-Id: Ice05610d1c23eaf2dc1fb0cdf610feb20ad1cfab
SoonKyu Park [Thu, 14 Jan 2016 06:16:11 +0000 (15:16 +0900)]
Change how to add Package Provide to debuginfo package : add Package Provide using addPackageProvides_for_debuginfo_pkg
Change-Id: Iee094726b58250b7e86ebd3b508e30eb7c5389c9
SoonKyu Park [Mon, 7 Dec 2015 01:25:50 +0000 (10:25 +0900)]
Modify eu-strip option to perform strip in post script of rpm package & add option add '_rpm_strip_disable' option and '_rpm_strip_option' to project config.
Change-Id: I3718510670465957e7048db6ed285bd8ed09a5dd
SoonKyu Park [Fri, 4 Dec 2015 08:03:56 +0000 (17:03 +0900)]
Modify how to make symbolic link in 'find-debuginfo.sh' script
Change-Id: I157f6a027820e0448e1ee95e10d1b42e8c95fcea
park [Fri, 4 Dec 2015 07:39:04 +0000 (23:39 -0800)]
Revert "Modify eu-strip option to perform strip in post script of rpm package & add option add '_rpm_strip_disable' option and '_rpm_strip_option' to project config."
This reverts commit
dc338f74bbe69185d09a419ecda8e5fa35bb4acb.
Change-Id: I3c15db4307ea877b660ca6ea1056aa0e26b0e182
SoonKyu Park [Thu, 26 Nov 2015 11:10:16 +0000 (20:10 +0900)]
Modify eu-strip option to perform strip in post script of rpm package & add option add '_rpm_strip_disable' option and '_rpm_strip_option' to project config.
Change-Id: I939ca673d8dd06ebd0cb414d5471bdf962d8f5e1
Dongkyun Son [Thu, 4 Jun 2015 13:28:43 +0000 (06:28 -0700)]
Merge "Add support for global LDFLAGS" into tizen
Yury Usishchev [Wed, 10 Dec 2014 09:46:57 +0000 (12:46 +0300)]
Add support for global LDFLAGS
New variable global_LDFLAGS can be defined in project config
to set default LDFLAGS during build.
Change-Id: I4da460c26b3f693833c74cb19d7234e78dbd4fc7
Signed-off-by: Yury Usishchev <y.usishchev@samsung.com>
José Bollo [Fri, 10 Apr 2015 14:32:51 +0000 (16:32 +0200)]
msm: consistency for equally ranked keys
The conflicts within the packages of equally ranked keys
must be treated usually by rpm.
Without this change, installation of conflicting packages
is not possible when msm plugin is active.
Change-Id: I909540524c7e2b43229b8aac90f66430041cbd55
Signed-off-by: José Bollo <jose.bollo@open.eurogiciel.org>
Yury Usishchev [Fri, 16 Jan 2015 14:25:39 +0000 (17:25 +0300)]
Change ',' to '#' in sed 's' command
After 31699 optflags can contain ',' which breaks macros generation.
Change-Id: I86016ae4f5f97eadeb17c8ad79089539069b7f38
Signed-off-by: Yury Usishchev <y.usishchev@samsung.com>
Philippe Coval [Mon, 8 Dec 2014 15:00:20 +0000 (16:00 +0100)]
optflags: set _FORTIFY_SOURCE for preproc
Without it will fail if optflags are not overridden
and raise an error like :
configure: CFLAGS error: CFLAGS may only be used to specify C compiler flags, not macro definitions. Use CPPFLAGS for: -D_FORTIFY_SOURCE=2
configure: error: Can not continue. Fix errors mentioned immediately above this line.
error: Bad exit status from /var/tmp/rpm-tmp.AoOYbS (%build)
More details at :
https://gcc.gnu.org/onlinedocs/gcc-4.9.2/gcc/Preprocessor-Options.html#index-Wp-986
Change-Id: I49c8545a0526a1922905ef55de3a59edf9036068
Signed-off-by: Philippe Coval <philippe.coval@open.eurogiciel.org>
Stéphane Desneux (sdx) [Wed, 3 Dec 2014 13:47:50 +0000 (05:47 -0800)]
Merge "Fixed incorrect writting host_os to platform/macros for uClibc" into tizen
Stéphane Desneux (sdx) [Wed, 3 Dec 2014 13:46:12 +0000 (05:46 -0800)]
Merge "allow rpm to custom systemd installation" into tizen
Ronan Le Martret [Wed, 5 Nov 2014 14:35:02 +0000 (15:35 +0100)]
allow rpm to custom systemd installation
Change-Id: I5d0d86ca8788837c78ee078c5dfa6d4396168f95
Signed-off-by: Ronan Le Martret <ronan@fridu.net>
Chanho Park [Wed, 3 Dec 2014 01:15:37 +0000 (10:15 +0900)]
replace obsoleted "find -perm +NNN" syntax
This patch is required when we use findutils-4.5.14 version. When we
tried to upgrade the findutils to 4.5.14 version, I've got below error
because the version of findutils obsoleted "find -perm +NNN".
[ 146s] find: invalid mode '+111'
[ 146s] error: Bad exit status from /var/tmp/rpm-tmp.5tcK7o (%install)
I picked up this patch from openSUSE[1] to solve this problem.
Origin: mail@bernhard-voelker.de
- replace obsoleted "find -perm +NNN" syntax [bnc#842004]
to "-perm /NNN" in debugsource-package.diff and
finddebuginfo.diff.
[1]: https://build.opensuse.org/request/show/200349
Change-Id: I38394427e4a806111550ad8ee560a448dd7a7307
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
Łukasz Stelmach [Thu, 27 Nov 2014 14:44:12 +0000 (15:44 +0100)]
Adapt for Yocto, remove pushd/popd bashisms
Apparently Yocto and BitBake do not use bash(1) as /bin/sh and break
when fed with bashisms like pushd/popd.
Bug-Tizen: BTY-21
Change-Id: I1a2781f97968b7290954297820b083759f11f0ed
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
Łukasz Stelmach [Thu, 20 Nov 2014 12:18:23 +0000 (13:18 +0100)]
Remove unnecessary Group tag for localisation packages
Localisation packages should be in the same group as the main package[1].
[1] https://wiki.tizen.org/wiki/Packaging/Guidelines#Group_Tag
Change-Id: Idd50d5a96f03ca316deaec61361016eb59db4065
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
Nataliia Koval [Mon, 20 Oct 2014 14:30:08 +0000 (17:30 +0300)]
Fixed incorrect writting host_os to platform/macros for uClibc
Change-Id: I107f04237037daffbc0d972ad9fed84a42836392
Signed-off-by: Nataliia Koval <nataliia.koval@globallogic.com>
Łukasz Stelmach [Mon, 3 Nov 2014 17:13:55 +0000 (18:13 +0100)]
Remove unnecessary Group tag for documentation packages
With the Group tag explicitly set to "Documentation" trigger rpmlint
errors. With the tag removed from the macro the packages inherit their
parents' groups which makes rpmlint happy.
Change-Id: I3bbb02e58be284ebf36f3cfb0b2fa66b912332d3
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
Kévin THIERRY [Mon, 4 Aug 2014 06:58:53 +0000 (08:58 +0200)]
Yocto: compatibility: "remove bashism"
Yocto users can use different shells so the code inside recipes should
not be "bash only compliant".
Bug-Tizen: BTY-21
Change-Id: I5e91b4a284e195ff823f25f9eeed12544344c4b0
Signed-off-by: Kévin THIERRY <kevin.thierry@open.eurogiciel.org>
José Bollo [Fri, 3 Oct 2014 15:08:03 +0000 (17:08 +0200)]
MSM: Avoid creating empty access rule files
The msm plugin creates one access rule file
in SMACK_RULES_PATH=/etc/smack/accesses.d for
each RPM installed.
Since Tizen 3, the guideline for packages is
simplified and the new guideline states that
manifest files have to be as simple as:
<manifest>
<request>
<domain name="_"/>
</request>
</manifest>
It means that most access rule files are empty.
Thus, this patch removes the file if it is empty
because without any penality, it improves:
- the start time of the system
- the administration of the system
The start time is improved because at start, all
the files in /etc/smack/accesses.d are read and
loaded to the kernel. As empty files are just removed,
no time is spend to seek it, open it, read it, close it,
apply empty rule.
The administration is also improved because only meaning
access rule files are retains, avoid to have to sort what
is meaning and what is not.
Change-Id: I7b40f2b291f0c1dbcb2f033f62191c651430e3c8
Signed-off-by: José Bollo <jose.bollo@open.eurogiciel.org>
Maciej J. Karpiuk [Fri, 12 Sep 2014 14:04:01 +0000 (16:04 +0200)]
Fixed rpm crash when trying to access an undefined domain.
Change-Id: I5e84c913d1756320bf31442d87b797ff8b5f4633
José Bollo [Fri, 5 Sep 2014 10:15:21 +0000 (12:15 +0200)]
Remove Smack rules having wrong subject
Names of the software repositories were used as subject of
the generated smack rules. There is no mention of such
behaviour on the help pages in the wiki of tizen.
Bug-Tizen: PTREL-638
Change-Id: Iefef89492ab5c9839cb01d3b62dae4c3637f00f4
Signed-off-by: José Bollo <jose.bollo@open.eurogiciel.org>
Casey Schaufler [Wed, 27 Aug 2014 16:17:27 +0000 (09:17 -0700)]
Merge "Allow re-execution of the %prep section" into tizen
Vyacheslav Barinov [Thu, 14 Aug 2014 07:52:16 +0000 (11:52 +0400)]
Update autotools files on aarch64
Patch borrowed from OpenSUSE rpm.
We have many packages with old config.sub and config.guess files which don't
have aarch64 support. In order not to patch every separate package, just update
them from rpmbuild during build initialization
Change-Id: I040bab160864edad84fd9cffcff2c9226ef3a4d0
Signed-off-by: Vyacheslav Barinov <v.barinov@samsung.com>
Yury Usishchev [Thu, 7 Aug 2014 12:29:59 +0000 (16:29 +0400)]
Remove %suse_version macro
It was added to enable cumulate install, but [1] enables it differently.
[1]: https://review.tizen.org/gerrit/#/c/25635/
Change-Id: I662871adacd4069cb7750fe59135dc20df0e259a
Signed-off-by: Yury Usishchev <y.usishchev@samsung.com>
Kévin THIERRY [Thu, 24 Jul 2014 11:30:19 +0000 (13:30 +0200)]
Allow re-execution of the %prep section
With Yocto, when building rpm a second time, the do_prep() function
fails because it assumes it hasn't already ran but will be re-using the
previous build directory which hasn't been cleaned. This patch prevent
such a situation to fail.
This issue is not present when building with GBS since every new build
is made in a clean directory but since the yocto recipes are generated
from spec file, it is better to directly correct the spec file.
This patch has no impact on the GBS build.
Bug-Tizen: BTY-15
Change-Id: I1e992b63b41ae76a4d6706046e741dc2d25b15eb
Signed-off-by: Kévin THIERRY <kevin.thierry@open.eurogiciel.org>
Yury Usishchev [Thu, 24 Jul 2014 11:17:07 +0000 (15:17 +0400)]
AArch64 enabling
* Fix packaging of python modules
Python site dir is not always in %{_libdir}, %{python_sitearch} is expanded the
same way as configure searches for site dir.
* Add vendor option to configure
* Add suse_version macro
Change-Id: I7d249d9329047c49117c49b52ab89d07e42053f6
Signed-off-by: Yury Usishchev <y.usishchev@samsung.com>
Mark Salter [Mon, 4 Mar 2013 17:30:16 +0000 (12:30 -0500)]
AArch64 support v2
Here is my updated patch adding AArch64 support. The main change was to
use CANONCOLOR=3 rather than 2.
--Mark
Change-Id: I79e397534d25a4ef4d293222c4cbd415a8fcd6b5
Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
Ronan Le Martret [Tue, 20 May 2014 10:21:06 +0000 (12:21 +0200)]
Remove $BUILDTARGET to solve build arch armv7l.
Macro --host and --build is defined in %reconfigure, so useless in spec file.
Change-Id: I4d396a824b30ec03f6913028e3a3836dd076a1b8
Signed-off-by: Ronan Le Martret <ronan@fridu.net>
Ronan Le Martret [Tue, 22 Apr 2014 12:12:40 +0000 (14:12 +0200)]
Merge python-rpm.spec into rpm.spec and cleaning up the spec file.
Change-Id: Idb234fbe0d1adddeae2523c05879cc09929dddc2
Signed-off-by: Ronan Le Martret <ronan@fridu.net>
Patrick McCarty [Wed, 29 Jan 2014 19:20:53 +0000 (11:20 -0800)]
Update changelog
Change-Id: Ice517533b3a0650f6d99c1e8e21e73d3c9b4c178
Signed-off-by: Patrick McCarty <patrick.mccarty@linux.intel.com>
Jacek Pielaszkiewicz [Mon, 20 Jan 2014 12:26:39 +0000 (13:26 +0100)]
Export kernel package name and kernel package release as new macros.
The following macros have been added:
1. %kernel_name - kernel name
2. %kernel_release - kenrel release
Change-Id: Ie3d2b310b839353af2855f1b6a0eff6abff1aeeb
Signed-off-by: Jacek Pielaszkiewicz <j.pielaszkie@samsung.com>
Karol Lewandowski [Tue, 14 Jan 2014 10:10:15 +0000 (11:10 +0100)]
tizen: Export kernel-devel's package version as %kernel_devel_uname_r
This macro provides full version string of available kernel headers
as provided by kernel-devel package.
This functionality should simplify process of packaging additional
external kernel modules eliminating the step of manual searching
for appropriate kernel build directory, eg.
BuildRequires: kernel-devel
%build
make M=/lib/modules/%{kernel_devel_uname_r}/build modules
Change-Id: Iea73e418065068f8451c42a2a3a4b46a9b5ffaac
Signed-off-by: Karol Lewandowski <k.lewandowsk@samsung.com>