Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master grimoire by Thomas Orgis (7648fe210d095397484dc911330360c238ce2bb6)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Thomas Orgis <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master grimoire by Thomas Orgis (7648fe210d095397484dc911330360c238ce2bb6)
  • Date: Wed, 30 Sep 2020 10:26:25 +0000

GIT changes to master grimoire by Thomas Orgis <sobukus AT sourcemage.org>:

ChangeLog | 5 +++++
rust-crates/FUNCTIONS | 4 ++--
rust-crates/cbindgen/DETAILS | 10 +++++++++-
rust-crates/cbindgen/HISTORY | 5 +++++
rust-crates/cbindgen/PRE_BUILD | 5 +++++
rust-crates/cbindgen/WIP | 4 +++-
video/wxcam/DEPENDS | 3 +++
video/wxcam/HISTORY | 3 +++
8 files changed, 35 insertions(+), 4 deletions(-)

New commits:
commit 7648fe210d095397484dc911330360c238ce2bb6
Author: Thomas Orgis <sobukus AT sourcemage.org>
Commit: Thomas Orgis <sobukus AT sourcemage.org>

cbindgen: make build local and reproducible

My approach involves a cargo snapshot tarball (directory .cargo,
matching the default $HOME/.cargo, also less chance of conflict
in source trees) that is extracted inside the source tree and
used by the default build.

It's still WIP. We need to agree on the idea of cargo snapshots
or another way of integrating the cargo downloads into summon.
In my opinion, we need something that can be mirrored/self-hosted.

I hope we find something better in future. Maybe at least some
tooling support in quill to generate those cargo snapshots
automatically. But one crucial point: Each grimoire guru needs
access to a place that serves as canonical URL. I use my own
server at sobukus.de now, but I presume it should be on
sourcemage.org …

Also, about the naming of spells: With the increasing number of
ecosystems (perl, python[23], ruby, go, rust) that produce their
inevitable re-inventions of various wheels in form of packages,
we really should start prefixing things. The spell cbindgen should
be called rust-cbindgen. Anything from CPAN should be perl-anything
or cpan-anything.

commit 51cc21158ebe623a1e230eb7d10e75d991023b7a
Author: Thomas Orgis <sobukus AT sourcemage.org>
Commit: Thomas Orgis <sobukus AT sourcemage.org>

wxcam: beginning of fixup attempt with deps

diff --git a/ChangeLog b/ChangeLog
index 96e8346..ce8454d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2020-09-30 Thomas Orgis <sobukus AT sourcemage.org>
+ * rust-cargo/FUNCTIONS: use .cargo as local cargo home, as
+ that matches the default $HOME/.cargo; needs to stay that
+ way for offline build of cbindgen to work
+
2020-09-28 Treeve Jelbert <treeve AT sourcemage.org>
* kde5-extra/seexpr: added, Disney Animation's SeExpr for Krita

diff --git a/rust-crates/FUNCTIONS b/rust-crates/FUNCTIONS
index cba2919..b593044 100755
--- a/rust-crates/FUNCTIONS
+++ b/rust-crates/FUNCTIONS
@@ -2,14 +2,14 @@
## Section-default build script.
#-------------------------------------------------------------------------
function default_build_cargo() {
- env CARGO_HOME="$SOURCE_DIRECTORY/cargo_home" cargo build --release
+ env CARGO_HOME="$SOURCE_DIRECTORY/.cargo" cargo build --release
}

