* [gentoo-commits] repo/gentoo:master commit in: dev-perl/Filesys-SmbClient/, dev-perl/Filesys-SmbClient/files/
@ 2017-01-04 9:59 Andreas Hüttel
0 siblings, 0 replies; 2+ messages in thread
From: Andreas Hüttel @ 2017-01-04 9:59 UTC (permalink / raw
To: gentoo-commits
commit: 7e57da211cb9455800ad9963c41d1429b3606fd3
Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 4 09:57:10 2017 +0000
Commit: Andreas Hüttel <dilfridge <AT> gentoo <DOT> org>
CommitDate: Wed Jan 4 09:59:00 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7e57da21
dev-perl/Filesys-SmbClient: Make it build with samba-4, bug 581338
Thanks to Dennis Lichtenthäler
Package-Manager: Portage-2.3.3, Repoman-2.3.1
.../Filesys-SmbClient-3.200.0-r2.ebuild | 34 ++++++++++++++++++++
.../files/Filesys-SmbClient-3.200.0-close_fn.patch | 18 +++++++++++
.../Filesys-SmbClient-3.200.0-pkg_config.patch | 36 ++++++++++++++++++++++
3 files changed, 88 insertions(+)
diff --git a/dev-perl/Filesys-SmbClient/Filesys-SmbClient-3.200.0-r2.ebuild b/dev-perl/Filesys-SmbClient/Filesys-SmbClient-3.200.0-r2.ebuild
new file mode 100644
index 00000000..d1ae525
--- /dev/null
+++ b/dev-perl/Filesys-SmbClient/Filesys-SmbClient-3.200.0-r2.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+DIST_AUTHOR=ALIAN
+DIST_VERSION=3.2
+inherit perl-module autotools
+
+DESCRIPTION="Provide Perl API for libsmbclient.so"
+
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+RDEPEND=">=net-fs/samba-4.2[client]"
+DEPEND="${RDEPEND}
+ virtual/perl-ExtUtils-MakeMaker
+ virtual/pkgconfig
+"
+
+# tests are not designed to work on a non-developer system.
+RESTRICT=test
+
+PATCHES=(
+ "${FILESDIR}/${P}-pkg_config.patch"
+ "${FILESDIR}/${P}-close_fn.patch"
+)
+
+src_prepare() {
+ perl-module_src_prepare
+ eautoreconf
+}
diff --git a/dev-perl/Filesys-SmbClient/files/Filesys-SmbClient-3.200.0-close_fn.patch b/dev-perl/Filesys-SmbClient/files/Filesys-SmbClient-3.200.0-close_fn.patch
new file mode 100644
index 00000000..a923ae1
--- /dev/null
+++ b/dev-perl/Filesys-SmbClient/files/Filesys-SmbClient-3.200.0-close_fn.patch
@@ -0,0 +1,18 @@
+diff --git a/configure.in b/configure.in
+index 9660e93..f1d2350 100644
+--- a/configure.in
++++ b/configure.in
+@@ -48,8 +48,8 @@ fi
+
+ dnl This is context->close_fn or context close ?
+ AC_TRY_COMPILE([#include <libsmbclient.h>],
+- [SMBCCTX *c; c->close_fn(c,0);],
+- smbctxclosefn=yes, smbctxclosefn=no)
++ [SMBCCTX *c; c->close(c,0);],
++ smbctxclosefn=no, smbctxclosefn=yes)
+ if test "$smbctxclosefn" = yes; then
+ AC_DEFINE(HAVE_CLOSEFN,, [define if SMBCTXX->close_fn exist.])
+ AC_MSG_RESULT([You use SMBCTXX->close_fn (release >= 3.0.20). ])
+--
+2.7.3
+
diff --git a/dev-perl/Filesys-SmbClient/files/Filesys-SmbClient-3.200.0-pkg_config.patch b/dev-perl/Filesys-SmbClient/files/Filesys-SmbClient-3.200.0-pkg_config.patch
new file mode 100644
index 00000000..2a2b080
--- /dev/null
+++ b/dev-perl/Filesys-SmbClient/files/Filesys-SmbClient-3.200.0-pkg_config.patch
@@ -0,0 +1,36 @@
+From fa320a06147079458aa5f4834ae8b22cfe278481 Mon Sep 17 00:00:00 2001
+From: Dennis Lichtenthaeler <dennis.lichtenthaeler@stiftung-tannenhof.de>
+Date: Wed, 27 Apr 2016 10:57:17 +0200
+Subject: [PATCH 3/3] Use pkg-config instead of trickery to find samba-4
+ libs/headers
+
+---
+ Makefile.PL | 12 ++++++++++++
+ 1 file changed, 12 insertions(+)
+
+diff --git a/Makefile.PL b/Makefile.PL
+index 954df92..ed9d846 100755
+--- a/Makefile.PL
++++ b/Makefile.PL
+@@ -110,6 +110,18 @@ sub find_path {
+ push(@path, $_."/$ext") if !$defaultsDir->{$_};
+ }
+ foreach (keys %$defaultsDir) { push(@path, $_."/$ext"); }
++
++ ## get default paths from pkg-config
++ my $pkgconfig;
++ if($_[0]=~m!\.h$!) {
++ $pkgconfig = qx/pkg-config --variable=includedir smbclient/;
++ }
++ else {
++ $pkgconfig = qx/pkg-config --variable=libdir smbclient/;
++ }
++ $pkgconfig =~ s/\n//g;
++ push(@path, $pkgconfig);
++
+ print "I search in: ",(join "\n", @path),"\n";
+ return @path;
+ }
+--
+2.7.3
+
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-perl/Filesys-SmbClient/, dev-perl/Filesys-SmbClient/files/
@ 2020-10-19 5:22 Kent Fredric
0 siblings, 0 replies; 2+ messages in thread
From: Kent Fredric @ 2020-10-19 5:22 UTC (permalink / raw
To: gentoo-commits
commit: e42f91fe4f79fe288a95df80023b3fcdc77ea738
Author: Kent Fredric <kentnl <AT> gentoo <DOT> org>
AuthorDate: Mon Oct 19 05:15:40 2020 +0000
Commit: Kent Fredric <kentnl <AT> gentoo <DOT> org>
CommitDate: Mon Oct 19 05:15:40 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e42f91fe
dev-perl/Filesys-SmbClient: Cleanup old 3.200.0-r3
Package-Manager: Portage-3.0.8, Repoman-3.0.1
Signed-off-by: Kent Fredric <kentnl <AT> gentoo.org>
.../Filesys-SmbClient-3.200.0-r3.ebuild | 50 ----------------------
.../Filesys-SmbClient-3.200.0-pkg_config.patch | 36 ----------------
2 files changed, 86 deletions(-)
diff --git a/dev-perl/Filesys-SmbClient/Filesys-SmbClient-3.200.0-r3.ebuild b/dev-perl/Filesys-SmbClient/Filesys-SmbClient-3.200.0-r3.ebuild
deleted file mode 100644
index 88ce0aaeace..00000000000
--- a/dev-perl/Filesys-SmbClient/Filesys-SmbClient-3.200.0-r3.ebuild
+++ /dev/null
@@ -1,50 +0,0 @@
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-DIST_AUTHOR=ALIAN
-DIST_VERSION=3.2
-inherit perl-module autotools
-
-DESCRIPTION="Provide Perl API for libsmbclient.so"
-
-SLOT="0"
-KEYWORDS="~amd64"
-IUSE=""
-
-RDEPEND=">=net-fs/samba-4.2[client]"
-DEPEND="${RDEPEND}
- virtual/perl-ExtUtils-MakeMaker
- virtual/pkgconfig
-"
-
-PATCHES=(
- "${FILESDIR}/${P}-pkg_config.patch"
- "${FILESDIR}/${P}-close_fn.patch"
-)
-
-src_prepare() {
- perl-module_src_prepare
- eautoreconf
-}
-src_test() {
- local MODULES=(
- "Filesys::SmbClient ${DIST_VERSION}"
- )
- local failed=()
- for dep in "${MODULES[@]}"; do
- ebegin "Compile testing ${dep}"
- perl -Mblib="${S}" -M"${dep} ()" -e1
- eend $? || failed+=( "$dep" )
- done
- if [[ ${failed[@]} ]]; then
- echo
- eerror "One or more modules failed compile:";
- for dep in "${failed[@]}"; do
- eerror " ${dep}"
- done
- die "Failing due to module compilation errors";
- fi
- # standard tests are not designed to work on a non-developer system.
-}
diff --git a/dev-perl/Filesys-SmbClient/files/Filesys-SmbClient-3.200.0-pkg_config.patch b/dev-perl/Filesys-SmbClient/files/Filesys-SmbClient-3.200.0-pkg_config.patch
deleted file mode 100644
index 2a2b0808972..00000000000
--- a/dev-perl/Filesys-SmbClient/files/Filesys-SmbClient-3.200.0-pkg_config.patch
+++ /dev/null
@@ -1,36 +0,0 @@
-From fa320a06147079458aa5f4834ae8b22cfe278481 Mon Sep 17 00:00:00 2001
-From: Dennis Lichtenthaeler <dennis.lichtenthaeler@stiftung-tannenhof.de>
-Date: Wed, 27 Apr 2016 10:57:17 +0200
-Subject: [PATCH 3/3] Use pkg-config instead of trickery to find samba-4
- libs/headers
-
----
- Makefile.PL | 12 ++++++++++++
- 1 file changed, 12 insertions(+)
-
-diff --git a/Makefile.PL b/Makefile.PL
-index 954df92..ed9d846 100755
---- a/Makefile.PL
-+++ b/Makefile.PL
-@@ -110,6 +110,18 @@ sub find_path {
- push(@path, $_."/$ext") if !$defaultsDir->{$_};
- }
- foreach (keys %$defaultsDir) { push(@path, $_."/$ext"); }
-+
-+ ## get default paths from pkg-config
-+ my $pkgconfig;
-+ if($_[0]=~m!\.h$!) {
-+ $pkgconfig = qx/pkg-config --variable=includedir smbclient/;
-+ }
-+ else {
-+ $pkgconfig = qx/pkg-config --variable=libdir smbclient/;
-+ }
-+ $pkgconfig =~ s/\n//g;
-+ push(@path, $pkgconfig);
-+
- print "I search in: ",(join "\n", @path),"\n";
- return @path;
- }
---
-2.7.3
-
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-10-19 5:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-04 9:59 [gentoo-commits] repo/gentoo:master commit in: dev-perl/Filesys-SmbClient/, dev-perl/Filesys-SmbClient/files/ Andreas Hüttel
-- strict thread matches above, loose matches on Subject: below --
2020-10-19 5:22 Kent Fredric
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox