And again, @xkaraman I still don't know how to tell cmake to just install a GROUP only.
I will try to explain my workflow.
First the configure step using MODULE_GROUP_NAME
to define ALL the groups I want to build and not using EXCLUDE_MODULES
:
dh_auto_configure -- \
-DUSE_GIT=OFF \
-DEXCLUDE_MODULES="mono geoip erlang bdb dbtext oracle pa iptrtpproxy dnssec java python" \
-DMODULE_GROUP_NAME="KSTANDARD KMYSQL KPOSTGRES KBERKELEY KUNIXODBC KRADIUS KPRESENCE KLDAP KXML KPERL KUTILS KLUA KMEMCACHED KSNMPSTATS KXMPP KCPL KREDIS KGEOIP2 KSQLITE KJSON KRUBY KIMS KSCTP KTLS KOUTBOUND KWEBSOCKET KAUTHEPH KKAZOO KCNXCC KSYSTEMD KPHONENUM KMONGODB KRABBITMQ KPYTHON3 KMQTT KSECSIPID KLWSC KNATS KTLS_WOLFSSL KMICROHTTPD KKAFKA KEV KGZCOMPRESS KJANSSON KUUID KHTTP_ASYNC" │
cd obj-x86_64-linux-gnu && DEB_PYTHON_INSTALL_LAYOUT=deb PKG_CONFIG=/usr/bin/pkg-config cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=None -DCMAKE_INSTALL_SYSCONFDIR=/etc -DCMAKE_INSTALL_LOCALSTA│
TEDIR=/var -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_FIND_USE_PACKAGE_REGISTRY=OFF -DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON -DFETCHCONTENT_FULLY_DISCONNECTED=ON -DCMAKE_INSTALL_RUNSTATEDIR=/run -DCMAKE_S│
KIP_INSTALL_ALL_DEPENDENCY=ON "-GUnix Makefiles" -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_INSTALL_LIBDIR=lib/x86_64-linux-gnu -DUSE_GIT=OFF "-DEXCLUDE_MODULES=mono geoip erlang bdb dbtext oracle pa iptrtpproxy dnsse│
c java python" "-DMODULE_GROUP_NAME=KSTANDARD KMYSQL KPOSTGRES KBERKELEY KUNIXODBC KRADIUS KPRESENCE KLDAP KXML KPERL KUTILS KLUA KMEMCACHED KSNMPSTATS KXMPP KCPL KREDIS KGEOIP2 KSQLITE KJSON KRUBY KIMS KSCTP K│
TLS KOUTBOUND KWEBSOCKET KAUTHEPH KKAZOO KCNXCC KSYSTEMD KPHONENUM KMONGODB KRABBITMQ KPYTHON3 KMQTT KSECSIPID KLWSC KNATS KTLS_WOLFSSL KMICROHTTPD KKAFKA KEV KGZCOMPRESS KJANSSON KUUID KHTTP_ASYNC" ..
That seems to work just fine.
-- Modules to be built: async;auth;benchmark;blst;cfg_rpc;cfgutils;corex;counters;ctl;debugger;diversion;enum;exec;ipops;kex;mangler;maxfwd;mediaproxy;mqueue;nat_traversal;nathelper;path;pike;pv;ratelimit;rr;rtimer;rtpproxy;sanity;sdpops;siputils;sl;statistics;textops;textopsx;tm;tmx;topoh;xlog;rtpengine;stun;sipt;tcpops;auth_xkeys;smsops;tsilo;cfgt;statsc;topos;topos_htable;sipdump;pv_headers;kemix;avp;auth_diameter;call_control;call_obj;dmq;domainpolicy;msrp;carrierroute;pdb;qos;sca;seas;sms;sst;timer;tmrec;uac_redirect;xhttp;xhttp_rpc;xprint;jsonrpcs;nosip;dmq_usrloc;statsd;rtjson;log_custom;keepalive;ss7ops;acc_diameter;evrexec;file_out;sipjson;lrkproxy;math;posops;xhttp_prom;dlgs;sworker;influxdbc;acc;alias_db;auth_db;avpops;cfg_db;db_text;db_flatstore;db_cluster;dialog;dispatcher;domain;drouting;group;htable;imc;matrix;mohqueue;msilo;mtree;p_usrloc;pdt;permissions;pipelimit;prefix_route;registrar;sipcapture;siptrace;speeddial;sqlops;uac;uri_db;userblocklist;usrloc;secfilter;db2_ops;uid_auth_db;uid_avp_db;uid_domain;uid_gflags;uid_uri_db;dialplan;lcr;regex;app_jsdt;db_mysql;db_postgres;db_berkeley;db_unixodbc;acc_radius;auth_radius;misc_radius;peering;presence;presence_conference;presence_dfks;presence_dialoginfo;presence_mwi;presence_profile;presence_reginfo;presence_xml;pua;pua_bla;pua_dialoginfo;pua_reginfo;pua_rpc;pua_usrloc;pua_xmpp;rls;xcap_client;xcap_server;db2_ldap;h350;ldap;xhttp_pi;xmlrpc;xmlops;app_perl;db_perlvdb;utils;http_client;lost;slack;app_lua;memcached;snmpstats;xmpp;db_redis;ndb_redis;topos_redis;geoip2;db_sqlite;json;pua_json;jsonrpcc;app_ruby;app_ruby_proc;cdp;cdp_avp;ims_dialog;ims_auth;ims_isc;ims_icscf;ims_qos;ims_registrar_pcscf;ims_registrar_scscf;ims_usrloc_pcscf;ims_usrloc_scscf;ims_charging;ims_ocs;ims_diameter_server;ims_ipsec_pcscf;sctp;crypto;tls;outbound;websocket;auth_ephemeral;kazoo;cnxcc;log_systemd;systemdops;phonenum;db_mongodb;ndb_mongodb;rabbitmq;app_python3;app_python3s;mqtt;secsipid;secsipid_proc;lwsc;nats;tls_wolfssl;microhttpd;kafka;evapi;gzcompress;jansson;acc_json;janssonrpcc;uuid;http_async_client
And the build starts...
-- Build files have been written to: /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build -O--buildsystem=cmake
cd obj-x86_64-linux-gnu && make -j16 "INSTALL=install --strip-program=true" VERBOSE=1
and after that I'm calling something like this for each GROUP:
dh_auto_install --buildsystem=cmake -pkamailio-mysql-modules \
--destdir=debian/kamailio-mysql-modules \
-- MODULE_GROUP_NAME=KMYSQL
That produces this command:
cd obj-x86_64-linux-gnu && make -j16 install DESTDIR=/<<BUILDDIR>>/kamailio-6.0.0\~pre0/debian/kamailio-mysql-modules AM_UPDATE_INFO_DIR=no "INSTALL=install --strip-program=true" MODULE_GROUP_NAME=KMYSQL
That installs everything again and again in different DESTDIR
.
How is the proper way to tell install rule to just install a GROUP?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.