void-packages/srcpkgs/snapper/patches/0001-disable-locale-tests.patch
Đoàn Trần Công Danh 4b97cd2fb4 srcpkgs/s*: convert patches to -Np1
```sh
git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" |
while read template; do
	for p in ${template%/template}/patches/*; do
		sed -i '
			\,^[+-][+-][+-] /dev/null,b
			/^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b
			s,^[*][*][*] ,&a/,
			/^--- /{
				s,\(^--- \)\(./\)*,\1a/,
				s,[.-][Oo][Rr][Ii][Gg]\([	/]\),\1,
				s/[.-][Oo][Rr][Ii][Gg]$//
				s/[.]patched[.]\([^.]\)/.\1/
				h
			}
			/^+++ -/{
				g
				s/^--- a/+++ b/
				b
			}
			s,\(^+++ \)\(./\)*,\1b/,
		' "$p"
	done
	sed -i '/^patch_args=/d' $template
done
```
2021-06-20 13:17:29 +07:00

40 lines
1.8 KiB
Diff

diff --git testsuite/Makefile.am testsuite/Makefile.am
index ccb84d3..9774a9c 100644
--- a/testsuite/Makefile.am
+++ b/testsuite/Makefile.am
@@ -7,9 +7,9 @@ AM_CPPFLAGS = -I$(top_srcdir) $(DBUS_CFLAGS)
LDADD = ../snapper/libsnapper.la ../dbus/libdbus.la -lboost_unit_test_framework
check_PROGRAMS = sysconfig-get1.test dirname1.test basename1.test \
- equal-date.test dbus-escape.test cmp-lt.test humanstring.test uuid.test \
- table.test table-formatter.test csv-formatter.test json-formatter.test \
- getopts.test scan-datetime.test root-prefix.test range.test limit.test
+ equal-date.test dbus-escape.test uuid.test \
+ csv-formatter.test json-formatter.test \
+ getopts.test scan-datetime.test root-prefix.test
if ENABLE_BTRFS_QUOTA
check_PROGRAMS += qgroup1.test
@@ -29,14 +29,8 @@ equal_date_test_LDADD = -lboost_unit_test_framework ../client/utils/libutils.la
scan_datetime_test_LDADD = -lboost_unit_test_framework ../client/utils/libutils.la
-humanstring_test_LDADD = -lboost_unit_test_framework ../client/utils/libutils.la
-
uuid_test_LDADD = -lboost_unit_test_framework ../client/utils/libutils.la
-table_test_LDADD = -lboost_unit_test_framework ../client/utils/libutils.la
-
-table_formatter_test_LDADD = -lboost_unit_test_framework ../client/utils/libutils.la
-
csv_formatter_test_LDADD = -lboost_unit_test_framework ../client/utils/libutils.la
json_formatter_test_LDADD = -lboost_unit_test_framework ../client/utils/libutils.la $(JSONC_LIBS)
@@ -44,7 +38,3 @@ json_formatter_test_LDADD = -lboost_unit_test_framework ../client/utils/libutils
getopts_test_LDADD = -lboost_unit_test_framework ../client/utils/libutils.la
lvm_utils_test_LDADD = -lboost_unit_test_framework ../snapper/libsnapper.la
-
-range_test_LDADD = -lboost_unit_test_framework ../client/utils/libutils.la
-
-limit_test_LDADD = -lboost_unit_test_framework ../client/utils/libutils.la