This cmdline reading trick utterly fails when doing Debian builds. Since
there doesn't seem to be a good reason for this, just drop it and use a
literal instead.

Signed-off-by: Kees Cook <[email protected]>

Index: libseccomp-1.0.0/macros.mk
===================================================================
--- libseccomp-1.0.0.orig/macros.mk     2012-07-27 15:39:00.000000000 -0700
+++ libseccomp-1.0.0/macros.mk  2012-08-03 17:27:24.563891815 -0700
@@ -144,15 +144,13 @@
 
 ifeq ($(V),0)
        INSTALL_PC_MACRO = \
-           @echo " INSTALL $$(cat /proc/$$$$/cmdline | awk '{print $$(NF)}')" \
-                 " ($(INSTALL_LIB_DIR)/pkgconfig)";
+           @echo " INSTALL libseccomp.pc ($(INSTALL_LIB_DIR)/pkgconfig)";
 endif
 INSTALL_PC_MACRO += \
                $(INSTALL) -o $(INSTALL_OWNER) -g $(INSTALL_GROUP) \
                        -d "$(INSTALL_LIB_DIR)/pkgconfig"; \
                $(INSTALL) -o $(INSTALL_OWNER) -g $(INSTALL_GROUP) -m 0644 \
-                       "$$(cat /proc/$$$$/cmdline | awk '{print $$(NF)}')" \
-                       "$(INSTALL_LIB_DIR)/pkgconfig"; \#
+                       "libseccomp.pc" "$(INSTALL_LIB_DIR)/pkgconfig"; \#
 
 ifeq ($(V),0)
        INSTALL_INC_MACRO = @echo " INSTALL $^ ($(INSTALL_INC_DIR))";

-- 
Kees Cook
Chrome OS Security

------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
_______________________________________________
libseccomp-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libseccomp-discuss

Reply via email to