============================ rpmlint session starts ============================ rpmlint: 2.7.0 configuration: /opt/testing/lib64/python3.13/rpmlint/configdefaults.toml /opt/testing/share/rpmlint/cron-whitelist.toml /opt/testing/share/rpmlint/dbus-services.toml /opt/testing/share/rpmlint/device-files-whitelist.toml /opt/testing/share/rpmlint/licenses.toml /opt/testing/share/rpmlint/opensuse.toml /opt/testing/share/rpmlint/pam-modules.toml /opt/testing/share/rpmlint/permissions-whitelist.toml /opt/testing/share/rpmlint/pie-executables.toml /opt/testing/share/rpmlint/polkit-rules-whitelist.toml /opt/testing/share/rpmlint/scoring.toml /opt/testing/share/rpmlint/security.toml /opt/testing/share/rpmlint/sudoers-whitelist.toml /opt/testing/share/rpmlint/sysctl-whitelist.toml /opt/testing/share/rpmlint/systemd-tmpfiles.toml /opt/testing/share/rpmlint/users-groups.toml /opt/testing/share/rpmlint/world-writable-whitelist.toml /opt/testing/share/rpmlint/zypper-plugins.toml /etc/xdg/rpmlint/scoring-strict.override.toml rpmlintrc: /home/abuild/rpmbuild/SOURCES/cacti-rpmlintrc checks: 41, packages: 2 cacti.noarch: E: zero-length /srv/www/cacti/include/vendor/gettext/src/oscarotero.txt cacti.noarch: E: zero-length /srv/www/cacti/include/vendor/gettext/tests/assets/vuejs/Json cacti.src: E: unused-rpmlintrc-filter "suse-missing-rclink cacti-cron" cacti.src: E: unused-rpmlintrc-filter "systemd-service-without-service_add_post cacti-cron.service" cacti.src: E: unused-rpmlintrc-filter "systemd-service-without-service_add_pre cacti-cron.service" cacti.src: E: unused-rpmlintrc-filter "systemd-service-without-service_del_postun cacti-cron.service" cacti.src: E: unused-rpmlintrc-filter "systemd-service-without-service_del_preun cacti-cron.service" cacti.noarch: E: script-without-shebang /srv/www/cacti/cache/index.php cacti.noarch: E: script-without-shebang /srv/www/cacti/cli/index.php cacti.noarch: E: script-without-shebang /srv/www/cacti/include/themes/midwinter/vendor/ua-parser/ua-parser.js cacti.noarch: E: script-without-shebang /srv/www/cacti/include/vendor/gettext/src/translator_functions.php cacti.noarch: E: script-without-shebang /srv/www/cacti/include/vendor/gettext/tests/TranslatorTest.php cacti.noarch: E: script-without-shebang /srv/www/cacti/scripts/index.php cacti.noarch: E: script-without-shebang /srv/www/cacti/scripts/query_host_cpu.php cacti.noarch: E: script-without-shebang /srv/www/cacti/scripts/query_host_partitions.php cacti.noarch: E: script-without-shebang /srv/www/cacti/scripts/sql.php cacti.noarch: E: script-without-shebang /srv/www/cacti/scripts/ss_multicpu_avg.php This text file has executable bits set or is located in a path dedicated for executables, but lacks a shebang and cannot thus be executed. If the file is meant to be an executable script, add the shebang, otherwise remove the executable bits or move the file elsewhere. cacti.spec:21: E: obsolete-suse-version-check 1210 cacti.spec:29: E: obsolete-suse-version-check 1230 The specfile contains a comparison of %suse_version against a suse release that is no longer in maintenance. Consider removing obsolete parts of your spec file to make it more readable. cacti.noarch: E: non-executable-script /srv/www/cacti/install/cli_check.php 644 /usr/bin/env php cacti.noarch: E: non-executable-script /srv/www/cacti/install/cli_test.php 644 /usr/bin/env php cacti.noarch: E: non-executable-script /srv/www/cacti/locales/update-pot.sh 644 /bin/sh cacti.noarch: E: non-executable-script /srv/www/cacti/script_server.php 644 /usr/bin/env php This text file contains a shebang or is located in a path dedicated for executables, but lacks the executable bits and cannot thus be executed. If the file is meant to be an executable script, add the executable bits, otherwise remove the shebang or move the file elsewhere. cacti.noarch: W: non-etc-or-var-file-marked-as-conffile /srv/www/cacti/include/config.php A file not in /etc or /var is marked as being a configuration file (%config). Please put your configuration files in /etc or /var. cacti.spec: W: no-%check-section The spec file does not contain an %check section. Please check if the package has a testsuite and what it takes to enable the testsuite as part of the package build. If it is not possible to run it in the build environment (OBS/koji) or no testsuite exists, then please ignore this warning. You should not insert an empty %check section. cacti.spec:22: W: macro-in-comment %define cacti.spec:22: W: macro-in-comment %{_datadir} cacti.spec:23: W: macro-in-comment %else cacti.spec:24: W: macro-in-comment %define cacti.spec:24: W: macro-in-comment %{apache_datadir} cacti.spec:25: W: macro-in-comment %endif cacti.spec:46: W: macro-in-comment %{name} cacti.spec:47: W: macro-in-comment %{name} cacti.spec:259: W: macro-in-comment %{_unitdir} cacti.spec:259: W: macro-in-comment %{name} cacti.spec:260: W: macro-in-comment %{_unitdir} cacti.spec:260: W: macro-in-comment %{name} There is a unescaped macro after a shell style comment in the specfile. Macros are expanded everywhere, so check if it can cause a problem in this case and escape the macro with another leading % if appropriate. cacti.noarch: W: files-duplicate /srv/www/cacti/resource/snmp_queries/index.php /srv/www/cacti/cache/boost/index.php:/srv/www/cacti/cache/index.php:/srv/www/cacti/cache/realtime/index.php:/srv/www/cacti/cache/spikekill/index.php:/srv/www/cacti/cli/index.php:(and 65 more) Your package contains duplicated files that are not hard- or symlinks. You should use the %fdupes macro to link the files to one. cacti.noarch: E: env-script-interpreter (Badness: 9) /srv/www/cacti/cactid.php /usr/bin/env php cacti.noarch: E: env-script-interpreter (Badness: 9) /srv/www/cacti/cli/add_data_query.php /usr/bin/env php cacti.noarch: E: env-script-interpreter (Badness: 9) /srv/www/cacti/cli/add_datasource.php /usr/bin/env php cacti.noarch: E: env-script-interpreter (Badness: 9) /srv/www/cacti/cli/add_device.php /usr/bin/env php cacti.noarch: E: env-script-interpreter (Badness: 9) /srv/www/cacti/cli/add_graph_template.php /usr/bin/env php cacti.noarch: E: env-script-interpreter (Badness: 9) /srv/www/cacti/cli/add_graphs.php /usr/bin/env php cacti.noarch: E: env-script-interpreter (Badness: 9) /srv/www/cacti/cli/add_perms.php /usr/bin/env php cacti.noarch: E: env-script-interpreter (Badness: 9) /srv/www/cacti/cli/add_tree.php /usr/bin/env php cacti.noarch: E: env-script-interpreter (Badness: 9) /srv/www/cacti/cli/analyze_database.php /usr/bin/env php cacti.noarch: E: env-script-interpreter (Badness: 9) /srv/www/cacti/cli/apply_automation_rules.php /usr/bin/env php cacti.noarch: E: env-script-interpreter (Badness: 9) /srv/www/cacti/cli/audit_database.php /usr/bin/env php cacti.noarch: E: env-script-interpreter (Badness: 9) /srv/www/cacti/cli/batchgapfix.php /usr/bin/env php cacti.noarch: E: env-script-interpreter (Badness: 9) /srv/www/cacti/cli/change_device.php /usr/bin/env php cacti.noarch: E: env-script-interpreter (Badness: 9) /srv/www/cacti/cli/convert_tables.php /usr/bin/env php cacti.noarch: E: env-script-interpreter (Badness: 9) /srv/www/cacti/cli/copy_user.php /usr/bin/env php cacti.noarch: E: env-script-interpreter (Badness: 9) /srv/www/cacti/cli/fix_mediumint.php /usr/bin/env php cacti.noarch: E: env-script-interpreter (Badness: 9) /srv/www/cacti/cli/float_rrdfiles.php /usr/bin/env php cacti.noarch: E: env-script-interpreter (Badness: 9) /srv/www/cacti/cli/host_update_template.php /usr/bin/env php cacti.noarch: E: env-script-interpreter (Badness: 9) /srv/www/cacti/cli/import_package.php /usr/bin/env php cacti.noarch: E: env-script-interpreter (Badness: 9) /srv/www/cacti/cli/import_template.php /usr/bin/env php cacti.noarch: E: env-script-interpreter (Badness: 9) /srv/www/cacti/cli/input_whitelist.php /usr/bin/env php cacti.noarch: E: env-script-interpreter (Badness: 9) /srv/www/cacti/cli/install_cacti.php /usr/bin/env php cacti.noarch: E: env-script-interpreter (Badness: 9) /srv/www/cacti/cli/md5sum.php /usr/bin/env php cacti.noarch: E: env-script-interpreter (Badness: 9) /srv/www/cacti/cli/plugin_manage.php /usr/bin/env php cacti.noarch: E: env-script-interpreter (Badness: 9) /srv/www/cacti/cli/poller_data_sources_reapply_names.php /usr/bin/env php cacti.noarch: E: env-script-interpreter (Badness: 9) /srv/www/cacti/cli/poller_graphs_reapply_names.php /usr/bin/env php cacti.noarch: E: env-script-interpreter (Badness: 9) /srv/www/cacti/cli/poller_output_empty.php /usr/bin/env php cacti.noarch: E: env-script-interpreter (Badness: 9) /srv/www/cacti/cli/poller_reindex_hosts.php /usr/bin/env php cacti.noarch: E: env-script-interpreter (Badness: 9) /srv/www/cacti/cli/poller_replicate.php /usr/bin/env php cacti.noarch: E: env-script-interpreter (Badness: 9) /srv/www/cacti/cli/push_out_hosts.php /usr/bin/env php cacti.noarch: E: env-script-interpreter (Badness: 9) /srv/www/cacti/cli/rebuild_poller_cache.php /usr/bin/env php cacti.noarch: E: env-script-interpreter (Badness: 9) /srv/www/cacti/cli/refresh_csrf.php /usr/bin/env php cacti.noarch: E: env-script-interpreter (Badness: 9) /srv/www/cacti/cli/remove_broken_graphs.php /usr/bin/env php cacti.noarch: E: env-script-interpreter (Badness: 9) /srv/www/cacti/cli/remove_device.php /usr/bin/env php cacti.noarch: E: env-script-interpreter (Badness: 9) /srv/www/cacti/cli/remove_graphs.php /usr/bin/env php cacti.noarch: E: env-script-interpreter (Badness: 9) /srv/www/cacti/cli/removespikes.php /usr/bin/env php cacti.noarch: E: env-script-interpreter (Badness: 9) /srv/www/cacti/cli/reorder_data_query.php /usr/bin/env php cacti.noarch: E: env-script-interpreter (Badness: 9) /srv/www/cacti/cli/repair_database.php /usr/bin/env php cacti.noarch: E: env-script-interpreter (Badness: 9) /srv/www/cacti/cli/repair_graphs.php /usr/bin/env php cacti.noarch: E: env-script-interpreter (Badness: 9) /srv/www/cacti/cli/repair_templates.php /usr/bin/env php cacti.noarch: E: env-script-interpreter (Badness: 9) /srv/www/cacti/cli/splice_rrd.php /usr/bin/env php cacti.noarch: E: env-script-interpreter (Badness: 9) /srv/www/cacti/cli/sqltable_to_php.php /usr/bin/env php cacti.noarch: E: env-script-interpreter (Badness: 9) /srv/www/cacti/cli/structure_rra_paths.php /usr/bin/env php cacti.noarch: E: env-script-interpreter (Badness: 9) /srv/www/cacti/cli/update_heartbeat.php /usr/bin/env php cacti.noarch: E: env-script-interpreter (Badness: 9) /srv/www/cacti/cli/upgrade_database.php /usr/bin/env php cacti.noarch: E: env-script-interpreter (Badness: 9) /srv/www/cacti/cmd.php /usr/bin/env php cacti.noarch: E: env-script-interpreter (Badness: 9) /srv/www/cacti/poller.php /usr/bin/env php cacti.noarch: E: env-script-interpreter (Badness: 9) /srv/www/cacti/poller_automation.php /usr/bin/env php cacti.noarch: E: env-script-interpreter (Badness: 9) /srv/www/cacti/poller_boost.php /usr/bin/env php cacti.noarch: E: env-script-interpreter (Badness: 9) /srv/www/cacti/poller_commands.php /usr/bin/env php cacti.noarch: E: env-script-interpreter (Badness: 9) /srv/www/cacti/poller_dsstats.php /usr/bin/env php cacti.noarch: E: env-script-interpreter (Badness: 9) /srv/www/cacti/poller_maintenance.php /usr/bin/env php cacti.noarch: E: env-script-interpreter (Badness: 9) /srv/www/cacti/poller_realtime.php /usr/bin/env php cacti.noarch: E: env-script-interpreter (Badness: 9) /srv/www/cacti/poller_recovery.php /usr/bin/env php cacti.noarch: E: env-script-interpreter (Badness: 9) /srv/www/cacti/poller_reports.php /usr/bin/env php cacti.noarch: E: env-script-interpreter (Badness: 9) /srv/www/cacti/poller_rrdcheck.php /usr/bin/env php cacti.noarch: E: env-script-interpreter (Badness: 9) /srv/www/cacti/poller_spikekill.php /usr/bin/env php cacti.noarch: E: env-script-interpreter (Badness: 9) /srv/www/cacti/scripts/cacti_user_stats.php /usr/bin/env php cacti.noarch: E: env-script-interpreter (Badness: 9) /srv/www/cacti/scripts/ss_count_oids.php /usr/bin/env php cacti.noarch: E: env-script-interpreter (Badness: 9) /srv/www/cacti/scripts/ss_cpoller.php /usr/bin/env php cacti.noarch: E: env-script-interpreter (Badness: 9) /srv/www/cacti/scripts/ss_fping.php /usr/bin/env php cacti.noarch: E: env-script-interpreter (Badness: 9) /srv/www/cacti/scripts/ss_gexport.php /usr/bin/env php cacti.noarch: E: env-script-interpreter (Badness: 9) /srv/www/cacti/scripts/ss_host_cpu.php /usr/bin/env php cacti.noarch: E: env-script-interpreter (Badness: 9) /srv/www/cacti/scripts/ss_host_disk.php /usr/bin/env php cacti.noarch: E: env-script-interpreter (Badness: 9) /srv/www/cacti/scripts/ss_hstats.php /usr/bin/env php cacti.noarch: E: env-script-interpreter (Badness: 9) /srv/www/cacti/scripts/ss_net_snmp_disk_bytes.php /usr/bin/env php cacti.noarch: E: env-script-interpreter (Badness: 9) /srv/www/cacti/scripts/ss_net_snmp_disk_io.php /usr/bin/env php cacti.noarch: E: env-script-interpreter (Badness: 9) /srv/www/cacti/scripts/ss_poller.php /usr/bin/env php cacti.noarch: E: env-script-interpreter (Badness: 9) /srv/www/cacti/scripts/ss_sql.php /usr/bin/env php cacti.noarch: E: env-script-interpreter (Badness: 9) /srv/www/cacti/scripts/ss_webseer.php /usr/bin/env php cacti.noarch: E: env-script-interpreter (Badness: 9) /srv/www/cacti/snmpagent_persist.php /usr/bin/env php This script uses 'env' as an interpreter. For the rpm runtime dependency detection to work, the shebang #!/usr/bin/env needs to be patched into #!/usr/bin/ otherwise the package dependency generator merely adds a dependency on /usr/bin/env rather than the actual interpreter /usr/bin/. Alternatively, if the file should not be executed, then ensure that it is not marked as executable or don't install it in a path that is reserved for executables. Check time report (>1% & >0.1s): Check Duration (in s) Fraction (in %) Checked files ExtractRpm 4.3 70.1 SUIDPermissionsCheck 0.5 9.0 FilesCheck 0.5 8.1 BuildRootAndDateCheck 0.2 3.7 SignatureCheck 0.2 3.2 BashismsCheck 0.1 2.4 TOTAL 6.1 100.0 2 packages and 0 specfiles checked; 94 errors, 15 warnings, 3209 filtered, 662 badness; has taken 6.2 s