[Dev] Build problems with GBS

Nashif, Anas anas.nashif at intel.com
Fri Oct 4 13:12:58 GMT 2013

The package hash-signer replaces the default os_install_post from rpm and
replaces that with:

%__os_install_post    \
    /usr/lib/rpm//brp-compress \
    %{!?__debug_package:/usr/lib/rpm/brp-strip %{__strip}} \
    /usr/lib/rpm/brp-strip-static-archive %{__strip} \
    /usr/lib/rpm/brp-strip-comment-note %{__strip} %{__objdump} \
    /usr/lib/rpm/brp-python-bytecompile \
    /usr/lib/rpm/brp-python-hardlink \
    %{!?disable_docs_package:/usr/lib/rpm/tizen/find-docs.sh %{buildroot}}
    %{?tizen_author_sign: %define tizen_author_flag -a} \
    %{?tizen_dist_sign: %define tizen_dist_flag -d} \
    %{?tizen_sign:/usr/bin/hash-signer.sh %tizen_author_flag
%tizen_dist_flag -p %tizen_sign_level  -b $RPM_BUILD_ROOT
"%tizen_sign_base"} \

So, anything that depends on hash-signer will fail, not sure what that is
and why it is needed.

So the problem is not RPM, the problem is hash-signer.


On 04/10/2013 08:34, "Seungmin Yu" <so.yu at samsung.com> wrote:

>Dear all,
>I faced same problem against osp-security-service.
>To avoid the build error, I added following into %install section.
>%global __os_install_post  \
>    /usr/lib/rpm/brp-compress \
>    /usr/lib/rpm/brp-tizen  \
>    %{!?disable_docs_package:/usr/lib/rpm/tizen/find-docs.sh
>%{buildroot}} \
>Maybe, there is a problem in rpm macros of 'rpm' package.
>'brp-strip-static-archive' is removed by the spec file of 'rpm' package,
>thus it have to removed on postscript.
>[   90s] /var/tmp/rpm-tmp.XpS4yV: line 55:
>/usr/lib/rpm/brp-strip-static-archive: No such file or directory
>Thanks and regards,
>Seungmin Yu
>------- Original Message -------
>Sender : Krzysztof Opasiak<k.opasiak at samsung.com> Junior Software
>Engineer/SRPOL-Kernel & System Framework (SSD)/삼성전자
>Date : 2013-10-04 01:41 (GMT+09:00)
>Title : [Dev] Build problems with GBS
>Dear all,
>I'm working with some packages to help build Tizen image. Recently I
>took up osp-channel-service and osp-connectivity-service. I figured out
>that the problem was in not using pkgconfig by those two and in missing
>dependency to appinfo in appfw package. Please review my patches and
>merge them as soon as possible:
>[1] https://review.tizen.org/gerrit/10524
>[2] https://review.tizen.org/gerrit/10532
>[3] https://review.tizen.org/gerrit/10533
>When I was trying to build osp-channel-service [2] with my patch I
>experienced some new problem with gbs: Build (install part exactly) was
>failed due to missing brp-strip-static-archive and
>brp-strip-comment-note scripts form rpm. I had to cp them manually from
>rpm repository to suitable directory in my build root and then
>everything works fine. I know that this is only some walk around but I
>have no idea where those errors come from? Can anyone help with it?
>Krzysztof Opasiak
>Samsung R&D Institute Poland
>Samsung Electronics
>k.opasiak at samsung.com
>Dev mailing list
>Dev at lists.tizen.org

More information about the Dev mailing list