linux - CentOS 64bit RPM with 32bit dependencies -


i have helper rpm package used install necessary dependencies in order software work; problem dependency packages required 32bit ones, can't installed on centos 64bit without --setopt=protected_multilib=false flag.

to manually install dependencies i'd run:

# yum install --setopt=protected_multilib=false libxrandr.i686

# yum install --setopt=protected_multilib=false gtk2.i686

# yum install --setopt=protected_multilib=false libxtst.i686

this correctly install 32bit version of packages.

the problem appears when installing helper package directly, seems there's no way force --setopt=protected_multilib=false dependencies.

when trying install package (locally, using yum --nogpgcheck --setopt=protected_multilib=false localinstall centos_helper-0-0.x86_64.rpm) following error:

examining centos_helper-0-0.x86_64.rpm: centos_helper-0-0.x86_64 marking centos_helper-0-0.x86_64.rpm installed loading mirror speeds cached hostfile  * base: mirror.dattobackup.com  * extras: mirror.metrocast.net  * rpmforge: mirror.de.leaseweb.net  * updates: mirror.dattobackup.com resolving dependencies --> running transaction check ---> package centos_helper.x86_64 0:0-0 installed --> processing dependency: libxrandr.i686 package: centos_helper-0-0.x86_64 --> processing dependency: gtk2.i686 package: centos_helper-0-0.x86_64 --> processing dependency: libxtst.i686 package: centos_helper-0-0.x86_64 --> finished dependency resolution error: package: centos_helper-0-0.x86_64 (/centos_helper-0-0.x86_64)            requires: gtk2.i686 error: package: centos_helper-0-0.x86_64 (/centos_helper-0-0.x86_64)            requires: libxrandr.i686 error: package: centos_helper-0-0.x86_64 (/centos_helper-0-0.x86_64)            requires: libxtst.i686  try using --skip-broken work around problem  try running: rpm -va --nofiles --nodigest 

this same error when trying install dependencies hand without protected_multilib=false flag.

the .spec file i'm using create package has following content:

summary: centos helper file name: centos_helper version: 0 release: 0 license: public group: applications/system requires: libxrandr.i686,gtk2.i686,libxtst.i686 %description installer centos helper package %files 

any way have dependencies correctly install?

you might want @ http://www.rpm.org/wiki/packagerdocs/archdependencies prefer referencing sonames myself, way yum dependancy install. i've had major centos upgrades failing because if this.

this if recent rpm versions : 4.6 or so. if you're on older :

requires: real-soname.so.1()(64bit), real-soname.so.1, packagename

from memory, might need tweak.


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -