* [PATCH infiniband-diags] Fix the gen_chlog.sh script to support builds in a separate directory
@ 2017-06-14 10:48 Knut Omang
[not found] ` <20170614104824.21599-1-knut.omang-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: Knut Omang @ 2017-06-14 10:48 UTC (permalink / raw)
To: Ira Weiny; +Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA, Knut Omang
Configuring and building in a separate directory breaks
because gen_chlog.sh assumes it runs from the git tree.
Instead of making this assumption, rather assume the more
generic, that the gen_chlog.sh script itself is located
in the top sourcedir.
With this fix configuring and building in a separate
tree from the source tree works.
Signed-off-by: Knut Omang <knut.omang-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
---
gen_chlog.sh | 2 ++
1 file changed, 2 insertions(+)
diff --git a/gen_chlog.sh b/gen_chlog.sh
index 34dfa24..59a9e1f 100755
--- a/gen_chlog.sh
+++ b/gen_chlog.sh
@@ -10,6 +10,8 @@ if [ "$1" = "--spec" ] ; then
spec_format=1
fi
+cd `dirname $0`
+
GIT_DIR=`git rev-parse --git-dir 2>/dev/null`
test -z "$GIT_DIR" && usage
--
2.9.4
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH infiniband-diags] Fix the gen_chlog.sh script to support builds in a separate directory
[not found] ` <20170614104824.21599-1-knut.omang-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
@ 2017-06-16 12:01 ` Knut Omang
[not found] ` <1497614487.15929.18.camel-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: Knut Omang @ 2017-06-16 12:01 UTC (permalink / raw)
To: Ira Weiny; +Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA
Never mind - after some head scratching I realized my git remote reference
had become obsolete since the last time I pulled it.
This patch was against the obsolete (but still existing)
git://git.openfabrics.org/~iraweiny/infiniband-diags.git
not the current
https://github.com/linux-rdma/infiniband-diags
Thanks,
Knut
On Wed, 2017-06-14 at 12:48 +0200, Knut Omang wrote:
> Configuring and building in a separate directory breaks
> because gen_chlog.sh assumes it runs from the git tree.
> Instead of making this assumption, rather assume the more
> generic, that the gen_chlog.sh script itself is located
> in the top sourcedir.
>
> With this fix configuring and building in a separate
> tree from the source tree works.
>
> Signed-off-by: Knut Omang <knut.omang-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
> ---
> gen_chlog.sh | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/gen_chlog.sh b/gen_chlog.sh
> index 34dfa24..59a9e1f 100755
> --- a/gen_chlog.sh
> +++ b/gen_chlog.sh
> @@ -10,6 +10,8 @@ if [ "$1" = "--spec" ] ; then
> spec_format=1
> fi
>
> +cd `dirname $0`
> +
> GIT_DIR=`git rev-parse --git-dir 2>/dev/null`
>
> test -z "$GIT_DIR" && usage
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: [PATCH infiniband-diags] Fix the gen_chlog.sh script to support builds in a separate directory
[not found] ` <1497614487.15929.18.camel-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
@ 2017-06-19 23:46 ` Weiny, Ira
0 siblings, 0 replies; 3+ messages in thread
From: Weiny, Ira @ 2017-06-19 23:46 UTC (permalink / raw)
To: Knut Omang; +Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA
> Never mind - after some head scratching I realized my git remote reference had
> become obsolete since the last time I pulled it.
>
> This patch was against the obsolete (but still existing)
> git://git.openfabrics.org/~iraweiny/infiniband-diags.git
>
> not the current
>
> https://github.com/linux-rdma/infiniband-diags
Correct. I removed that functionality.
Thanks,
Ira
>
> Thanks,
> Knut
>
> On Wed, 2017-06-14 at 12:48 +0200, Knut Omang wrote:
> > Configuring and building in a separate directory breaks because
> > gen_chlog.sh assumes it runs from the git tree.
> > Instead of making this assumption, rather assume the more generic,
> > that the gen_chlog.sh script itself is located in the top sourcedir.
> >
> > With this fix configuring and building in a separate tree from the
> > source tree works.
> >
> > Signed-off-by: Knut Omang <knut.omang@oracle.com>
> > ---
> > gen_chlog.sh | 2 ++
> > 1 file changed, 2 insertions(+)
> >
> > diff --git a/gen_chlog.sh b/gen_chlog.sh index 34dfa24..59a9e1f 100755
> > --- a/gen_chlog.sh
> > +++ b/gen_chlog.sh
> > @@ -10,6 +10,8 @@ if [ "$1" = "--spec" ] ; then
> > spec_format=1
> > fi
> >
> > +cd `dirname $0`
> > +
> > GIT_DIR=`git rev-parse --git-dir 2>/dev/null`
> >
> > test -z "$GIT_DIR" && usage
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-06-19 23:46 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-14 10:48 [PATCH infiniband-diags] Fix the gen_chlog.sh script to support builds in a separate directory Knut Omang
[not found] ` <20170614104824.21599-1-knut.omang-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
2017-06-16 12:01 ` Knut Omang
[not found] ` <1497614487.15929.18.camel-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
2017-06-19 23:46 ` Weiny, Ira
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.