Skip to content

Instantly share code, notes, and snippets.

Avatar

Cody Schafer jmesmon

  • Massachusetts
View GitHub Profile
View gist:4956434dd689994d1e31b603c13ec738
==>(B Making package: rr 5.4.0-5 (Mon Nov 16 17:15:04 2020)(B
==>(B Checking runtime dependencies...(B
==>(B Checking buildtime dependencies...(B
==>(B Retrieving sources...(B
 ->(B Downloading rr-5.4.0.tar.gz...(B
==>(B Validating source files with sha1sums...(B
==>(B Extracting sources...(B
 ->(B Extracting rr-5.4.0.tar.gz with bsdtar(B
==>(B Starting prepare()...(B
==>(B Starting build()...(B
View stdin
==> Starting build()...
-- The C compiler identification is GNU 10.2.0
-- The CXX compiler identification is GNU 10.2.0
-- The ASM compiler identification is GNU
-- Found assembler: /usr/lib/ccache/bin/cc
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/lib/ccache/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
@jmesmon
jmesmon / 0001-use-linkmode-external-to-fix-build.patch
Created Oct 26, 2020
0001-use-linkmode-external-to-fix-build.patch
View 0001-use-linkmode-external-to-fix-build.patch
From d4c957869206eb9888d48fcd9e4570c3d8d01bc2 Mon Sep 17 00:00:00 2001
From: Cody Schafer <cody@berkshiregrey.com>
Date: Mon, 26 Oct 2020 12:51:38 -0400
Subject: [PATCH] use linkmode external to fix build
Otherwise, the link fails:
.rela: relocation target _cgo_26061493d47f_C2func_getaddrinfo not defined
The `-linkmode external` option is included in the current go packaging
View stdin
(deepspeech-venv) [cody@franklin audio]$ deepspeech --model deepspeech-0.8.2-models.pbmm --scorer deepspeech-0.8.2-models.scorer --audio Hardware\ interrupts-DlEa8kd7n3Q.wav
Loading model from file deepspeech-0.8.2-models.pbmm
TensorFlow: v2.2.0-24-g1c1b2b9
DeepSpeech: v0.8.2-0-g02e4c76
2020-10-07 12:53:56.952299: I tensorflow/core/platform/cpu_feature_guard.cc:143] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
Loaded model in 0.00914s.
Loading scorer from files deepspeech-0.8.2-models.scorer
Loaded scorer in 0.000188s.
Warning: original sample rate (44100) is different than 16000hz. Resampling might produce erratic speech recognition.
Running inference.
@jmesmon
jmesmon / 0001-update-for-go-package-guidelines.patch
Created Sep 26, 2020
0001-update-for-go-package-guidelines.patch
View 0001-update-for-go-package-guidelines.patch
From 8b7834b7d21487410df5ba768f2e6e9fb709e8c0 Mon Sep 17 00:00:00 2001
From: Cody Schafer <cody@berkshiregrey.com>
Date: Fri, 25 Sep 2020 20:49:51 -0400
Subject: [PATCH] update for go package guidelines
---
PKGBUILD | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/PKGBUILD b/PKGBUILD
View stdin
diff --git a/PKGBUILD b/PKGBUILD
index 549dd58..d7a2770 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -19,13 +19,14 @@ build() {
export CGO_CPPFLAGS="${CPPFLAGS}"
export CGO_CFLAGS="${CFLAGS}"
export CGO_CXXFLAGS="${CXXFLAGS}"
+ export CGO_LDFLAGS="${LDFLAGS}"
export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
@jmesmon
jmesmon / 0001-place-cargo_home-into-srcdir-to-fix-debug-package.patch
Created Aug 12, 2020
0001-place-cargo_home-into-srcdir-to-fix-debug-package.patch
View 0001-place-cargo_home-into-srcdir-to-fix-debug-package.patch
From c924f384d62d1affdaef7341125ae04accd811fc Mon Sep 17 00:00:00 2001
From: Cody Schafer <cody@berkshiregrey.com>
Date: Wed, 12 Aug 2020 12:21:13 -0400
Subject: [PATCH] place cargo_home into srcdir to fix *-debug package
Currently, when `OPTIONS+=(debug)` is set in makepkg.conf, this package
tends to install source code files into the home directory of the user
that built the package.
This appears to be due to the debug info referencing files in the
@jmesmon
jmesmon / 0001-place-cargo_home-into-srcdir-to-fix-debug-package.patch
Created Aug 12, 2020
0001-place-cargo_home-into-srcdir-to-fix-debug-package.patch
View 0001-place-cargo_home-into-srcdir-to-fix-debug-package.patch
From a6b58b75623e000802768373f3a8f4e7954885b0 Mon Sep 17 00:00:00 2001
From: Cody Schafer <dev@codyps.com>
Date: Wed, 12 Aug 2020 12:14:01 -0400
Subject: [PATCH] place cargo_home into srcdir to fix *-debug package
Currently, when `OPTIONS+=(debug)` is set in makepkg.conf, this package
tends to install source code files into the home directory of the user
that built the package.
This appears to be due to the debug info referencing files in the
@jmesmon
jmesmon / 0001-place-cargo_home-into-srcdir-to-fix-debug-package.patch
Created Aug 12, 2020
0001-place-cargo_home-into-srcdir-to-fix-debug-package.patch
View 0001-place-cargo_home-into-srcdir-to-fix-debug-package.patch
From d46bae2846130ec5c69d64eef5c78bbd819ebfd5 Mon Sep 17 00:00:00 2001
From: Cody Schafer <cody@berkshiregrey.com>
Date: Wed, 12 Aug 2020 12:12:54 -0400
Subject: [PATCH] place cargo_home into srcdir to fix *-debug package
Currently, when `OPTIONS+=(debug)` is set in makepkg.conf, this package
tends to install source code files into the home directory of the user
that built the package.
This appears to be due to the debug info referencing files in the
@jmesmon
jmesmon / 0001-disable-ruby-swig-to-fix-build.patch
Created Apr 20, 2020
0001-disable-ruby-swig-to-fix-build.patch
View 0001-disable-ruby-swig-to-fix-build.patch
From 2dfc8fc87bd5f034da04540747f24a4c762d0ca9 Mon Sep 17 00:00:00 2001
From: Cody Schafer <cody@berkshiregrey.com>
Date: Mon, 20 Apr 2020 17:46:17 -0400
Subject: [PATCH] disable ruby/swig to fix build
---
PKGBUILD | 46 +++++++++++++++++++++++++++-------------------
1 file changed, 27 insertions(+), 19 deletions(-)
diff --git a/PKGBUILD b/PKGBUILD
You can’t perform that action at this time.