avahi/avahi-0.7-python3.patch

37 lines
1.7 KiB
Diff

diff -urp avahi-0.7.orig/configure.ac avahi-0.7/configure.ac
--- avahi-0.7.orig/configure.ac 2017-07-10 05:14:59.131370037 -0500
+++ avahi-0.7/configure.ac 2018-01-18 16:51:43.817275133 -0600
@@ -825,7 +825,7 @@ if test "x$HAVE_PYTHON" = "xyes" ; then
AM_CHECK_PYMOD(socket,,,[AC_MSG_ERROR(Could not find Python module socket)])
if test "x$HAVE_GDBM" = "xyes"; then
- AM_CHECK_PYMOD(gdbm,,,[AC_MSG_ERROR(Could not find Python module gdbm)])
+ AM_CHECK_PYMOD(dbm.gnu,,,[AC_MSG_ERROR(Could not find Python module dbm.gnu)])
fi
if test "x$HAVE_DBM" = "xyes"; then
AM_CHECK_PYMOD(dbm,,,[AC_MSG_ERROR(Could not find Python module dbm)])
diff -urp avahi-0.7.orig/service-type-database/build-db.in avahi-0.7/service-type-database/build-db.in
--- avahi-0.7.orig/service-type-database/build-db.in 2017-07-10 05:14:59.147369677 -0500
+++ avahi-0.7/service-type-database/build-db.in 2018-01-19 12:06:27.261215050 -0600
@@ -31,7 +31,7 @@ else:
db = @DBM@.open(outfn, "n")
-for ln in file(infn, "r"):
+for ln in open(infn, "r"):
ln = ln.strip(" \r\n\t")
if ln == "" or ln.startswith("#"):
diff -urp avahi-0.7.orig/service-type-database/Makefile.am avahi-0.7/service-type-database/Makefile.am
--- avahi-0.7.orig/service-type-database/Makefile.am 2017-07-10 05:14:59.147369677 -0500
+++ avahi-0.7/service-type-database/Makefile.am 2018-01-18 16:53:19.133474971 -0600
@@ -29,7 +29,7 @@ pkglibdata_DATA+=service-types.db
build-db: build-db.in
$(AM_V_GEN)sed -e 's,@PYTHON\@,$(PYTHON),g' \
- -e 's,@DBM\@,gdbm,g' $< > $@ && \
+ -e 's,@DBM\@,dbm.gnu,g' $< > $@ && \
chmod +x $@
service-types.db: service-types build-db