ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Alexey Tourbin <at@altlinux.ru>
To: ALT Devel discussion list <devel@lists.altlinux.org>
Subject: Re: [devel] Ошибка при сборке wxPerl
Date: Mon, 26 Jun 2006 18:54:11 +0400
Message-ID: <20060626145411.GE6065@localhost.localdomain> (raw)
In-Reply-To: <449FEC65.40305@altlinux.ru>


[-- Attachment #1.1: Type: text/plain, Size: 1344 bytes --]

On Mon, Jun 26, 2006 at 05:17:09PM +0300, Slava Dubrovskiy wrote:
> Alexey Tourbin пишет:
> >> #
> >> /usr/src/tmp/perl-Wx-buildroot/usr/lib/perl5/vendor_perl/i386-linux/Wx/Calendar.pm:
> >> deparse failed, trying to recover with -MWx
> >> #
> >> /usr/src/tmp/perl-Wx-buildroot/usr/lib/perl5/vendor_perl/i386-linux/Wx/Calendar.pm:
> >> deparse failed.
> >> prefix=/usr/src/tmp/perl-Wx-buildroot/usr/lib/perl5/vendor_perl/i386-linux
> >> error: /bin/sh failed
> >> error: Failed to find Requires
> >>     
> >
> > Проблема локализована, это SEGV при отсутствии DISPLAY.
> >
> > at@localhost ~build/Wx-0.26 12 $ perl -Mblib -c blib/lib/Wx/Calendar.pm
> > blib/lib/Wx/Calendar.pm syntax OK
> > at@localhost ~build/Wx-0.26 12 $ DISPLAY= perl -Mblib -c blib/lib/Wx/Calendar.pm
> > zsh: segmentation fault  DISPLAY= perl -Mblib -c blib/lib/Wx/Calendar.pm
> > at@localhost ~build/Wx-0.26 12 $ 
> >   
> Спасибо. Как быть в таком случае?

Ну как быть у случае взятия значения по нулевому адресу?  Надо
постараться не брать значения по нулевому адресу.  В общем как в аттаче
прцеплено в хешере собирается -- с ужасной руганью, но собирается.
Отошлите им патч в апстрим, скажите, что проверка синтаксиса perl -c
без DISPLAY'я не работает.

ЗЫ:  УНИМАНИЕ УСЕМ!!  Починю любой пакет умеренной сложности за ящик
пива aka $20.

[-- Attachment #1.2: perl-Wx-0.26-alt-SetConstants.patch --]
[-- Type: text/plain, Size: 2393 bytes --]

--- Wx-0.26/Constant.xs-	2005-11-19 02:19:10 +0300
+++ Wx-0.26/Constant.xs	2006-06-26 18:29:45 +0400
@@ -2162,41 +2162,55 @@ void SetConstants()
     //
     // Predefined colours
     //
+if (wxRED)
     wxPli_set_const( "wxRED", "Wx::Colour", new wxColour( *wxRED ) );
+if (wxGREEN)
     wxPli_set_const( "wxGREEN", "Wx::Colour", new wxColour( *wxGREEN ) );
+if (wxBLUE)
     wxPli_set_const( "wxBLUE", "Wx::Colour", new wxColour( *wxBLUE ) );
+if (wxBLACK)
     wxPli_set_const( "wxBLACK", "Wx::Colour", new wxColour( *wxBLACK ) );
+if (wxWHITE)
     wxPli_set_const( "wxWHITE", "Wx::Colour", new wxColour( *wxWHITE ) );
+if (wxCYAN)
     wxPli_set_const( "wxCYAN", "Wx::Colour", new wxColour( *wxCYAN ) );
+if (wxLIGHT_GREY)
     wxPli_set_const( "wxLIGHT_GREY", "Wx::Colour",
                      new wxColour( *wxLIGHT_GREY ) );
 
     //
     // predefined cursors
     //
+if (wxSTANDARD_CURSOR)
     wxPli_set_const( "wxSTANDARD_CURSOR", "Wx::Cursor",
                      new wxCursor( *wxSTANDARD_CURSOR ) );
+if (wxHOURGLASS_CURSOR)
     wxPli_set_const( "wxHOURGLASS_CURSOR", "Wx::Cursor",
                      new wxCursor( *wxHOURGLASS_CURSOR ) );
+if (wxCROSS_CURSOR)
     wxPli_set_const( "wxCROSS_CURSOR", "Wx::Cursor",
                      new wxCursor( *wxCROSS_CURSOR ) );
 
     //
     // predefined fonts
     //
+if (wxNORMAL_FONT)
     wxPli_set_const( "wxNORMAL_FONT", "Wx::Font",
                      new wxFont( *wxNORMAL_FONT ) );
+if (wxSMALL_FONT)
     wxPli_set_const( "wxSMALL_FONT", "Wx::Font",
                      new wxFont( *wxSMALL_FONT ) );
+if (wxITALIC_FONT)
     wxPli_set_const( "wxITALIC_FONT", "Wx::Font",
                      new wxFont( *wxITALIC_FONT ) );
+if (wxSWISS_FONT)
     wxPli_set_const( "wxSWISS_FONT", "Wx::Font",
                      new wxFont( *wxSWISS_FONT ) );
 
     //
     // predefined pens
     //
-    #define DEFINE_PEN( pen ) \
+    #define DEFINE_PEN( pen ) if (pen) \
         wxPli_set_const( #pen, "Wx::Pen", new wxPen( *pen ) )
 
     DEFINE_PEN( wxRED_PEN );
@@ -2215,7 +2229,7 @@ void SetConstants()
     //
     // Predefined brushes
     //
-    #define DEFINE_BRUSH( brush ) \
+    #define DEFINE_BRUSH( brush ) if (brush) \
         wxPli_set_const( #brush, "Wx::Brush", new wxBrush( *brush ) )
 
     DEFINE_BRUSH( wxBLUE_BRUSH );

[-- Attachment #1.3: perl-Wx.spec --]
[-- Type: text/plain, Size: 1066 bytes --]

Name: perl-Wx
Version: 0.26
Release: alt0
Summary: wxPerl - Perl bindings for wxWindows 
License: GPL
Group: System/Libraries
Source: http://prdownloads.sourceforge.net/wxperl/Wx-%version.tar.gz
Url: http://wxperl.sourceforge.net/

Patch0: perl-Wx-0.26-alt-SetConstants.patch

# Added by buildreq2 on Mon Jun 26 2006
BuildRequires: gcc-c++ icon-theme-hicolor libXcursor-devel libpango-devel perl-Storable perl-Test-Pod perl-YAML wxGTK2u-contrib-stc-devel wxGTK2u-devel xvfb-run

%description
wxPerl is a Perl module wrapping the awesome wxWindows library
for cross-platform GUI developement.

%prep
%setup -q -n Wx-%version
%patch0 -p1

%build
%def_without test
%perl_vendor_build
xvfb-run -a make test

%install
%perl_vendor_install

%files
%doc README.txt docs/todo.txt Changes
%perl_vendor_archlib/Wx*
%perl_vendor_autolib/Wx*

%changelog
* Wed Jun 21 2006 Slava Dubrovskiy <dubrsl@altlinux.ru> 0.26-alt0
- 0.26
- Update spec

* Sat May 13 2006 Valentyn Solomko <val@pere.org.ua> 0.2.0.060513
- First build for ALTLinux.

[-- Attachment #2: Type: application/pgp-signature, Size: 191 bytes --]

  parent reply	other threads:[~2006-06-26 14:54 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-21 14:59 Slava Dubrovskiy
2006-06-21 15:41 ` Sergey Vlasov
2006-06-21 15:50   ` Led
2006-06-23  8:22   ` Slava Dubrovskiy
2006-06-23 14:22     ` Alexey Tourbin
2006-06-24  0:02       ` Alexey Tourbin
2006-06-26  9:17         ` Slava Dubrovskiy
2006-06-26 10:45           ` Alex Gorbachenko
2006-06-26 12:39           ` Alexey Tourbin
2006-06-26 13:02             ` Slava Dubrovskiy
2006-06-26 13:16               ` Alexey Tourbin
2006-06-26 13:31                 ` Slava Dubrovskiy
2006-06-26 14:04               ` Alexey Tourbin
2006-06-26 14:17                 ` Slava Dubrovskiy
2006-06-26 14:27                   ` Alexey Tourbin
2006-06-26 14:32                     ` Slava Dubrovskiy
2006-06-26 14:39                       ` Alexey Tourbin
2006-06-26 14:54                   ` Alexey Tourbin [this message]
2006-06-26 15:30                     ` Igor Zubkov
2006-06-26 15:44                       ` Alexey Tourbin
2006-06-27  6:38                     ` Slava Dubrovskiy
2006-06-26 14:22                 ` Alexey Tourbin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060626145411.GE6065@localhost.localdomain \
    --to=at@altlinux.ru \
    --cc=devel@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git