#-------------------------------------------------------------------------
## Section-default install script.
#-------------------------------------------------------------------------
function default_install_cargo() {
- env CARGO_HOME="$SOURCE_DIRECTORY/cargo_home" \
+ env CARGO_HOME="$SOURCE_DIRECTORY/.cargo" \
cargo install --path "$SOURCE_DIRECTORY" --root "${INSTALL_ROOT}/usr"
--locked $@ &&
rm -f "$INSTALL_ROOT/usr/.crates.toml" &&
rm -f "$INSTALL_ROOT/usr/.crates2.json"
diff --git a/rust-crates/cbindgen/DETAILS b/rust-crates/cbindgen/DETAILS
index a37c33f..d897e04 100755
--- a/rust-crates/cbindgen/DETAILS
+++ b/rust-crates/cbindgen/DETAILS
@@ -8,10 +8,18 @@ SOURCE_DIRECTORY="${BUILD_DIRECTORY}/${SPELL}-git"
SOURCE_IGNORE="volatile"
FORCE_DOWNLOAD="on"
else
+# The sources consist of the upstream tarball and a cargo tarball which is
the
+# result of running
+# CARGO_HOME=$PWD/.cargo cargo fetch
+# tar -czf $(basename $PWD)-cargo.tar.gz .cargo Cargo.lock
+# With the non-scm branch, we want offline builds.
VERSION="0.14.6"
-
SOURCE_HASH="sha512:1243d180e767087a92bbbcf68a6111b39f09b5899195d0d85c81bab36f0fe33d567540f12ed959ece8b0d87162736b6bbac48e85af5dc9709e137c9b77ca5591"
SOURCE="${SPELL}-${VERSION}.tar.gz"
+ SOURCE2="${SPELL}-${VERSION}-cargo.tar.gz"
+
SOURCE_HASH="sha512:1243d180e767087a92bbbcf68a6111b39f09b5899195d0d85c81bab36f0fe33d567540f12ed959ece8b0d87162736b6bbac48e85af5dc9709e137c9b77ca5591"
+
SOURCE2_HASH="sha512:091c57a948b6825abb7bf5a8b3165a74ce87d034a20c29d7e8502f71212182d663aec7a6324fc6a81794260ade16eab49fe6ccf35e6a6e2710a04090998435fb"

SOURCE_URL[0]="https://github.com/eqrion/${SPELL}/archive/v${VERSION}.tar.gz";
+ SOURCE2_URL[0]="https://sobukus.de/rust/${SOURCE2}";
SOURCE_DIRECTORY="${BUILD_DIRECTORY}/${SPELL}-${VERSION}"
fi
WEB_SITE="https://docs.rs/cbindgen";
diff --git a/rust-crates/cbindgen/HISTORY b/rust-crates/cbindgen/HISTORY
index fc48d12..0a21cd5 100644
--- a/rust-crates/cbindgen/HISTORY
+++ b/rust-crates/cbindgen/HISTORY
@@ -1,3 +1,8 @@
+2020-09-30 Thomas Orgis <sobukus AT sourcemage.org>
+ * DETAILS, PRE_BUILD: package the dependencies into SOURCE2
+ for networkless build
+ * WIP: note some improvement
+
2020-09-26 Florian Franzmann <siflfran AT hawo.stw.uni-erlangen.de>
* DETAILS: version 0.14.6

diff --git a/rust-crates/cbindgen/PRE_BUILD b/rust-crates/cbindgen/PRE_BUILD
new file mode 100755
index 0000000..6920cf2
--- /dev/null
+++ b/rust-crates/cbindgen/PRE_BUILD
@@ -0,0 +1,5 @@
+default_pre_build &&
+if [[ -n $SOURCE2 ]]; then
+ cd "$SOURCE_DIRECTORY" &&
+ unpack_file 2
+fi
diff --git a/rust-crates/cbindgen/WIP b/rust-crates/cbindgen/WIP
index e72545f..d40ffa2 100644
--- a/rust-crates/cbindgen/WIP
+++ b/rust-crates/cbindgen/WIP
@@ -1 +1,3 @@
-Has too many crates being downloaded and built during BUILD phase.
+Well, does not download anymore during BUILD, but the
+huge dependency tarball as SOURCE2 is also not that much
+fun.
diff --git a/video/wxcam/DEPENDS b/video/wxcam/DEPENDS
index 552eea8..987508d 100755
--- a/video/wxcam/DEPENDS
+++ b/video/wxcam/DEPENDS
@@ -1,3 +1,6 @@
+depends v4l-utils &&
+# optional?
+depends xvid &&
depends WXWIDGET &&
depends mjpegtools &&
depends cimg
diff --git a/video/wxcam/HISTORY b/video/wxcam/HISTORY
index e7948f3..4dd797d 100644
--- a/video/wxcam/HISTORY
+++ b/video/wxcam/HISTORY
@@ -1,3 +1,6 @@
+2020-09-25 Thomas Orgis
+ * DEPENDS: some additions, testing not yet possible as deps fail
+
2015-05-25 Thomas Orgis <sobukus AT sourcemage.org>
* DETAILS: remove SOURCEFORGE_URL usage (automated)




  • [SM-Commit] GIT changes to master grimoire by Thomas Orgis (7648fe210d095397484dc911330360c238ce2bb6), Thomas Orgis, 09/30/2020

Archive powered by MHonArc 2.6.24.

Top of Page