void-packages/srcpkgs/kio/patches/musl.patch
Đoàn Trần Công Danh dd9d4a1979 srcpkgs/k*: 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

19 lines
630 B
Diff

--- a/src/kpac/kpac_dhcp_helper.old 2016-04-03 21:55:42.000000000 +0100
+++ b/src/kpac/kpac_dhcp_helper.c 2016-07-21 08:42:04.989005565 +0100
@@ -17,6 +17,7 @@
Boston, MA 02110-1301, USA.
*/
+#define _BSD_SOURCE
#include <arpa/inet.h>
#include <netinet/in.h>
#include <sys/types.h>
--- a/src/ioslaves/file/kauth/fdsender.cpp 2018-02-18 09:28:09.195854002 +0100
+++ b/src/ioslaves/file/kauth/fdsender.cpp 2018-02-18 09:28:30.013527072 +0100
@@ -18,6 +18,7 @@
License along with this library. If not, see <http://www.gnu.org/licenses/>.
***/
+#include <string.h>
#include "../sharefd_p.h"
#include "fdsender.h"