building RPM package: force to install in path of a dependent relocated package

前端 未结 1 1223
南方客
南方客 2021-01-23 15:48

I have 2 dependent packages who should be placed in the same target. Package B is dependent on package A.

Package A can be relocated to any another location. I now want

1条回答
  •  盖世英雄少女心
    2021-01-23 16:36

    Hah. So I did a bit of source diving and discovered that apparently (at least for rpm 4.8.0 I didn't look at other versions) the RPM_INSTALL_PREFIX and RPM_INSTALL_PREFIX# environment variables are set for the %pre (and possibly other scriptlets) to the values of (what appear to be the %{INSTPREFIXES} and/or %{INSTALLPREFIX} macros). [source link]

    I would try those in your %pre script. They look like they will give you what you want.

    Same code in rpm head.

    0 讨论(0)
提交回复
热议问题