pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Problem with depending on sysutils/file



Hi all,

I'm creating a small perl module to use libmagic to avoid massive forking.
Because we're using in our environment, I created a small pkg (Perl module
is not uploaded to CPAN, so it can't work for anyone except us!) and added
> .include "../../sysutils/file/buildlink3.mk"
before the
> .include "../../lang/perl5/module.mk"
line, which is more or less mandatory for each perl pkg. But bmake didn't
recognize the dependency. On our RHEL4 machines, the OS has an file-4.10,
which may be found and accepted, because sysutils/file/buildlink3.mk
requires older versions for compatibility:
> BUILDLINK_API_DEPENDS.file+=    file>=4.09
> BUILDLINK_ABI_DEPENDS.file+=    file>=4.09nb1
I increased these numbers up to the current version of file (4.26 - patch
attached until current steps), but no change - sysutils/file is not added
to dependencies.

Any idea what I must do to get a reliable dependency added?
The next problem is, if I simply install sysutils/file and install my
File::Magic module, it links against /opt/pkgsrc/lib/libmagic.so and
displays a dynamic linker error, when this file (/opt/pkgsrc/lib/libmagic.so)
is not available (but /usr/lib64/libmagic.so is).

Best regards,
Jens
Index: sysutils/file/Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/sysutils/file/Makefile,v
retrieving revision 1.16
diff -u -u -r1.16 Makefile
--- sysutils/file/Makefile      12 Jun 2008 02:14:46 -0000      1.16
+++ sysutils/file/Makefile      14 Sep 2008 13:44:54 -0000
@@ -1,6 +1,6 @@
 # $NetBSD: Makefile,v 1.16 2008/06/12 02:14:46 joerg Exp $
 
-DISTNAME=              file-4.21
+DISTNAME=              file-4.26
 CATEGORIES=            sysutils
 MASTER_SITES=          ftp://ftp.gw.com/mirrors/pub/unix/file/
 MASTER_SITES+=         ftp://ftp.astron.com/pub/file/
Index: sysutils/file/PLIST
===================================================================
RCS file: /cvsroot/pkgsrc/sysutils/file/PLIST,v
retrieving revision 1.2
diff -u -u -r1.2 PLIST
--- sysutils/file/PLIST 22 Sep 2004 08:09:53 -0000      1.2
+++ sysutils/file/PLIST 14 Sep 2008 13:44:54 -0000
@@ -5,8 +5,5 @@
 man/man1/file.1
 man/man3/libmagic.3
 man/man5/magic.5
-share/file/magic
 share/file/magic.mgc
-share/file/magic.mime
-share/file/magic.mime.mgc
 @dirrm share/file
Index: sysutils/file/buildlink3.mk
===================================================================
RCS file: /cvsroot/pkgsrc/sysutils/file/buildlink3.mk,v
retrieving revision 1.6
diff -u -u -r1.6 buildlink3.mk
--- sysutils/file/buildlink3.mk 8 Jul 2006 23:11:08 -0000       1.6
+++ sysutils/file/buildlink3.mk 14 Sep 2008 13:44:54 -0000
@@ -13,9 +13,14 @@
 BUILDLINK_ORDER:=      ${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}file
 
 .if !empty(FILE_BUILDLINK3_MK:M+)
+
+.  include "../../mk/bsd.fast.prefs.mk"
+
 BUILDLINK_API_DEPENDS.file+=   file>=4.09
 BUILDLINK_ABI_DEPENDS.file+=   file>=4.09nb1
 BUILDLINK_PKGSRCDIR.file?=     ../../sysutils/file
 .endif # FILE_BUILDLINK3_MK
+pkgbase := file
+.include "../../mk/pkg-build-options.mk"
 
 BUILDLINK_DEPTH:=      ${BUILDLINK_DEPTH:S/+$//}
Index: sysutils/file/distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/sysutils/file/distinfo,v
retrieving revision 1.8
diff -u -u -r1.8 distinfo
--- sysutils/file/distinfo      14 Jun 2007 16:29:42 -0000      1.8
+++ sysutils/file/distinfo      14 Sep 2008 13:44:54 -0000
@@ -1,6 +1,6 @@
 $NetBSD: distinfo,v 1.8 2007/06/14 16:29:42 adrianp Exp $
 
-SHA1 (file-4.21.tar.gz) = 4a919572fed1896212c2d7f41f841845efc1287a
-RMD160 (file-4.21.tar.gz) = c8cfee27ba7a033bae355e458921eac39913b1e0
-Size (file-4.21.tar.gz) = 549938 bytes
-SHA1 (patch-aa) = 96376c128a1d131c73f7d1bc790030c250f0f1ee
+SHA1 (file-4.26.tar.gz) = 412cdac5cd778d867e2d91a01b09858be1998ec3
+RMD160 (file-4.26.tar.gz) = e8b84e01d1f43faedfe676afc92c2cba4a01ecdf
+Size (file-4.26.tar.gz) = 584803 bytes
+SHA1 (patch-aa) = 4934c976fb7fb0a14f78a63dbc9d702c6798a040
Index: sysutils/file/patches/patch-aa
===================================================================
RCS file: /cvsroot/pkgsrc/sysutils/file/patches/patch-aa,v
retrieving revision 1.3
diff -u -u -r1.3 patch-aa
--- sysutils/file/patches/patch-aa      7 Oct 2006 19:46:06 -0000       1.3
+++ sysutils/file/patches/patch-aa      14 Sep 2008 13:44:54 -0000
@@ -1,18 +1,15 @@
-$NetBSD: patch-aa,v 1.3 2006/10/07 19:46:06 reed Exp $
-
---- src/Makefile.in.orig       2006-10-08 03:41:58.000000000 -0700
-+++ src/Makefile.in    2006-10-08 03:42:49.000000000 -0700
-@@ -192,11 +192,11 @@
- sharedstatedir = @sharedstatedir@
- sysconfdir = @sysconfdir@
+--- src/Makefile.in.orig       2008-09-03 16:03:38.601850000 +0200
++++ src/Makefile.in    2008-09-03 16:04:07.409017000 +0200
+@@ -195,10 +195,10 @@
  target_alias = @target_alias@
+ top_builddir = @top_builddir@
+ top_srcdir = @top_srcdir@
 -MAGIC = $(pkgdatadir)/magic
 +MAGIC = @sysconfdir@/magic
  lib_LTLIBRARIES = libmagic.la
  include_HEADERS = magic.h
- EXTRA_DIST = test.c
 -AM_CPPFLAGS = -DMAGIC='"$(MAGIC)"'
 +AM_CPPFLAGS = -DMAGIC='"$(MAGIC):$(pkgdatadir)/magic"'
+ AM_CFLAGS = @WARNINGS@
  libmagic_la_SOURCES = magic.c apprentice.c softmagic.c ascmagic.c \
        compress.c is_tar.c readelf.c print.c fsmagic.c \
-       funcs.c file.h names.h patchlevel.h readelf.h tar.h apptype.c


Home | Main Index | Thread Index | Old Index