All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bart Van Assche <Bart.VanAssche-XdAiOPVOjttBDgjK7y7TUQ@public.gmane.org>
To: "jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org"
	<jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
Cc: "pth-l3A5Bk7waGM@public.gmane.org"
	<pth-l3A5Bk7waGM@public.gmane.org>,
	"linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
	<linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: Re: libacm fails to build
Date: Thu, 9 Mar 2017 23:12:43 +0000	[thread overview]
Message-ID: <1489101151.2597.18.camel@sandisk.com> (raw)
In-Reply-To: <20170309230453.GA7844-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>

On Thu, 2017-03-09 at 16:04 -0700, Jason Gunthorpe wrote:
> On Thu, Mar 09, 2017 at 10:53:31PM +0000, Bart Van Assche wrote:
> > Sorry, I used the wrong base for the diff command. How about the patch below
> > to fix the SuSE build:
> 
> Are you using an older suse? I just updated my tumbleweed image and it
> built fine with HEAD.
> 
> What is in your /etc/rpm/macros.cmake? All the suse's I looked at have
> this in that file:
> 
>  %cmake_install \
>     DESTDIR=%{buildroot} %__builder install -C %__builddir
> 
> It comes from here (tumbleweed):
> 
> builder-40f0d1607cec:/etc/rpm # rpm -qf /etc/rpm/macros.cmake
> cmake-3.7.2-1.1.x86_64
> 
> (13.2):
> 
> bash-4.2# rpm -qf /etc/rpm/macros.cmake
> cmake-3.0.2-6.1.x86_64
> 
> ?
> 
> I also checked and it built OK on OpenSuse 13.2
> 
> So.. I'm confused what we are trying to fix here? :)

Hello Jason,

Without that patch building an RPM fails against a recent version of
Tumbleweed:

$ rpm -qf /etc/issue.net  
openSUSE-release-20170304-1.1.x86_64
$ rpm -qf /etc/rpm/macros.cmake
cmake-3.7.2-1.1.x86_64
$ cat ./build-rpm.sh          
#!/bin/sh
name=rdma-core
version=$(sed -n 's/^Version:[[:blank:]]*//p' rdma-core.spec)
rpmtopdir=$PWD/rpmbuilddir
git archive --prefix rdma-core-${version}/ --output ${name}-${version}.tgz HEAD &&
    rm -rf ${rpmtopdir} &&
    mkdir -p ${rpmtopdir}/{BUILD,RPMS,SOURCES,SPECS,SRPMS} &&
    cp ${name}-${version}.tgz ${rpmtopdir}/SOURCES &&
    rpmbuild --define="%_topdir ${rpmtopdir}" -ba ${name}.spec
$ ./build-rpm.sh
[ ... ]
-- Build files have been written to: rdma-core/rpmbuilddir/BUILD/rdma-core-13/build
+ /usr/bin/make -j4 VERBOSE=1
make: *** No targets specified and no makefile found.  Stop.
error: Bad exit status from /var/tmp/rpm-tmp.4zaz5Y (%build)

Bart.--
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

  parent reply	other threads:[~2017-03-09 23:12 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-09 10:25 libacm fails to build Philipp Thomas
     [not found] ` <20170309102527.3ni4pkuendwzqzrm-TXhXIaCUHZEYitT5tn2FcQ@public.gmane.org>
2017-03-09 17:10   ` Jason Gunthorpe
     [not found]     ` <20170309171014.GC12694-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2017-03-09 22:35       ` Bart Van Assche
     [not found]         ` <1489098918.2597.12.camel-XdAiOPVOjttBDgjK7y7TUQ@public.gmane.org>
2017-03-09 22:49           ` Jason Gunthorpe
     [not found]             ` <20170309224904.GA5867-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2017-03-09 22:53               ` Bart Van Assche
     [not found]                 ` <1489099998.2597.16.camel-XdAiOPVOjttBDgjK7y7TUQ@public.gmane.org>
2017-03-09 23:04                   ` Jason Gunthorpe
     [not found]                     ` <20170309230453.GA7844-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2017-03-09 23:12                       ` Bart Van Assche [this message]
     [not found]                         ` <1489101151.2597.18.camel-XdAiOPVOjttBDgjK7y7TUQ@public.gmane.org>
2017-03-09 23:23                           ` Jason Gunthorpe
     [not found]                             ` <20170309232352.GA12387-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2017-03-09 23:47                               ` Bart Van Assche
     [not found]                                 ` <1489103252.2597.20.camel-XdAiOPVOjttBDgjK7y7TUQ@public.gmane.org>
2017-03-09 23:54                                   ` Jason Gunthorpe
     [not found]                                     ` <20170309235406.GA16385-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2017-03-09 23:58                                       ` Bart Van Assche
     [not found]                                         ` <1489103888.2597.21.camel-XdAiOPVOjttBDgjK7y7TUQ@public.gmane.org>
2017-03-10 18:43                                           ` Jason Gunthorpe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1489101151.2597.18.camel@sandisk.com \
    --to=bart.vanassche-xdaiopvojttbdgjk7y7tuq@public.gmane.org \
    --cc=jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org \
    --cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=pth-l3A5Bk7waGM@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.