pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/pkgtools/cwrappers



Module Name:    pkgsrc
Committed By:   khorben
Date:           Fri Oct 27 20:59:59 UTC 2017

Modified Files:
        pkgsrc/pkgtools/cwrappers: Makefile
        pkgsrc/pkgtools/cwrappers/files/bin: Makefile base-wrapper.c common.h
Added Files:
        pkgsrc/pkgtools/cwrappers/files/bin: normalise-as.c

Log Message:
Set the correct operation mode in the wrapper for as(1)

This notably fixes building lang/g95 with PKGSRC_MKPIE=yes.

Reviewed by joerg@


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 pkgsrc/pkgtools/cwrappers/Makefile
cvs rdiff -u -r1.5 -r1.6 pkgsrc/pkgtools/cwrappers/files/bin/Makefile \
    pkgsrc/pkgtools/cwrappers/files/bin/base-wrapper.c
cvs rdiff -u -r1.6 -r1.7 pkgsrc/pkgtools/cwrappers/files/bin/common.h
cvs rdiff -u -r0 -r1.1 pkgsrc/pkgtools/cwrappers/files/bin/normalise-as.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/pkgtools/cwrappers/Makefile
diff -u pkgsrc/pkgtools/cwrappers/Makefile:1.20 pkgsrc/pkgtools/cwrappers/Makefile:1.21
--- pkgsrc/pkgtools/cwrappers/Makefile:1.20     Sun Jun 11 19:34:43 2017
+++ pkgsrc/pkgtools/cwrappers/Makefile  Fri Oct 27 20:59:59 2017
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.20 2017/06/11 19:34:43 joerg Exp $
+# $NetBSD: Makefile,v 1.21 2017/10/27 20:59:59 khorben Exp $
 
-PKGNAME=               cwrappers-20170611
+PKGNAME=               cwrappers-20171027
 CATEGORIES=            pkgtools sysutils
 
 MAINTAINER=            joerg%NetBSD.org@localhost

Index: pkgsrc/pkgtools/cwrappers/files/bin/Makefile
diff -u pkgsrc/pkgtools/cwrappers/files/bin/Makefile:1.5 pkgsrc/pkgtools/cwrappers/files/bin/Makefile:1.6
--- pkgsrc/pkgtools/cwrappers/files/bin/Makefile:1.5    Fri Dec  9 22:25:28 2016
+++ pkgsrc/pkgtools/cwrappers/files/bin/Makefile        Fri Oct 27 20:59:59 2017
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2016/12/09 22:25:28 joerg Exp $
+# $NetBSD: Makefile,v 1.6 2017/10/27 20:59:59 khorben Exp $
 #
 PROGS= as-wrapper cc-wrapper c++-wrapper cpp-wrapper f77-wrapper \
        imake-wrapper ld-wrapper libtool-wrapper shlibtool-wrapper
@@ -16,7 +16,7 @@ LDADD+=               -lnbcompat
 
 CC_SRCS=       ${LIB_SRCS} generic-transform-cc.c normalise-cc.c
 
-SRCS.as-wrapper=       ${CC_SRCS} as-wrapper.c
+SRCS.as-wrapper=       ${CC_SRCS} as-wrapper.c normalise-as.c
 SRCS.cc-wrapper=       ${CC_SRCS} cc-wrapper.c transform-cc.c
 SRCS.c++-wrapper=      ${CC_SRCS} c++-wrapper.c transform-cc.c
 SRCS.cpp-wrapper=      ${CC_SRCS} cpp-wrapper.c
Index: pkgsrc/pkgtools/cwrappers/files/bin/base-wrapper.c
diff -u pkgsrc/pkgtools/cwrappers/files/bin/base-wrapper.c:1.5 pkgsrc/pkgtools/cwrappers/files/bin/base-wrapper.c:1.6
--- pkgsrc/pkgtools/cwrappers/files/bin/base-wrapper.c:1.5      Sun Jun 11 19:34:43 2017
+++ pkgsrc/pkgtools/cwrappers/files/bin/base-wrapper.c  Fri Oct 27 20:59:59 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: base-wrapper.c,v 1.5 2017/06/11 19:34:43 joerg Exp $ */
+/* $NetBSD: base-wrapper.c,v 1.6 2017/10/27 20:59:59 khorben Exp $ */
 
 /*-
  * Copyright (c) 2007, 2017 Joerg Sonnenberger <joerg%NetBSD.org@localhost>.
@@ -128,7 +128,9 @@ main(int argc, char **argv)
                goto skip_transforms;
 #endif
 
-#if defined(WRAPPER_LD)
+#if defined(WRAPPER_AS)
+       operation_mode_as();
+#elif defined(WRAPPER_LD)
        operation_mode_ld(&args);
 #else
        operation_mode_cc(&args);

Index: pkgsrc/pkgtools/cwrappers/files/bin/common.h
diff -u pkgsrc/pkgtools/cwrappers/files/bin/common.h:1.6 pkgsrc/pkgtools/cwrappers/files/bin/common.h:1.7
--- pkgsrc/pkgtools/cwrappers/files/bin/common.h:1.6    Sun Jun 11 19:34:43 2017
+++ pkgsrc/pkgtools/cwrappers/files/bin/common.h        Fri Oct 27 20:59:59 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: common.h,v 1.6 2017/06/11 19:34:43 joerg Exp $ */
+/* $NetBSD: common.h,v 1.7 2017/10/27 20:59:59 khorben Exp $ */
 
 /*-
  * Copyright (c) 2009, 2017 Joerg Sonnenberger <joerg%NetBSD.org@localhost>.
@@ -94,6 +94,8 @@ void  *xrealloc(void *, size_t);
 char   *xstrdup(const char *);
 char   *xstrndup(const char *, size_t);
 
+void   operation_mode_as(void);
+
 void   operation_mode_cc(struct arglist *);
 void   normalise_cc(struct arglist *);
 void   cleanup_cc(struct arglist *args);

Added files:

Index: pkgsrc/pkgtools/cwrappers/files/bin/normalise-as.c
diff -u /dev/null pkgsrc/pkgtools/cwrappers/files/bin/normalise-as.c:1.1
--- /dev/null   Fri Oct 27 20:59:59 2017
+++ pkgsrc/pkgtools/cwrappers/files/bin/normalise-as.c  Fri Oct 27 20:59:59 2017
@@ -0,0 +1,38 @@
+/* $NetBSD: normalise-as.c,v 1.1 2017/10/27 20:59:59 khorben Exp $ */
+
+/*-
+ * Copyright (c) 2017 Pierre Pronchery <khorben%defora.org@localhost>.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in
+ *    the documentation and/or other materials provided with the
+ *    distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+ * FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE
+ * COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
+ * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ */
+
+#include "common.h"
+
+void
+operation_mode_as(void)
+{
+       current_operation_mode = mode_assemble;
+}



Home | Main Index | Thread Index | Old Index