gitian: Various improvements for Windows descriptor #17029

pull dongcarl wants to merge 5 commits into bitcoin:master from dongcarl:2019-10-gitian-win-improvements changing 2 files +12 −13
  1. dongcarl commented at 8:31 PM on October 2, 2019: member

    It would seem that our gitian-win.yml has not been keeping up with gitian-linux.yml, this PR:

    1. Minimizes the diff size between gitian-{win,linux}.yml
    2. Eliminates the rename dependency
  2. gitian: Use split-debug.sh for Win builds
    Debug splitting was first introduced in 7e7eb2724, then gitian-linux.yml
    changed to using split-debug.sh in 9d2536208. Here we change
    gitian-win.yml to use split-debug.sh as well.
    93cb974980
  3. dongcarl added the label Build system on Oct 2, 2019
  4. dongcarl added the label Needs gitian build on Oct 2, 2019
  5. DrahtBot removed the label Needs gitian build on Oct 3, 2019
  6. jonasschnelli commented at 1:43 PM on October 3, 2019: contributor

    utACK e1c60900d56cdc6a34da3e4556a759ce7185ce07 https://bitcoin.jonasschnelli.ch/build/1244

  7. fanquake commented at 10:17 AM on October 4, 2019: member

    Concept ACK

  8. hebasto commented at 7:10 PM on October 6, 2019: member

    Concept ACK

  9. in contrib/gitian-descriptors/gitian-win.yml:169 in 503a067f10 outdated
     165 | @@ -166,6 +166,7 @@ script: |
     166 |      rm -rf ${DISTNAME}/lib/pkgconfig
     167 |      find ${DISTNAME}/bin -type f -executable -print0 | xargs -0 -n1 -I{} ../contrib/devtools/split-debug.sh {} {} {}.dbg
     168 |      find ${DISTNAME}/lib -type f -print0 | xargs -0 -n1 -I{} ../contrib/devtools/split-debug.sh {} {} {}.dbg
     169 | +    cp ../doc/README.md ${DISTNAME}/
    


    MarcoFalke commented at 4:55 PM on October 7, 2019:

    in commit 503a067f105cbfd249fd852a66569799e980f123:

    why?

    the doc readme has a ton of internal links, which are all dead (obviously) when shipped in the zip


    dongcarl commented at 6:46 PM on October 7, 2019:

    Should that be removed from the gitian-linux.yml as well?


    MarcoFalke commented at 7:02 PM on October 7, 2019:

    This has been added in 8550f1fb28292a081aab3f49ba2fb561710c4572 by @hebasto as a fix for #8160.

    Though, I think that instead of ./doc/README.md, it should say ./README.md (at the root)


    dongcarl commented at 7:09 PM on October 7, 2019:

    Very true, will fix for both. fixed in ee69d9366cdf6387915ba8ae1e0bf23ae16b5009.


    laanwj commented at 8:34 AM on October 8, 2019:

    I agree that the current README's are pretty much completely useless to package with a binary distribution (as they're directed at developers and contributors, not users). I don't think #8160 ever really was solved.

    Note that for Windows specifically there is doc/README_windows.txt as user documentation meant to be copied to the distributions as readme.txt (.md files are inconvenient to open on Windows, as well as the line endings differ). The NSI installer does this, but the descriptor for the tarzipball doesn't.


    dongcarl commented at 3:17 PM on October 8, 2019:

    @laanwj should I do

    cp ../doc/README_windows.txt ${DISTNAME}/readme.txt
    

    instead?


    laanwj commented at 5:30 PM on October 8, 2019:

    yes, that's what i'd suggest, it's the most appropriate file for this

  10. gitian: Fix README inclusion in archives
    Linux:
    The README was originally added in 8550f1fb2, but included the README
    under the docs directory, which has a bunch of internal links that won't
    make sense in a release tarball. In this patch, we include the root
    level README instead, which makes more sense.
    
    Windows:
    .md files are inconvenient to open on windows and the line endings
    differ, so we use README_windows.txt instead.
    c4a3c25ba1
  11. gitian: Smaller diff with gitian-linux.yml 999a9a5f5b
  12. gitian: Eliminate rename dependency 71949a97a7
  13. gitian: Put things in the right place to begin with 9d1f971c75
  14. dongcarl force-pushed on Oct 8, 2019
  15. dongcarl commented at 5:40 PM on October 8, 2019: member

    Addressed all comments.

  16. MarcoFalke commented at 5:48 PM on October 8, 2019: member

    See also #17077 (slightly related)

  17. hebasto commented at 5:58 PM on October 8, 2019: member

    See also #17077 (slightly related)

    Yes. The question (#17077) arose while reviewing this PR ;)

  18. MarcoFalke deleted a comment on Oct 8, 2019
  19. MarcoFalke added the label Needs gitian build on Oct 8, 2019
  20. dongcarl commented at 6:01 PM on October 8, 2019: member

    I know I'm kinda asking for it because of naming of the PR, but could we resolve #17077 in another PR? :grimacing:

  21. DrahtBot commented at 5:10 AM on October 9, 2019: member

    <!--a722867cd34abeea1fadc8d60700f111-->

    Gitian builds for commit e173d587e1c2391f774d08f28b7337cbe4ffcbe5 (master):

    Gitian builds for commit 531a3dc2206a80564b2a4bbb4865ae8066e9a0ca (master and this pull):

  22. DrahtBot removed the label Needs gitian build on Oct 9, 2019
  23. laanwj commented at 7:36 AM on October 9, 2019: member

    I think that can very well be addressed separately. It's not good to have a PR that keeps increasing in scope.

    ACK 9d1f971c7554bd5eb80792a1b9a692e0145ed516

  24. laanwj referenced this in commit 9b4dfec831 on Oct 9, 2019
  25. laanwj merged this on Oct 9, 2019
  26. laanwj closed this on Oct 9, 2019

  27. in contrib/gitian-descriptors/gitian-win.yml:159 in 9d1f971c75
     152 | @@ -157,24 +153,27 @@ script: |
     153 |      make ${MAKEOPTS} -C src check-security
     154 |      make deploy
     155 |      make install DESTDIR=${INSTALLPATH}
     156 | -    rename 's/-setup\.exe$/-setup-unsigned.exe/' *-setup.exe
     157 | -    cp -f bitcoin-*setup*.exe $OUTDIR/
     158 | +    (
     159 | +      SETUP_EXE="$(basename "$(echo ./*-setup.exe)")"
     160 | +      cp -f "$SETUP_EXE" "${OUTDIR}/${SETUP_EXE/%-setup.exe/-setup-unsigned.exe}"
     161 | +    )
    


    MarcoFalke commented at 8:27 PM on October 9, 2019:

    Any thoughts on removing this?

    diff --git a/contrib/gitian-descriptors/gitian-win.yml b/contrib/gitian-descriptors/gitian-win.yml
    index d5f2c1ad35..2d613fca9d 100644
    --- a/contrib/gitian-descriptors/gitian-win.yml
    +++ b/contrib/gitian-descriptors/gitian-win.yml
    @@ -153,10 +153,6 @@ script: |
         make ${MAKEOPTS} -C src check-security
         make deploy
         make install DESTDIR=${INSTALLPATH}
    -    (
    -      SETUP_EXE="$(basename "$(echo ./*-setup.exe)")"
    -      cp -f "$SETUP_EXE" "${OUTDIR}/${SETUP_EXE/%-setup.exe/-setup-unsigned.exe}"
    -    )
         cd installed
         mv ${DISTNAME}/bin/*.dll ${DISTNAME}/lib/
         find . -name "lib*.la" -delete
    diff --git a/share/setup.nsi.in b/share/setup.nsi.in
    index e9aa1f2b73..649483c732 100644
    --- a/share/setup.nsi.in
    +++ b/share/setup.nsi.in
    @@ -48,7 +48,7 @@ Var StartMenuGroup
     !insertmacro MUI_LANGUAGE English
     
     # Installer attributes
    -OutFile [@abs](/bitcoin-bitcoin/contributor/abs/)_top_srcdir@/@PACKAGE_TARNAME@-@PACKAGE_VERSION@-win@WINDOWS_BITS@-setup.exe
    +OutFile [@abs](/bitcoin-bitcoin/contributor/abs/)_top_srcdir@/@PACKAGE_TARNAME@-@PACKAGE_VERSION@-win@WINDOWS_BITS@-setup-unsigned.exe
     !if "@WINDOWS_BITS@" == "64"
     InstallDir $PROGRAMFILES64\Bitcoin
     !else
    
  28. laanwj referenced this in commit feb1a8c03a on Oct 31, 2019
  29. sidhujag referenced this in commit 23d6ae497c on Oct 31, 2019
  30. MarkLTZ referenced this in commit d20bd71bcf on Apr 10, 2020
  31. sidhujag referenced this in commit 286414d811 on Nov 10, 2020
  32. random-zebra referenced this in commit 3614de632e on Jul 19, 2021
  33. UdjinM6 referenced this in commit 04640b8c05 on Oct 23, 2021
  34. UdjinM6 referenced this in commit 60c1238ad7 on Oct 23, 2021
  35. UdjinM6 referenced this in commit 8d1b4b7832 on Oct 23, 2021
  36. UdjinM6 referenced this in commit 56057a27e5 on Dec 4, 2021
  37. UdjinM6 referenced this in commit 824d6c08f9 on Dec 4, 2021
  38. UdjinM6 referenced this in commit 632c759352 on Dec 5, 2021
  39. DrahtBot locked this on Dec 16, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-05-01 03:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me