Skip to content

Commit 786a0df

Browse files
committed
goredo: update to 2.1.0. From the changelog:
* Mistakenly path to '.do' file was not absolute and OS can refuse to run it because it is not in '$PATH'. * Huge quantity of performance optimisations. * Fixed possible unexpected lock file closing. * When resulting target has the same contents, it does not replace already existing one. That was done previously. But now it also copies the file's mode flags to the target (for example making it executable). * If 'redo-*' command runs under control of another (top-level) redo, then it does not parse the flags as options and treat each argument as a target, allowing passing the targets with dashes in the beginning. * Prevented possible concurrent stderr writing by multiple running targets. * 'redo-depfix' command now always rewrites dependency files and calculates checksums of the files. * Own binary format is used for dependency files ('.dep'), instead of recfile ('.rec') one. It is several times smaller and much faster to parse. You must run 'redo-depfix' to convert all existing '.redo/*.rec' files to that binary format. * 'redo-dep2rec' command appeared, that can convert '.dep' to recfile on stdout.
1 parent ec4ec28 commit 786a0df

File tree

4 files changed

+40
-18
lines changed

4 files changed

+40
-18
lines changed

devel/goredo/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# $NetBSD: Makefile,v 1.35 2023/09/26 01:26:16 schmonz Exp $
1+
# $NetBSD: Makefile,v 1.36 2023/10/10 00:21:47 schmonz Exp $
22

3-
DISTNAME= goredo-1.32.0
3+
DISTNAME= goredo-2.1.0
44
CATEGORIES= devel
55
MASTER_SITES= http://www.goredo.cypherpunks.ru/download/
66
EXTRACT_SUFX= .tar.zst

devel/goredo/PLIST

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1-
@comment $NetBSD: PLIST,v 1.2 2022/01/27 21:41:54 schmonz Exp $
1+
@comment $NetBSD: PLIST,v 1.3 2023/10/10 00:21:47 schmonz Exp $
22
bin/goredo
33
bin/goredo-affects
44
bin/goredo-always
55
bin/goredo-cleanup
6+
bin/goredo-dep2rec
67
bin/goredo-depfix
78
bin/goredo-dot
89
bin/goredo-ifchange
910
bin/goredo-ifcreate
11+
bin/goredo-inode
1012
bin/goredo-log
1113
bin/goredo-ood
1214
bin/goredo-sources

devel/goredo/distinfo

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
$NetBSD: distinfo,v 1.13 2023/09/26 01:26:16 schmonz Exp $
1+
$NetBSD: distinfo,v 1.14 2023/10/10 00:21:47 schmonz Exp $
22

3-
BLAKE2s (goredo-1.32.0.tar.zst) = 58b04913be3acaee40a1c0481b0f2e7b9b7613db75097c1083f4e50742e0ed6f
4-
SHA512 (goredo-1.32.0.tar.zst) = 6fca1ab185a2b2a4c4a59b54c2a3eaee1cce8702fc497a83450ade7cfc5a0fe2a193c97a5b8315f5353a9746704c02bf530a99e006be1b792949c32d59c66a82
5-
Size (goredo-1.32.0.tar.zst) = 450009 bytes
6-
SHA1 (patch-main.go) = abdff0d174deaf959802cd68402518829ce7526c
3+
BLAKE2s (goredo-2.1.0.tar.zst) = d50ba5b77f6ab0c98bba44ac37c8be24b9e907bcb4b1df2dc224a2325cae5f15
4+
SHA512 (goredo-2.1.0.tar.zst) = e87f353f218e2348343c676c071eddd2d6466fe1c765c701c929a7ba5d147ba2e3d2336ce0d19d6ef78af44ade0af42d6623ddd71ff3196b61fc32dd0eb77ecc
5+
Size (goredo-2.1.0.tar.zst) = 465988 bytes
6+
SHA1 (patch-main.go) = 3243e01dd2ebbf56e5c9a95607e276f2f971bb8c

devel/goredo/patches/patch-main.go

Lines changed: 30 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
$NetBSD: patch-main.go,v 1.3 2023/01/17 19:30:41 schmonz Exp $
1+
$NetBSD: patch-main.go,v 1.4 2023/10/10 00:21:47 schmonz Exp $
22

33
Avoid CONFLICTS with other redo implementations.
44

5-
--- main.go.orig 2023-01-17 09:05:55.000000000 +0000
5+
--- main.go.orig 2023-10-09 20:09:32.000000000 +0000
66
+++ main.go
7-
@@ -40,22 +40,21 @@ import (
7+
@@ -39,23 +39,22 @@ import (
88
)
99

1010
const (
@@ -13,36 +13,56 @@ Avoid CONFLICTS with other redo implementations.
1313
- CmdNameRedoAffects = "redo-affects"
1414
- CmdNameRedoAlways = "redo-always"
1515
- CmdNameRedoCleanup = "redo-cleanup"
16+
- CmdNameRedoDep2Rec = "redo-dep2rec"
17+
- CmdNameRedoDepFix = "redo-depfix"
1618
- CmdNameRedoDot = "redo-dot"
1719
- CmdNameRedoIfchange = "redo-ifchange"
1820
- CmdNameRedoIfcreate = "redo-ifcreate"
21+
- CmdNameRedoInode = "redo-inode"
1922
- CmdNameRedoLog = "redo-log"
2023
- CmdNameRedoOOD = "redo-ood"
2124
- CmdNameRedoSources = "redo-sources"
2225
- CmdNameRedoStamp = "redo-stamp"
2326
- CmdNameRedoTargets = "redo-targets"
2427
- CmdNameRedoWhichdo = "redo-whichdo"
25-
- CmdNameRedoDepFix = "redo-depfix"
26-
- CmdNameRedoInode = "redo-inode"
2728
+ CmdNameRedo = "goredo"
2829
+ CmdNameRedoAffects = "goredo-affects"
2930
+ CmdNameRedoAlways = "goredo-always"
3031
+ CmdNameRedoCleanup = "goredo-cleanup"
32+
+ CmdNameRedoDep2Rec = "goredo-dep2rec"
33+
+ CmdNameRedoDepFix = "goredo-depfix"
3134
+ CmdNameRedoDot = "goredo-dot"
3235
+ CmdNameRedoIfchange = "goredo-ifchange"
3336
+ CmdNameRedoIfcreate = "goredo-ifcreate"
37+
+ CmdNameRedoInode = "goredo-inode"
3438
+ CmdNameRedoLog = "goredo-log"
3539
+ CmdNameRedoOOD = "goredo-ood"
3640
+ CmdNameRedoSources = "goredo-sources"
3741
+ CmdNameRedoStamp = "goredo-stamp"
3842
+ CmdNameRedoTargets = "goredo-targets"
3943
+ CmdNameRedoWhichdo = "goredo-whichdo"
40-
+ CmdNameRedoDepFix = "goredo-depfix"
41-
+ CmdNameRedoInode = "goredo-inode"
4244
)
4345

4446
var (
45-
@@ -107,10 +106,9 @@ func main() {
47+
@@ -84,7 +83,7 @@ func mustParseFd(v, name string) *os.Fil
48+
}
49+
50+
func CmdName() string {
51+
- return path.Base(os.Args[0])
52+
+ return path.Base(CmdNameRedo)
53+
}
54+
55+
func main() {
56+
@@ -97,7 +96,7 @@ func main() {
57+
symlinks = flag.Bool("symlinks", false, "create necessary symlinks in current directory")
58+
}
59+
60+
- flag.Usage = func() { usage(os.Args[0]) }
61+
+ flag.Usage = func() { usage(CmdNameRedo) }
62+
63+
BuildUUIDStr := os.Getenv(EnvBuildUUID)
64+
IsTopRedo = BuildUUIDStr == ""
65+
@@ -118,10 +117,9 @@ func main() {
4666
fmt.Println("goredo", Version, "built with", runtime.Version())
4767
return
4868
}
@@ -54,7 +74,7 @@ Avoid CONFLICTS with other redo implementations.
5474
CmdNameRedoAffects,
5575
CmdNameRedoAlways,
5676
CmdNameRedoCleanup,
57-
@@ -125,8 +123,8 @@ func main() {
77+
@@ -138,8 +136,8 @@ func main() {
5878
CmdNameRedoTargets,
5979
CmdNameRedoWhichdo,
6080
} {
@@ -63,5 +83,5 @@ Avoid CONFLICTS with other redo implementations.
6383
+ fmt.Println(CmdNameRedo, "<-", cmdName)
6484
+ if err := os.Symlink(CmdNameRedo, cmdName); err != nil {
6585
rc = 1
66-
log.Println(err)
86+
log.Print(err)
6787
}

0 commit comments

Comments
 (0)