1

I'm trying to use boolean logic for my dependencies (https://rpm.org/user_doc/boolean_dependencies.html) in a custom spec file, but I'm running into trouble.

.spec snippet

BuildRequires: libxml2-devel, mysql-devel, net-snmp-devel, (mariadb or mariadb-connector-c), rocksdb-devel, zeromq-devel 
Requires: mysql, libxml2, net-snmp, perl, perl-libwww-perl, net-snmp-perl, net-snmp-libs, net-snmp-utils, (mariadb or mariadb-connector-c), rocksdb, rdkafka, libzmq5 >= 4.1.4, protobuf-c

error

error: line 27: Dependency tokens must begin with alpha-numeric, '_' or '/': BuildRequires: libxml2-devel, mysql-devel, net-snmp-devel, (mariadb or mariadb-connector-c), rocksdb-devel, zeromq-devel

What am I doing wrong?

3
  • What OS are you using? RedHat 7 only has 4.11.3; those extensions came in 4.13 and I don't know if RH backported Apr 23, 2019 at 15:57
  • I just spoke w/ the OP he's on 4.8. Doesn't appear to have been backported either. We found this post on SF too - serverfault.com/questions/299179/….
    – slm
    Apr 23, 2019 at 16:08
  • Whoops, I saw 4.13 and was thinking in decimal rather than semantic versions :facepalm: 4.8 < 4.13
    – uklinale
    Apr 23, 2019 at 17:59

0

You must log in to answer this question.

Browse other questions tagged .