Skip to content

Commit 589c761

Browse files
authored
build: remove unused programs
Remove ddconfig.sh, tealcut, commandandcontrol (cc_agent, cc_client, cc_service) Stop packaging carpenter, catchupsrv, doberman
1 parent 5df8d21 commit 589c761

File tree

25 files changed

+22
-1650
lines changed

25 files changed

+22
-1650
lines changed

Makefile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ build-e2e: check-go-version crypto/libs/$(OS_TYPE)/$(ARCH)/lib/libsodium.a
301301
wait
302302
cp $(GOBIN)/kmd $(GOBIN)-race
303303

304-
NONGO_BIN_FILES=$(GOBIN)/find-nodes.sh $(GOBIN)/update.sh $(GOBIN)/COPYING $(GOBIN)/ddconfig.sh
304+
NONGO_BIN_FILES=$(GOBIN)/find-nodes.sh $(GOBIN)/update.sh $(GOBIN)/COPYING
305305

306306
NONGO_BIN: $(NONGO_BIN_FILES)
307307

@@ -311,8 +311,6 @@ $(GOBIN)/update.sh: cmd/updater/update.sh
311311

312312
$(GOBIN)/COPYING: COPYING
313313

314-
$(GOBIN)/ddconfig.sh: scripts/ddconfig.sh
315-
316314
$(GOBIN)/%:
317315
cp -f $< $@
318316

README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,6 @@ Contains the two daemons that provide Algorand clients with services:
135135
Enables developers to interface with the Algorand system:
136136

137137
- **cmd**: Contains the primary commands defining entry points into the system.
138-
- **cmd/catchupsrv** ([README](cmd/catchupsrv/README.md)): A tool to assist with processing historic blocks on a new node.
139138
- **libgoal**: Exports a Go interface useful for developers of Algorand clients.
140139
- **tools** ([README](tools/README.md)): Various tools and utilities that don’t have a better place to go.
141140
- **tools/debug**: Holds secondary commands that assist developers during debugging.
@@ -147,8 +146,6 @@ Helps Algorand developers deploy networks of their own:
147146

148147
- **nodecontrol**
149148
- **docker**
150-
- **commandandcontrol** ([README](test/commandandcontrol/README.md)): A tool to automate a network of `algod` instances.
151-
- **components**
152149
- **netdeploy**
153150

154151
### Utilities

