Files
nixpkgs/pkgs/os-specific/linux
Ivan Kozik c945b47a25 linuxPackages.wireguard: fix the build on linux 5.4.76
Patch copied from https://github.com/archlinux/svntogit-packages/blob/packages/wireguard-dkms/trunk/lts.diff

This fixes:

```
In file included from <command-line>:
/build/source/src/compat/compat-asm.h:44: warning: "SYM_FUNC_START" redefined
   44 | #define SYM_FUNC_START ENTRY
      |
In file included from /build/source/src/compat/compat-asm.h:9,
                 from <command-line>:
/nix/store/cz60577g5hwk78c2z7rhxl21bklaqr0d-linux-5.4.77-dev/lib/modules/5.4.77-hardened/source/include/linux/linkage.h:218: note: this is the location of the previous definition
  218 | #define SYM_FUNC_START(name)    \
      |
In file included from <command-line>:
/build/source/src/compat/compat-asm.h:45: warning: "SYM_FUNC_END" redefined
   45 | #define SYM_FUNC_END ENDPROC
      |
In file included from /build/source/src/compat/compat-asm.h:9,
                 from <command-line>:
/nix/store/cz60577g5hwk78c2z7rhxl21bklaqr0d-linux-5.4.77-dev/lib/modules/5.4.77-hardened/source/include/linux/linkage.h:265: note: this is the location of the previous definition
  265 | #define SYM_FUNC_END(name)    \
      |
/build/source/src/crypto/zinc/blake2s/blake2s-x86_64.S: Assembler messages:
/build/source/src/crypto/zinc/blake2s/blake2s-x86_64.S:50: Error: invalid character '(' in mnemonic
/build/source/src/crypto/zinc/blake2s/blake2s-x86_64.S:176: Error: invalid character '(' in mnemonic
/build/source/src/crypto/zinc/blake2s/blake2s-x86_64.S:180: Error: invalid character '(' in mnemonic
/build/source/src/crypto/zinc/blake2s/blake2s-x86_64.S:257: Error: invalid character '(' in mnemonic
make[3]: *** [/nix/store/cz60577g5hwk78c2z7rhxl21bklaqr0d-linux-5.4.77-dev/lib/modules/5.4.77-hardened/source/scripts/Makefile.build:348: /build/source/src/crypto/zinc/blake2s/blake2s-x86_64.o] Error 1
make[3]: *** Waiting for unfinished jobs....
In file included from <command-line>:
/build/source/src/compat/compat-asm.h:44: warning: "SYM_FUNC_START" redefined
   44 | #define SYM_FUNC_START ENTRY
      |
In file included from /build/source/src/compat/compat-asm.h:9,
                 from <command-line>:
/nix/store/cz60577g5hwk78c2z7rhxl21bklaqr0d-linux-5.4.77-dev/lib/modules/5.4.77-hardened/source/include/linux/linkage.h:218: note: this is the location of the previous definition
  218 | #define SYM_FUNC_START(name)    \
      |
In file included from <command-line>:
/build/source/src/compat/compat-asm.h:45: warning: "SYM_FUNC_END" redefined
   45 | #define SYM_FUNC_END ENDPROC
      |
In file included from /build/source/src/compat/compat-asm.h:9,
                 from <command-line>:
/nix/store/cz60577g5hwk78c2z7rhxl21bklaqr0d-linux-5.4.77-dev/lib/modules/5.4.77-hardened/source/include/linux/linkage.h:265: note: this is the location of the previous definition
  265 | #define SYM_FUNC_END(name)    \
      |
/build/source/src/crypto/zinc/chacha20/chacha20-x86_64.S: Assembler messages:
/build/source/src/crypto/zinc/chacha20/chacha20-x86_64.S:123: Error: invalid character '(' in mnemonic
/build/source/src/crypto/zinc/chacha20/chacha20-x86_64.S:185: Error: invalid character '(' in mnemonic
/build/source/src/crypto/zinc/chacha20/chacha20-x86_64.S:187: Error: invalid character '(' in mnemonic
/build/source/src/crypto/zinc/chacha20/chacha20-x86_64.S:319: Error: invalid character '(' in mnemonic
/build/source/src/crypto/zinc/chacha20/chacha20-x86_64.S:1016: Error: invalid character '(' in mnemonic
/build/source/src/crypto/zinc/chacha20/chacha20-x86_64.S:1616: Error: invalid character '(' in mnemonic
/build/source/src/crypto/zinc/chacha20/chacha20-x86_64.S:1620: Error: invalid character '(' in mnemonic
/build/source/src/crypto/zinc/chacha20/chacha20-x86_64.S:1810: Error: invalid character '(' in mnemonic
/build/source/src/crypto/zinc/chacha20/chacha20-x86_64.S:1812: Error: invalid character '(' in mnemonic
/build/source/src/crypto/zinc/chacha20/chacha20-x86_64.S:1959: Error: invalid character '(' in mnemonic
make[3]: *** [/nix/store/cz60577g5hwk78c2z7rhxl21bklaqr0d-linux-5.4.77-dev/lib/modules/5.4.77-hardened/source/scripts/Makefile.build:348: /build/source/src/crypto/zinc/chacha20/chacha20-x86_64.o] Error 1
make[2]: *** [/nix/store/cz60577g5hwk78c2z7rhxl21bklaqr0d-linux-5.4.77-dev/lib/modules/5.4.77-hardened/source/Makefile:1729: /build/source/src] Error 2
make[1]: *** [/nix/store/cz60577g5hwk78c2z7rhxl21bklaqr0d-linux-5.4.77-dev/lib/modules/5.4.77-hardened/source/Makefile:179: sub-make] Error 2
make: *** [Makefile:26: module] Error 2
builder for '/nix/store/hll3sjyrwa55arzlsxnbacqdd8s842l1-wireguard-1.0.20200908.drv' failed with exit code 2
```
2020-11-10 23:23:35 -08:00
..
2020-06-19 10:57:35 +02:00
2020-04-17 13:49:20 +02:00
2020-10-22 00:31:37 +00:00
2020-11-01 19:59:06 -08:00
2020-11-09 22:24:11 +01:00
2020-10-22 14:31:26 +00:00
2020-11-10 08:09:47 +08:00
2020-08-13 04:30:00 +00:00
2020-09-20 08:42:28 -07:00
2020-10-29 11:12:50 +00:00
2020-07-31 00:37:27 -07:00
2020-08-25 06:32:06 +00:00
2020-10-24 15:16:12 +00:00
2020-08-07 10:41:44 -07:00
2020-08-13 14:20:54 -04:00
2020-05-04 20:06:29 +00:00
2020-09-22 23:12:39 -07:00
2020-10-06 10:15:11 +02:00
2020-10-31 18:43:15 +01:00
2020-07-08 05:27:23 +00:00
2020-09-07 21:48:29 +02:00
2020-10-05 12:38:43 -07:00
2020-07-16 10:17:29 +02:00
2020-09-06 18:49:52 +02:00
2020-11-08 23:25:59 +01:00
2020-11-11 01:07:27 +01:00
2020-07-09 05:56:20 +00:00
2020-08-26 08:51:45 +02:00
2020-10-10 12:51:49 +02:00
2020-11-01 15:14:53 -08:00
2020-10-24 23:06:34 -07:00
2020-06-10 21:15:14 +02:00
2020-05-06 00:45:01 -04:00
2020-11-03 08:56:06 -08:00
2020-08-10 11:52:33 -07:00
2020-11-03 08:52:51 -08:00
2020-06-13 10:54:58 +02:00
2020-06-30 21:00:30 +02:00
2020-08-11 03:57:07 +00:00
2020-09-23 13:46:11 +02:00
2020-09-07 21:48:29 +02:00
2020-06-07 19:08:59 +02:00
2020-11-10 09:11:56 -05:00
2020-10-06 10:15:58 +02:00
2020-08-26 05:44:15 +00:00
2020-09-09 17:21:26 +02:00
2020-10-25 09:39:15 +01:00
2020-11-02 09:48:56 -08:00
2020-11-02 19:42:21 +00:00
2020-06-30 21:57:50 +02:00
2020-10-08 22:18:19 +02:00
2020-02-23 21:36:46 +00:00
2020-08-22 10:23:00 -07:00
2020-10-31 04:20:00 +00:00
2020-11-03 09:18:52 -08:00
2020-05-09 08:54:35 +02:00
2020-02-25 23:06:53 +01:00
2020-08-16 13:10:50 +00:00
2020-09-14 15:34:32 +02:00
2020-07-05 19:57:17 +00:00
2020-09-26 06:00:55 +00:00
2020-10-22 13:36:47 +02:00
2020-08-26 19:58:53 +00:00
2020-02-26 18:54:26 +00:00
2020-11-04 02:49:33 +00:00
2020-04-12 17:43:53 -07:00
2020-07-25 09:37:48 +02:00
2020-10-11 15:15:54 -04:00
2020-05-06 23:15:13 -07:00
2020-11-04 00:18:43 +00:00
2020-07-06 07:54:29 +02:00
2020-07-10 08:10:02 +00:00
2020-07-29 01:16:58 -05:00
2020-04-05 04:31:22 +00:00
2020-10-17 00:00:00 -04:00
2020-07-06 23:30:48 -04:00
2020-11-08 15:10:08 +01:00
2020-08-24 02:49:27 +02:00
2020-04-11 21:36:43 -04:00
2020-07-29 01:36:40 +02:00
2020-03-09 22:09:17 +00:00
2020-05-02 10:13:48 +02:00
2020-10-06 10:14:45 +02:00
2020-07-11 01:46:31 +00:00
2020-06-30 21:57:50 +02:00
2020-07-02 08:42:54 +02:00
2020-05-13 15:39:50 -07:00
2020-11-03 17:35:26 -05:00
2020-09-06 18:50:48 +02:00
2020-08-13 16:09:48 +02:00
2020-09-02 04:01:06 +02:00
2020-05-27 17:40:50 +00:00
2020-06-27 13:09:21 +02:00
2020-10-30 09:40:12 -07:00
2020-08-24 11:58:19 +02:00
2020-09-04 08:54:55 -07:00
2020-04-23 22:17:30 -04:00