Skip to content

WIP: split off unrelated linux/win32 stuff #115

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 15, 2022

Conversation

jkloetzke
Copy link
Member

Fixes #107.

@Ferruck
Copy link
Contributor

Ferruck commented Mar 30, 2022

I was able to build and run our AppImage with your split recipes so it seems to still be functional. However, I needed the following changes to make it compile:

diff --git a/classes/basement/buildall.yaml b/classes/basement/buildall.yaml
index 77efffc..c989250 100644
--- a/classes/basement/buildall.yaml
+++ b/classes/basement/buildall.yaml
@@ -22,3 +22,4 @@ packageTools:
     - meson
     - ninja
     - pkg-config
+    - curl
diff --git a/classes/basement/rootrecipe.yaml b/classes/basement/rootrecipe.yaml
index 695247e..2ee822f 100644
--- a/classes/basement/rootrecipe.yaml
+++ b/classes/basement/rootrecipe.yaml
@@ -56,6 +56,9 @@ depends:
         - name: devel::cmake            # Overwrite "cmake" tool with properly
           use: [tools]                  # built one.
           forward: True
+        - name: net::curl-tools
+          use: [tools]
+          forward: True

     - if: !expr |
         "${BOB_HOST_PLATFORM}" == "msys"
diff --git a/config.yaml b/config.yaml
index 81c9818..fb8b8eb 100644
--- a/config.yaml
+++ b/config.yaml
@@ -5,3 +5,6 @@ plugins:
     - paths
     - vsenv
     - msbuild
+
+layers:
+    - gnu-linux
diff --git a/recipes/devel/git.yaml b/recipes/devel/git.yaml
index 4cdb71c..f86ef6d 100644
--- a/recipes/devel/git.yaml
+++ b/recipes/devel/git.yaml
@@ -20,7 +20,7 @@ checkoutSCM:
     digestSHA1: "851537fc03f5a99419ef20e9b836de965c7928bd"
     extract: False

-buildTools: [target-toolchain]
+buildTools: [target-toolchain, curl]
 buildVars: [PKG_VERSION, AUTOCONF_HOST,
     CPPFLAGS, CFLAGS, LDFLAGS]
 buildScript: |
diff --git a/recipes/devel/sandbox.yaml b/recipes/devel/sandbox.yaml
index 01faee0..a5a6b8e 100644
--- a/recipes/devel/sandbox.yaml
+++ b/recipes/devel/sandbox.yaml
@@ -42,6 +42,10 @@ depends:
         name: python::python3-minimal
         use: [tools]
         forward: True
+    -
+        name: net::curl-tools
+        use: [tools]
+        forward: True

     # target toolchain
     -
diff --git a/recipes/net/curl.yaml b/recipes/net/curl.yaml
index da1c18f..bffe5a5 100644
--- a/recipes/net/curl.yaml
+++ b/recipes/net/curl.yaml
@@ -38,3 +38,8 @@ multiPackage:
     tgt:
         packageScript: autotoolsPackageTgt
         provideDeps: [ "*-tgt" ]
+
+    tools:
+        packageScript: autotoolsPackageBin
+        provideTools:
+            curl: usr/bin

Without these, git complains about being unable to find curl_config and throws linker errors afterwards. I guess that was an issue already before and was just unveiled by the splitting...

The chosen split itself seems reasonable to me. Time will tell if all recipes are in their right place.

@jkloetzke
Copy link
Member Author

Nice. I see that buildroot does something similar. I still have to take care of the bob-examples repositories. Once they are building I can create the repositories and make the split...

This class is no longer needed because it was replaced by
tests/linux/...
Recipes that are not absolutely required to provide a core basement
layer are moved into separate sub-layers. They are intended to be moved
into separate repositories as a next step.

Fixes BobBuildTool#107.
@jkloetzke jkloetzke marked this pull request as ready for review April 15, 2022 09:20
@jkloetzke jkloetzke merged commit 3bb96ec into BobBuildTool:master Apr 15, 2022
@jkloetzke jkloetzke deleted the split branch April 15, 2022 09:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Is there interest for X stuff in the basement?
2 participants