cmd/updater/update.sh

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ function run_systemd_action() {
492492
function backup_binaries() {
493493
echo "Backing up current binary files..."
494494
mkdir -p "${BINDIR}/backup"
495-
BACKUPFILES="algod kmd carpenter doberman goal update.sh updater diagcfg"
495+
BACKUPFILES="algod kmd goal update.sh updater diagcfg"
496496
# add node_exporter to the files list we're going to backup, but only we if had it previously deployed.
497497
[ -f "${BINDIR}/node_exporter" ] && BACKUPFILES="${BACKUPFILES} node_exporter"
498498
# If we have algotmpl, we should back it up too
@@ -691,6 +691,16 @@ function apply_fixups() {
691691
# Delete obsolete algorand binary - renamed to 'goal'
692692
rm "${BINDIR}/algorand" >/dev/null 2>&1
693693
694+
# Delete obsolete binaries removed in go-algorand
695+
rm "${BINDIR}/carpenter" >/dev/null 2>&1
696+
rm "${BINDIR}/catchupsrv" >/dev/null 2>&1
697+
rm "${BINDIR}/doberman" >/dev/null 2>&1
698+
rm "${BINDIR}/ddconfig.sh" >/dev/null 2>&1
699+
rm "${BINDIR}/tealcut" >/dev/null 2>&1
700+
rm "${BINDIR}/cc_service" >/dev/null 2>&1
701+
rm "${BINDIR}/cc_agent" >/dev/null 2>&1
702+
rm "${BINDIR}/cc_client" >/dev/null 2>&1
703+
694704
for DD in ${DATADIRS[@]}; do
695705
clean_legacy_logs "${DD}"
696706

installer/rpm/algorand-devtools/algorand-devtools.spec

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ This package provides development tools for the Algorand blockchain.
2626
mkdir -p %{buildroot}/usr/bin
2727
# NOTE: keep in sync with scripts/build_deb.sh bin_files
2828
# NOTE: keep in sync with %files section below
29-
for f in carpenter catchupsrv msgpacktool tealcut tealdbg; do
29+
for f in carpenter msgpacktool tealdbg; do
3030
install -m 755 ${ALGO_BIN}/${f} %{buildroot}/usr/bin/${f}
3131
done
3232

@@ -38,9 +38,7 @@ install -m 644 ${REPO_DIR}/installer/rpm/algorand-devtools/algorand-devtools.rep
3838

3939
%files
4040
/usr/bin/carpenter
41-
/usr/bin/catchupsrv
4241
/usr/bin/msgpacktool
43-
/usr/bin/tealcut
4442
/usr/bin/tealdbg
4543
/etc/pki/rpm-gpg/RPM-GPG-KEY-Algorand
4644
/usr/lib/algorand/yum.repos.d/algorand-devtools.repo

installer/rpm/algorand/algorand.spec

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ This package provides an implementation of the Algorand protocol.
2929
mkdir -p %{buildroot}/usr/bin
3030
# NOTE: keep in sync with scripts/build_deb.sh bin_files
3131
# NOTE: keep in sync with %files section below
32-
for f in algocfg algod algoh algokey ddconfig.sh diagcfg goal kmd node_exporter; do
32+
for f in algocfg algod algoh algokey diagcfg goal kmd node_exporter; do
3333
install -m 755 ${ALGO_BIN}/${f} %{buildroot}/usr/bin/${f}
3434
done
3535

@@ -77,7 +77,6 @@ fi
7777
/usr/bin/algod
7878
/usr/bin/algoh
7979
/usr/bin/algokey
80-
/usr/bin/ddconfig.sh
8180
/usr/bin/diagcfg
8281
/usr/bin/goal
8382
/usr/bin/kmd

scripts/build_deb.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ mkdir -p "${PKG_ROOT}/usr/bin"
5252

5353
if [ "${VARIATION}" = "" ]; then
5454
# NOTE: keep in sync with installer/rpm/algorand.spec
55-
bin_files=("algocfg" "algod" "algoh" "algokey" "carpenter" "catchupsrv" "ddconfig.sh" "diagcfg" "goal" "kmd" "msgpacktool" "node_exporter" "tealcut" "tealdbg")
55+
bin_files=("algocfg" "algod" "algoh" "algokey" "carpenter" "diagcfg" "goal" "kmd" "msgpacktool" "node_exporter" "tealdbg")
5656
fi
5757

5858
for bin in "${bin_files[@]}"; do

scripts/build_package.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ DEFAULT_RELEASE_NETWORK=$(./scripts/compute_branch_release_network.sh "${DEFAULT
7777
mkdir ${PKG_ROOT}/bin
7878

7979
# If you modify this list, also update this list in ./cmd/updater/update.sh backup_binaries()
80-
bin_files=("algocfg" "algotmpl" "algod" "algoh" "algokey" "carpenter" "catchupsrv" "ddconfig.sh" "diagcfg" "find-nodes.sh" "goal" "kmd" "msgpacktool" "node_exporter" "tealcut" "tealdbg" "update.sh" "updater" "COPYING")
80+
bin_files=("algocfg" "algotmpl" "algod" "algoh" "algokey" "diagcfg" "find-nodes.sh" "goal" "kmd" "msgpacktool" "node_exporter" "tealdbg" "update.sh" "updater" "COPYING")
8181
for bin in "${bin_files[@]}"; do
8282
cp ${GOBIN}/${bin} ${PKG_ROOT}/bin
8383
if [ $? -ne 0 ]; then exit 1; fi
@@ -120,7 +120,7 @@ TOOLS_ROOT=${PKG_ROOT}/tools
120120

121121
echo "Staging tools package files"
122122

123-
bin_files=("algons" "coroner" "dispenser" "netgoal" "nodecfg" "pingpong" "cc_service" "cc_agent" "cc_client" "loadgenerator" "COPYING" "dsign" "catchpointdump" "block-generator")
123+
bin_files=("algons" "carpenter" "coroner" "dispenser" "netgoal" "nodecfg" "pingpong" "loadgenerator" "COPYING" "dsign" "catchpointdump" "block-generator")
124124
mkdir -p ${TOOLS_ROOT}
125125
for bin in "${bin_files[@]}"; do
126126
cp ${GOBIN}/${bin} ${TOOLS_ROOT}
@@ -140,4 +140,4 @@ cp "scripts/sysctl.sh" ${TOOLS_ROOT}
140140
if [ $? -ne 0 ]; then exit 1; fi
141141

142142
cp "scripts/sysctl-all.sh" ${TOOLS_ROOT}
143-
if [ $? -ne 0 ]; then exit 1; fi
143+
if [ $? -ne 0 ]; then exit 1; fi

scripts/ddconfig.sh

Lines changed: 0 additions & 162 deletions
This file was deleted.

scripts/release/build/deb/build_deb.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ mkdir -p "$PKG_ROOT/usr/bin"
2828

2929
# NOTE: keep in sync with `./installer/rpm/algorand.spec`.
3030
if [[ "$PKG_NAME" =~ devtools ]]; then
31-
BIN_FILES=("carpenter" "catchupsrv" "msgpacktool" "tealcut" "tealdbg")
31+
BIN_FILES=("carpenter" "msgpacktool" "tealdbg")
3232
UNATTENDED_UPGRADES_FILE="53algorand-devtools-upgrades"
3333
OUTPUT_DEB="$OUTDIR/algorand-devtools_${CHANNEL}_${OS_TYPE}-${ARCH}_${VER}.deb"
3434
REQUIRED_ALGORAND_PKG=$("./scripts/compute_package_name.sh" "$CHANNEL")
3535
else
36-
BIN_FILES=("algocfg" "algod" "algoh" "algokey" "ddconfig.sh" "diagcfg" "goal" "kmd" "node_exporter")
36+
BIN_FILES=("algocfg" "algod" "algoh" "algokey" "diagcfg" "goal" "kmd" "node_exporter")
3737
OUTPUT_DEB="$OUTDIR/algorand_${CHANNEL}_${OS_TYPE}-${ARCH}_${VER}.deb"
3838
UNATTENDED_UPGRADES_FILE="51algorand-upgrades"
3939
fi

scripts/release/mule/package/deb/package.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ find tmp/node_pkgs -name "*${CHANNEL}*linux*${VERSION}*.tar.gz" | cut -d '/' -f3
3434

3535
# NOTE: keep in sync with `./installer/rpm/algorand.spec`.
3636
if [[ "$ALGORAND_PACKAGE_NAME" =~ devtools ]]; then
37-
BIN_FILES=("carpenter" "catchupsrv" "msgpacktool" "tealcut" "tealdbg")
37+
BIN_FILES=("carpenter" "msgpacktool" "tealdbg")
3838
UNATTENDED_UPGRADES_FILE="53algorand-devtools-upgrades"
3939
OUTPUT_DEB="$PKG_DIR/algorand-devtools_${CHANNEL}_${OS_TYPE}-${ARCH}_${VERSION}.deb"
4040
REQUIRED_ALGORAND_PKG=$("./scripts/compute_package_name.sh" "$CHANNEL")
4141
else
42-
BIN_FILES=("algocfg" "algod" "algoh" "algokey" "ddconfig.sh" "diagcfg" "goal" "kmd" "node_exporter")
42+
BIN_FILES=("algocfg" "algod" "algoh" "algokey" "diagcfg" "goal" "kmd" "node_exporter")
4343
UNATTENDED_UPGRADES_FILE="51algorand-upgrades"
4444
OUTPUT_DEB="$PKG_DIR/algorand_${CHANNEL}_${OS_TYPE}-${ARCH}_${VERSION}.deb"
4545
fi

0 commit comments

Comments
 (0)