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>
Mikko Ylinen [Fri, 17 Jan 2014 11:39:45 +0000 (13:39 +0200)]
Update changelog
Change-Id: I5c89a4219a882ac589658576c3e81aa4ffbba672
Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
Jarkko Sakkinen [Fri, 10 Jan 2014 07:47:25 +0000 (09:47 +0200)]
MSM: fix access type length and validation
This patch fixes three issues with access type:
- SMACK_ACCESS_TYPE_LENGHT -> SMACK_ACCESS_TYPE_LENGTH
- Changed the value of SMACK_ACCESS_TYPE_LENGTH from 5 to 6.
- String length was calculated with unsafe 'strlen()'. Changed to
use strlen(type, SMACK_LABEL_LENGTH + 1) instead.
Change-Id: I127d7b2beb8a3258ec1e4a5142f253f842b2fa7a
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Jarkko Sakkinen [Thu, 19 Dec 2013 12:07:44 +0000 (14:07 +0200)]
Security plugin: change policy to advisory
Change policy from enforcing to advisory when access is requested
from unknown domain or permitted to unknown domain. Also trunacated
lines to 80 characters, fixed grammar in the warning messages, and
removed trailing spaces and tabs.
In future, it might make sense to make this behaviour a command-line
option. Added a FIXME comment about that.
Change-Id: Iab78d79a8a28e019ec8601265a59d259fd46f9d6
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Elena Reshetova [Wed, 4 Dec 2013 09:56:07 +0000 (11:56 +0200)]
Security plugin: adding support for l access type
Change-Id: Id61dd99ef2e6a673d3c66a58d71c735b07571970
Rusty Lynch [Tue, 3 Dec 2013 18:17:21 +0000 (10:17 -0800)]
Updating changelog
Change-Id: Ibe31f0a5567947c478f8b089e2e4d7b850019abd
Signed-off-by: Rusty Lynch <rusty.lynch@intel.com>
Elena Reshetova [Fri, 29 Nov 2013 12:04:53 +0000 (14:04 +0200)]
Security plugin: removing exec label restriction
Change-Id: I1da33e6e842a7f93dade78f2aebc00ed271a271c
Rusty Lynch [Fri, 15 Nov 2013 20:36:22 +0000 (12:36 -0800)]
Update changelog and fix rpmlint error
Change-Id: Id9df4a22a240fe9b1028d4bdca6987b6f58b0211
Signed-off-by: Rusty Lynch <rusty.lynch@intel.com>
Ronan Le Martret [Thu, 7 Nov 2013 08:25:19 +0000 (09:25 +0100)]
- solve bug PTREL-155, build python-rpm.
Change-Id: Idffe011bde3623d20c647aad8c6bac70b07f83f5
Signed-off-by: Ronan Le Martret <ronan@fridu.net>
Adrian Negreanu [Fri, 15 Nov 2013 17:15:54 +0000 (19:15 +0200)]
armv7l:fix faulty line in rpmrc.in
[ 484s] === configuring in db3 (/home/abuild/rpmbuild/BUILD/rpm-4.11.0.1/db3)
[ 484s] configure: running /bin/sh ./configure --disable-option-checking '--prefix=/usr' '--disable-dependency-tracking' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--libdir=/usr/lib' '--sysconfdir=/etc' '--localstatedir=/var' '--with-lua' '--with-acl' '--with-cap' '--enable-shared' '--with-msm' '--build=armv7l-tizen-linux-gnueabi' 'build_alias=armv7l-tizen-linux-gnueabi' 'CFLAGS=-O2 -g -march=armv7-a -mtune=cortex-a8 -mlittle-endian -mfpu=vfpv3 -mfloat-abi=softfp -D __SOFTFP__ -ffunction-sections' 'LDFLAGS=-Wl,-Bsymbolic-functions -ffunction-sections' 'CPPFLAGS= -I/usr/include/nss3 -I/usr/include/nspr4 ' 'CXXFLAGS=-O2 -g -march=armv7-a -mtune=cortex-a8 -mlittle-endian -mfpu=vfpv3 -mfloat-abi=softfp -D __SOFTFP__' --cache-file=/dev/null --srcdir=.
[ 485s] configure: WARNING: you should use --build, --host, --target
[ 485s] configure: WARNING: you should use --build, --host, --target
[ 486s] checking build system type... armv7l-tizen-linux-gnueabi
[ 486s] checking host system type... Invalid configuration `__SOFTFP__': machine `__SOFTFP__' not recognized
[ 486s] configure: error: /bin/sh ./../db/dist/config.sub __SOFTFP__ failed
[ 486s] /bin/mv: cannot stat `Makefile': No such file or directory
[ 486s] /bin/cat: Makefile.orig: No such file or directory
[ 486s] make: *** No rule to make target `listobjs'. Stop.
[ 486s] configure: error: ./configure failed for db3
[ 487s] error: Bad exit status from /var/tmp/rpm-tmp.vjacB0 (%build)
[ 487s]
[ 487s]
[ 487s] RPM build errors:
[ 487s] Bad exit status from /var/tmp/rpm-tmp.vjacB0 (%build)
Bug-Id: https://bugs.tizen.org/jira/browse/PTREL-398
Change-Id: I36f45d1d52754bbf02b6596eac0d21a715bd451e
Signed-off-by: Adrian Negreanu <adrian.m.negreanu@intel.com>
Adrian Negreanu [Thu, 14 Nov 2013 14:06:23 +0000 (16:06 +0200)]
msm: check libxml/{xmlreader,tree}.h
msmconfig.c:29:25: fatal error: libxml/tree.h: No such file or directory
msmmanifest.c:37:30: fatal error: libxml/xmlreader.h: No such file or directory
Bug-Id: https://bugs.tizen.org/jira/browse/PTREL-397
Change-Id: If287d79f343ca6f6f4be9392f09e17387305fb8a
Signed-off-by: Adrian Negreanu <adrian.m.negreanu@intel.com>
Elena Reshetova [Fri, 1 Nov 2013 13:38:11 +0000 (15:38 +0200)]
Security plugin: Removing definition of System domain from default device policy
Change-Id: I8260934c6e5e1421b594545b5c2740e9aaebcfd5
Signed-off-by: Elena Reshetova <elena.reshetova@intel.com>
Elena Reshetova [Thu, 26 Sep 2013 08:30:54 +0000 (11:30 +0300)]
Security plugin: plugin hooks code refactoring and improvment
Change-Id: I4d44db47865dd5c83fcf28435ffc26a70164b69d
Jacek Bukarewicz [Wed, 11 Sep 2013 09:22:31 +0000 (11:22 +0200)]
Introduction of -locale and -docs subpackages. Moved package to another group
Change-Id: I6cb5d33ff6bb54fb57475578d6d2d632cc45ccfc
Signed-off-by: Jacek Bukarewicz <j.bukarewicz@samsung.com>
Anas Nashif [Mon, 16 Sep 2013 05:10:20 +0000 (01:10 -0400)]
update changes
Change-Id: I983e29c06ce691f740cc559c1fd18a4812a71c81
Anas Nashif [Tue, 10 Sep 2013 17:11:53 +0000 (13:11 -0400)]
remove --target from %configure macros
The target will be determined automatically by the configure scripts
instead of forcing it to be %target_platform of RPM.
Change-Id: I2284de77c28c4d0c7a9e1a9f819f5861eb5b74a0
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
Anas Nashif [Wed, 4 Sep 2013 01:17:54 +0000 (21:17 -0400)]
enforce platform for ARM
also set optflag defaults for armv7l
Change-Id: I0cdcc093245b1e121b51327b83300b59d101a30b
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
Anas Nashif [Tue, 3 Sep 2013 00:15:36 +0000 (20:15 -0400)]
changes
Anas Nashif [Wed, 21 Aug 2013 08:10:07 +0000 (04:10 -0400)]
update changelog
Elena Reshetova [Mon, 19 Aug 2013 13:43:40 +0000 (16:43 +0300)]
Security plugin: adding checking of return code for dbus policy verification
Elena Reshetova [Mon, 19 Aug 2013 05:42:27 +0000 (08:42 +0300)]
Security plugin: small fixes
- Removing unused code
- Changing the init hook to take care of new libsmack return code