Mailing List Archive

[BUG/PATCH] make deb-pkg: optionally use fakeroot
Problem: deb-pkg needs root privileges or fakeroot but git-diff-index
does not work correctly with fakeroot. Perhaps this variable should
have another name and be added to the other package targets too.

---
scripts/package/Makefile | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/scripts/package/Makefile b/scripts/package/Makefile
index 7c434e0..d77e21a 100644
--- a/scripts/package/Makefile
+++ b/scripts/package/Makefile
@@ -72,7 +72,7 @@ # Deb target
# ---------------------------------------------------------------------------
deb-pkg: FORCE
$(MAKE) KBUILD_SRC=
- $(CONFIG_SHELL) $(srctree)/scripts/package/builddeb
+ $(FAKEROOT) $(CONFIG_SHELL) $(srctree)/scripts/package/builddeb

clean-dirs += $(objtree)/debian/

--
1.4.2.g0ea2

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Re: [BUG/PATCH] make deb-pkg: optionally use fakeroot [ In reply to ]
>diff --git a/scripts/package/Makefile b/scripts/package/Makefile
>index 7c434e0..d77e21a 100644
>--- a/scripts/package/Makefile
>+++ b/scripts/package/Makefile
>@@ -72,7 +72,7 @@ # Deb target
> # ---------------------------------------------------------------------------
> deb-pkg: FORCE
> $(MAKE) KBUILD_SRC=
>- $(CONFIG_SHELL) $(srctree)/scripts/package/builddeb
>+ $(FAKEROOT) $(CONFIG_SHELL) $(srctree)/scripts/package/builddeb

Why are distribution-specific things/objects/targets even included?



Jan Engelhardt
--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Re: [BUG/PATCH] make deb-pkg: optionally use fakeroot [ In reply to ]
Matthias Lederhofer <matled@gmx.net> wrote:
> Problem: deb-pkg needs root privileges or fakeroot but git-diff-index
> does not work correctly with fakeroot. Perhaps this variable should
> have another name and be added to the other package targets too.

<gitster> So "fakeroot -u" (Use the real ownership of files previously
unknown to fakeroot instead of pretending they are owned by
root:root.) would be a good workaround.
<gitster> Eh, not a workaround but probably that is the right thing to do.

This solves the problem, just ignore the patch.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/