Skip to contentSkip to conversation

build: Fix build script to use correct cmake cmd

PATCH In review Dennis Dalessandro 4 participants 8 messages Oct 21, 2016 – Nov 9, 2016 6 messages not in the archive InfiniBand

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 build: Fix build script to use correct cmake cmd

The build script does not use the variable it sets up for cmake. Fix it so it does.

---
 build.sh |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
build.sh +2 -2
index 9006030..10518d8 100755
@@ -23,9 +23,9 @@ fi
 cd "$BUILDDIR"
 
 if [ "x$NINJA" == "x" ]; then
-    cmake ..
+    $CMAKE ..
     make
 else
-    cmake -GNinja ..
+    $CMAKE -GNinja ..
     $NINJA
 fi

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): 20161021172728.27367.86783.stgit-9QXIwq+3FY+1XWohqUldA0EOCMrvLtNR@public.gmane.org

A message that is not in the archive (sent off-list or not yet received): 20161021180523.GA554-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org

#4 lore raw
Quoted 7 lines · Jason Gunthorpe
Quoted 2 lines · Dennis Dalessandro

The build script does not use the variable it sets up for cmake. Fix it so it does.

Yep, my bad. I put this with the other minor fixes that came by lately:

Quoted 8 lines

https://github.com/linux-rdma/rdma-core/pull/25

Jason
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

According to github, this change broke the travis CI build on your pull request when the previous patches all worked. However, travis is down right now, so I suspect this didn't *actually* break it, that the travis CI was down anyway and github logged a failure.

Signature · 2 lines
Doug Ledford <[email protected]>
    GPG Key ID: 0E572FDD

A message that is not in the archive (sent off-list or not yet received): 9745f6c7-8d09-8bed-d04c-78f610330ead-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org

#6 lore raw
Quoted 4 lines · Doug Ledford

According to github, this change broke the travis CI build on your pull request when the previous patches all worked. However, travis is down right now, so I suspect this didn't *actually* break it, that the travis CI was down anyway and github logged a failure.

Yes, travis does not use build.sh

Maybe this is a good time to ask if anyone is interested in the docker stuff I have - eg should I make it pushable? It is easy to use, but you need to have docker installed.

There are several other container/chroot/docker based toolkits out there for doing this sort of work, but I haven't studied that area in a while to see if there is something workable.

The docker script is able to run almost-travis locally, as well as do clean package builds for all distros.

Jason
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): 20161021193034.GA616-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org

#8 lore raw
Quoted 11 lines · Jason Gunthorpe
Quoted 4 lines · Doug Ledford

According to github, this change broke the travis CI build on your pull request when the previous patches all worked. However, travis is down right now, so I suspect this didn't *actually* break it, that the travis CI was down anyway and github logged a failure.

Yes, travis does not use build.sh

Maybe this is a good time to ask if anyone is interested in the docker stuff I have - eg should I make it pushable? It is easy to use, but you need to have docker installed.

I would be happy to get it and be more confident in my local tests.

Quoted 7 lines

There are several other container/chroot/docker based toolkits out there for doing this sort of work, but I haven't studied that area in a while to see if there is something workable.

The docker script is able to run almost-travis locally, as well as do clean package builds for all distros.

It looks like it goes beyond rdma-core definition. Do we want to put it separately or anyway integrate into main library?

Quoted 6 lines

Jason
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): 20161025101200.GP25013-2ukJVAZIZ/[email protected]

#10 lore raw
Quoted 5 lines · Leon Romanovsky
Quoted 3 lines

Maybe this is a good time to ask if anyone is interested in the docker stuff I have - eg should I make it pushable? It is easy to use, but you need to have docker installed.

I would be happy to get it and be more confident in my local tests.

Okay, let me look at it some more, I think it could be streamlined a bit.

Quoted 5 lines
Quoted 2 lines

The docker script is able to run almost-travis locally, as well as do clean package builds for all distros.

It looks like it goes beyond rdma-core definition. Do we want to put it separately or anyway integrate into main library?

It is a 500 line script, I'd keep it internal. The latest version has learned to use different spec files depend on the distro build too, so there is a bunch of subtle integration.

Jason
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

#11 lore raw
In reply to a message not in the archive
Quoted 4 lines · Leon Romanovsky
Quoted 2 lines

stuff I have - eg should I make it pushable? It is easy to use, but you need to have docker installed.

I would be happy to get it and be more confident in my local tests.

You can test it out with this commit:

https://github.com/jgunthorpe/rdma-plumbing/commit/ef24b991c949ad4f50614bf6bf549e1cdf841358

It will need some tidying before it can merged, but let me know if it is useful as-is.

Jason
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): 20161107235709.GF7002-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org

#13 lore raw
Quoted 4 lines · Jason Gunthorpe
Quoted 3 lines · Leon Romanovsky
Quoted 2 lines

stuff I have - eg should I make it pushable? It is easy to use, but you need to have docker installed.

Quoted 8 lines
Quoted 1 line

I would be happy to get it and be more confident in my local tests.

You can test it out with this commit:

https://github.com/jgunthorpe/rdma-plumbing/commit/ef24b991c949ad4f50614bf6bf549e1cdf841358

It will need some tidying before it can merged, but let me know if it is useful as-is.

Thanks, I'll do my best to try it next week.

Quoted 2 lines

Jason