From: "Darrick J. Wong" <darrick.wong@oracle.com>
To: Michal Marek <mmarek@suse.cz>
Cc: linux-kernel <linux-kernel@vger.kernel.org>
Subject: [PATCH] builddeb: fix errors caused by objtree redefinition
Date: Wed, 18 Jun 2014 17:13:06 -0700 [thread overview]
Message-ID: <20140619001305.GA24952@birch.djwong.org> (raw)
In commit 7e1c04779efd51154baf652e653ceb24ce68939b ("kbuild: Use
relative path for $(objtree)"), objtree was redefined from whatever
$(CURDIR) is to a simple ".". Unfortunately, this breaks builddeb,
which was relying on $objtree to be an absolute path, not a relative
one. Since the script is run from the object directory, pick up a
more absolute value for objtree where it's needed.
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
---
scripts/package/builddeb | 1 +
1 file changed, 1 insertion(+)
diff --git a/scripts/package/builddeb b/scripts/package/builddeb
index 2f3ec77..ce7d05b 100644
--- a/scripts/package/builddeb
+++ b/scripts/package/builddeb
@@ -299,6 +299,7 @@ EOF
fi
# Build header package
+objtree="$(pwd)"
(cd $srctree; find . -name Makefile\* -o -name Kconfig\* -o -name \*.pl > "$objtree/debian/hdrsrcfiles")
(cd $srctree; find arch/$SRCARCH/include include scripts -type f >> "$objtree/debian/hdrsrcfiles")
(cd $objtree; find arch/$SRCARCH/include Module.symvers include scripts -type f >> "$objtree/debian/hdrobjfiles")
next reply other threads:[~2014-06-19 0:13 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-19 0:13 Darrick J. Wong [this message]
2014-06-19 7:27 ` Michal Marek
2014-06-19 8:30 ` Darrick J. Wong
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=20140619001305.GA24952@birch.djwong.org \
--to=darrick.wong@oracle.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mmarek@suse.cz \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®