X2Go Bug report logs - #715
Cannot create X2Go Session Database on EPEL 5

version graph

Package: x2goserver; Maintainer for x2goserver is X2Go Developers <x2go-dev@lists.x2go.org>; Source for x2goserver is src:x2goserver.

Reported by: Michael DePaulo <mikedep333@gmail.com>

Date: Sat, 3 Jan 2015 17:20:02 UTC

Severity: grave

Tags: pending

Found in version 4.0.1.18

Fixed in version 4.0.1.19

Done: X2Go Release Manager <git-admin@x2go.org>

Bug is archived. No further changes may be made.

Full log


🔗 View this message in rfc822 format

X-Loop: owner@bugs.x2go.org
Subject: Bug#715: [X2Go-Dev] Bug#715: Proposed patch
Reply-To: Michael DePaulo <mikedep333@gmail.com>, 715@bugs.x2go.org
Resent-From: Michael DePaulo <mikedep333@gmail.com>
Resent-To: x2go-dev@lists.x2go.org
Resent-CC: X2Go Developers <x2go-dev@lists.x2go.org>
X-Loop: owner@bugs.x2go.org
Resent-Date: Mon, 05 Jan 2015 13:30:01 +0000
Resent-Message-ID: <handler.715.B715.14204645606613@bugs.x2go.org>
Resent-Sender: owner@bugs.x2go.org
X-X2Go-PR-Message: followup 715
X-X2Go-PR-Package: x2goserver
X-X2Go-PR-Keywords: 
Received: via spool by 715-submit@bugs.x2go.org id=B715.14204645606613
          (code B ref 715); Mon, 05 Jan 2015 13:30:01 +0000
Received: (at 715) by bugs.x2go.org; 5 Jan 2015 13:29:20 +0000
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on
	ymir.das-netzwerkteam.de
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM,
	T_DKIM_INVALID,URIBL_BLOCKED autolearn=ham version=3.3.2
Received: from mail-we0-f173.google.com (mail-we0-f173.google.com [74.125.82.173])
	by ymir.das-netzwerkteam.de (Postfix) with ESMTPS id 2BBD05DB48
	for <715@bugs.x2go.org>; Mon,  5 Jan 2015 14:29:19 +0100 (CET)
Received: by mail-we0-f173.google.com with SMTP id q58so7858827wes.32
        for <715@bugs.x2go.org>; Mon, 05 Jan 2015 05:29:18 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=mime-version:in-reply-to:references:date:message-id:subject:from:to
         :cc:content-type;
        bh=fCz0xKCr9hZyNSbXfloLz7J0lR0ChV0aVV67cBQaP04=;
        b=gA/1Q/s0jKaew1Xu5A6rhlsKFp1XO/b8KxoaMrG1w2b1VCHQam/H0EYQtnY764Vvum
         EFim2ye4QxQj/COPBXNoKVS98TGsSW+7THTpghJwmKHSes69JHj8iu0B6C1/jSDgbbqO
         vsSYwkm01h+ayMdsSU6BA9gVLL5cbgKwzWhJRD5H++KlEMQ+iznR5mJ/MuonNOYFQOPv
         9vm1l44D3j8OCDvlCd+EqTeXcTwm1HKvtNGELQwvB6OiRSPX3axeWIEeNIRvniGc1C9C
         hEEFgLhBiLtvyrBKzNHETcDyUTy5gdK6+pRom7fBR28wy/Mr1SFyMfkr5mqbJi1ky3Lo
         Qayg==
MIME-Version: 1.0
X-Received: by 10.194.23.6 with SMTP id i6mr121702015wjf.26.1420464558799;
 Mon, 05 Jan 2015 05:29:18 -0800 (PST)
Received: by 10.180.90.116 with HTTP; Mon, 5 Jan 2015 05:29:18 -0800 (PST)
In-Reply-To: <20150105101334.Horde.2WQ_Ieu5pzXhDeMONJTlrg1@mail.das-netzwerkteam.de>
References: <CAMKht8iVc1bCg3BJ1Qg=CDtE+kSKYBeUFwT6JBS7Ou9m5PS2gw@mail.gmail.com>
	<20150105101334.Horde.2WQ_Ieu5pzXhDeMONJTlrg1@mail.das-netzwerkteam.de>
Date: Mon, 5 Jan 2015 08:29:18 -0500
Message-ID: <CAMKht8jgREGEjvu9pD6guspfzSQe9djxaEM_SMSAptJqB16_tg@mail.gmail.com>
From: Michael DePaulo <mikedep333@gmail.com>
To: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Cc: 715@bugs.x2go.org
Content-Type: text/plain; charset=UTF-8
Hi Mike#1,

On Mon, Jan 5, 2015 at 5:13 AM, Mike Gabriel
<mike.gabriel@das-netzwerkteam.de> wrote:
> Hi Michael,
>
>
> On  Mo 05 Jan 2015 05:12:04 CET, Michael DePaulo wrote:
>
>> Tags: patch
>>
>> I would like someone who knows Perl better, such as theUser2, to
>> review this patch.
>>
>> Although this is a very small patch, theUser2 advised me to be careful
>> when creating full paths.
>>
>> I tested it successfully under CentOS 5 and CentOS 6.
>>
>> I intended to use "make_path" instead of "mkpath" if File::Path 2.06
>> or later was detected. However, I could not figure out how to write a
>> statement like "use File::Path( make_path)" if File::Path->VERSION is
>> 2.06 or later. Specifically, it appears that "use" statements are
>> executed at compile time in Perl, so they cannot be used within an if
>> block. And I cannot just specify "use File::Path" for all versions of
>> File::Path because "make_path" is not exported by default.
>>
>> EPEL 5:
>> http://perldoc.perl.org/5.8.8/File/Path.html
>>
>> EPEL 6:
>> http://perldoc.perl.org/5.10.1/File/Path.html
>>
>> Latest:
>> http://perldoc.perl.org/File/Path.html
>
>
> I recommend a more conditional approach testing the existence of the
> make_path (and the mkpath) function during runtimed using the "defined"
> command.
>
> See:
> http://stackoverflow.com/questions/433752/how-can-i-determine-if-a-perl-function-exists-at-runtime
>
> Mike
[...]

I will follow that advice for runtime, but I still need to figure out
what to do at compile time.

http://perldoc.perl.org/functions/use.html
"Because use takes effect at compile time, it doesn't respect the
ordinary flow control of the code being compiled. In particular,
putting a use inside the false branch of a conditional doesn't prevent
it from being processed."

-Mike#2

Send a report that this bug log contains spam.


X2Go Developers <owner@bugs.x2go.org>. Last modified: Thu Nov 21 15:40:45 2024; Machine Name: ymir.das-netzwerkteam.de

X2Go Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.