Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id B844D200D08 for ; Wed, 23 Aug 2017 02:20:17 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id B6976166D55; Wed, 23 Aug 2017 00:20:17 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id D29DF166D4D for ; Wed, 23 Aug 2017 02:20:16 +0200 (CEST) Received: (qmail 62454 invoked by uid 500); 23 Aug 2017 00:20:16 -0000 Mailing-List: contact dev-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@perl.apache.org Received: (qmail 62443 invoked by uid 99); 23 Aug 2017 00:20:15 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Aug 2017 00:20:15 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 3BA7E1A1690 for ; Wed, 23 Aug 2017 00:20:15 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.379 X-Spam-Level: X-Spam-Status: No, score=0.379 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id OhujY55nKmuz for ; Wed, 23 Aug 2017 00:20:13 +0000 (UTC) Received: from mail-qt0-f193.google.com (mail-qt0-f193.google.com [209.85.216.193]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id CBF575F6C2 for ; Wed, 23 Aug 2017 00:20:12 +0000 (UTC) Received: by mail-qt0-f193.google.com with SMTP id e2so235930qta.2 for ; Tue, 22 Aug 2017 17:20:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=o75XfkjGPYRR+lyb+aMFU/Q/dv8bTOhAq0h5Nr3Pwzs=; b=WOJB4X5MTn47ITMm03pUtBgjXTNTbIdqdYUXuzR/A9xZqK7R58SXUkbxPq8C0fC6DM 2B9kIxA7xjy/KtBkW539tCWCuE1I1jpPDMHG2qf0kQ4xs4fsLXPCLlEEqrxbAnXqUnRQ BKvC52XZ4qhTxV5GTD1UOCbTAhAa6RNSzW5gjdgcbBA6WDu2X376N07+xeHOwpSnbsC+ 5uYiWzyz3EzTLIDTRU4tye8JZi1P48PkyrqOuVVGPQRJOZny1BD+r6s8X9jutTTbU2vS nfvrJHZTHtQHcg8nvjxDxaEKpEUIn+6HCQ+Ny91npVymt7Zn5m2HjuhwA4FwJmSyYV0t Lz1Q== 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=o75XfkjGPYRR+lyb+aMFU/Q/dv8bTOhAq0h5Nr3Pwzs=; b=r8zHL0b/JJy8TntpBP2dViT1oB6tahOUjQ1T4ZGXiOYA/iq64k5fop50FinkeP6iCs a48ixwe3ZbDAcDLa3JKFqhtXjEo3qTbsK1au7GEBroKqW6TWTpjosuTwNkyUuTAwJZJY JPk4ZuZyRnr/yyj4hNYFM0h+pV7lbzVCEoYwHQjWNTNTH/GtyfyfHUhMn55twwG87vUB EfFFehTGRdiku8dg9hgd5nHsFWqyKQfBOMMg2MNO8i0edFml3ghmtMNiFtNa7SLAn0/B GX0QyvMxadSDwiM8voEncggCc8ie0luIei9USvMrKR4mvRwfNncECBPqDSuHZuk1g+zX RxiQ== X-Gm-Message-State: AHYfb5iDlUbdZ9vHZ8vld63/j2LsCJ0fy4RvJgFreZwcP9NXrhInDibY 4NMu0KCi2AkSkjEfOtAqsNT5fQhk91wnnyw= X-Received: by 10.200.15.84 with SMTP id l20mr1297106qtk.38.1503447612369; Tue, 22 Aug 2017 17:20:12 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.137.102 with HTTP; Tue, 22 Aug 2017 17:19:31 -0700 (PDT) From: Mark Hedges Date: Tue, 22 Aug 2017 17:19:31 -0700 Message-ID: Subject: Re: Problems using Apache::Test on Debian (and Ubuntu) To: jzobel@heute-morgen.de, dev@perl.apache.org Content-Type: text/plain; charset="UTF-8" archived-at: Wed, 23 Aug 2017 00:20:17 -0000 Joachim Zobel wrote Wed, 21 Jun 2017 21:40:28 -0700: > Hi. > Just wanted to point out that as a workaround running as root worked for me (on debian stretch using cpan2deb). > Sincerely, > Joachim I appreciate the feedback Joachim. I am working on this problem now, trying to get Apache2::Controller to test in Debian. Can you provide more details about your workaround? I tried `cpan2deb Apache2::Controller` as root on a pristine stretch installation, but it did not run the Apache::Test suite: =============================== ... Needs the following debian packages during building: libmodule-build-perl (>= 0.42), libapache2-mod-perl2 (>= 1.12), libwww-perl, libhttp-cookies-perl, libmath-bigint-gmp-perl, libnet-openid-server-perl, libhttp-server-simple-perl, liburi-perl Using maintainer: root Found docs: README.txt README.TODO Using rules: /usr/share/dh-make-perl/rules.dh.tiny Module::Build needs libmodule-build-perl Module::Build needs perl xdelta: warning: no matches found in from file, patch will apply without it xdelta: warning: no matches found in from file, patch will apply without it pristine-tar: committed libapache2-controller-perl_1.1.1.orig.tar.gz.delta to branch pristine-tar make: Entering directory '/tmp/wtf/Apache2-Controller-v1.1.1' dh clean dh_testdir dh_auto_clean dh_clean make: Leaving directory '/tmp/wtf/Apache2-Controller-v1.1.1' make: Entering directory '/tmp/wtf/Apache2-Controller-v1.1.1' dh build dh_testdir dh_update_autotools_config dh_auto_configure perl -I. Build.PL --installdirs vendor --config "optimize=-g -O2 -fdebug-prefix-map=/tmp/wtf/Apache2-Controller-v1.1.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2" --config "ld=x86_64-linux-gnu-gcc -g -O2 -fdebug-prefix-map=/tmp/wtf/Apache2-Controller-v1.1.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z,relro" Created MYMETA.yml and MYMETA.json Creating new 'Build' script for 'Apache2-Controller' version 'v1.1.1' dh_auto_build perl Build Building Apache2-Controller dh_auto_test perl Build test --verbose 1 /usr/bin/perl -I /tmp/wtf/Apache2-Controller-v1.1.1/blib/lib -I /tmp/wtf/Apache2-Controller-v1.1.1/blib/arch t/TEST -clean [warning] setting ulimit to allow core files ulimit -c unlimited; /usr/bin/perl /tmp/wtf/Apache2-Controller-v1.1.1/t/TEST -clean /usr/bin/perl -I /tmp/wtf/Apache2-Controller-v1.1.1/blib/lib -I /tmp/wtf/Apache2-Controller-v1.1.1/blib/arch t/TEST -bugreport -verbose=1 [warning] setting ulimit to allow core files ulimit -c unlimited; /usr/bin/perl /tmp/wtf/Apache2-Controller-v1.1.1/t/TEST -bugreport -verbose=1 apache2: Could not open configuration file /etc/apache2/httpd.conf: No such file or directory [ error] Apache cannot spawn child processes as root, therefore the test suite must be run as a non-privileged user. create-stamp debian/debhelper-build-stamp make: Leaving directory '/tmp/wtf/Apache2-Controller-v1.1.1' make: Entering directory '/tmp/wtf/Apache2-Controller-v1.1.1' dh binary create-stamp debian/debhelper-build-stamp dh_testroot dh_prep dh_auto_install perl Build install --destdir /tmp/wtf/Apache2-Controller-v1.1.1/debian/libapache2-controller-perl --create_packlist 0 Building Apache2-Controller Installing /tmp/wtf/Apache2-Controller-v1.1.1/debian/libapache2-controller-perl/usr/share/perl5/Apache2/Controller.pm ... =============================== As you can see, we ran into the same errors here that the original message thread poster noted: apache2: Could not open configuration file /etc/apache2/httpd.conf: No such file or directory [ error] Apache cannot spawn child processes as root, therefore the test suite must be run as a non-privileged user. If you were able to get the Apache::Test suite to run in any library that uses mod_perl2 and Apache::Test, can you please share the details of what you did? Incidentally, this seems like a broader problem in the vendor, both Debian and Ubuntu. If their system is building packages from source packages as root, any packaged CPAN library that uses Apache::Test is not actually being tested in the build stage, even though it looks like it works because the process completes successfully. It should really bail there at the [error] stage and say "I can't do this." Thanks. Mark --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org For additional commands, e-mail: dev-help@perl.apache.org