Package: src:libhdhomerun
Version: 20110323-1
Severity: important
Tags: patch

Hi!

Your package failed to build on kfreebsd:

gcc -g -O2 -Wall -O2 -Wmissing-declarations -Wmissing-prototypes 
-Wstrict-prototypes -Wpointer-arith hdhomerun_config.c hdhomerun_channels.c 
hdhomerun_channelscan.c hdhomerun_control.c hdhomerun_debug.c 
hdhomerun_device.c hdhomerun_device_selector.c hdhomerun_discover.c 
hdhomerun_os_posix.c hdhomerun_pkt.c hdhomerun_sock_posix.c hdhomerun_video.c  
-lpthread -o hdhomerun_config
/tmp/cccQNy2K.o: In function `getcurrenttime':
/var/tmp/libhdhomerun-20110323/hdhomerun_os_posix.c:62: undefined reference to 
`clock_gettime'
collect2: ld returned 1 exit status
make[1]: *** [hdhomerun_config] Error 1

patch:

--- libhdhomerun-20110323.orig/Makefile
+++ libhdhomerun-20110323/Makefile
@@ -29,7 +29,7 @@ else
   LIBEXT := .so.$(LIBVERSION)
   SOEXT := .so.$(SONAME)
   SHARED := -shared -Wl,-soname,libhdhomerun$(SOEXT)
-  ifeq ($(OS),Linux)
+  ifneq (,$(filter $(OS),Linux GNU/kFreeBSD)i)
     LDFLAGS += -lrt
   endif
   ifeq ($(OS),SunOS)
@@ -50,7 +50,7 @@ hdhomerun_config$(BINEXT) : hdhomerun_co
 
 libhdhomerun$(LIBEXT) : $(LIBSRCS)
        $(CC) $(CFLAGS) -fPIC -DDLL_EXPORT $(SHARED) $+ $(LDFLAGS) -o $@
-       ifeq ($(OS),$(or Linux,SunOS))
+       ifneq (,$(filter $(OS),Linux SunOS GNU/kFreeBSD))
                ln -s $@ libhdhomerun.so
        endif

I'm rather sure that $(or logic doesn't work anyway (it just selects the
first of Linux,Solaris for $(or Linux,SunOS) and notices it's not the
same as $(OS) for solaris anyway.

Regards

    Christoph

If you have further questions please mail debian-...@lists.debian.org

-- 
9FED 5C6C E206 B70A 5857  70CA 9655 22B9 D49A E731
Debian Developer | Lisp Hacker | CaCert Assurer

A. Because it breaks the logical sequence of discussion
Q. Why is top posting bad?



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to