platform/upstream/rpm.git
9 months agoAdd macro %isu_package to generate ISU Package 39/295539/1 accepted/tizen_7.0_base tizen_7.0_base accepted/tizen/7.0/base/20230719.134318 submit/tizen_7.0_base/20230714.091612
Mateusz Moscicki [Wed, 17 May 2023 11:02:21 +0000 (13:02 +0200)]
Add macro %isu_package to generate ISU Package

The macro makes it easier to prepare a separate configuration for ISU package.
Files from path %{BUILDROOT}/etc/isu/ are packed into a separate rpm
package: %{name}-isu

In addition, pattern occurrences are substituted:

  #NAME#             - %{name}
  #VERSION#          - %{version}
  #ISU_CONFIG_PATH#  - /etc/isu
  #ISU_INSTALL_PATH# - /opt/isu
  #ISU_RUN_PATH#     - /run/isu

Change-Id: Ia60a964165a9a838fb3422ded0410402924c5adf
(cherry picked from commit 0cb94f2a960168fb4cc6eed7acdd19dba633fcd9)

14 months agoFix CVE-2021-3421: Be much more careful about copying data from the signature header 75/288875/1 accepted/tizen_7.0_base_tool accepted/tizen/7.0/base/20230714.003114 accepted/tizen/7.0/base/tool/20230227.052718 submit/tizen_7.0_base/20230223.123040
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>
14 months agoFix CVE-2021-20266: hdrblobInit() needs bounds checks too 92/288792/3 accepted/tizen/7.0/base/tool/20230227.052649 submit/tizen_7.0_base/20230222.163040
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>
2 years agoRemove SIGTRAP from block list for HWASan build 17/265917/3 accepted/tizen_7.0_base_hotfix accepted/tizen_7.0_base_tool_hotfix tizen_7.0_base_hotfix accepted/tizen/7.0/base/hotfix/20230714.003924 accepted/tizen/7.0/base/tool/20221028.120335 accepted/tizen/7.0/base/tool/hotfix/20221115.084354 accepted/tizen/base/tool/20211230.001929 submit/tizen_7.0_base/20221028.201301 submit/tizen_7.0_base_hotfix/20221115.161701 submit/tizen_base/20211220.072804 tizen_7.0_m2_release
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>
3 years agoAdd macros for new /hal/bin and /hal/sbin path 26/255526/1 accepted/tizen_6.5_base_tool accepted/tizen/6.5/base/20230714.002705 accepted/tizen/6.5/base/tool/20211027.120635 accepted/tizen/base/tool/20210331.053905 submit/tizen_6.5_base/20211026.180901 submit/tizen_6.5_base/20211027.183101 submit/tizen_6.5_base/20211027.201101 submit/tizen_base/20210329.052725 tizen_6.5.m2_release
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>
3 years agoFix generate empty debugsource packages with rpm 4.14.1 87/254087/1 accepted/tizen/base/tool/20210302.233540 submit/tizen_base/20210223.120237 submit/tizen_base/20210223.130441
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>
3 years agoRemove timeout logic to wait for shared lock in db3.c file 90/252190/1 submit/tizen_base/20210222.062837
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>
3 years agoAdd macros for new /hal path 02/251402/3 accepted/tizen/base/tool/20210125.051925 submit/tizen_base/20210115.063702 submit/tizen_base/20210121.021519
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>
3 years agoupgrade rpm version to 4.14.1 39/250839/1 accepted/tizen/base/tool/20210118.215949 submit/tizen_base/20210105.160930 submit/tizen_base/20210113.025730 upstream/4.14.1.1
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>
3 years agoFix building issue for tizen_base(configure: error: --with-msm given, but attr/xattr... 27/248827/1 accepted/tizen/base/tool/20201213.215638 submit/tizen_base/20201130.233154 submit/tizen_base/20201203.031009 submit/tizen_base/20201203.032811 submit/tizen_base/20201203.051919 submit/tizen_base/20201207.074011
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>
3 years agoFix the issue for [ASAN][BUG] stack-use-after-scope in crash-manager on TM1 57/241957/2 accepted/tizen_6.0_base_tool accepted/tizen/6.0/base/20230713.143043 accepted/tizen/6.0/base/tool/20201125.224919 accepted/tizen/base/tool/20201125.225050 submit/tizen_6.0_base/20201123.091612 submit/tizen_base/20200825.071216 submit/tizen_base/20201123.090647
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>
3 years agoscripts: Fix eu-strip for files with 'debug' in pathname 24/232724/2 accepted/tizen_6.0_base_tool_hotfix tizen_6.0_base_hotfix accepted/tizen/6.0/base/20201029.105819 accepted/tizen/6.0/base/tool/20201029.111542 accepted/tizen/6.0/base/tool/hotfix/20201030.124344 accepted/tizen/6.0/base/tool/hotfix/20201102.085444 accepted/tizen/base/20200608.211044 submit/tizen_6.0_base/20201029.184802 submit/tizen_6.0_base_hotfix/20201030.192502 submit/tizen_6.0_base_hotfix/20201102.162702 submit/tizen_base/20200507.115505 submit/tizen_base/20200511.102732 submit/tizen_base/20200604.081031 tizen_6.0.m2_release
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>
4 years agoFilter out all debug files not starting with current package name 13/226613/1 accepted/tizen/base/20200309.015355 submit/tizen_base/20200305.112253 submit/tizen_base/20200306.122724
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>
4 years agoRevert "Adding -std=gnu++11 command-line option to CXXFLAGS" 22/223622/1 accepted/tizen/base/20200207.013601 submit/tizen_base/20200205.104845
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

4 years agoMerge "Fix binutils strip support" into tizen_base accepted/tizen_5.5_base accepted/tizen_5.5_base_mobile_hotfix accepted/tizen_5.5_base_wearable_hotfix tizen_5.5_base tizen_5.5_base_mobile_hotfix tizen_5.5_base_wearable_hotfix tizen_5.5_tv accepted/tizen/5.5/base/20191030.084033 accepted/tizen/5.5/base/mobile/hotfix/20201023.083823 accepted/tizen/5.5/base/wearable/hotfix/20201023.080232 accepted/tizen/base/20190805.091705 submit/tizen_5.5_base/20191030.000001 submit/tizen_5.5_base_mobile_hotfix/20201023.171502 submit/tizen_5.5_base_wearable_hotfix/20201023.155602 submit/tizen_base/20190801.003618 tizen_5.5.m2_release
Dongkyun Son [Thu, 1 Aug 2019 11:25:32 +0000 (11:25 +0000)]
Merge "Fix binutils strip support" into tizen_base

4 years agoFix binutils strip support 75/211175/4
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

4 years agoFix uninitialized data read SVACE issue 13/211113/1 submit/tizen_base/20190731.040839
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>
4 years agoAdd support for strip (binutils) instead of default eu-strip (elfutils) 77/210877/3
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

5 years agofix tizen directory error right issue in docker opensuse42.1 19/203319/1 accepted/tizen/base/20190530.225302 submit/tizen_base/20190416.052043 submit/tizen_base/20190429.063955 submit/tizen_base/20190513.032510 submit/tizen_base/20190515.001408 submit/tizen_base/20190528.094414
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

5 years agoFix detection of rpm arch type 70/201670/1 accepted/tizen/base/20190402.084607 submit/tizen_base/20190326.000421
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>
5 years agoNotify about buildinfo parsing fail, fix leak 98/196498/1 sandbox/dkson95/merge accepted/tizen/base/20190111.055034 submit/tizen_base/20190108.221718
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

5 years agoAdd default %_buildinfo for packages 67/193067/9 submit/tizen_base/20181228.105429
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>
5 years agoMove %_buildinfo setup into %pack section 15/195315/7
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>
5 years agoAdd BUILDINFO rpm tag 72/190672/3 accepted/tizen/base/20181102.125658 submit/tizen_base/20181031.095739
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>
5 years agoRemove LD_AS_NEEDED env variable 66/175866/2 accepted/tizen_5.0_base sandbox/test/rpm_upgrade tizen_5.0_base accepted/tizen/5.0/base/20181101.091432 accepted/tizen/base/20180615.200136 submit/tizen_5.0_base/20181101.000002 submit/tizen_base/20180611.080608
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

6 years agoMerge "Single security manifest in debuginfo package" into tizen_base sandbox/dnxowls/rpm_4.14.1_upgrade sandbox/soong9/rpm_4.14.1 submit/tizen_base/20180607.041826
Chunhua Liu [Tue, 24 Apr 2018 09:04:56 +0000 (09:04 +0000)]
Merge "Single security manifest in debuginfo package" into tizen_base

6 years agoRevert "Enable Armoring Feature - Add pie option" 86/175886/1
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

6 years agoAdd LGPL-2.0+ license notification on rpm.spec file 14/175414/1
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

6 years agoSingle security manifest in debuginfo package 79/173879/1
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

6 years agoAdd scriptlet-specific disablers for %pretrans and %posttrans 03/168303/1 submit/tizen_base/20180330.050344
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

6 years agoEnable Armoring Feature - Add pie option 94/168094/1 submit/tizen_base/20180124.070639
SoonKyu Park [Wed, 24 Jan 2018 06:19:49 +0000 (15:19 +0900)]
Enable Armoring Feature - Add pie option

Change-Id: Iab46b1827bb37d14aaa8235cf992eb8fc2b3b564

6 years agoModify Prevent warning - case of 'RESOURCE_LEAK' : adjust malloc-free combination 12/164312/1 accepted/tizen/base/20171222.155030 submit/tizen_base/20171218.123350
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

6 years agoAdd armv7hl support. 13/129013/2 accepted/tizen/base/20171027.152135 submit/tizen_base/20171024.003248
Mikhail Kashkarov [Thu, 11 May 2017 09:25:38 +0000 (12:25 +0300)]
Add armv7hl support.

Change-Id: I5f1d6a591fdff247328f72e1b531a0e1b0aaf9d1

6 years agoAdded _debug_manifest to set SMACK label to "_" for debug packages 36/139336/2 accepted/tizen/base/20170908.223808 submit/tizen_base/20170830.083645
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>
6 years agoApply ASLR option 88/144688/1 accepted/tizen/base/20170901.225508 submit/tizen_base/20170818.014231
SoonKyu Park [Thu, 17 Aug 2017 11:58:15 +0000 (20:58 +0900)]
Apply ASLR option

Change-Id: I12544b91c972bcb563e92bff9d76ea5cf289280d

7 years agoAdding -std=gnu++11 command-line option to CXXFLAGS 58/126658/1 accepted/tizen/4.0/base/20170811.093014 accepted/tizen/4.0/base/20170828.221319 accepted/tizen/base/20170429.025002 submit/tizen_4.0_base/20170811.071500 submit/tizen_4.0_base/20170828.000000 submit/tizen_4.0_base/20170828.000001 submit/tizen_base/20170428.015534 tizen_4.0.m1_release
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>
7 years agoAdded %posttrans log message for verbose information 17/122517/2
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

7 years agoFix the script install procedure 56/124356/3 accepted/tizen/base/20170413.143945 submit/tizen_base/20170412.105805
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>
7 years agopackaging: revert rpmlibdir to /usr/lib/ 17/124217/1
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>
7 years agofixup! [4.0] Use strip (instead of eu-strip) to support --strip-debug of *.so at... 45/123645/1 submit/tizen_base/20170410.064620
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>
7 years agoAdd %license to all sub-packages 58/122758/1 submit/tizen_base/20170403.103251
SoonKyu Park [Mon, 3 Apr 2017 08:02:51 +0000 (17:02 +0900)]
Add %license to all sub-packages

Change-Id: I1214981ceb82d53c96becbe9d59e87e6272897bd

7 years agoAdd support for %_rpmconfigdir 49/113649/2
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>
7 years agoRevert "Add support for Recommends:, Suggests:, Supplements: and Enhances:" 09/116709/1 accepted/tizen/base/20170228.084720 submit/tizen_base/20170228.034447
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

7 years agoRevert "Backporting weak dependencies" 08/116708/1
SoonKyu Park [Tue, 28 Feb 2017 01:13:18 +0000 (10:13 +0900)]
Revert "Backporting weak dependencies"

This reverts commit 822fe26c20549c1e891d874316cf91a7b244c23d.

Change-Id: Ic866ff716b4d547b4499f701b7577d025b89e8db

7 years ago[4.0] Support alternative way to choose between strip and eu-strip 16/114516/2 accepted/tizen/base/20170217.190209 submit/tizen_base/20170216.050845
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>
7 years ago[4.0] Use strip (instead of eu-strip) to support --strip-debug of *.so at build time 95/111795/1 submit/tizen_base/20170210.011342
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>
7 years agoBackporting weak dependencies 15/102115/3 accepted/tizen/base/20170120.121825 submit/tizen_base/20170116.123126
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>
7 years agoAdd support for Recommends:, Suggests:, Supplements: and Enhances: 14/102114/2
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>
7 years agoOnly use multi thread support with liblzma >= 5.2.0 79/106479/3 accepted/tizen/base/20170106.101320 submit/tizen_base/20170102.104445
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

7 years agoprevent exceeding 32 bit memory limitations with multithreaded xz compression 77/106477/2
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

7 years agoAdd support for multithreaded xz compression 76/106476/3
Per Øyvind Karlsen [Wed, 12 Aug 2015 01:15:42 +0000 (03:15 +0200)]
Add support for multithreaded xz compression

Change-Id: I77af75943420c65868672f05cbde73563370c351

7 years agoadd support for setting xz memlimit 75/106475/2
Per Øyvind Karlsen [Wed, 12 Aug 2015 01:12:06 +0000 (03:12 +0200)]
add support for setting xz memlimit

Change-Id: If7513a85c77692983bc2cb948f5b92eea3b304d8

7 years agoadd rpmlog(RPMLOG_ERR, ...) for liblzma return codes 74/106474/2
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

7 years agoreflect default xz & lzma compression level changes in macros as well 73/106473/2
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

7 years agolowest xz compression level is '0' 72/106472/2
Per Øyvind Karlsen [Tue, 22 Sep 2015 18:50:02 +0000 (20:50 +0200)]
lowest xz compression level is '0'

Change-Id: Ie430058a1ecd3c03627060c1b32080d0d47a3877

7 years agoreally default to default XZ compression level 32/107932/1
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

7 years agomsm related macros are defined in post scrpit of rpm-security-plugin 29/86029/1 accepted/tizen_3.0.m2_base tizen_3.0 tizen_3.0.m2_base accepted/tizen/3.0.m2/base/20170104.082055 accepted/tizen/3.0/base/20161028.103355 accepted/tizen/base/20161001.020353 submit/tizen_3.0.m2_base/20170104.073748 submit/tizen_3.0_base/20161028.062326 submit/tizen_base/20160927.103203
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

7 years agoModify regular expression inside packaging/libsymlink.attr with 'file' package upgrade 26/85026/1 accepted/tizen/base/20160902.071401 submit/tizen_base/20160826.042443
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

7 years agoChange 'libdir' macro re-definition 22/79822/1 accepted/tizen/base/20160715.190135 submit/tizen_base/20160715.025428
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

7 years agoAdd the default path in the script file 28/77628/1 accepted/tizen/base/20160701.180346 submit/tizen_base/20160701.030336
SoonKyu Park [Thu, 30 Jun 2016 09:55:35 +0000 (18:55 +0900)]
Add the default path in the script file

Change-Id: Ie5ccab262eed0494676bddfeba7ee16c25698a79

8 years agoAdd '_rpm_ko_strip_option' which is used in strip of ko files 27/68027/1 accepted/tizen/base/20160504.195829 submit/tizen_base/20160502.042457
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

8 years agoModify __libsymlink_exclude_path to exclude path - add ^/usr/lib/debug 70/62970/1 accepted/tizen/base/20160324.155312 submit/tizen_base/20160322.005216
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

8 years agoModify __libsymlink_exclude_path to exclude path whose name has digit 93/62093/1 submit/tizen_base/20160315.011333
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

8 years agoMake symlink file add to fileattr 04/61104/1 accepted/tizen/base/20160305.090143 submit/tizen_base/20160304.044032
SoonKyu Park [Thu, 25 Feb 2016 00:20:27 +0000 (09:20 +0900)]
Make symlink file add to fileattr

Change-Id: Ice05610d1c23eaf2dc1fb0cdf610feb20ad1cfab

8 years agoChange how to add Package Provide to debuginfo package : add Package Provide using... 83/56983/2 accepted/tizen_common accepted/tizen/base/20160115.111010 accepted/tizen/common/20160120.100937 submit/tizen_base/20160115.000631 submit/tizen_common/20160119.101937
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

8 years agoModify eu-strip option to perform strip in post script of rpm package & add option... 39/53439/1 accepted/tizen_mobile accepted/tizen_tv accepted/tizen_wearable accepted/tizen/base/20151223.052332 accepted/tizen/common/20160107.114012 accepted/tizen/mobile/20151207.122907 accepted/tizen/tv/20151207.122921 accepted/tizen/wearable/20151207.122945 submit/tizen/20151207.015403 submit/tizen_base/20151223.111112 submit/tizen_common/20151229.142028 submit/tizen_common/20151229.144031 submit/tizen_common/20151229.154718 submit/tizen_common/20160104.112601
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

8 years agoModify how to make symbolic link in 'find-debuginfo.sh' script 64/53364/1 accepted/tizen/mobile/20151206.224321 accepted/tizen/tv/20151206.224337 accepted/tizen/wearable/20151206.224357 submit/tizen/20151204.081906
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

8 years agoRevert "Modify eu-strip option to perform strip in post script of rpm package & add... 60/53360/1
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

8 years agoModify eu-strip option to perform strip in post script of rpm package & add option... 47/52747/1 accepted/tizen/mobile/20151127.070342 accepted/tizen/tv/20151127.070348 accepted/tizen/wearable/20151127.070351 submit/tizen/20151127.031713
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

8 years agoMerge "Add support for global LDFLAGS" into tizen
Dongkyun Son [Thu, 4 Jun 2015 13:28:43 +0000 (06:28 -0700)]
Merge "Add support for global LDFLAGS" into tizen

8 years agoAdd support for global LDFLAGS 38/39238/1
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>
9 years agomsm: consistency for equally ranked keys 81/38081/2 tizen_3.0.2015.q2_common accepted/tizen/common/20150520.164523 submit/tizen_common/20150518.122814
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>
9 years agoChange ',' to '#' in sed 's' command 25/33925/1 tizen_3.0.m1_mobile tizen_3.0.m1_tv accepted/tizen/common/20150403.125416 accepted/tizen/mobile/20150405.124135 accepted/tizen/tv/20150406.013650 accepted/tizen/wearable/20150405.123324 submit/tizen/20150331.094445 submit/tizen_common/20151015.190624 submit/tizen_common/20151019.135620 submit/tizen_common/20151023.083358 submit/tizen_common/20151026.085049 tizen_3.0.m1_mobile_release tizen_3.0.m1_tv_release tizen_3.0.m2.a1_mobile_release tizen_3.0.m2.a1_tv_release
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>
9 years agooptflags: set _FORTIFY_SOURCE for preproc 99/31699/1
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>
9 years agoMerge "Fixed incorrect writting host_os to platform/macros for uClibc" into tizen accepted/tizen_3.0_ivi accepted/tizen_ivi tizen_3.0.2014.q4_common tizen_3.0.2015.q1_common tizen_3.0_ivi accepted/tizen/common/20141203.182814 accepted/tizen/common/20141208.184628 accepted/tizen/ivi/20141212.050448 accepted/tizen/mobile/20141216.071026 accepted/tizen/mobile/20150105.022529 accepted/tizen/tv/20150105.022342 accepted/tizen/wearable/20150105.054705 submit/tizen_common/20141203.144128 submit/tizen_common/20141208.164031 submit/tizen_common/20141209.112152 submit/tizen_ivi/20141208.111111 submit/tizen_ivi/20141209.111111 submit/tizen_mobile/20141216.000000 submit/tizen_mobile/20141216.070921 submit/tizen_mobile/20141231.012840 submit/tizen_mobile/20151202.000001 submit/tizen_tv/20151202.000000 submit/tizen_wearable/20150102.000000 tizen_3.0_ivi_release
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

9 years agoMerge "allow rpm to custom systemd installation" 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

9 years agoallow rpm to custom systemd installation 21/29921/3
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>
9 years agoreplace obsoleted "find -perm +NNN" syntax 32/31232/3
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>
9 years agoAdapt for Yocto, remove pushd/popd bashisms 62/30962/4
Ł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>
9 years agoRemove unnecessary Group tag for localisation packages 69/30569/1 accepted/tizen/common/20141121.180717 accepted/tizen/ivi/20141204.033159 accepted/tizen/mobile/20141128.122430 submit/tizen/20141121.083447 submit/tizen_ivi/20141201.222222
Ł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>
9 years agoFixed incorrect writting host_os to platform/macros for uClibc 52/29852/2
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>
9 years agoRemove unnecessary Group tag for documentation packages 43/29743/2 accepted/tizen/common/20141104.235407 accepted/tizen/ivi/20141120.064253 accepted/tizen/mobile/20141119.083810 submit/tizen/20141104.115426 submit/tizen_ivi/20141119.051921 submit/tizen_ivi/20141119.333333 submit/tizen_ivi/20141119.444444 submit/tizen_mobile/20141120.000000
Ł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>
9 years agoYocto: compatibility: "remove bashism" 41/25341/2 accepted/tizen/common/20141027.223138 accepted/tizen/mobile/20141120.054833 submit/tizen_common/20141024.152722 submit/tizen_common/20141027.223054 submit/tizen_mobile/20141120.053809
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>
9 years agoMSM: Avoid creating empty access rule files 63/28363/1
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>
9 years agoFixed rpm crash when trying to access an undefined domain. 10/27510/1 accepted/tizen_3.0.2014.q3_common accepted/tizen_3.0.m14.3_ivi tizen_3.0.2014.q3_common tizen_3.0.m14.3_ivi accepted/tizen/common/20140925.182508 accepted/tizen/common/20141008.190634 accepted/tizen/ivi/20141005.142818 submit/tizen/20140925.072409 submit/tizen_common/20141008.071414 tizen_3.0.2014.q3_common_release tizen_3.0.m14.3_ivi_release
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

9 years agoRemove Smack rules having wrong subject 65/27165/1 accepted/tizen/common/20140908.193650 accepted/tizen/ivi/20140912.193607 submit/tizen_common/20140908.122758 submit/tizen_ivi/20140912.000000
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>
9 years agoMerge "Allow re-execution of the %prep section" into tizen
Casey Schaufler [Wed, 27 Aug 2014 16:17:27 +0000 (09:17 -0700)]
Merge "Allow re-execution of the %prep section" into tizen

9 years agoUpdate autotools files on aarch64 33/26033/1 accepted/tizen/common/20140826.160946 accepted/tizen/ivi/20140902.210650 submit/tizen/20140825.050559
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>
9 years agoRemove %suse_version macro 45/25645/2 submit/tizen/20140807.124405 submit/tizen/20140807.133029 submit/tizen_ivi/20140818.000000 submit/tizen_ivi/20140818.000001
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>
9 years agoAllow re-execution of the %prep section 57/24957/2
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>
9 years agoAArch64 enabling 92/25292/1 accepted/tizen/common/20140804.175652 submit/tizen/20140804.114129
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>
9 years agoAArch64 support v2 23/24423/1 accepted/tizen/common/20140724.002209 submit/tizen/20140722.073213
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>
9 years agoRemove $BUILDTARGET to solve build arch armv7l. 25/21425/2 tizen_3.0.m14.2_ivi accepted/tizen/common/20140610.160301 accepted/tizen/ivi/20140625.191701 submit/tizen/20140530.070149 submit/tizen_ivi/20140618.000000 submit/tizen_ivi/20140618.000001 submit/tizen_ivi/20140619.000000 submit/tizen_ivi/20140622.000000 submit/tizen_ivi/20140623.000000 submit/tizen_ivi/20140624.064036 tizen_3.0.m14.2_ivi_release
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>
10 years agoMerge python-rpm.spec into rpm.spec and cleaning up the spec file. 89/19889/1 submit/tizen/20140515.122830
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>
10 years agoUpdate changelog 13/15913/1 accepted/tizen/generic accepted/tizen/ivi accepted/tizen_generic accepted/tizen_ivi_panda accepted/tizen_ivi_release tizen_ivi_release accepted/tizen/generic/20140204.211928 accepted/tizen/generic/20140312.123204 accepted/tizen/ivi/20140205.035255 accepted/tizen/ivi/panda/20140312.112815 accepted/tizen/ivi/release/20140312.115358 accepted/tizen/mobile/20140227.070345 submit/tizen/20140204.192312 submit/tizen/20140312.070924 submit/tizen_ivi_release/20140312.071354
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>
10 years agoExport kernel package name and kernel package release as new macros. 92/15392/3
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>
10 years agotizen: Export kernel-devel's package version as %kernel_devel_uname_r 82/14982/2
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>
10 years agoUpdate changelog 61/15261/1 accepted/tizen/mobile accepted/tizen/generic/20140120.103117 accepted/tizen/ivi/20140122.184940 accepted/tizen/mobile/20140122.163056 submit/tizen/20140120.102104
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>
10 years agoMSM: fix access type length and validation 03/14703/1
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>
10 years agoSecurity plugin: change policy to advisory 79/13979/5
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>