mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-09-08 20:59:23 +02:00
This module had a dependency on pgcrypto's md5.c that got removed by
b67b57a
. Instead of the code from pgcrypto, this code can just use the
new cryptohash routines for MD5 as a drop-in replacement, so let's just
do this switch. This has also the merit to simplify a bit the
compilation of uuid-ossp.
This requires --with-uuid to be reproduced, and I have used e2fs as a
way to reproduce the failure, then test this commit.
Per reports from buildfarm members longfin, florican and sifaka.
Discussion: https://postgr.es/m/X9GToVd3QmWeNvj8@paquier.xyz
37 lines
729 B
Makefile
37 lines
729 B
Makefile
# contrib/uuid-ossp/Makefile
|
|
|
|
MODULE_big = uuid-ossp
|
|
OBJS = \
|
|
$(UUID_EXTRA_OBJS) \
|
|
$(WIN32RES) \
|
|
uuid-ossp.o
|
|
|
|
EXTENSION = uuid-ossp
|
|
DATA = uuid-ossp--1.1.sql uuid-ossp--1.0--1.1.sql
|
|
PGFILEDESC = "uuid-ossp - UUID generation"
|
|
|
|
REGRESS = uuid_ossp
|
|
|
|
SHLIB_LINK += $(UUID_LIBS)
|
|
|
|
# We copy some needed files verbatim from pgcrypto
|
|
pgcrypto_src = $(top_srcdir)/contrib/pgcrypto
|
|
|
|
PG_CPPFLAGS = -I$(pgcrypto_src)
|
|
|
|
EXTRA_CLEAN = sha1.c
|
|
|
|
ifdef USE_PGXS
|
|
PG_CONFIG = pg_config
|
|
PGXS := $(shell $(PG_CONFIG) --pgxs)
|
|
include $(PGXS)
|
|
else
|
|
subdir = contrib/uuid-ossp
|
|
top_builddir = ../..
|
|
include $(top_builddir)/src/Makefile.global
|
|
include $(top_srcdir)/contrib/contrib-global.mk
|
|
endif
|
|
|
|
sha1.c: % : $(pgcrypto_src)/%
|
|
rm -f $@ && $(LN_S) $< .
|