summaryrefslogtreecommitdiffstats
path: root/kerberos5/lib
Commit message (Collapse)AuthorAgeFilesLines
* MFC r322112:cy2017-09-181-1/+1
| | | | | | krb5_err.h is generated from a .et file in kerberos5/lib/libkrb5. As kerberos5/lib/krb5 include files are already referenced it makes no sense to generate it again here.
* MFC r318514-r318515, r318517, r318917delphij2017-05-311-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r318514: Use size_t. Inspired by: OpenBSD src/lib/libc/stdlib/qsort.c,v 1.11 r318515: The current qsort(3) implementation ignores the sizes of partitions, and always perform recursion on the left partition, then use a tail call to handle the right partition. In the worst case this could require O(N) levels of recursions. Reduce the possible recursion level to log2(N) by always recursing on the smaller partition instead. Obtained from: PostgreSQL 9d6077abf9d6efd992a59f05ef5aba981ea32096 r318517: Sync qsort.c with userland r318515. (Note that MIN macro is removed in favor of sys/param.h's version). PR: 213922 r318917: Disconnect heimdal version of qsort.c from build because we are already using libc's version of qsort. PR: bin/213922
* MFC r314657:ngie2017-05-306-8/+8
| | | | | | kerberos5: normalize paths using SRCTOP-relative paths or :H when possible This simplifies make logic/output
* MFC r311112,r311115:ngie2017-01-091-2/+9
| | | | | | | | | | | | r311112: libgssapi_{krb5,ntlm,spnego} requires MK_GSSAPI != no; conditionalize their building on the knob r311115: Conditionalize adding ${KRB5DIR}/lib/gssapi/krb5/gkrb5_err.et to ETSRCS if MK_GSSAPI != "no"
* WITH_META_MODE: Don't expect meta files for side-effect generated files.bdrewery2016-06-034-0/+14
| | | | | | | | | The first file in these lists will generate everything else so only it should be getting a .meta file. With bmake's missing=yes meta feature these would otherwise cause a rebuild without the .NOMETA hint. Sponsored by: EMC / Isilon Storage Division
* We don't have a CPPFLAGS, COPTS or CPUFLAGS.bdrewery2016-03-261-1/+0
| | | | Sponsored by: EMC / Isilon Storage Division
* DIRDEPS_BUILD: Regenerate without local dependencies.bdrewery2016-02-2412-2519/+0
| | | | | | | | These are no longer needed after the recent 'beforebuild: depend' changes and hooking DIRDEPS_BUILD into a subset of FAST_DEPEND which supports skipping 'make depend'. Sponsored by: EMC / Isilon Storage Division
* FAST_DEPEND: Always run depend via beforebuild which removes many hacks.bdrewery2016-02-244-16/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This will generate dependencies rather than depending on the previous behavior of depending on the guessed OBJS: *.h dependecies or a user running 'make depend'. Experimentation showed that depending only on headers was not enough and prone to .ORDER errors. Downstream users may also have added dependencies into beforedepend or afterdepend targets. The safest way to ensure dependencies are generated before build is to run 'make depend' beforehand rather than just depending on DPSRCS+SRCS. Note that the OBJS_DEPEND_GUESS mechanism (a.k.a .if !exists(.depend) then foo.o: *.h) is still useful as it improves incremental builds with missing .depend.* files and allows 'make foo.o' to usually work, while this 'beforebuild: depend' ensures that the build will always find all dependencies. The 'make foo.o' case has no means of a 'beforebuild' hook. This also removes several hacks in the DIRDEPS_BUILD: - NO_INSTALL_INCLUDES is no longer needed as it mostly was to work around .ORDER problems with building the needed headers early. - DIRDEPS_BUILD: It is no longer necesarry to track "local dependencies" in Makefile.depend. These were only in Makefile.depend for 'clean builds' since nothing would generate the files due to skipping 'make depend' and early dependency bugs that have been fixed, such as adding headers into SRCS for the OBJS_DEPEND_GUESS mechanism. Normally if a .depend file does not exist then a dependency is added by bsd.lib.mk/bsd.prog.mk from OBJS: *.h. However, meta.autodep.mk creates a .depend file from created meta files and inserts that into Makefile.depend. It also only tracks *.[ch] files though which can miss some dependencies that are hooked into 'make depend'. This .depend that is created then breaks incremental builds due to the !exists(.depend) checks for OBJS_DEPEND_GUESS. The goal was to skip 'make depend' yet it only really works the first time. After that files are not generated as expected, which r288966 tried to address but was using buildfiles: rather than beforebuild: and was reverted in r291725. As noted previously, depending only on headers in beforebuild: would create .ORDER errors in some cases. meta.autodep.mk is still used to generate Makefile.depend though via: gendirdeps: Makefile.depend .END: gendirdeps This commit allows removing all of the "local dependencies" in Makefile.depend which cuts down on churn and removes some of the arch-dependent Makefile.depend files. The "local dependencies" were also problematic for bootstrapping. Sponsored by: EMC / Isilon Storage Division
* DIRDEPS_BUILD: Add some missing build dependencies for kerberos5.bdrewery2016-02-2413-0/+16
| | | | Sponsored by: EMC / Isilon Storage Division
* DIRDEPS_BUILD: Update dependencies.bdrewery2015-12-078-8/+0
| | | | Sponsored by: EMC / Isilon Storage Division
* META MODE: Prefer INSTALL=tools/install.sh to lessen the need for xinstall.host.bdrewery2015-11-2517-17/+0
| | | | | | | | This both avoids some dependencies on xinstall.host and allows bootstrapping on older releases to work due to lack of at least 'install -l' support. Sponsored by: EMC / Isilon Storage Division
* Partially revert r288266: Remove SUBDIR_PARALLEL from kerberos5/lib.bdrewery2015-10-131-1/+0
| | | | | | I intended to remove this before committing r288266. It works but is clearly wrong and working by accident due to the dependencies listed in the root Makefile.inc1 file.
* Add more SUBDIR_PARALLEL.bdrewery2015-09-261-0/+2
| | | | | MFC after: 3 weeks Sponsored by: EMC / Isilon Storage Division
* Make it buildable with WITH_OPENLDAP, again.ume2015-08-271-1/+2
| | | | MFC after: 1 week
* Fix a typo introduced in r262209.jkim2015-06-181-1/+1
| | | | MFC after: 3 days
* new dependssjg2015-06-167-0/+8
|
* Add META_MODE support.sjg2015-06-1322-1/+2992
|\ | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp
| * Explain why NO_BEFOREBUILD_INCLUDES is neededsjg2015-06-101-0/+3
| |
| * Explain why NO_BEFOREBUILD_INCLUDES is neededsjg2015-06-101-0/+3
| |
| * Explain why NO_BEFOREBUILD_INCLUDES is neededsjg2015-06-101-0/+3
| |
| * dirdeps.mk now sets DEP_RELDIRsjg2015-06-0819-38/+0
| |
| * Merge sync of headsjg2015-05-2729-82/+38
| |\
| * \ Merge from head@274682sjg2014-11-192-3/+3
| |\ \
| * | | Supress beforebuild dependency on buildincludessjg2014-05-163-1/+8
| | | |
| * | | Updated dependenciessjg2014-05-1618-6/+30
| | | |
| * | | Updated dependenciessjg2014-05-106-0/+12
| | | |
| * | | Merge headsjg2014-04-286-12/+25
| |\ \ \
| * | | | Updated dependenciessjg2013-10-132-0/+12
| | | | |
| * | | | Merge headsjg2013-09-113-5/+4
| |\ \ \ \
| * \ \ \ \ Merge from headsjg2013-09-051-4/+28
| |\ \ \ \ \
| * | | | | | Updated dependenciessjg2013-03-1116-0/+16
| | | | | | |
| * | | | | | Updated dependenciessjg2013-02-1620-40/+0
| | | | | | |
| * | | | | | Sync with HEAD.obrien2013-02-081-9/+1
| |\ \ \ \ \ \
| * | | | | | | We need headers from ${KRB5DIR}/include toosjg2012-11-081-1/+2
| | | | | | | |
| * | | | | | | Updated/new Makefile.dependsjg2012-11-0819-0/+102
| | | | | | | |
| * | | | | | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.marcel2012-08-2220-0/+2891
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net>
* | | | | | | | Misc fixes from projects/bmakesjg2015-06-111-1/+2
| |_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | Differential Revision: D2748 Reviewed by: brooks imp
* | | | | | | Make kerberos use the same sqlite libraries as other sqlite consumer.bapt2015-05-203-13/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reduces the number of copy of sqlite we have to just one and easier tracking version of sqlite Differential Revision: https://reviews.freebsd.org/D2443 Reviewed by: imp, stas, bjk
* | | | | | | Add a ${CP} alias for copying files in the build.will2015-01-164-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some users build FreeBSD as non-root in Perforce workspaces. By default, Perforce sets files read-only unless they're explicitly being edited. As a result, the -f argument must be used to cp in order to override the read-only flag when copying source files to object directories. Bare use of 'cp' should be avoided in the future. Update all current users of 'cp' in the src tree. Reviewed by: emaste MFC after: 1 week Sponsored by: Spectra Logic
* | | | | | | Remove now useless USEPRIVATELIBbapt2014-11-251-1/+0
| | | | | | |
* | | | | | | Convert kerberos to LIBADD and reduce overlinking of the kerberos binaries andbapt2014-11-2518-39/+20
| |_|_|_|_|/ |/| | | | | | | | | | | | | | | | | libraries
* | | | | | Fix incremental builds involving non-root users with read-only source files.will2014-09-181-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a followup commit to r271771. MFC after: 1 month
* | | | | | Rework privatelib/internallibbapt2014-08-061-1/+1
| |_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make sure everything linking to a privatelib and/or an internallib does it directly from the OBJDIR rather than DESTDIR. Add src.libnames.mk so bsd.libnames.mk is not polluted by libraries not existsing in final installation Introduce the LD* variable which is what ld(1) is expecting (via LDADD) to link to internal/privatelib Directly link to the .so in case of private library to avoid having to complexify LDFLAGS. Phabric: https://phabric.freebsd.org/D553 Reviewed by: imp, emaste
* | | | | Fix installworld failure when kerberos source files have new timestampsemaste2014-04-224-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If a kerberos .hx source file is newer than the .h copy, but the content is the same, then during buildworld the "cmp -s || cp" command in the .hx.h rule would do nothing, leaving the .h copy with the older timestamp. During installworld the rule would again be invoked, causing a failure as neither cmp or cp would exist in the temporary path. As the underlying issue should be resolved by r262209, unconditionally copy the file. No objection: peter@ Tested by: gjb@ Sponsored by: The FreeBSD Foundation
* | | | | Revert my commit in r261253; the real problem was tackled in r262209.peter2014-02-204-8/+8
| | | | |
* | | | | Really (I think) fix the sporadic heimdal build failures with high -jpeter2014-02-194-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | levels. The root of the problem was that make was attempting to run up to three concurrent asn1_compile commands to produce the three outputs that it was declared to produce. The failure was caused when the asn1_compiles were started out of sync and a later one was truncating the files that another thread was trying to copy. In reality it is supposed to be run exactly once and all three outputs are produced in one pass. Use the same hack as for the parent's Makefile.inc for the compile_et multi-output rule.
* | | | | Speculatively replace a cp with a cat for gathering data on apeter2014-01-284-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | sporadic parallel build failure in the FreeBSD cluster on many-core systems with ZFS. cp uses mmap in this scenario, cat does not.
* | | | | Try and fix the dependency/bootstrap issues in kerberos5uqs2013-12-232-4/+3
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | libkafs5 needs a header from libkrb5, it includes this from ${.OBJDIR}/mumble, this used to work fine as long as you happen to have a krb_err.h in your base system, this doesn't work for bootstrapping or using a cross-compiler with a different sysroot. This is just a best-effort bandaid, sufficient parallelism can still break it. Fix a SRCS override that dropped krb5_err.h. Discussed with: stas
* | | | Clean up the Kerberos build by turning libheimipcc and libheimipcs intodes2013-09-103-5/+4
| |_|/ |/| | | | | | | | | | | | | | | | | | | | private shared libraries, instead of hacked-together archives of PIC objects. This makes it possible to build a static libkrb5 that works. Reviewed by: stas Approved by: re (gjb)
* | | Fix the getpwnam_r() call in the pname_to_uid() kerberos library function sormacklem2013-05-021-4/+28
| |/ |/| | | | | | | | | | | | | | | that it handles the ERANGE error return case. Without this fix, authentication of users for certain system setups could fail unexpectedly. Reported by: Elias Martenson (lokedhs@gmail.com) Tested by: Elias Martenson (earlier version) MFC after: 2 weeks
OpenPOWER on IntegriCloud