From owner-freebsd-ports@FreeBSD.ORG Sun Jan 11 02:34:35 2015 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D1F50B3A for ; Sun, 11 Jan 2015 02:34:35 +0000 (UTC) Received: from mail-wi0-x22e.google.com (mail-wi0-x22e.google.com [IPv6:2a00:1450:400c:c05::22e]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 76CED3FA for ; Sun, 11 Jan 2015 02:34:35 +0000 (UTC) Received: by mail-wi0-f174.google.com with SMTP id h11so8731708wiw.1 for ; Sat, 10 Jan 2015 18:34:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mcnhealthcare.com; s=google; h=mime-version:date:message-id:subject:from:to:content-type; bh=7QaxPFTbaNGf4obZRL7EIaVH8renmPDNvzvhLE0s+q4=; b=JBjYk3VLEghvsnnol39I5Kb0x67fsafAIRup3An0c0aQDAOfFyi7VWY25T3/mmqXZU oDQN4QJh7imGmCWCnliTcE+VCYEz4jMY461kBK8Sw59uySFJFPve8X4zF+yq42zra77Y 9kOunV5fLzuVmaQ0gnjM10JVK/BfqlQjUZ5FY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=7QaxPFTbaNGf4obZRL7EIaVH8renmPDNvzvhLE0s+q4=; b=VeM4be9ir41YIlaCUggveC2civlncKoO5s4UWWYC72IQDcZinKltT/hWrdhuTkIKeH GduCZr0ds733K0NVykbl+cRkp6plTVs6ESfA+I6gN50SdmO09C+Y4dSdOuwOJQwISEln v01rPaXK9ILh0cVbWHxiWWo3GzTjOC+5wZbqnqsSIruOheAwBdbLHXAYwfSoJQlcFJHN Xc7Fka8oNcW7UihNeNYJIH9xfjpjlHDNWJ78LqgQ3XT84pCIErk9b7XUDEuS9Cgj24TH 1U6vGoHKSV4fkXM0F8Kk76kHDEm+XgvcLazZpy0JYD9xQU42mLeO58AlU8AhvTHwqevL 92tA== X-Gm-Message-State: ALoCoQldhfV+F1UQKBORIiAzdjEaMe5qsOLSAXuIwGHpRIpz4G/QoHlg0hBcFuyszEFtmEcr33gR MIME-Version: 1.0 X-Received: by 10.194.90.81 with SMTP id bu17mr45363986wjb.3.1420943673761; Sat, 10 Jan 2015 18:34:33 -0800 (PST) Received: by 10.27.1.198 with HTTP; Sat, 10 Jan 2015 18:34:33 -0800 (PST) Date: Sat, 10 Jan 2015 19:34:33 -0700 Message-ID: Subject: python --with-pydebug and google generate your project build tools From: Fred Woods To: freebsd-ports@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Jan 2015 02:34:36 -0000 The google generate your project build tool used by some ports (chromium, firefox) is not compatible with python built with the debug option (--with-pydebug). https://code.google.com/p/gyp/source/browse/trunk/pylib/gyp/input.py starting at lines 896 to 904. Code looks for non-zero status or any output on stderr. Python built with --with-pydebug will write a references count to stderr upon exit of a python process. If input.py runs a python sub process, the pydebug output will cause input.py to assume there was an error in the sub process. Easy solution: don't build the python port with debugging. Ugly solution: patch input.py in each affected port to not treat stderr output as an error. if p.wiat() != 0 or p_stderr: if p.wait() != 0: