From: Jean-Marc Pigeon (Delson) Date: Tue, 17 Jun 2025 23:10:04 +0000 (-0400) Subject: Trying to understand why mariadb is needed X-Git-Tag: tag-0.9~127 X-Git-Url: https://jmp-git.ovh.safe.ca/?a=commitdiff_plain;h=5aa1751a5b0c4500aa4204fabf0519b733fa4c6e;p=jmp%2Fmailleur Trying to understand why mariadb is needed --- diff --git a/Makefile b/Makefile index a7f3a96..8b9b9aa 100644 --- a/Makefile +++ b/Makefile @@ -192,10 +192,6 @@ install : shell \ support \ $(DESTDIR)/$(LIBDIR)/$(APPN)/ - @ cp -a \ - shared/lib* \ - nodb/lib* \ - $(DESTDIR)/$(LIBDIR)/ #-------------------------------------------------------------------- SUBDIR = \ diff --git a/Makefile.dist b/Makefile.dist index e8d36e7..10071d6 100644 --- a/Makefile.dist +++ b/Makefile.dist @@ -25,7 +25,6 @@ rpm : cleanrpm tarfile spec @ echo "'$(APLV)' RPM source file, ready" tarfile : clean - @ $(MAKE) -s -C lib shared @ mkdir -p $(SRC) @ echo "'$(APLV)' tar file, building" @ mkdir -p \ @@ -35,7 +34,6 @@ tarfile : clean $(APLV)/lib \ $(APLV)/linux \ $(APLV)/nodb \ - $(APLV)/shared \ $(APLV)/shell \ $(APLV)/support \ $(APLV) @@ -48,12 +46,6 @@ tarfile : clean @ cp -a \ shell/getsysos.sh \ $(APLV)/shell/ - @ cp -a \ - shared/* \ - $(APLV)/shared/ - @ cp -a \ - nodb/* \ - $(APLV)/nodb/ @ cp -a support/*.sh \ $(APLV)/support @ cp -a app/Makefile $(APLV)/app/Makefile diff --git a/app/Makefile b/app/Makefile index 47cd376..5f35360 100644 --- a/app/Makefile +++ b/app/Makefile @@ -40,11 +40,7 @@ SRC= \ CC = gcc LD = gcc -g CFLAGS = -I ../lib -Wall $(OPTIME) -#LIBMAIL= ../lib/libmail.a -LIBMAIL = \ - ../shared/libposql.so \ - ../nodb/libmanql.so \ - ../lib/libmail.a +LIBMAIL= ../lib/libmail.a LIBS = $(LIBMAIL) \ -luuid \ diff --git a/lib/Makefile b/lib/Makefile index eb4a383..7d8a6a7 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -13,88 +13,7 @@ prod : toremake @ echo "library compiled in '$@' mode, now ready" clean : - - rm -fr ../shared/* ../nodb/* *.so.* *.o *.a *.tar.gz - -#-------------------------------------------------------------------- -#DATABASE definitions -POSTGRESQL =1 -MYSQL =2 -#-------------------------------------------------------------------- -#database definition USING SHARED (test a way to do it) -shared : libposql libmasql libponql libmanql - @ mv -f libposql.so.1.0 ../shared - @ mv -f libmasql.so.1.0 ../shared - @ ln -nsf libposql.so.1.0 ../shared/libposql.so.1 - @ ln -nsf libposql.so.1.0 ../shared/libposql.so - @ ln -nsf libmasql.so.1.0 ../shared/libmasql.so.1 - @ ln -nsf libmasql.so.1.0 ../shared/libmasql.so - @ mv -f libponql.so.1.0 ../nodb - @ mv -f libmanql.so.1.0 ../nodb - @ ln -nsf libponql.so.1.0 ../nodb/libponql.so.1 - @ ln -nsf libponql.so.1.0 ../nodb/libponql.so - @ ln -nsf libmanql.so.1.0 ../nodb/libmanql.so.1 - @ ln -nsf libmanql.so.1.0 ../nodb/libmanql.so - @ echo "shared and nodb library ready" - -libposql: unipos.o - @ $(CC) \ - -shared \ - -Wl,-soname,$@.so.1 \ - -o $@.so.1.0 \ - $< - -libponql: no-unipos.o - @ $(CC) \ - -shared \ - -Wl,-soname,$@.so.1 \ - -o $@.so.1.0 \ - $< - -libmasql: unimar.o - @ $(CC) \ - -shared \ - -Wl,-soname,$@.so.1 \ - -o $@.so.1.0 \ - $< - -libmanql: no-unimar.o - @ $(CC) \ - -shared \ - -Wl,-soname,$@.so.1 \ - -o $@.so.1.0 \ - $< - -unipos.o: unipos.h - @ $(CC) \ - $(CFLAGS) \ - -c -fPIC \ - -o $@ \ - -DDATABASE=POSTGRESQL \ - unipos.c - -no-unipos.o: - @ $(CC) \ - $(CFLAGS) \ - -c -fPIC \ - -o $@ \ - -DDATABASE=0 \ - unipos.c - -unimar.o: unimar.h - @ $(CC) \ - $(CFLAGS) \ - -c -fPIC \ - -o $@ \ - -DDATABASE=MYSQL \ - unimar.c - -no-unimar.o: - @ $(CC) \ - $(CFLAGS) \ - -c -fPIC \ - -o $@ \ - -DDATABASE=0 \ - unimar.c + - rm -fr *.so.* *.o *.a *.tar.gz #-------------------------------------------------------------------- #Equivalences @@ -104,11 +23,11 @@ OBJS= \ lvleml.o \ gesspf.o gestcp.o geseml.o \ devlog.o devsoc.o devsql.o \ - unidns.o unieml.o unipar.o \ - uniprc.o unisig.o unitls.o \ + unidns.o unieml.o unimar.o unipar.o \ + unipos.o uniprc.o unisig.o unitls.o \ subafn.o subrou.o -objs : $(OBJS) shared +objs : $(OBJS) @ ar -cr $(LIBMAIL) $(OBJS) #-------------------------------------------------------------------- @@ -165,13 +84,17 @@ unieml.o: \ subrou.h \ unieml.h unieml.c +unimar.o: \ + subrou.h \ + unimar.h unimar.c + unipar.o: \ subrou.h \ unipar.h unipar.c -unios.o: \ +unipos.o: \ subrou.h \ - unios.h unios.c + unipos.h unipos.c uniprc.o: \ subrou.h \ diff --git a/mailleur.spec.in b/mailleur.spec.in index b66e3c3..0d33752 100644 --- a/mailleur.spec.in +++ b/mailleur.spec.in @@ -143,8 +143,6 @@ Requires : postgresql-server #----------------------------------------------------------------------------- %files postgresql %defattr(-,root,root,-) -%{_libdir}/libposql.so* -%{_libdir}/libmanql.so* #============================================================================= %package mysql @@ -163,8 +161,6 @@ Requires : %{name} = %{version}-%{release} #----------------------------------------------------------------------------- %files mysql %defattr(-,root,root,-) -%{_libdir}/libmasql.so* -%{_libdir}/libponql.so* #============================================================================= %prep