Subject: [[email-masked]: Re: 02/02: gnu: syncthing: Prepare for cross-compiling.]

From: Leo Famulari <[email-masked]>
Date: Sun, 15 Aug 2021 16:44:56 -0400

I meant to send this to bug-guix...

----- Forwarded message from Leo Famulari <[email-masked]> -----

Date: Sun, 15 Aug 2021 16:42:19 -0400
From: Leo Famulari <[email-masked]>
To: [email-masked]
Cc: Efraim Flashner <[email-masked]>
Subject: Re: 02/02: gnu: syncthing: Prepare for cross-compiling.

On Mon, Apr 26, 2021 at 02:33:56PM -0400, [email-masked] wrote:
> efraim pushed a commit to branch master
> in repository guix.
> 
> commit b33f5d7ff0627424a06fd0416761cd81c350e20a
> Author: Efraim Flashner <[email-masked]>
> 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 -----