RingtailedFox

Untitled

Nov 3rd, 2020
365
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.57 KB | None | 0 0
  1. results from following https://github.com/snapcore/snapd/HACKING.md (to compile snap from source):
  2.  
  3.  
  4. [user@Pavilion ~]$ go get -d -v github.com/snapcore/snapd/...
  5. warning: ignoring symlink /home/user/work/src/github.com/snapcore/snapd/debian
  6. warning: ignoring symlink /home/user/work/src/github.com/snapcore/snapd/packaging/amzn-2
  7. warning: ignoring symlink /home/user/work/src/github.com/snapcore/snapd/packaging/centos-7
  8. warning: ignoring symlink /home/user/work/src/github.com/snapcore/snapd/packaging/centos-8
  9. warning: ignoring symlink /home/user/work/src/github.com/snapcore/snapd/packaging/fedora-29
  10. warning: ignoring symlink /home/user/work/src/github.com/snapcore/snapd/packaging/fedora-30
  11. warning: ignoring symlink /home/user/work/src/github.com/snapcore/snapd/packaging/fedora-31
  12. warning: ignoring symlink /home/user/work/src/github.com/snapcore/snapd/packaging/fedora-32
  13. warning: ignoring symlink /home/user/work/src/github.com/snapcore/snapd/packaging/fedora-rawhide
  14. warning: ignoring symlink /home/user/work/src/github.com/snapcore/snapd/packaging/opensuse-15.0
  15. warning: ignoring symlink /home/user/work/src/github.com/snapcore/snapd/packaging/opensuse-15.1
  16. warning: ignoring symlink /home/user/work/src/github.com/snapcore/snapd/packaging/opensuse-15.2
  17. warning: ignoring symlink /home/user/work/src/github.com/snapcore/snapd/packaging/opensuse-tumbleweed
  18. warning: ignoring symlink /home/user/work/src/github.com/snapcore/snapd/packaging/ubuntu-14.04/source
  19. warning: ignoring symlink /home/user/work/src/github.com/snapcore/snapd/debian
  20. warning: ignoring symlink /home/user/work/src/github.com/snapcore/snapd/packaging/amzn-2
  21. warning: ignoring symlink /home/user/work/src/github.com/snapcore/snapd/packaging/centos-7
  22. warning: ignoring symlink /home/user/work/src/github.com/snapcore/snapd/packaging/centos-8
  23. warning: ignoring symlink /home/user/work/src/github.com/snapcore/snapd/packaging/fedora-29
  24. warning: ignoring symlink /home/user/work/src/github.com/snapcore/snapd/packaging/fedora-30
  25. warning: ignoring symlink /home/user/work/src/github.com/snapcore/snapd/packaging/fedora-31
  26. warning: ignoring symlink /home/user/work/src/github.com/snapcore/snapd/packaging/fedora-32
  27. warning: ignoring symlink /home/user/work/src/github.com/snapcore/snapd/packaging/fedora-rawhide
  28. warning: ignoring symlink /home/user/work/src/github.com/snapcore/snapd/packaging/opensuse-15.0
  29. warning: ignoring symlink /home/user/work/src/github.com/snapcore/snapd/packaging/opensuse-15.1
  30. warning: ignoring symlink /home/user/work/src/github.com/snapcore/snapd/packaging/opensuse-15.2
  31. warning: ignoring symlink /home/user/work/src/github.com/snapcore/snapd/packaging/opensuse-tumbleweed
  32. warning: ignoring symlink /home/user/work/src/github.com/snapcore/snapd/packaging/ubuntu-14.04/source
  33. [user@Pavilion ~]$ go get -u github.com/kardianos/govendor
  34. [user@Pavilion ~]$ cd $GOPATH/src/github.com/snapcore/snapd
  35. [user@Pavilion snapd (master)]$ govendor sync
  36. [user@Pavilion snapd (master)]$ pwd
  37. /home/user/work/src/github.com/snapcore/snapd
  38. [user@Pavilion snapd (master)]$ go build -o /tmp/snap github.com/snapcore/snapd/cmd/snap
  39. [user@Pavilion snapd (master)]$ go install gitub.com/snapcore/snapd/cmd/snap/...
  40. go: warning: "gitub.com/snapcore/snapd/cmd/snap/..." matched no packages
  41. [user@Pavilion snapd (master)]$ go install github.com/snapcore/snapd/cmd/snap/...
  42. [user@Pavilion snapd (master)]$ go build -o /tmp/snapd github.com/snapcore/snapd/cmd/snapd
  43. [user@Pavilion snapd (master)]$ ./run-checks
  44. Obtaining dependencies
  45. Checking docs
  46. Checking formatting
  47. Formatting wrong in following files:
  48. /home/user/work/src/github.com/snapcore/snapd/progress/ansimeter_test.go
  49. diff -u /home/user/work/src/github.com/snapcore/snapd/progress/ansimeter_test.go.orig /home/user/work/src/github.com/snapcore/snapd/progress/ansimeter_test.go
  50. --- /home/user/work/src/github.com/snapcore/snapd/progress/ansimeter_test.go.orig 2020-11-03 19:56:55.600602788 -0500
  51. +++ /home/user/work/src/github.com/snapcore/snapd/progress/ansimeter_test.go 2020-11-03 19:56:55.600602788 -0500
  52. @@ -87,7 +87,7 @@
  53. p := &progress.ANSIMeter{}
  54. p.Finished()
  55. c.Check(buf.String(), check.Equals, fmt.Sprint(
  56. - "\r", // move cursor to start of line
  57. + "\r", // move cursor to start of line
  58. progress.ExitAttributeMode, // turn off color, reverse, bold, anything
  59. progress.CursorVisible, // turn the cursor back on
  60. progress.ClrEOL, // and clear the rest of the line
  61. /home/user/work/src/github.com/snapcore/snapd/overlord/assertstate/assertstate_test.go
  62. diff -u /home/user/work/src/github.com/snapcore/snapd/overlord/assertstate/assertstate_test.go.orig /home/user/work/src/github.com/snapcore/snapd/overlord/assertstate/assertstate_test.go
  63. --- /home/user/work/src/github.com/snapcore/snapd/overlord/assertstate/assertstate_test.go.orig 2020-11-03 19:56:53.695596445 -0500
  64. +++ /home/user/work/src/github.com/snapcore/snapd/overlord/assertstate/assertstate_test.go2020-11-03 19:56:53.695596445 -0500
  65. @@ -227,8 +227,8 @@
  66. s.o.AddManager(s.o.TaskRunner())
  67.  
  68. s.fakeStore = &fakeStore{
  69. - state: s.state,
  70. - db: s.storeSigning,
  71. + state: s.state,
  72. + db: s.storeSigning,
  73. maxDeclSupportedFormat: asserts.SnapDeclarationType.MaxSupportedFormat(),
  74. }
  75. s.trivialDeviceCtx = &snapstatetest.TrivialDeviceContext{
  76. /home/user/work/src/github.com/snapcore/snapd/overlord/servicestate/service_control_test.go
  77. diff -u /home/user/work/src/github.com/snapcore/snapd/overlord/servicestate/service_control_test.go.orig /home/user/work/src/github.com/snapcore/snapd/overlord/servicestate/service_control_test.go
  78. --- /home/user/work/src/github.com/snapcore/snapd/overlord/servicestate/service_control_test.go.orig 2020-11-03 19:56:54.638599585 -0500
  79. +++ /home/user/work/src/github.com/snapcore/snapd/overlord/servicestate/service_control_test.go 2020-11-03 19:56:54.638599585 -0500
  80. @@ -710,13 +710,13 @@
  81. changed: false,
  82. },
  83. {
  84. - enable: []string{"a"},
  85. + enable: []string{"a"},
  86. expectedSnapstateEnabled: []string{"a"},
  87. changed: true,
  88. },
  89. // enable again does nothing
  90. {
  91. - enable: []string{"a"},
  92. + enable: []string{"a"},
  93. expectedSnapstateEnabled: []string{"a"},
  94. changed: false,
  95. },
  96. @@ -726,7 +726,7 @@
  97. changed: true,
  98. },
  99. {
  100. - enable: []string{"a", "c"},
  101. + enable: []string{"a", "c"},
  102. expectedSnapstateEnabled: []string{"a", "c"},
  103. changed: true,
  104. },
  105. /home/user/work/src/github.com/snapcore/snapd/osutil/udev/netlink/uevent_test.go
  106. diff -u /home/user/work/src/github.com/snapcore/snapd/osutil/udev/netlink/uevent_test.go.orig /home/user/work/src/github.com/snapcore/snapd/osutil/udev/netlink/uevent_test.go
  107. --- /home/user/work/src/github.com/snapcore/snapd/osutil/udev/netlink/uevent_test.go.orig 2020-11-03 19:56:53.621596199 -0500
  108. +++ /home/user/work/src/github.com/snapcore/snapd/osutil/udev/netlink/uevent_test.go 2020-11-03 19:56:53.621596199 -0500
  109. @@ -92,7 +92,7 @@
  110. Action: REMOVE,
  111. KObj: "/devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.0/ttyUSB0/tty/ttyUSB0",
  112. Env: map[string]string{
  113. - "MINOR": "0",
  114. + "MINOR": "0",
  115. "ID_PCI_CLASS_FROM_DATABASE": "Serial bus controller",
  116. "ID_PCI_SUBCLASS_FROM_DATABASE": "USB controller",
  117. "ID_VENDOR_FROM_DATABASE": "Future Technology Devices International, Ltd",
  118. @@ -137,21 +137,21 @@
  119. Action: ADD,
  120. KObj: "/devices/pci0000:00/0000:00:14.0/usb1/1-2",
  121. Env: map[string]string{
  122. - "DEVTYPE": "usb_device",
  123. - "SEQNUM": "4410",
  124. - "DRIVER": "usb",
  125. - "DEVPATH": "/devices/pci0000:00/0000:00:14.0/usb1/1-2",
  126. - "SUBSYSTEM": "usb",
  127. - "BUSNUM": "001",
  128. - "ID_USB_INTERFACES": ":ff0000:",
  129. - "USEC_INITIALIZED": "77155422759",
  130. - "ID_VENDOR_ENC": "Silicon\\x20Labs",
  131. - "ID_VENDOR_ID": "10c4",
  132. - "ID_SERIAL": "Silicon_Labs_CP2102_USB_to_UART_Bridge_Controller_0001",
  133. - "ACTION": "add",
  134. - "DEVNAME": "/dev/bus/usb/001/033",
  135. - "MAJOR": "189",
  136. - "ID_MODEL_FROM_DATABASE": "CP2102/CP2109 UART Bridge Controller [CP210x family]",
  137. + "DEVTYPE": "usb_device",
  138. + "SEQNUM": "4410",
  139. + "DRIVER": "usb",
  140. + "DEVPATH": "/devices/pci0000:00/0000:00:14.0/usb1/1-2",
  141. + "SUBSYSTEM": "usb",
  142. + "BUSNUM": "001",
  143. + "ID_USB_INTERFACES": ":ff0000:",
  144. + "USEC_INITIALIZED": "77155422759",
  145. + "ID_VENDOR_ENC": "Silicon\\x20Labs",
  146. + "ID_VENDOR_ID": "10c4",
  147. + "ID_SERIAL": "Silicon_Labs_CP2102_USB_to_UART_Bridge_Controller_0001",
  148. + "ACTION": "add",
  149. + "DEVNAME": "/dev/bus/usb/001/033",
  150. + "MAJOR": "189",
  151. + "ID_MODEL_FROM_DATABASE": "CP2102/CP2109 UART Bridge Controller [CP210x family]",
  152. "TYPE": "0/0/0",
  153. "ID_REVISION": "0100",
  154. "ID_BUS": "usb",
  155. /home/user/work/src/github.com/snapcore/snapd/interfaces/policy/basedeclaration_test.go
  156. diff -u /home/user/work/src/github.com/snapcore/snapd/interfaces/policy/basedeclaration_test.go.orig /home/user/work/src/github.com/snapcore/snapd/interfaces/policy/basedeclaration_test.go
  157. --- /home/user/work/src/github.com/snapcore/snapd/interfaces/policy/basedeclaration_test.go.orig 2020-11-03 19:56:53.244594943 -0500
  158. +++ /home/user/work/src/github.com/snapcore/snapd/interfaces/policy/basedeclaration_test.go2020-11-03 19:56:53.244594943 -0500
  159. @@ -584,49 +584,49 @@
  160.  
  161. slotInstallation = map[string][]string{
  162. // other
  163. - "adb-support": {"core"},
  164. - "audio-playback": {"app", "core"},
  165. - "audio-record": {"app", "core"},
  166. - "autopilot-introspection": {"core"},
  167. - "avahi-control": {"app", "core"},
  168. - "avahi-observe": {"app", "core"},
  169. - "bluez": {"app", "core"},
  170. - "bool-file": {"core", "gadget"},
  171. - "browser-support": {"core"},
  172. - "content": {"app", "gadget"},
  173. - "core-support": {"core"},
  174. - "cups": {"app"},
  175. - "cups-control": {"app", "core"},
  176. - "dbus": {"app"},
  177. - "docker-support": {"core"},
  178. - "dummy": {"app"},
  179. - "fwupd": {"app", "core"},
  180. - "gpio": {"core", "gadget"},
  181. - "gpio-control": {"core"},
  182. - "greengrass-support": {"core"},
  183. - "hidraw": {"core", "gadget"},
  184. - "i2c": {"core", "gadget"},
  185. - "iio": {"core", "gadget"},
  186. - "kubernetes-support": {"core"},
  187. - "location-control": {"app"},
  188. - "location-observe": {"app"},
  189. - "lxd-support": {"core"},
  190. - "maliit": {"app"},
  191. - "media-hub": {"app", "core"},
  192. - "mir": {"app"},
  193. - "modem-manager": {"app", "core"},
  194. - "mpris": {"app"},
  195. - "network-manager": {"app", "core"},
  196. - "network-manager-observe": {"app", "core"},
  197. - "network-status": {"core"},
  198. - "ofono": {"app", "core"},
  199. - "online-accounts-service": {"app"},
  200. - "power-control": {"core"},
  201. - "ppp": {"core"},
  202. - "pulseaudio": {"app", "core"},
  203. - "raw-volume": {"core", "gadget"},
  204. - "serial-port": {"core", "gadget"},
  205. - "spi": {"core", "gadget"},
  206. + "adb-support": {"core"},
  207. + "audio-playback": {"app", "core"},
  208. + "audio-record": {"app", "core"},
  209. + "autopilot-introspection": {"core"},
  210. + "avahi-control": {"app", "core"},
  211. + "avahi-observe": {"app", "core"},
  212. + "bluez": {"app", "core"},
  213. + "bool-file": {"core", "gadget"},
  214. + "browser-support": {"core"},
  215. + "content": {"app", "gadget"},
  216. + "core-support": {"core"},
  217. + "cups": {"app"},
  218. + "cups-control": {"app", "core"},
  219. + "dbus": {"app"},
  220. + "docker-support": {"core"},
  221. + "dummy": {"app"},
  222. + "fwupd": {"app", "core"},
  223. + "gpio": {"core", "gadget"},
  224. + "gpio-control": {"core"},
  225. + "greengrass-support": {"core"},
  226. + "hidraw": {"core", "gadget"},
  227. + "i2c": {"core", "gadget"},
  228. + "iio": {"core", "gadget"},
  229. + "kubernetes-support": {"core"},
  230. + "location-control": {"app"},
  231. + "location-observe": {"app"},
  232. + "lxd-support": {"core"},
  233. + "maliit": {"app"},
  234. + "media-hub": {"app", "core"},
  235. + "mir": {"app"},
  236. + "modem-manager": {"app", "core"},
  237. + "mpris": {"app"},
  238. + "network-manager": {"app", "core"},
  239. + "network-manager-observe": {"app", "core"},
  240. + "network-status": {"core"},
  241. + "ofono": {"app", "core"},
  242. + "online-accounts-service": {"app"},
  243. + "power-control": {"core"},
  244. + "ppp": {"core"},
  245. + "pulseaudio": {"app", "core"},
  246. + "raw-volume": {"core", "gadget"},
  247. + "serial-port": {"core", "gadget"},
  248. + "spi": {"core", "gadget"},
  249. "storage-framework-service": {"app"},
  250. "thumbnailer-service": {"app"},
  251. "ubuntu-download-manager": {"app"},
  252. @@ -753,15 +753,15 @@
  253. // connecting with these interfaces needs to be allowed on
  254. // case-by-case basis
  255. noconnect := map[string]bool{
  256. - "content": true,
  257. - "cups": true,
  258. - "docker": true,
  259. - "fwupd": true,
  260. - "location-control": true,
  261. - "location-observe": true,
  262. - "lxd": true,
  263. - "maliit": true,
  264. - "mir": true,
  265. + "content": true,
  266. + "cups": true,
  267. + "docker": true,
  268. + "fwupd": true,
  269. + "location-control": true,
  270. + "location-observe": true,
  271. + "lxd": true,
  272. + "maliit": true,
  273. + "mir": true,
  274. "online-accounts-service": true,
  275. "raw-volume": true,
  276. "storage-framework-service": true,
  277. /home/user/work/src/github.com/snapcore/snapd/boot/modeenv_test.go
  278. diff -u /home/user/work/src/github.com/snapcore/snapd/boot/modeenv_test.go.orig /home/user/work/src/github.com/snapcore/snapd/boot/modeenv_test.go
  279. --- /home/user/work/src/github.com/snapcore/snapd/boot/modeenv_test.go.orig 2020-11-03 19:56:51.465589020 -0500
  280. +++ /home/user/work/src/github.com/snapcore/snapd/boot/modeenv_test.go 2020-11-03 19:56:51.465589020 -0500
  281. @@ -54,15 +54,15 @@
  282. func (s *modeenvSuite) TestKnownKnown(c *C) {
  283. // double check keys as found with reflect
  284. c.Check(boot.ModeenvKnownKeys, DeepEquals, map[string]bool{
  285. - "mode": true,
  286. - "recovery_system": true,
  287. - "current_recovery_systems": true,
  288. - "base": true,
  289. - "try_base": true,
  290. - "base_status": true,
  291. - "current_kernels": true,
  292. - "model": true,
  293. - "grade": true,
  294. + "mode": true,
  295. + "recovery_system": true,
  296. + "current_recovery_systems": true,
  297. + "base": true,
  298. + "try_base": true,
  299. + "base_status": true,
  300. + "current_kernels": true,
  301. + "model": true,
  302. + "grade": true,
  303. "current_trusted_boot_assets": true,
  304. "current_trusted_recovery_boot_assets": true,
  305. })
  306. /home/user/work/src/github.com/snapcore/snapd/asserts/account_key_test.go
  307. diff -u /home/user/work/src/github.com/snapcore/snapd/asserts/account_key_test.go.orig /home/user/work/src/github.com/snapcore/snapd/asserts/account_key_test.go
  308. --- /home/user/work/src/github.com/snapcore/snapd/asserts/account_key_test.go.orig 2020-11-03 19:56:50.773586716 -0500
  309. +++ /home/user/work/src/github.com/snapcore/snapd/asserts/account_key_test.go 2020-11-03 19:56:50.773586716 -0500
  310. @@ -650,7 +650,7 @@
  311. untilHeader string
  312. until time.Time
  313. }{
  314. - {"", time.Time{}}, // zero time default
  315. + {"", time.Time{}}, // zero time default
  316. {aks.until.Format(time.RFC3339), aks.until}, // in the future
  317. {aks.since.Format(time.RFC3339), aks.since}, // same as since
  318. }
  319.  
  320.  
  321. Crushing failure and despair.
  322. [user@Pavilion snapd (master)]$ pwd
  323. /home/user/work/src/github.com/snapcore/snapd
  324.  
Add Comment
Please, Sign In to add comment