GNU bug report logs - #50071
[leo@famulari.name: Re: 02/02: gnu: syncthing: Prepare for cross-compiling.]

Previous Next

Package: guix;

Reported by: Leo Famulari <leo <at> famulari.name>

Date: Sun, 15 Aug 2021 20:46:01 UTC

Severity: normal

To reply to this bug, email your comments to 50071 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#50071; Package guix. (Sun, 15 Aug 2021 20:46:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Leo Famulari <leo <at> famulari.name>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Sun, 15 Aug 2021 20:46:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Leo Famulari <leo <at> famulari.name>
To: bug-guix <at> gnu.org
Subject: [leo <at> famulari.name: Re: 02/02: gnu: syncthing: Prepare for
 cross-compiling.]
Date: Sun, 15 Aug 2021 16:44:56 -0400
I meant to send this to bug-guix...

----- Forwarded message from Leo Famulari <leo <at> famulari.name> -----

Date: Sun, 15 Aug 2021 16:42:19 -0400
From: Leo Famulari <leo <at> famulari.name>
To: guix-devel <at> gnu.org
Cc: Efraim Flashner <efraim <at> flashner.co.il>
Subject: Re: 02/02: gnu: syncthing: Prepare for cross-compiling.

On Mon, Apr 26, 2021 at 02:33:56PM -0400, guix-commits <at> gnu.org wrote:
> efraim pushed a commit to branch master
> in repository guix.
> 
> commit b33f5d7ff0627424a06fd0416761cd81c350e20a
> Author: Efraim Flashner <efraim <at> flashner.co.il>
> AuthorDate: Mon Apr 26 21:30:15 2021 +0300
> 
>     gnu: syncthing: Prepare for cross-compiling.
>     
>     * gnu/packages/syncthing.scm (syncthing)[arguments]: Add custom
>     'pre-build phase to not set a local GOBIN directory. Adjust custom
>     'build and 'install phases accordingly.

This commit broke splitting the package into two outputs "out" and
"utils".

When everything is working, the utils output should look like this:

------
$ tree /gnu/store/zansw6f7i61glpa2f5hsbpazwg6qfi2v-syncthing-1.15.1-utils
/gnu/store/zansw6f7i61glpa2f5hsbpazwg6qfi2v-syncthing-1.15.1-utils
├── bin
│   ├── stcompdirs
│   ├── stcrashreceiver
│   ├── stdisco
│   ├── stdiscosrv
│   ├── stevents
│   ├── stfileinfo
│   ├── stfinddevice
│   ├── stfindignored
│   ├── stgenfiles
│   ├── stindex
│   ├── strelaypoolsrv
│   ├── strelaysrv
│   ├── stsigtool
│   ├── stvanity
│   ├── stwatchfile
│   ├── uraggregate
│   └── ursrv
└── share
    ├── doc
    │   └── syncthing-1.15.1
    │       └── LICENSE
    └── man
        ├── man1
        │   ├── stdiscosrv.1.gz
        │   └── strelaysrv.1.gz
        ├── man5
        │   ├── syncthing-config.5.gz
        │   └── syncthing-stignore.5.gz
        └── man7
            ├── syncthing-bep.7.gz
            ├── syncthing-device-ids.7.gz
            ├── syncthing-event-api.7.gz
            ├── syncthing-faq.7.gz
            ├── syncthing-globaldisco.7.gz
            ├── syncthing-localdisco.7.gz
            ├── syncthing-networking.7.gz
            ├── syncthing-relay.7.gz
            ├── syncthing-rest-api.7.gz
            ├── syncthing-security.7.gz
            └── syncthing-versioning.7.gz

8 directories, 33 files
------

The broken state looks like this:

------
$ tree /gnu/store/b1jz5rnwjgzvl7hd99rd1r5958rwxh5x-syncthing-1.15.1-utils
/gnu/store/b1jz5rnwjgzvl7hd99rd1r5958rwxh5x-syncthing-1.15.1-utils
└── share
    ├── doc
    │   └── syncthing-1.15.1
    │       └── LICENSE
    └── man
        ├── man1
        │   ├── stdiscosrv.1.gz
        │   └── strelaysrv.1.gz
        ├── man5
        │   ├── syncthing-config.5.gz
        │   └── syncthing-stignore.5.gz
        └── man7
            ├── syncthing-bep.7.gz
            ├── syncthing-device-ids.7.gz
            ├── syncthing-event-api.7.gz
            ├── syncthing-faq.7.gz
            ├── syncthing-globaldisco.7.gz
            ├── syncthing-localdisco.7.gz
            ├── syncthing-networking.7.gz
            ├── syncthing-relay.7.gz
            ├── syncthing-rest-api.7.gz
            ├── syncthing-security.7.gz
            └── syncthing-versioning.7.gz

7 directories, 16 files
------

----- End forwarded message -----




Information forwarded to bug-guix <at> gnu.org:
bug#50071; Package guix. (Sun, 22 Aug 2021 18:44:01 GMT) Full text and rfc822 format available.

Message #8 received at 50071 <at> debbugs.gnu.org (full text, mbox):

From: Leo Famulari <leo <at> famulari.name>
To: 50071 <at> debbugs.gnu.org
Subject: Re: 02/02: gnu: syncthing: Prepare for cross-compiling.
Date: Sun, 22 Aug 2021 14:42:43 -0400
Quoting from Efraim on #guix:

"the go cross-build error I was seeing is this: go install: cannot install cross-compiled binaries when GOBIN is set"




Information forwarded to bug-guix <at> gnu.org:
bug#50071; Package guix. (Sun, 22 Aug 2021 20:31:02 GMT) Full text and rfc822 format available.

Message #11 received at 50071 <at> debbugs.gnu.org (full text, mbox):

From: Leo Famulari <leo <at> famulari.name>
To: 50071 <at> debbugs.gnu.org
Subject: Re: 02/02: gnu: syncthing: Prepare for cross-compiling.
Date: Sun, 22 Aug 2021 16:30:03 -0400
On Sun, Aug 22, 2021 at 02:42:43PM -0400, Leo Famulari wrote:
> Quoting from Efraim on #guix:
> 
> "the go cross-build error I was seeing is this: go install: cannot install cross-compiled binaries when GOBIN is set"

Upstream gives instructions on how to cross-compile Syncthing:

------
`go run build.go build`

    Builds just the named target, or syncthing by default, to the
    current directory. Use this when cross compiling, with parameters
    for what to cross compile to: go run build.go -goos linux -goarch
    386 build.
------

https://docs.syncthing.net/dev/building.html#subcommands-and-options




This bug report was last modified 2 years and 245 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.