Age | Commit message (Collapse) | Author | Files | Lines |
|
LD_AS_NEEDED env variable is not supported
Change-Id: I4727e323a3b79129e22942224366931861776a99
|
|
|
|
This reverts commit 079d890dfd09f5c175d05387c05bfdd7e47c66b4.
It results in build failure on x86_64 architecture
Change-Id: I81ffe5e19ad252c27549f3f3c2ccfd16dceed6a6
|
|
Change-Id: Id6a78df4c4683ebf348915b24d5f6fefe2b429e5
|
|
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
|
|
- 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
|
|
Change-Id: Iab46b1827bb37d14aaa8235cf992eb8fc2b3b564
|
|
combination
Change-Id: If7b72745e0ef8fae3e3991e61a37ca26cde67723
|
|
Change-Id: I5f1d6a591fdff247328f72e1b531a0e1b0aaf9d1
|
|
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>
|
|
Change-Id: I12544b91c972bcb563e92bff9d76ea5cf289280d
|
|
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>
|
|
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
|
|
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>
|
|
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>
|
|
*.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>
|
|
Change-Id: I1214981ceb82d53c96becbe9d59e87e6272897bd
|
|
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>
|
|
This reverts commit c31c49f42b54dcf6edb8804e633e6b6985acbb41.
Change-Id: I94a88f43ba2db764c7c3a9435683ca26fe97c565
|
|
This reverts commit 822fe26c20549c1e891d874316cf91a7b244c23d.
Change-Id: Ic866ff716b4d547b4499f701b7577d025b89e8db
|
|
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>
|
|
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>
|
|
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>
|
|
Change-Id: I24f0b1c0e98003a75b097c8afe7be19e21506695
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
|
|
Change-Id: Icac0310111aa3b59197af934659f7b94ca403059
|
|
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
|
|
Change-Id: I77af75943420c65868672f05cbde73563370c351
|
|
Change-Id: If7513a85c77692983bc2cb948f5b92eea3b304d8
|
|
Change-Id: I25c017827b38e2141dcff4d6bfd398f9e1a008c2
|
|
Change-Id: I3b95d39e0385ad50a6e8ed244757dd1fa8797f6e
|
|
Change-Id: Ie430058a1ecd3c03627060c1b32080d0d47a3877
|
|
which BTW fix the default compression level which is 6 instead of 7
Change-Id: I8b9b50a2cd1f64169477a72cc4d36a374d7a9867
|
|
Remove msm related macros inside macros.in file
Change-Id: I3ae680b13739f92624f757934fe884737c9181bf
|
|
package upgrade
Change-Id: I4cecbdb5034cef6ca42b8a8ed95792e73bf81c04
|
|
libdir macro which is re-defined in each platform macro : is not defined by ARCH but by _host_cpu
Change-Id: I2b5a10c817a1b8703bc3e51e8970ea73e49c5815
|
|
Change-Id: Ie5ccab262eed0494676bddfeba7ee16c25698a79
|
|
Change-Id: I24e489e0a965a85310d045435100f5ad2e95a592
|
|
Change-Id: Id4a2f8473d111284afbdb7760736b2a84a5954e4
|
|
Change-Id: I37f9794b4d009c6c7241b91d1c15b4c60633f62b
|
|
Change-Id: Ice05610d1c23eaf2dc1fb0cdf610feb20ad1cfab
|
|
using addPackageProvides_for_debuginfo_pkg
Change-Id: Iee094726b58250b7e86ebd3b508e30eb7c5389c9
|
|
option add '_rpm_strip_disable' option and '_rpm_strip_option' to project config.
Change-Id: I3718510670465957e7048db6ed285bd8ed09a5dd
|
|
Change-Id: I157f6a027820e0448e1ee95e10d1b42e8c95fcea
|
|
package & add option add '_rpm_strip_disable' option and '_rpm_strip_option' to project config."
This reverts commit dc338f74bbe69185d09a419ecda8e5fa35bb4acb.
Change-Id: I3c15db4307ea877b660ca6ea1056aa0e26b0e182
|
|
option add '_rpm_strip_disable' option and '_rpm_strip_option' to project config.
Change-Id: I939ca673d8dd06ebd0cb414d5471bdf962d8f5e1
|
|
|
|
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>
|
|
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>
|
|
After 31699 optflags can contain ',' which breaks macros generation.
Change-Id: I86016ae4f5f97eadeb17c8ad79089539069b7f38
Signed-off-by: Yury Usishchev <y.usishchev@samsung.com>
|
|
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>
|