Package Details: trezord-git 2.0.33.r6.gdb03d99-1

Git Clone URL: https://aur.archlinux.org/trezord-git.git (read-only, click to copy)
Package Base: trezord-git
Description: Trezor Communication Daemon aka Trezor Bridge (written in Go)
Upstream URL: https://github.com/trezor/trezord-go
Keywords: bitcoin cryptocurrency wallet
Licenses: LGPL3
Conflicts: trezor-bridge-bin, trezord
Provides: trezor-bridge, trezord
Submitter: None
Maintainer: pizzaman
Last Packager: pizzaman
Votes: 18
Popularity: 0.000219
First Submitted: 2016-07-23 00:22 (UTC)
Last Updated: 2024-03-21 14:03 (UTC)

Dependencies (3)

Required by (0)

Sources (2)

Latest Comments

1 2 3 Next › Last »

lothar_m commented on 2024-11-27 15:29 (UTC) (edited on 2024-11-27 15:30 (UTC) by lothar_m)

Getting the following error when building this package:


==> Starting build()...
# runtime/cgo
<command-line>: error: "_FORTIFY_SOURCE" redefined [-Werror]
<command-line>: note: this is the location of the previous definition
cc1: all warnings being treated as errors
==> ERROR: A failure occurred in build().
    Aborting...

Can someone knowledgeable in GCC explain how to solve this? After some attempts, i was able to modify the PKGBUILD to build with the following mod, but i am not sure why it worked or if it is a proper fix?


- export CGO_CFLAGS="${CFLAGS}"
+ export CGO_CFLAGS="${CFLAGS} -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3"

pizzaman commented on 2024-03-21 14:03 (UTC)

@grayscale Thanks for the patch.

grayscale commented on 2024-03-18 09:32 (UTC) (edited on 2024-03-18 09:33 (UTC) by grayscale)

--- PKGBUILD.orig   2024-03-18 11:23:57.703331365 +0200
+++ PKGBUILD.new    2024-03-18 11:24:15.276666620 +0200
@@ -49,7 +49,7 @@
     go install \
         -gcflags "all=-trimpath=${srcdir}" \
         -asmflags "all=-trimpath=${srcdir}" \
-        -ldflags "-extldflags ${LDFLAGS}" \
+        -ldflags "-extldflags \"${LDFLAGS}\"" \
         "${_importpath}"
 }

pizzaman commented on 2023-12-06 22:51 (UTC)

@andrej Upstream issue. https://github.com/trezor/trezord-go/issues/297

andrej commented on 2023-12-06 11:33 (UTC)

This looks broken. :-(

usb/lowlevel/libusb/libusb.go:405:10: cannot define new methods on non-local type *C.struct_libusb_endpoint_descriptor
usb/lowlevel/libusb/libusb.go:455:10: cannot define new methods on non-local type *C.struct_libusb_interface_descriptor
usb/lowlevel/libusb/libusb.go:510:10: cannot define new methods on non-local type *C.struct_libusb_interface
usb/lowlevel/libusb/libusb.go:557:10: cannot define new methods on non-local type *C.struct_libusb_config_descriptor
usb/lowlevel/libusb/libusb.go:615:10: cannot define new methods on non-local type *C.struct_libusb_ss_endpoint_companion_descriptor
usb/lowlevel/libusb/libusb.go:639:10: cannot define new methods on non-local type *C.struct_libusb_bos_dev_capability_descriptor
usb/lowlevel/libusb/libusb.go:662:10: cannot define new methods on non-local type *C.struct_libusb_bos_descriptor
usb/lowlevel/libusb/libusb.go:694:10: cannot define new methods on non-local type *C.struct_libusb_usb_2_0_extension_descriptor
usb/lowlevel/libusb/libusb.go:721:10: cannot define new methods on non-local type *C.struct_libusb_ss_usb_device_capability_descriptor
usb/lowlevel/libusb/libusb.go:749:10: cannot define new methods on non-local type *C.struct_libusb_container_id_descriptor
usb/lowlevel/libusb/libusb.go:796:10: cannot define new methods on non-local type *C.struct_libusb_device_descriptor
usb/lowlevel/libusb/libusb.go:866:10: cannot define new methods on non-local type *C.struct_libusb_transfer
usb/lowlevel/libusb/libusb.go:895:10: cannot define new methods on non-local type *C.struct_libusb_version

pizzaman commented on 2022-10-25 10:20 (UTC)

@Ranguvar Included options=('!lto') and fixed ro->rw paths. Thanks.

Ranguvar commented on 2022-10-21 13:27 (UTC)

Please add options=('!lto') so users of system-wide LTO can easily build - causes error otherwise.

Also seems to leave root-owned files in src/pkg/mod which are a small chore to clean up.

I think trezord-go currently builds without either issue.

Thank you for maintaining this!

pizzaman commented on 2020-11-29 21:03 (UTC)

@nickj21 sudo rm /usr/lib/udev/rules.d/51-trezor.rules BEFORE upgrading will do the trick

yonson commented on 2020-11-29 16:19 (UTC)

Looks like the "trezor-udev" package was added as a dependency, but my upgrade is failing with:

trezor-udev: /usr/lib/udev/rules.d/51-trezor.rules exists in filesystem (owned by trezord-git)

pizzaman commented on 2019-03-10 06:42 (UTC)

Everything should be working now. Let me know if you find any problems.