Bug 187788 - security/sssd does not build, bailing out applying patches
Summary: security/sssd does not build, bailing out applying patches
Status: Closed Unable to Reproduce
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-20 11:00 UTC by Thomas Schweikle
Modified: 2014-06-04 17:55 UTC (History)
1 user (show)

See Also:


Attachments
smime.p7s (4.69 KB, application/pkcs7-signature)
2014-03-23 01:11 UTC, TSchweikle
no flags Details
smime.p7s (4.69 KB, application/pkcs7-signature)
2014-03-23 06:40 UTC, TSchweikle
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Schweikle 2014-03-20 11:00:00 UTC
/usr/ports/security/sssd # make clean build install clean
===>  Cleaning for sssd-1.9.6
===>  License GPLv3 accepted by the user
===>   sssd-1.9.6 depends on file: /usr/local/sbin/pkg - found
=> sssd-1.9.6.tar.gz doesn't seem to exist in /usr/ports/distfiles/.
=> Attempting to fetch https://fedorahosted.org/released/sssd/sssd-1.9.6.tar.gz
--2014-03-20 10:40:17--  https://fedorahosted.org/released/sssd/sssd-1.9.6.tar.gz
Resolving is-muc.bfs.de (is-muc.bfs.de)... 10.161.18.34
Connecting to is-muc.bfs.de (is-muc.bfs.de)|10.161.18.34|:8080... connected.
WARNING: The certificate of 'fedorahosted.org' is not trusted.
WARNING: The certificate of 'fedorahosted.org' hasn't got a known issuer.
Proxy request sent, awaiting response... 200 OK
Length: 3180066 (3.0M) [application/x-gzip]
Saving to: 'sssd-1.9.6.tar.gz'

100%[==========================================================================================>] 3,180,066    394KB/s   in 8.1s

2014-03-20 10:40:26 (385 KB/s) - 'sssd-1.9.6.tar.gz' saved [3180066/3180066]

===> Fetching all distfiles required by sssd-1.9.6 for building
===>  Extracting for sssd-1.9.6
=> SHA256 Checksum OK for sssd-1.9.6.tar.gz.
===>  Patching for sssd-1.9.6
===>  Applying FreeBSD patches for sssd-1.9.6
1 out of 2 hunks failed--saving rejects to src/monitor/monitor.c.rej
=> Patch patch-src__monitor__monitor.c failed to apply cleanly.
=> Patch(es) patch-Makefile.am patch-configure.ac patch-src__confdb__confdb.c patch-src__external__inotify.m4 patch-src__external__krb5.m4 patch-src__external__pac_responder.m4 patch-src__lib__idmap__sss_idmap_conv.c applied cleanly.
*** Error code 1

Stop.
make: stopped in /usr/ports/security/sssd

How-To-Repeat: cd /usr/ports
svn up
cd security/sssd
make clean build
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2014-03-21 05:52:07 UTC
Maintainer of security/sssd,

Please note that PR ports/187788 has just been submitted.

If it contains a patch for an upgrade, an enhancement or a bug fix
you agree on, reply to this email stating that you approve the patch
and a committer will take care of it.

The full text of the PR can be found at:
    http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/187788

-- 
Edwin Groothuis via the GNATS Auto Assign Tool
edwin@FreeBSD.org
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2014-03-21 05:52:08 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback (via the GNATS Auto Assign Tool)
Comment 3 lukas.slebodnik 2014-03-22 13:57:00 UTC
On Fri, Mar 21, 2014 at 05:52:07AM +0000, Edwin Groothuis wrote:
> Maintainer of security/sssd,
> 
> Please note that PR ports/187788 has just been submitted.
> 
> If it contains a patch for an upgrade, an enhancement or a bug fix
> you agree on, reply to this email stating that you approve the patch
> and a committer will take care of it.
> 
> The full text of the PR can be found at:
>     http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/187788
> 
It works on my machine

# pwd
/usr/ports/security/sssd

# uname -a
FreeBSD bsd10min 10.0-RELEASE FreeBSD 10.0-RELEASE #0 r260789: Thu Jan 16
22:34:59 UTC 2014     root@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64

