head 1.10; access; symbols pkgsrc-2023Q4:1.10.0.6 pkgsrc-2023Q4-base:1.10 pkgsrc-2023Q3:1.10.0.4 pkgsrc-2023Q3-base:1.10 pkgsrc-2023Q2:1.10.0.2 pkgsrc-2023Q2-base:1.10 pkgsrc-2023Q1:1.9.0.8 pkgsrc-2023Q1-base:1.9 pkgsrc-2022Q4:1.9.0.6 pkgsrc-2022Q4-base:1.9 pkgsrc-2022Q3:1.9.0.4 pkgsrc-2022Q3-base:1.9 pkgsrc-2022Q2:1.9.0.2 pkgsrc-2022Q2-base:1.9 pkgsrc-2022Q1:1.8.0.16 pkgsrc-2022Q1-base:1.8 pkgsrc-2021Q4:1.8.0.14 pkgsrc-2021Q4-base:1.8 pkgsrc-2021Q3:1.8.0.12 pkgsrc-2021Q3-base:1.8 pkgsrc-2021Q2:1.8.0.10 pkgsrc-2021Q2-base:1.8 pkgsrc-2021Q1:1.8.0.8 pkgsrc-2021Q1-base:1.8 pkgsrc-2020Q4:1.8.0.6 pkgsrc-2020Q4-base:1.8 pkgsrc-2020Q3:1.8.0.4 pkgsrc-2020Q3-base:1.8 pkgsrc-2020Q2:1.8.0.2 pkgsrc-2020Q2-base:1.8 pkgsrc-2020Q1:1.7.0.12 pkgsrc-2020Q1-base:1.7 pkgsrc-2019Q4:1.7.0.14 pkgsrc-2019Q4-base:1.7 pkgsrc-2019Q3:1.7.0.10 pkgsrc-2019Q3-base:1.7 pkgsrc-2019Q2:1.7.0.8 pkgsrc-2019Q2-base:1.7 pkgsrc-2019Q1:1.7.0.6 pkgsrc-2019Q1-base:1.7 pkgsrc-2018Q4:1.7.0.4 pkgsrc-2018Q4-base:1.7 pkgsrc-2018Q3:1.7.0.2 pkgsrc-2018Q3-base:1.7 pkgsrc-2018Q2:1.5.0.10 pkgsrc-2018Q2-base:1.5 pkgsrc-2018Q1:1.5.0.8 pkgsrc-2018Q1-base:1.5 pkgsrc-2017Q4:1.5.0.6 pkgsrc-2017Q4-base:1.5 pkgsrc-2017Q3:1.5.0.4 pkgsrc-2017Q3-base:1.5 pkgsrc-2017Q2:1.4.0.10 pkgsrc-2017Q2-base:1.4 pkgsrc-2017Q1:1.4.0.8 pkgsrc-2017Q1-base:1.4 pkgsrc-2016Q4:1.4.0.6 pkgsrc-2016Q4-base:1.4 pkgsrc-2016Q3:1.4.0.4 pkgsrc-2016Q3-base:1.4 pkgsrc-2016Q2:1.4.0.2 pkgsrc-2016Q2-base:1.4 pkgsrc-2016Q1:1.3.0.2 pkgsrc-2016Q1-base:1.3 pkgsrc-2015Q4:1.2.0.2 pkgsrc-2015Q4-base:1.2; locks; strict; comment @# @; 1.10 date 2023.06.06.12.41.17; author riastradh; state Exp; branches; next 1.9; commitid xhspr6Z8JLQOWSrE; 1.9 date 2022.06.27.06.32.44; author nia; state Exp; branches; next 1.8; commitid nyJZRaYAtS7NYDJD; 1.8 date 2020.04.15.22.51.19; author joerg; state Exp; branches; next 1.7; commitid 2g8ID4sFnqrLcx4C; 1.7 date 2018.07.24.16.28.35; author jperkin; state Exp; branches; next 1.6; commitid FozkMX4WhkVSmpLA; 1.6 date 2018.07.04.13.40.16; author jperkin; state Exp; branches; next 1.5; commitid NnIyRkdX3Lbg3PIA; 1.5 date 2017.09.06.11.12.19; author fhajny; state Exp; branches; next 1.4; commitid RcvXAxRZXahaW76A; 1.4 date 2016.05.17.10.32.07; author fhajny; state Exp; branches; next 1.3; commitid 6I4MSY4qjd2M1P6z; 1.3 date 2016.03.04.13.40.34; author fhajny; state Exp; branches; next 1.2; commitid akRrK0z7odh8tkXy; 1.2 date 2015.10.13.15.03.37; author fhajny; state Exp; branches; next 1.1; commitid WzHB1cSzdAhrwXEy; 1.1 date 2015.10.09.13.59.56; author fhajny; state Exp; branches; next ; commitid yFUuzHZVvxdpirEy; desc @@ 1.10 log @Mass-change BUILD_DEPENDS to TOOL_DEPENDS outside mk/. Almost all uses, if not all of them, are wrong, according to the semantics of BUILD_DEPENDS (packages built for target available for use _by_ tools at build-time) and TOOL_DEPEPNDS (packages built for host available for use _as_ tools at build-time). No change to BUILD_DEPENDS as used correctly inside buildlink3. As proposed on tech-pkg: https://mail-index.netbsd.org/tech-pkg/2023/06/03/msg027632.html @ text @# $NetBSD: Makefile,v 1.9 2022/06/27 06:32:44 nia Exp $ # .include "Makefile.common" COMMENT= Highly reliable distributed coordination server DISTFILES= ${DEFAULT_DISTFILES} ${DISTNAME}-deps.tar.gz SITES.${DISTNAME}-deps.tar.gz= ftp://ftp.NetBSD.org/pub/NetBSD/misc/fhajny/ TOOL_DEPENDS+= apache-ivy>=2.2.0:../../devel/apache-ivy USE_JAVA= yes USE_JAVA2= yes USE_TOOLS+= bash:run pax PKG_JVMS_ACCEPTED= openjdk8 PKG_SYSCONFSUBDIR= zookeeper .include "../../mk/bsd.prefs.mk" ZK_DB?= ${VARBASE}/db/zookeeper ZK_LOG?= ${VARBASE}/log/zookeeper ZK_RUN?= ${VARBASE}/run/zookeeper ZK_USER?= zookeeper ZK_GROUP?= zookeeper BUILD_DEFS+= VARBASE ZK_DB ZK_LOG ZK_RUN ZK_USER ZK_GROUP PKG_GROUPS+= ${ZK_GROUP} PKG_USERS+= ${ZK_USER}:${ZK_GROUP} PKG_GECOS.${ZK_USER}= ZooKeeper Daemon User PKG_HOME.${ZK_USER}= ${PREFIX}/share/zookeeper PKG_SHELL.${ZK_USER}= ${BASH} OWN_DIRS_PERMS+= ${ZK_DB} ${ZK_USER} ${ZK_GROUP} 755 OWN_DIRS_PERMS+= ${ZK_DB}/data ${ZK_USER} ${ZK_GROUP} 755 OWN_DIRS_PERMS+= ${ZK_LOG} ${ZK_USER} ${ZK_GROUP} 755 OWN_DIRS_PERMS+= ${ZK_RUN} ${ZK_USER} ${ZK_GROUP} 755 BUILDDIR= ${WRKSRC}/build/${DISTNAME} EGDIR= share/examples/zookeeper SUBST_CLASSES+= paths SUBST_STAGE.paths= pre-configure SUBST_MESSAGE.paths= Fixing ZooKeeper default paths SUBST_FILES.paths= conf/zoo_sample.cfg SUBST_FILES.paths+= src/packages/templates/conf/zookeeper-env.sh SUBST_VARS.paths+= PKG_JAVA_HOME ZK_DB ZK_LOG ZK_RUN REPLACE_BASH= bin/zkCli.sh bin/zkEnv.sh bin/zkServer.sh INSTALLATION_DIRS+= bin libexec sbin share/zookeeper ${EGDIR} CONF_FILES+= ${EGDIR}/configuration.xsl ${PKG_SYSCONFDIR}/configuration.xsl CONF_FILES+= ${EGDIR}/log4j.properties ${PKG_SYSCONFDIR}/log4j.properties CONF_FILES+= ${EGDIR}/zoo.cfg ${PKG_SYSCONFDIR}/zoo.cfg CONF_FILES_PERMS+= ${EGDIR}/zookeeper-env.sh ${PKG_SYSCONFDIR}/zookeeper-env.sh \ ${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 0755 FILES_SUBST+= ZK_USER=${ZK_USER} ZK_GROUP=${ZK_GROUP} ANT_ARGS+= -Duser.home=${FAKEHOMEDIR} -Divy.home=${WRKDIR}/ivy ANT_TARGET= bin-package post-extract: ${LN} -s ${PREFIX}/lib/java/ant/ivy-*.jar ${WRKSRC}/src/java/lib/ivy-0.0.0.jar do-build: ${_ULIMIT_CMD} cd ${WRKSRC} &&${SETENV} ${MAKE_ENV} ant ${ANT_ARGS} ${ANT_TARGET} do-install: ${INSTALL_SCRIPT} ${BUILDDIR}/bin/zkCli.sh ${DESTDIR}${PREFIX}/bin ${INSTALL_SCRIPT} ${BUILDDIR}/libexec/zkEnv.sh ${DESTDIR}${PREFIX}/libexec ${INSTALL_SCRIPT} ${BUILDDIR}/sbin/zkServer.sh ${DESTDIR}${PREFIX}/sbin ${INSTALL_DATA} ${BUILDDIR}/conf/configuration.xsl ${DESTDIR}${PREFIX}/${EGDIR} ${INSTALL_DATA} ${BUILDDIR}/conf/log4j.properties ${DESTDIR}${PREFIX}/${EGDIR} ${INSTALL_DATA} ${BUILDDIR}/conf/zoo_sample.cfg ${DESTDIR}${PREFIX}/${EGDIR}/zoo.cfg ${INSTALL_DATA} ${BUILDDIR}/share/zookeeper/templates/conf/zookeeper-env.sh \ ${DESTDIR}${PREFIX}/${EGDIR}/zookeeper-env.sh cd ${BUILDDIR}/share/zookeeper && ${PAX} -rw -pp * ${DESTDIR}${PREFIX}/share/zookeeper/ ${RM} -f ${DESTDIR}${PREFIX}/share/zookeeper/templates/conf/zookeeper-env.sh.orig .include "../../mk/java-vm.mk" .include "../../mk/bsd.pkg.mk" @ 1.9 log @zookeeper: Use a sufficiently old JVM for source version 6 @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.8 2020/04/15 22:51:19 joerg Exp $ d11 1 a11 1 BUILD_DEPENDS+= apache-ivy>=2.2.0:../../devel/apache-ivy @ 1.8 log @Honor resource restriction relaxation @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.7 2018/07/24 16:28:35 jperkin Exp $ d17 2 @ 1.7 log @zookeeper: Drop apache-ant dependency. Let it be pulled in via apache-ivy, which will pull in the correct version of apache-ant depending on the JDK in use. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.6 2018/07/04 13:40:16 jperkin Exp $ d70 1 a70 1 cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ant ${ANT_ARGS} ${ANT_TARGET} @ 1.6 log @*: Move SUBST_STAGE from post-patch to pre-configure Performing substitutions during post-patch breaks tools such as mkpatches, making it very difficult to regenerate correct patches after making changes, and often leading to substituted string replacements being committed. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.5 2017/09/06 11:12:19 fhajny Exp $ a10 1 BUILD_DEPENDS+= apache-ant-[0-9]*:../../devel/apache-ant @ 1.5 log @Update devel/zookeeper to 3.4.10. zookeeper 3.4.10 Sub-task - Fix race condition in testWatchAutoResetWithPending Bug - CancelledKeyException in zookeeper branch-3.4 - Startup race in ZooKeeperServer - Documentation copyright notice is out of date. - NullPointerException when redo Command is passed negative value - ServerConfig#parse(String[]) ignores tickTime - Update NOTICE file with Netty notice in 3.4 - Revisit release note doc and remove the items which are not related to the released version - Potential memory leak in recordio.c - Modify Info.REVISION to adapt git repo - PurgeTxnLog can inadvertently delete required txn log files - ZooKeeper server should verify that dataDir and snapDir are writeable before starting - SaslServerCallbackHandler#handleAuthorizeCallback() should log the exception - correct a few spelling typos - ZooTrace.logQuorumPacket does nothing - Build failure in contrib/zkfuse with gcc 6.x - Java target in branch 3.4 doesn't match documentation - Missing src/pom.template in release - Fix HierarchicalQuorumTest.java - Fix compilation error in branch-3.4 - Large databases take a long time to regain a quorum - Correct DataNode.getChildren() inconsistent behaviour. - Fix Kerberos Authentication related test cases - DOS attack on wchp/wchc four letter words (4lw) - Eclipse ant task no longer determines correct classpath for tests after ZOOKEEPER-2689 - checkstyle broken on branch-3.4 - Regenerate documentation for branch-3.4 release - MiniKdc test case intermittently failing due to principal not found in Kerberos database - Patch for ZOOKEEPER-2693 introduces potential race condition Improvement - Add 'electionTimeTaken' value in LeaderMXBean and FollowerMXBean - C unit test improvement: line break between 'ZooKeeper server started' and 'Running' - Update gitignore to account for other file extensions - Use TLS for downloading artifacts during build - Add comments to testReadOnlySnapshotDir and testReadOnlyTxnLogDir indicating that the tests will fail when run as root - Remove CHANGE.txt - Make it optional to fail build on test failure New Feature - Support Quorum Peer mutual authentication via SASL Test - Flaky Test: org.apache.zookeeper.server.quorum.CnxManagerTest.testCnxFromFutureVersion - Test Improvement by adding more QuorumPeer Auth related test cases - Fix ServerConfigTest#testValidArguments test case failures - ClientPortBindTest#testBindByAddress may fail due to "No such device" exception - Port QA github pull request build to branch 3.4 and 3.5 - Flaky Test: org.apache.zookeeper.server.SessionTrackerTest.testAddSessionAfterSessionExpiry zookeeper 3.4.9 Sub-task - Login object in ZooKeeperSaslClient is static Bug - C client zookeeper_interest returning ZOK on Connection Loss - zkperl: Segmentation fault if getting a node with null value - ACL cache in DataTree never removes entries - fsync.warningthresholdms in zoo.cfg not working - Supported platforms is completely out of date - Zookeeper service becomes unavailable when leader fails to write transaction log - traceFile property is not used in the ZooKeeper, it should be removed from documentation - Ant target generate-clover-reports is broken - Prevent multiple initialization of login object in each ZooKeeperSaslClient instance - recent commit broke findbugs qabot check - Zookeeper trunk build is failing on windows - getTGT() in Login.java mishandles confidential information - Upgrade Netty version due to security vulnerability (CVE-2014-3488) - Back-port ZOOKEEPER-1460 to 3.4 for IPv6 literal address support. - documentation should refer to Java cli shell and not C cli shell - Potential resource leak in C client when processing unexpected / out of order response Improvement - Make the three-node minimum more explicit in documentation and on website - Licenses section missing from pom file - upgrade ivy to recent version - Simplify releasenotes creation for 3.4 branch - consistent with newer branches. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.4 2016/05/17 10:32:07 fhajny Exp $ d46 1 a46 1 SUBST_STAGE.paths= post-patch @ 1.4 log @Use REAL_ROOT_USER/REAL_ROOT_GROUP instead of ROOT_USER/ROOT_GROUP for all pkgsrc dir/file ownership rules. Fixes unprivileged user/group names from leaking into binary packages, manifest as non-fatal chown/chgrp failure messages at pkg_add time. Bump respective packages' PKGREVISION. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.3 2016/03/04 13:40:34 fhajny Exp $ a5 1 PKGREVISION= 1 @ 1.3 log @Update zookeeper to 3.4.8. Changes in 3.4.8 Bug - std::length_error on update children - PurgeTxnLog does not correctly purge when snapshots and logs are at different locations - Several four-letter words are undocumented. - ZK Server startup fails if there are spaces in the JAVA_HOME path - TGT refresh time logic is wrong - assert in setup_random - JMX is disabled even if JMXDISABLE is false - Deadlock shutting down zookeeper - Update commons collections version used by tests/releaseaudit Changes in 3.4.7 Sub-task - ClientBase#createClient is failing frequently - Server not coming back up in QuorumZxidSyncTest - QuorumPeer is not shutdown in few cases - WatcherTest#testWatchAutoResetWithPending is failing - ZKClients are hitting KeeperException$ConnectionLossException due to wrong usage pattern - testTruncationNullLog fails on windows - Port async multi to 3.4 branch Bug - log all exceptions not caught by ZK threads - large numbers of watches can cause session re-establishment to fail - The Barrier sample code should create a EPHEMERAL znode instead of EPHEMERAL_SEQUENTIAL znode - C client bug in zookeeper_init (if bad hostname is given) - Net-ZooKeeper: Net::ZooKeeper consumes 100% cpu on wait - C client lib doesn't build on Solaris - getACL should only call DataTree.copyStat when passed in stat is not null - adding .gitattributes to prevent CRLF and LF mismatches for source and text files - PurgeTxnLog may delete data logs during roll - Add description for pzxid in programmer's guide. - fix windows build - zkCli.sh can't issue a CREATE command containing spaces in the data - Inconsistent behavior in autocreation of dataDir and dataLogDir - ZkCli.cmd commands fail with "'java' is not recognized as an internal or external command" - update all notice files, copyright, etc... with the new year - 2014 - ZK Shell/Cli not processing commands - NullPointerException in truncate - JDK8] Sort children for comparison in AsyncOps tests - zkpython: invalid data in GetData for empty node - REST contrib module does not include all required files when packaged - Invalid manifest files due to bogus revision property value - Apache Zookeeper logs cleartext admin passwords - Unit tests should only use build/test/data for data - zkServer.sh fails to read dataDir (and others) from zoo.cfg on Solaris 10 (grep issue, manifests as FAILED TO WRITE PID). - ReconfigRecoveryTest.testNextConfigUnreachable is failing - quot;src/contrib/zooinspector/NOTICE.txt" isn't complying to ".gitattributes" in branch-3.4 - deb - zkCli.sh, zkServer.sh and zkEnv.sh regression caused by ZOOKEEPER-1663 - recipes jar not included in the distribution package - Startup order in ServerCnxnFactory-ies is wrong - zookeeper follower fails to start after a restart immediately following a new epoch - Jute compareBytes incorrect comparison index - Yosemite build failure: htonll conflict - Unable to delete a node when the node has no children - Zookeeper 3.4.x and 3.5.0-alpha is not OSGi compliant - Trace bug in NettyServerCnxnFactory - Prevent resource leak in various classes - Memory leak on zookeeper_close - C client builds with incorrect error codes in VisualStudio 2010+ - jute generated allocate_* functions are not externally visible - Allow Zookeeper version string to have underscore '_' - JMX ObjectName is incorrect for observers - BinaryInputArchive readString should check length before allocating memory - JUnit4ZKTestRunner logs test failure for all exceptions even if the test method is annotated with an expected exception. - QuorumCnxManager#receiveConnection may crash with random input - Network issues can cause cluster to hang due to near-deadlock - PurgeTxnLog does not correctly purge when snapshots and logs are at different locations - Empty path in Set crashes server and prevents restart - Four letter command hangs when network is slow - stmk four-letter word fails execution at server while reading trace mask argument. - License update - JMX State from LocalPeerBean incorrect - SimpleSysTest test cases fails - Zookeeper is not using specified JMX port in zkEnv.sh - Zookeeper doc creation fails on windows - QuorumPeer loadDataBase() error message is incorrect - compilation broken for 3.4 Improvement - Cut down the running time of ZKDatabase corruption. - Upload Zookeeper package to Maven Central - Re-try DNS hostname -> IP resolution if node connection fails - mismatched CR/LF endings in text files - AsyncCallback.*Callback don't have any Javadoc - Improve Thread handling - Enable JMX remote monitoring - Server to log underlying cause of SASL connection problems - Improve exit log messsage of EventThread and SendThread by adding SessionId - Typo in Watcher.java - Let DataNode.getChildren() return an unmodifiable view of its children set - Log type of unexpected quorum packet in learner handler loop - Make the three-node minimum more explicit in documentation and on website - Change client connect zk service timeout log level from Info to Warn level @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.2 2015/10/13 15:03:37 fhajny Exp $ d6 1 d61 1 a61 1 ${ROOT_USER} ${ROOT_GROUP} 0755 @ 1.2 log @Re-use pkgsrc apache-ivy and cache dependency artefacts to avoid build time on-demand fetching of resources. PKGREVISION++ @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.1 2015/10/09 13:59:56 fhajny Exp $ a5 1 PKGREVISION= 1 @ 1.1 log @Import Apache ZooKeeper as devel/zookeeper (server) and devel/libzookeper (C lib). ZooKeeper is a centralized service for maintaining configuration information, naming, providing distributed synchronization, and providing group services. @ text @d1 1 a1 1 # $NetBSD$ d6 1 d9 3 d13 1 d65 6 d72 1 a72 1 cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ant bin-package @