Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/303729/?format=api
{ "id": 303729, "url": "http://patchwork.ozlabs.org/api/patches/303729/?format=api", "web_url": "http://patchwork.ozlabs.org/project/buildroot/patch/1387485489-4186-18-git-send-email-clshotwe@rockwellcollins.com/", "project": { "id": 27, "url": "http://patchwork.ozlabs.org/api/projects/27/?format=api", "name": "Buildroot development", "link_name": "buildroot", "list_id": "buildroot.buildroot.org", "list_email": "buildroot@buildroot.org", "web_url": "", "scm_url": "", "webscm_url": "", "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<1387485489-4186-18-git-send-email-clshotwe@rockwellcollins.com>", "list_archive_url": null, "date": "2013-12-19T20:38:06", "name": "[v5,17/20] busybox: add option to enable SELinux support", "commit_ref": null, "pull_url": null, "state": "changes-requested", "archived": false, "hash": "b90d74bfa5b96de75a850ecb140a5ec3142b82db", "submitter": { "id": 38285, "url": "http://patchwork.ozlabs.org/api/people/38285/?format=api", "name": "Clayton Shotwell", "email": "clshotwe@rockwellcollins.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/buildroot/patch/1387485489-4186-18-git-send-email-clshotwe@rockwellcollins.com/mbox/", "series": [], "comments": "http://patchwork.ozlabs.org/api/patches/303729/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/303729/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<buildroot-bounces@busybox.net>", "X-Original-To": [ "incoming@patchwork.ozlabs.org", "buildroot@lists.busybox.net" ], "Delivered-To": [ "patchwork-incoming@bilbo.ozlabs.org", "buildroot@osuosl.org" ], "Received": [ "from whitealder.osuosl.org (whitealder.osuosl.org\n\t[140.211.166.138])\n\tby ozlabs.org (Postfix) with ESMTP id EBB192C0079\n\tfor <incoming@patchwork.ozlabs.org>;\n\tFri, 20 Dec 2013 07:40:10 +1100 (EST)", "from localhost (localhost [127.0.0.1])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id 4D7D28C5C9;\n\tThu, 19 Dec 2013 20:40:10 +0000 (UTC)", "from whitealder.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id MkgNMZF7luc8; Thu, 19 Dec 2013 20:40:06 +0000 (UTC)", "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id 6D7338C8D9;\n\tThu, 19 Dec 2013 20:39:07 +0000 (UTC)", "from whitealder.osuosl.org (whitealder.osuosl.org\n\t[140.211.166.138])\n\tby ash.osuosl.org (Postfix) with ESMTP id C8B441BF99B\n\tfor <buildroot@lists.busybox.net>;\n\tThu, 19 Dec 2013 20:38:55 +0000 (UTC)", "from localhost (localhost [127.0.0.1])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id C71268C5BE\n\tfor <buildroot@lists.busybox.net>;\n\tThu, 19 Dec 2013 20:38:55 +0000 (UTC)", "from whitealder.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id OjZfbUasdu1D for <buildroot@lists.busybox.net>;\n\tThu, 19 Dec 2013 20:38:51 +0000 (UTC)", "from secvs01.rockwellcollins.com (secvs01.rockwellcollins.com\n\t[205.175.225.240])\n\tby whitealder.osuosl.org (Postfix) with ESMTPS id 2EDD78C5F5\n\tfor <buildroot@busybox.net>; Thu, 19 Dec 2013 20:38:42 +0000 (UTC)", "from nosuchhost.198.131.in-addr.arpa (HELO\n\tcollinscrsmtp01.rockwellcollins.com) ([131.198.63.132])\n\tby mail-virt.rockwellcollins.com with ESMTP;\n\t19 Dec 2013 14:38:30 -0600", "from nyx ([131.198.63.11])\n\tby collinscrsmtp01.rockwellcollins.com (Lotus Domino Release 8.5.2FP2\n\tHF162) with ESMTP id 2013121914382889-2990164 ;\n\tThu, 19 Dec 2013 14:38:28 -0600 " ], "X-Virus-Scanned": [ "amavisd-new at osuosl.org", "amavisd-new at osuosl.org" ], "X-Greylist": "domain auto-whitelisted by SQLgrey-1.7.6", "From": "Clayton Shotwell <clshotwe@rockwellcollins.com>", "To": "buildroot@busybox.net", "Date": "Thu, 19 Dec 2013 14:38:06 -0600", "Message-Id": "<1387485489-4186-18-git-send-email-clshotwe@rockwellcollins.com>", "X-Mailer": "git-send-email 1.7.1", "In-Reply-To": "<1387485489-4186-1-git-send-email-clshotwe@rockwellcollins.com>", "References": "<1387485489-4186-1-git-send-email-clshotwe@rockwellcollins.com>", "X-MIMETrack": "Itemize by SMTP Server on\n\tCollinsCRSMTP01/CedarRapids/Collins/Rockwell(Release\n\t8.5.2FP2 HF162|May 16, 2011) at 12/19/2013 02:38:28 PM,\n\tSerialize by Router on\n\tCollinsCRSMTP01/CedarRapids/Collins/Rockwell(Release\n\t8.5.2FP2 HF162|May 16, 2011) at 12/19/2013 02:38:30 PM,\n\tSerialize complete at 12/19/2013 02:38:30 PM", "X-TNEFEvaluated": "1", "Cc": "Thomas Petazzoni <thomas.petazzoni@free-electrons.com>,\n\tClayton Shotwell <clshotwe@rockwellcollins.com>", "Subject": "[Buildroot] [PATCH v5 17/20] busybox: add option to enable SELinux\n\tsupport", "X-BeenThere": "buildroot@busybox.net", "X-Mailman-Version": "2.1.14", "Precedence": "list", "List-Id": "Discussion and development of buildroot <buildroot.busybox.net>", "List-Unsubscribe": "<http://lists.busybox.net/mailman/options/buildroot>,\n\t<mailto:buildroot-request@busybox.net?subject=unsubscribe>", "List-Archive": "<http://lists.busybox.net/pipermail/buildroot>", "List-Post": "<mailto:buildroot@busybox.net>", "List-Help": "<mailto:buildroot-request@busybox.net?subject=help>", "List-Subscribe": "<http://lists.busybox.net/mailman/listinfo/buildroot>,\n\t<mailto:buildroot-request@busybox.net?subject=subscribe>", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=\"us-ascii\"", "Content-Transfer-Encoding": "7bit", "Errors-To": "buildroot-bounces@busybox.net", "Sender": "buildroot-bounces@busybox.net" }, "content": "From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>\n\nAdd a configure option to enable the SELinux support in the\nbusybox configuration from the Buildroot menuconfig.\n\nSigned-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>\nSigned-off-by: Clayton Shotwell <clshotwe@rockwellcollins.com>\n---\nChanges v4 -> v5:\n - No changes.\nChanges v1 -> v4\n - Did not exist.\n---\n ...ags-strip-non-l-arguments-returned-by-pkg.patch | 28 ++++++++++++++++++++\n package/busybox/Config.in | 3 ++\n package/busybox/busybox.mk | 8 +++++\n 3 files changed, 39 insertions(+), 0 deletions(-)\n create mode 100644 package/busybox/1.21.1/0004-Makefile.flags-strip-non-l-arguments-returned-by-pkg.patch", "diff": "diff --git a/package/busybox/1.21.1/0004-Makefile.flags-strip-non-l-arguments-returned-by-pkg.patch b/package/busybox/1.21.1/0004-Makefile.flags-strip-non-l-arguments-returned-by-pkg.patch\nnew file mode 100644\nindex 0000000..105626c\n--- /dev/null\n+++ b/package/busybox/1.21.1/0004-Makefile.flags-strip-non-l-arguments-returned-by-pkg.patch\n@@ -0,0 +1,28 @@\n+From 67eb23d2be8aba3c474dac81a15b0fa11e5847b7 Mon Sep 17 00:00:00 2001\n+From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>\n+Date: Mon, 25 Nov 2013 22:51:53 +0100\n+Subject: [PATCH] Makefile.flags: strip non -l arguments returned by pkg-config\n+\n+Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>\n+---\n+ Makefile.flags | 4 +++-\n+ 1 file changed, 3 insertions(+), 1 deletion(-)\n+\n+diff --git a/Makefile.flags b/Makefile.flags\n+index 307afa7..885e323 100644\n+--- a/Makefile.flags\n++++ b/Makefile.flags\n+@@ -141,7 +141,9 @@ ifeq ($(CONFIG_SELINUX),y)\n+ SELINUX_PC_MODULES = libselinux libsepol\n+ $(eval $(call pkg_check_modules,SELINUX,$(SELINUX_PC_MODULES)))\n+ CPPFLAGS += $(SELINUX_CFLAGS)\n+-LDLIBS += $(if $(SELINUX_LIBS),$(SELINUX_LIBS:-l%=%),$(SELINUX_PC_MODULES:lib%=%))\n++LDLIBS += $(if $(SELINUX_LIBS),\\\n++ $(patsubst -l%,%,$(filter -l%,$(SELINUX_LIBS))),\\\n++ $(SELINUX_PC_MODULES:lib%=%))\n+ endif\n+ \n+ ifeq ($(CONFIG_EFENCE),y)\n+-- \n+1.8.1.2\n+\ndiff --git a/package/busybox/Config.in b/package/busybox/Config.in\nindex 8df941b..733c560 100644\n--- a/package/busybox/Config.in\n+++ b/package/busybox/Config.in\n@@ -62,6 +62,9 @@ config BR2_PACKAGE_BUSYBOX_INDIVIDUAL_BINARIES\n comment \"Busybox individual binaries depends on dynamic libraries\"\n \tdepends on BR2_PREFER_STATIC_LIB\n \n+config BR2_PACKAGE_BUSYBOX_SELINUX\n+\tbool \"Enable SELinux support\"\n+\n config BR2_PACKAGE_BUSYBOX_WATCHDOG\n \tbool \"Install the watchdog daemon startup script\"\n \thelp\ndiff --git a/package/busybox/busybox.mk b/package/busybox/busybox.mk\nindex 98ee288..ba07a8e 100644\n--- a/package/busybox/busybox.mk\n+++ b/package/busybox/busybox.mk\n@@ -184,6 +184,13 @@ define BUSYBOX_INSTALL_INDIVIDUAL_BINARIES\n endef\n endif\n \n+ifeq ($(BR2_PACKAGE_BUSYBOX_SELINUX),y)\n+BUSYBOX_DEPENDENCIES += host-pkgconf libselinux libsepol\n+define BUSYBOX_SET_SELINUX\n+\t$(call KCONFIG_ENABLE_OPT,CONFIG_SELINUX,$(BUSYBOX_BUILD_CONFIG))\n+endef\n+endif\n+\n define BUSYBOX_INSTALL_LOGGING_SCRIPT\n \tif grep -q CONFIG_SYSLOGD=y $(@D)/.config; then \\\n \t\t[ -f $(TARGET_DIR)/etc/init.d/S01logging ] || \\\n@@ -220,6 +227,7 @@ define BUSYBOX_CONFIGURE_CMDS\n \t$(BUSYBOX_SET_INIT)\n \t$(BUSYBOX_SET_WATCHDOG)\n \t$(BUSYBOX_CONFIGURE_INDIVIDUAL_BINARIES)\n+\t$(BUSYBOX_SET_SELINUX)\n \t@yes \"\" | $(MAKE) ARCH=$(KERNEL_ARCH) CROSS_COMPILE=\"$(TARGET_CROSS)\" \\\n \t\t-C $(@D) oldconfig\n endef\n", "prefixes": [ "v5", "17/20" ] }