summaryrefslogtreecommitdiffstats
path: root/rpminfo.c
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2024-09-03 15:11:33 +0200
committerRemi Collet <remi@php.net>2024-09-03 15:11:33 +0200
commit773649c7cfcdcadf6c1d6f0cdfe8c9b6b8b3207b (patch)
treef28d7bef7fa94085f0268a5c33f0da1dd3f5fefd /rpminfo.c
parent56b4819dca246f6b2eeaee986c9f8af7fa982ccb (diff)
drop support for librpm < 4.13
Diffstat (limited to 'rpminfo.c')
-rw-r--r--rpminfo.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/rpminfo.c b/rpminfo.c
index e3fc4f5..55a5351 100644
--- a/rpminfo.c
+++ b/rpminfo.c
@@ -35,7 +35,6 @@
#include "rpminfo_arginfo.h"
-#ifdef HAVE_ARCHIVE
struct php_rpm_stream_data_t {
FD_t gzdi;
Header h;
@@ -46,7 +45,6 @@ struct php_rpm_stream_data_t {
#define STREAM_DATA_FROM_STREAM() \
struct php_rpm_stream_data_t *self = (struct php_rpm_stream_data_t *) stream->abstract;
-#endif
ZEND_DECLARE_MODULE_GLOBALS(rpminfo)
@@ -349,14 +347,12 @@ static int haveIndex(zend_long tag) {
tag == RPMDBI_INSTALLTID ||
tag == RPMDBI_SIGMD5 ||
tag == RPMDBI_SHA1HEADER ||
-#ifdef HAVE_WEAKDEP
tag == RPMDBI_FILETRIGGERNAME ||
tag == RPMDBI_TRANSFILETRIGGERNAME ||
tag == RPMDBI_RECOMMENDNAME ||
tag == RPMDBI_SUGGESTNAME ||
tag == RPMDBI_SUPPLEMENTNAME ||
tag == RPMDBI_ENHANCENAME ||
-#endif
tag == RPMDBI_INSTFILENAMES) {
return 1;
}
@@ -578,7 +574,6 @@ PHP_FUNCTION(rpmaddtag)
}
/* }}} */
-#ifdef HAVE_ARCHIVE
static ssize_t php_rpm_ops_read(php_stream *stream, char *buf, size_t count)
{
ssize_t n = -1;
@@ -871,7 +866,6 @@ PHP_FUNCTION(rpmgetsymlink)
Fclose(gzdi);
}
/* }}} */
-#endif /* HAVE_ARCHIVE */
/* {{{ PHP_MINIT_FUNCTION
@@ -919,9 +913,7 @@ PHP_MINIT_FUNCTION(rpminfo)
}
rpmtdFree(names);
-#ifdef HAVE_ARCHIVE
php_register_url_stream_wrapper("rpm", &php_stream_rpm_wrapper);
-#endif
return SUCCESS;
}
@@ -977,11 +969,7 @@ PHP_MINFO_FUNCTION(rpminfo)
php_info_print_table_row(2, "Author", PHP_RPMINFO_AUTHOR);
php_info_print_table_row(2, "License", PHP_RPMINFO_LICENSE);
php_info_print_table_row(2, "RPM library version", RPMVERSION);
-#ifdef HAVE_ARCHIVE
php_info_print_table_row(2, "RPM stream wrapper", "yes");
-#else
- php_info_print_table_row(2, "RPM stream wrapper", "no");
-#endif
php_info_print_table_end();
/* Remove comments if you have entries in php.ini