From owner-freebsd-ports@freebsd.org Mon Apr 2 02:41:58 2018 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CB432F6B431 for ; Mon, 2 Apr 2018 02:41:58 +0000 (UTC) (envelope-from mpp302@gmail.com) Received: from mail-lf0-f68.google.com (mail-lf0-f68.google.com [209.85.215.68]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 187EB692AD; Mon, 2 Apr 2018 02:41:58 +0000 (UTC) (envelope-from mpp302@gmail.com) Received: by mail-lf0-f68.google.com with SMTP id a22-v6so18799176lfg.9; Sun, 01 Apr 2018 19:41:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-transfer-encoding; bh=3F5eSpb9hKN3RUh/8jhewf9ev/Zk5FH4NWGlSSJWg88=; b=M4Fz2zpVG5j8QZBNW+++u0sBbrXgn6qYb3aDsuOidayW1HDmqnDF0cYxwLs8OIsD6h yZLZXNGOQ5bv7wJoTNF+S2UKJcE711gE7aY1xsKmJkDqV5YEuMmyrpAHgYqBzV2GtDqG FejRJ7p8niJgJ6Bg5z8hz+j8GqN4gbEdU8rWrQ4qBGhYlH410EyhDdWgJufA2FLSwn5b jbTZiqEsQSwj6zfIqrPqldSF29suh1Ast8PkQxmIP845oDgNufkTzN0hnCkK0NHDt15/ ZgNrOq89FoYUzcPMJxpef9kuAPwZOTz3sZA3+kY9oOCiAtJ0f3LrCo/YF3Tl+dwIyUtp V2+A== X-Gm-Message-State: ALQs6tB1L8gxkiksXKxEAMJ/e5T9rh4lsDDMIyZaCJUReaXMqlji2mud 4H/lQHnvWaHkLU07ET6hgUSMfBnT+40= X-Google-Smtp-Source: AIpwx48/pgrv5T6PNnx94RaY9orndeO9/YBUVq27uks0jBE44rnQAIXPtYwou3vfHt4pN9B8CsVwSw== X-Received: by 2002:a19:381c:: with SMTP id f28-v6mr4369868lfa.15.1522635650834; Sun, 01 Apr 2018 19:20:50 -0700 (PDT) Received: from oxy (89-76-8-18.dynamic.chello.pl. [89.76.8.18]) by smtp.gmail.com with ESMTPSA id o8sm2409303ljj.42.2018.04.01.19.20.49 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 01 Apr 2018 19:20:50 -0700 (PDT) Date: Mon, 2 Apr 2018 04:21:35 +0200 From: Mateusz Piotrowski <0mp@FreeBSD.org> To: freebsd-ports@freebsd.org Subject: Regression affecting some database daemons on 12-CURRENT Message-ID: <20180402042135.5543b1a9@oxy> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; amd64-portbld-freebsd12.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Apr 2018 02:41:59 -0000 Hello, Due to the changes in rc.subr introduced by r328331[1] some of the database services are broken on FreeBSD 12-CURRENT. Before r328331 some database services defined a bool variable `${name}_limits`. When it was set to YES it triggered limits(1) to run before a daemon was started. Revision 328331 introduced a standard mechanism to do it. As a result daemon maintainers/developers no longer have to roll out their own solutions. The problem is that the semantics of the new common mechanism is not compatible with many service files. `${name}_limits` used to be a bool variable whereas now it is a string of extra flags to be passed to limits(1). The following command reveals a list of potenially affected ports: $ cd /usr/ports $ find . -mindepth 4 -maxdepth 4 -type f ! -name '*patch*' \ -exec grep -l _limits {} \+ | \ awk -v FS=/ -v OFS=/ '{print $2,$3}' - | sort | uniq databases/arangodb32 databases/arangodb33 databases/clickhouse databases/mariadb100-server databases/mariadb101-server databases/mariadb102-server databases/mariadb55-server databases/mongodb databases/mongodb32 databases/mongodb34 databases/mongodb34-rocks databases/mongodb36 databases/mysql55-server databases/mysql56-server databases/mysql57-server databases/mysql80-server databases/mysqlwsrep56-server databases/mysqlwsrep57-server databases/percona55-server databases/percona56-server databases/percona57-server I confirm that the problem exists in all those ports. The ports maintainers received a BCC of this message. Initially, I thought that this bug is related only to the databases/mongodb36 port but it turned out that it is a bigger issue. The issue on Bugzilla for monogodb36 is here[2]. FWIW, I've submitted an update to the rc.subr manual to improve the documentation of that new ${name}_limits variable.[3] Regards, Mateusz Piotrowski [1]: https://svnweb.freebsd.org/base?view=revision&revision=r328331 [2]: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=226907 [3]: https://reviews.freebsd.org/D14928