From owner-freebsd-ports@freebsd.org Tue Jun 13 10:58:03 2017 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3AB9ABF0BEA for ; Tue, 13 Jun 2017 10:58:03 +0000 (UTC) (envelope-from amutu@amutu.com) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 13C5C7701F for ; Tue, 13 Jun 2017 10:58:03 +0000 (UTC) (envelope-from amutu@amutu.com) Received: by mailman.ysv.freebsd.org (Postfix) id 0FAD5BF0BE9; Tue, 13 Jun 2017 10:58:03 +0000 (UTC) Delivered-To: ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0D8BCBF0BE8 for ; Tue, 13 Jun 2017 10:58:03 +0000 (UTC) (envelope-from amutu@amutu.com) Received: from mail-oi0-x236.google.com (mail-oi0-x236.google.com [IPv6:2607:f8b0:4003:c06::236]) (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 B411E7701E for ; Tue, 13 Jun 2017 10:58:02 +0000 (UTC) (envelope-from amutu@amutu.com) Received: by mail-oi0-x236.google.com with SMTP id b6so16254093oia.1 for ; Tue, 13 Jun 2017 03:58:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amutu-com.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=iaUpYPnsPgldpuQg7Qk1oWC0thVlMcoN5XlVvozTWOA=; b=Nepd27AgdHlhjStoLySJHZXB4ZkOTz/Mwjrf8VZrc4dvf30rs8y8dygI3JQnbFwdQE hHF5zZkR4eXwmefyXsCtJyurcGgPsRZfWaOG8KDAENXEwiCgf82nXAjKK+XfKGYUZOg0 Q61WEJyClJ8+OMK/bHenK5c5kN0TIQP4ExFotYB/C/eOahgQR+uDciOqm5Im5Zmm2cRK UsCPpeai/Gj0XVZZgoeh/v1qwhm0q9pVp+Kmev+bJg5QDjcwcwvUKUNNnFK63VN0kuPh iOCSY/Ae5l3mShyMH4sX36kK5drfTrz0Zv1zNqnFrZf4hQVtKbhkGEFDG1QYhcIhcEfw U6Fw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=iaUpYPnsPgldpuQg7Qk1oWC0thVlMcoN5XlVvozTWOA=; b=oBKm6Zykobn449oXEcVA3nkr73AAz+RP5pPWyKshMPrdJ+Pj0zrVGTGpywM8RbXhRG Kwo26T5V8VaXsyJB0GpoN3tMMaqSJ1aqMrKCwNq9YyGMIl56d1s7+x3Yd7rs1ozKbUTZ syFwTC+IdNWexa/qLmUby5vPkmMO1empjwlPsdOvboPZ8lCLcEOKjo6QTe7/vgNs/eVR ltn+G+rLnhAG2V6KlQWImnhGVAl2WeUhm/lT0jjF1WUsVzGu40heElLH+SLMgskDvCay k+CIFEan5Xayx5oQsp3FQH8dxZHgE5U0cFleF3qKB/4NHB0HjrWHczSJAe4C7n+PmuHp KG8w== X-Gm-Message-State: AODbwcDYV1ByTbCoAsq5z8e8CPNpBHzAu2BZ285VJ6mUxHb3VghWV1nP FwAtwcppjY/Q180wQ3OINA== X-Received: by 10.202.220.67 with SMTP id t64mr26913576oig.134.1497351481934; Tue, 13 Jun 2017 03:58:01 -0700 (PDT) Received: from mail-oi0-f49.google.com (mail-oi0-f49.google.com. [209.85.218.49]) by smtp.gmail.com with ESMTPSA id e127sm6326279oic.21.2017.06.13.03.58.01 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 13 Jun 2017 03:58:01 -0700 (PDT) Received: by mail-oi0-f49.google.com with SMTP id b6so16253900oia.1 for ; Tue, 13 Jun 2017 03:58:01 -0700 (PDT) X-Received: by 10.202.89.10 with SMTP id n10mr3868751oib.33.1497351481182; Tue, 13 Jun 2017 03:58:01 -0700 (PDT) MIME-Version: 1.0 Received: by 10.74.133.136 with HTTP; Tue, 13 Jun 2017 03:57:40 -0700 (PDT) From: Jov Date: Tue, 13 Jun 2017 18:57:40 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: problem about port need /proc to build To: FreeBSD Ports Mailing List Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Jun 2017 10:58:03 -0000 Hi ports hackers, I am porting tensorflow to FreeBSD, It uses bazel to manage the dependencies and do the build.The port work now is mostly done (see: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=219609,I have local patch to fix the network need for do-configure) except one problem which I am not sure. So I write this mail to ask. The problem is bazel use /proc to locate its binary when start, see: https://github.com/bazelbuild/bazel/blob/255953740813414433eceedc99c2bef3c3f6e307/src/main/cpp/blaze_util_freebsd.cc : string GetSelfPath() { char buffer[PATH_MAX] = {}; ssize_t bytes = readlink("/proc/curproc/file", buffer, sizeof(buffer)); if (bytes == sizeof(buffer)) { // symlink contents truncated bytes = -1; errno = ENAMETOOLONG; } I am not sure this is acceptable for FreeBSD ports.I now set USE_PROCFS=yes for poudriere and it can pass the testport. If port needs /proc is not acceptable, I will patch devel/bazel to use sysctl get its binary path. Best, Jov