# make clean build install clean
===>  Cleaning for sssd-1.9.6
===>  License GPLv3 accepted by the user
===>   sssd-1.9.6 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by sssd-1.9.6 for building
===>  Extracting for sssd-1.9.6
=> SHA256 Checksum OK for sssd-1.9.6.tar.gz.
===>  Patching for sssd-1.9.6
===>  Applying FreeBSD patches for sssd-1.9.6
===>   sssd-1.9.6 depends on executable: xmlcatalog - found
===>   sssd-1.9.6 depends on package: docbook-xsl>=1 - found
===>   sssd-1.9.6 depends on executable: xsltproc - found
===>   sssd-1.9.6 depends on executable: xmlcatmgr - found
===>   sssd-1.9.6 depends on package: krb5>=1.10 - found
===>   sssd-1.9.6 depends on executable: nsupdate - found
===>   sssd-1.9.6 depends on file: /usr/local/bin/python2.7 - found
===>   sssd-1.9.6 depends on executable: gmake - found
===>   sssd-1.9.6 depends on executable: pkgconf - found
===>   sssd-1.9.6 depends on file: /usr/local/bin/automake-1.14 - found
===>   sssd-1.9.6 depends on file: /usr/local/bin/autoconf-2.69 - found
===>   sssd-1.9.6 depends on package: libtool>=2.4 - found
===>   sssd-1.9.6 depends on shared library: libpopt.so - found
===>   sssd-1.9.6 depends on shared library: libtalloc.so - found
===>   sssd-1.9.6 depends on shared library: libtevent.so - found
===>   sssd-1.9.6 depends on shared library: libtdb.so - found
===>   sssd-1.9.6 depends on shared library: libldb.so - found
===>   sssd-1.9.6 depends on shared library: libcares.so - found
===>   sssd-1.9.6 depends on shared library: libdbus-1.so - found
===>   sssd-1.9.6 depends on shared library: libdhash.so - found
===>   sssd-1.9.6 depends on shared library: libpcre.so - found
===>   sssd-1.9.6 depends on shared library: libunistring.so - found
===>   sssd-1.9.6 depends on shared library: libnss3.so - found
===>   sssd-1.9.6 depends on shared library: libsasl2.so - found
===>   sssd-1.9.6 depends on shared library: libkrb5.so - found
 - found
 ===>   sssd-1.9.6 depends on shared library: libldap.so - found
 ===>   sssd-1.9.6 depends on shared library: libinotify.so - found
 ===>   sssd-1.9.6 depends on shared library: libintl.so - found
 ===>   sssd-1.9.6 depends on shared library: ldap-2.4.8 - found
 ===>  Configuring for sssd-1.9.6
 ===>   FreeBSD 10 autotools fix applied to
 /usr/ports/security/sssd/work/sssd-1.9.6/build/config.rpath
 ===>   FreeBSD 10 autotools fix applied to
 /usr/ports/security/sssd/work/sssd-1.9.6/aclocal.m4
 ===>   FreeBSD 10 autotools fix applied to
 /usr/ports/security/sssd/work/sssd-1.9.6/m4/libtool.m4
 ===>   FreeBSD 10 autotools fix applied to
 /usr/ports/security/sssd/work/sssd-1.9.6/configure

LS
Comment 4 TSchweikle 2014-03-23 01:11:26 UTC
Doesn't work here:

rm -rf /usr/ports/*
svn co https://svn0.us-east.freebsd.org/ports/head /usr/ports
cd /usr/ports/security/sssd
make clean build install clean

After compiling various parts:
WARNING: The certificate of 'fedorahosted.org' is not trusted.
WARNING: The certificate of 'fedorahosted.org' hasn't got a known issuer.
Proxy request sent, awaiting response... 200 OK
Length: 3180066 (3.0M) [application/x-gzip]
Saving to: 'sssd-1.9.6.tar.gz'

100%[==========================================================================================>]
3,180,066    833KB/s   in 4.3s

2014-03-23 02:05:52 (718 KB/s) - 'sssd-1.9.6.tar.gz' saved [3180066/3180066]

===> Fetching all distfiles required by sssd-1.9.6 for building
===>  Extracting for sssd-1.9.6
=> SHA256 Checksum OK for sssd-1.9.6.tar.gz.
===>  Patching for sssd-1.9.6
===>  Applying FreeBSD patches for sssd-1.9.6
1 out of 2 hunks failed--saving rejects to src/monitor/monitor.c.rej
=> Patch patch-src__monitor__monitor.c failed to apply cleanly.
=> Patch(es) patch-Makefile.am patch-configure.ac
patch-src__confdb__confdb.c patch-src__external__inotify.m4
patch-src__external__krb5.m4 patch-src__external__pac_responder.m4
patch-src__lib__idmap__sss_idmap_conv.c applied cleanly.
*** Error code 1

Stop.
make: stopped in /usr/ports/security/sssd


Tried again after rebuilding all installed packages:
portupgrade -af

cd /usr/ports/security/sssd
make clean build install clean

same as above. Sure it works on *all* systems and not only on yours?

-- 
Thomas
Comment 5 TSchweikle 2014-03-23 06:40:24 UTC
Reject (/usr/ports/security/sssd/work/sssd-1.9.6/src/monitor):

@@ -1792,11 +1797,6 @@
     talloc_free(tmp_ctx);
 }

-errno_t monitor_config_file_fallback(TALLOC_CTX *mem_ctx,
-                                     struct mt_ctx *ctx,
-                                     const char *file,
-                                     monitor_reconf_fn fn,
-                                     bool ignore_missing);
 static void rewatch_config_file(struct tevent_context *ev,
                                 struct tevent_timer *te,
                                 struct timeval t, void *ptr)


-- 
Thomas

Comment 6 lukas.slebodnik 2014-05-23 08:11:01 UTC
Sorry for late reply.
I didn't revieve mail notification from this PR.

Do you still have a problem with th port security/sssd?

LS
Comment 7 Mark Felder freebsd_committer freebsd_triage 2014-06-04 17:55:38 UTC
Builds fine for me with poudriere on FreeBSD 10.0, 9.2, and 8.4. The port has been worked on by myself since the original submission of this PR.