[exim-cvs] Add dummy file to miscmods archive to ensure non-…

Página Principal
Apagar esta mensagem
Responder a esta mensagem
Autor: Exim Git Commits Mailing List
Data:  
Para: exim-cvs
Assunto: [exim-cvs] Add dummy file to miscmods archive to ensure non-empty
Gitweb: https://git.exim.org/exim.git/commitdiff/2bb42e2899db219f4a598530b43e06b1b977a81e
Commit:     2bb42e2899db219f4a598530b43e06b1b977a81e
Parent:     1e32c64d1c2cc8cd6e26a489d47ceff350587669
Author:     Jeremy Harris <jgh146exb@???>
AuthorDate: Sun Sep 1 20:15:21 2024 +0100
Committer:  Jeremy Harris <jgh146exb@???>
CommitDate: Wed Sep 4 09:41:10 2024 +0100


    Add dummy file to miscmods archive to ensure non-empty
---
 src/scripts/MakeLinks     |  4 ++--
 src/src/miscmods/Makefile |  4 +++-
 src/src/miscmods/dummy.c  | 11 +++++++++++
 3 files changed, 16 insertions(+), 3 deletions(-)


diff --git a/src/scripts/MakeLinks b/src/scripts/MakeLinks
index 0be066352..f657abd5b 100755
--- a/src/scripts/MakeLinks
+++ b/src/scripts/MakeLinks
@@ -32,7 +32,7 @@ d="lookups"
mkdir $d
cd $d
# Makefile is generated
-for f in README cdb.c dbmdb.c dnsdb.c dsearch.c ibase.c json.c ldap.h ldap.c \
+for f in README cdb.c dbmdb.c dnsdb.c dsearch.c ibase.c json.c ldap.c \
lmdb.c lsearch.c mysql.c nis.c nisplus.c oracle.c passwd.c \
pgsql.c readsock.c redis.c spf.c sqlite.c testdb.c whoson.c \
lf_functions.h lf_check_file.c lf_quote.c lf_sqlperform.c
@@ -94,7 +94,7 @@ d="miscmods"
mkdir $d
cd $d
# Makefile is generated
-for f in dmarc.c dmarc.h dmarc_api.h spf.c spf.h spf_api.h
+for f in dmarc.c dmarc.h dmarc_api.h dummy.c spf.c spf.h spf_api.h
do
ln -s ../../src/$d/$f $f
done
diff --git a/src/src/miscmods/Makefile b/src/src/miscmods/Makefile
index d20b7a9f1..3bc535720 100644
--- a/src/src/miscmods/Makefile
+++ b/src/src/miscmods/Makefile
@@ -10,6 +10,7 @@

# MAGIC-TAG-MODS-OBJ-RULES-GO-HERE

+OBJ += dummy.o

 all:        miscmods.a $(MODS)


@@ -26,7 +27,8 @@ miscmods.a:    $(OBJ)
 .c.so:;         @echo "$(CC) -shared $*.c"
         $(FE)$(CC) $(SUPPORT_$*_INCLUDE) $(SUPPORT_$*_LIBS) -DDYNLOOKUP $(CFLAGS_DYNAMIC) $(CFLAGS) $(INCLUDE) $(DLFLAGS) $*.c -o $@


-spf.o spf.so:        $(HDRS) spf.h spf.c
 dmarc.o dmarc.so:    $(HDRS) ../pdkim/pdkim.h dmarc.h dmarc.c
+dummy.o:        dummy.c
+spf.o spf.so:        $(HDRS) spf.h spf.c


 # End
diff --git a/src/src/miscmods/dummy.c b/src/src/miscmods/dummy.c
new file mode 100644
index 000000000..997527d7f
--- /dev/null
+++ b/src/src/miscmods/dummy.c
@@ -0,0 +1,11 @@
+/*************************************************
+*     Exim - an Internet mail transport agent    *
+*************************************************/
+
+/* Copyright (c) The Exim Maintainers 2024 */
+/* See the file NOTICE for conditions of use and distribution. */
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
+/* Dummy source just so that miscmods.a is never empty */
+
+int dummy;


--
## subscription configuration (requires account):
## https://lists.exim.org/mailman3/postorius/lists/exim-cvs.lists.exim.org/
## unsubscribe (doesn't require an account):
## exim-cvs-unsubscribe@???
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/