pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Patch for libdvdplay-1.0.1nb4
Hi,
i am using NetBSD9/sparc64 with pkgsrc-2020Q2.
The build of multimedia/libdvdplay was failing with libtool
complaining a lot for missing tags:
/usr/pkgsrc/multimedia/libdvdplay/work/libdvdplay-1.0.1/src
gmake[3]: Entering directory
'/usr/pkgsrc/multimedia/libdvdplay/work/libdvdplay-1.0.1/src'
if /bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..
-I/usr/pkg/include -DTRACE -D_LARGEFILE64_SOURCE
-D_FILE_OFFSET_BITS=64 -DDVDPLAY_DIST -O2 -D_FORTIFY_SOURCE=2
-I/usr/pkg/include -MT libdvdplay_la-accessor.lo -MD -MP -MF
".deps/libdvdplay_la-accessor.Tpo" \
-c -o libdvdplay_la-accessor.lo `test -f 'accessor.c' || echo
'./'`accessor.c; \
then mv ".deps/libdvdplay_la-accessor.Tpo" ".deps/libdvdplay_la-accessor.Plo"; \
else rm -f ".deps/libdvdplay_la-accessor.Tpo"; exit 1; \
fi
libtool: compile: unable to infer tagged configuration
libtool: error: specify a tag with '--tag'
gmake[3]: *** [Makefile:299: libdvdplay_la-accessor.lo] Error 1
As I don't know if there is a way to pass this via pkgsrc
Makefile-options, i have modified
/usr/pkgsrc/multimedia/libdvdplay/work/libdvdplay-1.0.1/src/Makefile
bash-5.0# diff -u Makefile.broken Makefile
--- Makefile.broken 2020-09-01 13:47:02.554795978 +0200
+++ Makefile 2020-09-01 13:49:44.343800078 +0200
@@ -169,7 +169,7 @@
LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) \
$(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
CCLD = $(CC)
-LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
+LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
$(AM_LDFLAGS) $(LDFLAGS) -o $@
DIST_SOURCES = $(libdvdplay_la_SOURCES)
@@ -296,7 +296,7 @@
# $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS)
$(CPPFLAGS) $(libdvdplay_la_CFLAGS) $(CFLAGS) -c -o
libdvdplay_la-accessor.obj `if test -f 'accessor.c'; then $(CYGPATH_W)
'accessor.c'; else $(CYGPATH_W) '$(srcdir)/accessor.c'; fi`
libdvdplay_la-accessor.lo: accessor.c
- if $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES)
$(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdvdplay_la_CFLAGS)
$(CFLAGS) -MT libdvdplay_la-accessor.lo -MD -MP -MF
"$(DEPDIR)/libdvdplay_la-accessor.Tpo" \
+ if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS)
$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS)
$(libdvdplay_la_CFLAGS) $(CFLAGS) -MT libdvdplay_la-accessor.lo -MD
-MP -MF "$(DEPDIR)/libdvdplay_la-accessor.Tpo" \
-c -o libdvdplay_la-accessor.lo `test -f 'accessor.c' ||
echo '$(srcdir)/'`accessor.c; \
then mv "$(DEPDIR)/libdvdplay_la-accessor.Tpo"
"$(DEPDIR)/libdvdplay_la-accessor.Plo"; \
else rm -f "$(DEPDIR)/libdvdplay_la-accessor.Tpo"; exit 1; \
@@ -329,7 +329,7 @@
# $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS)
$(CPPFLAGS) $(libdvdplay_la_CFLAGS) $(CFLAGS) -c -o
libdvdplay_la-command.obj `if test -f 'command.c'; then $(CYGPATH_W)
'command.c'; else $(CYGPATH_W) '$(srcdir)/command.c'; fi`
libdvdplay_la-command.lo: command.c
- if $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES)
$(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdvdplay_la_CFLAGS)
$(CFLAGS) -MT libdvdplay_la-command.lo -MD -MP -MF
"$(DEPDIR)/libdvdplay_la-command.Tpo" \
+ if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS)
$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS)
$(libdvdplay_la_CFLAGS) $(CFLAGS) -MT libdvdplay_la-command.lo -MD -MP
-MF "$(DEPDIR)/libdvdplay_la-command.Tpo" \
-c -o libdvdplay_la-command.lo `test -f 'command.c' || echo
'$(srcdir)/'`command.c; \
then mv "$(DEPDIR)/libdvdplay_la-command.Tpo"
"$(DEPDIR)/libdvdplay_la-command.Plo"; \
else rm -f "$(DEPDIR)/libdvdplay_la-command.Tpo"; exit 1; \
@@ -362,7 +362,7 @@
# $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS)
$(CPPFLAGS) $(libdvdplay_la_CFLAGS) $(CFLAGS) -c -o
libdvdplay_la-dvdplay.obj `if test -f 'dvdplay.c'; then $(CYGPATH_W)
'dvdplay.c'; else $(CYGPATH_W) '$(srcdir)/dvdplay.c'; fi`
libdvdplay_la-dvdplay.lo: dvdplay.c
- if $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES)
$(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdvdplay_la_CFLAGS)
$(CFLAGS) -MT libdvdplay_la-dvdplay.lo -MD -MP -MF
"$(DEPDIR)/libdvdplay_la-dvdplay.Tpo" \
+ if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS)
$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS)
$(libdvdplay_la_CFLAGS) $(CFLAGS) -MT libdvdplay_la-dvdplay.lo -MD -MP
-MF "$(DEPDIR)/libdvdplay_la-dvdplay.Tpo" \
-c -o libdvdplay_la-dvdplay.lo `test -f 'dvdplay.c' || echo
'$(srcdir)/'`dvdplay.c; \
then mv "$(DEPDIR)/libdvdplay_la-dvdplay.Tpo"
"$(DEPDIR)/libdvdplay_la-dvdplay.Plo"; \
else rm -f "$(DEPDIR)/libdvdplay_la-dvdplay.Tpo"; exit 1; \
@@ -395,7 +395,7 @@
# $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS)
$(CPPFLAGS) $(libdvdplay_la_CFLAGS) $(CFLAGS) -c -o
libdvdplay_la-info.obj `if test -f 'info.c'; then $(CYGPATH_W)
'info.c'; else $(CYGPATH_W) '$(srcdir)/info.c'; fi`
libdvdplay_la-info.lo: info.c
- if $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES)
$(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdvdplay_la_CFLAGS)
$(CFLAGS) -MT libdvdplay_la-info.lo -MD -MP -MF
"$(DEPDIR)/libdvdplay_la-info.Tpo" \
+ if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS)
$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS)
$(libdvdplay_la_CFLAGS) $(CFLAGS) -MT libdvdplay_la-info.lo -MD -MP
-MF "$(DEPDIR)/libdvdplay_la-info.Tpo" \
-c -o libdvdplay_la-info.lo `test -f 'info.c' || echo
'$(srcdir)/'`info.c; \
then mv "$(DEPDIR)/libdvdplay_la-info.Tpo"
"$(DEPDIR)/libdvdplay_la-info.Plo"; \
else rm -f "$(DEPDIR)/libdvdplay_la-info.Tpo"; exit 1; \
@@ -428,7 +428,7 @@
# $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS)
$(CPPFLAGS) $(libdvdplay_la_CFLAGS) $(CFLAGS) -c -o
libdvdplay_la-msg.obj `if test -f 'msg.c'; then $(CYGPATH_W) 'msg.c';
else $(CYGPATH_W) '$(srcdir)/msg.c'; fi`
libdvdplay_la-msg.lo: msg.c
- if $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES)
$(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdvdplay_la_CFLAGS)
$(CFLAGS) -MT libdvdplay_la-msg.lo -MD -MP -MF
"$(DEPDIR)/libdvdplay_la-msg.Tpo" \
+ if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS)
$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS)
$(libdvdplay_la_CFLAGS) $(CFLAGS) -MT libdvdplay_la-msg.lo -MD -MP -MF
"$(DEPDIR)/libdvdplay_la-msg.Tpo" \
-c -o libdvdplay_la-msg.lo `test -f 'msg.c' || echo
'$(srcdir)/'`msg.c; \
then mv "$(DEPDIR)/libdvdplay_la-msg.Tpo"
"$(DEPDIR)/libdvdplay_la-msg.Plo"; \
else rm -f "$(DEPDIR)/libdvdplay_la-msg.Tpo"; exit 1; \
@@ -461,7 +461,7 @@
# $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS)
$(CPPFLAGS) $(libdvdplay_la_CFLAGS) $(CFLAGS) -c -o
libdvdplay_la-nav.obj `if test -f 'nav.c'; then $(CYGPATH_W) 'nav.c';
else $(CYGPATH_W) '$(srcdir)/nav.c'; fi`
libdvdplay_la-nav.lo: nav.c
- if $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES)
$(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdvdplay_la_CFLAGS)
$(CFLAGS) -MT libdvdplay_la-nav.lo -MD -MP -MF
"$(DEPDIR)/libdvdplay_la-nav.Tpo" \
+ if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS)
$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS)
$(libdvdplay_la_CFLAGS) $(CFLAGS) -MT libdvdplay_la-nav.lo -MD -MP -MF
"$(DEPDIR)/libdvdplay_la-nav.Tpo" \
-c -o libdvdplay_la-nav.lo `test -f 'nav.c' || echo
'$(srcdir)/'`nav.c; \
then mv "$(DEPDIR)/libdvdplay_la-nav.Tpo"
"$(DEPDIR)/libdvdplay_la-nav.Plo"; \
else rm -f "$(DEPDIR)/libdvdplay_la-nav.Tpo"; exit 1; \
@@ -494,7 +494,7 @@
# $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS)
$(CPPFLAGS) $(libdvdplay_la_CFLAGS) $(CFLAGS) -c -o
libdvdplay_la-tools.obj `if test -f 'tools.c'; then $(CYGPATH_W)
'tools.c'; else $(CYGPATH_W) '$(srcdir)/tools.c'; fi`
libdvdplay_la-tools.lo: tools.c
- if $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES)
$(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdvdplay_la_CFLAGS)
$(CFLAGS) -MT libdvdplay_la-tools.lo -MD -MP -MF
"$(DEPDIR)/libdvdplay_la-tools.Tpo" \
+ if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS)
$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS)
$(libdvdplay_la_CFLAGS) $(CFLAGS) -MT libdvdplay_la-tools.lo -MD -MP
-MF "$(DEPDIR)/libdvdplay_la-tools.Tpo" \
-c -o libdvdplay_la-tools.lo `test -f 'tools.c' || echo
'$(srcdir)/'`tools.c; \
then mv "$(DEPDIR)/libdvdplay_la-tools.Tpo"
"$(DEPDIR)/libdvdplay_la-tools.Plo"; \
else rm -f "$(DEPDIR)/libdvdplay_la-tools.Tpo"; exit 1; \
@@ -527,7 +527,7 @@
# $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS)
$(CPPFLAGS) $(libdvdplay_la_CFLAGS) $(CFLAGS) -c -o
libdvdplay_la-vmg.obj `if test -f 'vmg.c'; then $(CYGPATH_W) 'vmg.c';
else $(CYGPATH_W) '$(srcdir)/vmg.c'; fi`
libdvdplay_la-vmg.lo: vmg.c
- if $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES)
$(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdvdplay_la_CFLAGS)
$(CFLAGS) -MT libdvdplay_la-vmg.lo -MD -MP -MF
"$(DEPDIR)/libdvdplay_la-vmg.Tpo" \
+ if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS)
$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS)
$(libdvdplay_la_CFLAGS) $(CFLAGS) -MT libdvdplay_la-vmg.lo -MD -MP -MF
"$(DEPDIR)/libdvdplay_la-vmg.Tpo" \
-c -o libdvdplay_la-vmg.lo `test -f 'vmg.c' || echo
'$(srcdir)/'`vmg.c; \
then mv "$(DEPDIR)/libdvdplay_la-vmg.Tpo"
"$(DEPDIR)/libdvdplay_la-vmg.Plo"; \
else rm -f "$(DEPDIR)/libdvdplay_la-vmg.Tpo"; exit 1; \
Regards,
Connor
Home |
Main Index |
Thread Index |
Old Index