Re: MC not starting

2010-11-05 Thread Paul Onyschuk
I give up after fighting with pkgsrc for 2 hours. I tried compiling
devel/libslang2 with pkgsrc's version of ncurses instead of native one.
First I installed ncruses from pkgsrc, then changed mk.conf options to:

LDFLAGS+= -Wl,-rpath -Wl,/usr/pkg/lib
PREFER_PKGSRC= termcap ncurses

Then I changed environment variables:

# setenv LD_LIBRARY_PATH /usr/pkg/lib
# setenv LD_RUN_PATH /usr/pkg/lib

env shows that they're set properly. But after make replace in
devel/libslang2, Slang is still using /usr/lib/libncurses.so.6.
Something wrong on my site or libtool is broken on DragonFly BSD -
ignoring LD_LIBRARY_PATH and so on?



-- 
Paul Onyschuk bl...@bojary.koba.pl


Re: MC not starting

2010-11-05 Thread Chris Turner

Paul Onyschuk wrote:

I give up after fighting with pkgsrc for 2 hours.


pkgsrc does a pretty good job of replacing the environment
with a 'clean' one - so I'm not sure if the evnironment stuff
would take effect - you can e.g. 'bmake -d A ...' to get more 
information than you could ever want about things..


also theres a PKG_DEBUG_LEVEL or similar to see the details -
see also www.netbsd.org/docs/pkgsrc/ for sure

perhaps just for tests it might make sense to move your
system curses out of the way just to see what happens..

although, of course, ideally the 'proper' build should work..

I'm not well versed enough in the 'prefer pkgsrc' stuff to
know how to debug it - I'd think:

/usr/pkgsrc/mk/curses.buildlink3.mk
/usr/pkgsrc/mk/curses.builtin.mk

and maybe:

/usr/pkgsrc/mk/defaults/options.description
/usr/pkgsrc/mk/bsd.options.mk
/usr/pkgsrc/mk/pkg-build-options.mk

might be some things to check.. perhaps there's some bug there?

another idea maybe is to try another curses-using package to
see if it would build against your version - if so- perhaps
the particular package makefile needs some kind of option set..



Re: MC not starting

2010-11-04 Thread Tomas Bodzar
2010/11/4 Przemysław Pawełczyk pp...@o2.pl:
 Hi,

 I wrote in September a post etitled Unknown terminal: cons25 in
 DragonFly BSD (in point 3):
 http://www.mail-archive.com/users@crater.dragonflybsd.org/msg10993.html

 that:
 Why mc says Unknown terminal: cons25? I'm not able to run mc at
 present. See: http://pp.blast.pl/www.png/dfbsd/df_10.png;

Don't use VirtualBox, it simply sucks and not only for BSD systems


 See the present screenshot (the message is the same):
 http://pp.blast.pl/www.png/dfbsd/df_13.png

You don't have df_13.png in your directory


 What to do next?

 I installed DFly in VBox using NetBSD (64bit) template to play
 around with the system. During installation I set language options to
 iso.8859-2 and pl-aware whenever possible.

Again, don't use VirtualBox which really sucks. And more specifically
if you are testing Dfly, then you can't use NetBSD, FreeBSD or any
similar as Dfly is not any of  them. Use simply Other.


 Any help welcome.

 Regards

 --
 Przemysław Pawełczyk (P2O2) [pron. Pshemislav Paveltchick]
 http://pp.blast.pl, pp...@o2.pl




Re: MC not starting

2010-11-04 Thread Jan Lentfer
On Thu, 4 Nov 2010 19:58:25 +0100, Przemysław Pawełczyk pp...@o2.pl
wrote:
 I wrote in September a post etitled Unknown terminal: cons25 in
 DragonFly BSD (in point 3):
 http://www.mail-archive.com/users@crater.dragonflybsd.org/msg10993.html
 
 that:
 Why mc says Unknown terminal: cons25? I'm not able to run mc at
 present. See: http://pp.blast.pl/www.png/dfbsd/df_10.png;
 
 See the present screenshot (the message is the same):
 http://pp.blast.pl/www.png/dfbsd/df_13.png

The second link isn't working. Did you try to set the TERM variable to
another value as suggested, e.g. vt100?

Jan

-- 
professional: http://www.oscar-consult.de
private: http://neslonek.homeunix.org/drupal/


Re: MC not starting

2010-11-04 Thread Przemysław Pawełczyk
On Thu, 4 Nov 2010 20:10:13 +0100
Tomas Bodzar tomas.bod...@gmail.com wrote:

 2010/11/4 Przemysław Pawełczyk pp...@o2.pl:
  Hi,
 
  I wrote in September a post etitled Unknown terminal: cons25 in
  DragonFly BSD (in point 3):
  http://www.mail-archive.com/users@crater.dragonflybsd.org/msg10993.html
 
  that:
  Why mc says Unknown terminal: cons25? I'm not able to run mc at
  present. See: http://pp.blast.pl/www.png/dfbsd/df_10.png;
 
 Don't use VirtualBox, it simply sucks and not only for BSD systems

Hi,

Sucks where it has to sucks, helpful where it can be helpful. :-)

  See the present screenshot (the message is the same):
  http://pp.blast.pl/www.png/dfbsd/df_13.png
 
 You don't have df_13.png in your directory

I'm sorry, corrected.

  I installed DFly in VBox using NetBSD (64bit) template to play
  around with the system. During installation I set language options
  to iso.8859-2 and pl-aware whenever possible.
 
 Again, don't use VirtualBox which really sucks. And more specifically
 if you are testing Dfly, then you can't use NetBSD, FreeBSD or any
 similar as Dfly is not any of  them. Use simply Other.

I used Other option before, now I tried NetBSD.

Perhaps Russian blogger will shed a new light (I posted translation).

Regards

-- 
Przemysław Pawełczyk (P2O2) [pron. Pshemislav Paveltchick]
http://pp.blast.pl, pp...@o2.pl


pgpmbqeK7yS7E.pgp
Description: PGP signature


Re: MC not starting

2010-11-04 Thread Przemysław Pawełczyk
On Thu, 04 Nov 2010 20:18:21 +0100
Jan Lentfer jan.lent...@web.de wrote:

  See the present screenshot (the message is the same):
  http://pp.blast.pl/www.png/dfbsd/df_13.png
 
 The second link isn't working. Did you try to set the TERM variable to
 another value as suggested, e.g. vt100?

1. corrected
2. set export TERM=vt100 both in .profile and .login (I hope I did it
rightly): the message remains the same.

Regards

-- 
Przemysław Pawełczyk (P2O2) [pron. Pshemislav Paveltchick]
http://pp.blast.pl, pp...@o2.pl


pgpyB5kAm42SB.pgp
Description: PGP signature


Re: MC not starting

2010-11-04 Thread Jan Lentfer
On Thu, 4 Nov 2010 20:37:17 +0100, Przemysław Pawełczyk pp...@o2.pl
wrote:

 2. set export TERM=vt100 both in .profile and .login (I hope I did it
 rightly): the message remains the same.

I assume you logged out/in or sourced .profile and checked (echo $TERM)
that TERM is set correctly?

Jan
-- 
professional: http://www.oscar-consult.de
private: http://neslonek.homeunix.org/drupal/


Re: MC not starting

2010-11-04 Thread Przemysław Pawełczyk
On Thu, 04 Nov 2010 20:55:23 +0100
Jan Lentfer jan.lent...@web.de wrote:

 On Thu, 4 Nov 2010 20:37:17 +0100, Przemysław Pawełczyk pp...@o2.pl
 wrote:
 
  2. set export TERM=vt100 both in .profile and .login (I hope I did
  it rightly): the message remains the same.
 
 I assume you logged out/in or sourced .profile and checked (echo
 $TERM) that TERM is set correctly?

Positive. After loggin the TERM gets cons25.
# cat .profile
...
TERM=vt100
export TERM
...

# echo $TERM
cons325

But did you read my second post on this thread with a Russian blogger's
results who tried to resolve the same issue with MC?

Regards

-- 
Przemysław Pawełczyk (P2O2) [pron. Pshemislav Paveltchick]
http://pp.blast.pl, pp...@o2.pl


pgplngWwXWoEq.pgp
Description: PGP signature


Re: MC not starting

2010-11-04 Thread Przemysław Pawełczyk
On Thu, 04 Nov 2010 22:49:03 +0100
Jan Lentfer jan.lent...@web.de wrote:

 Am 04.11.2010 22:34, schrieb Przemysław Pawełczyk:
  Positive. After loggin the TERM gets cons25.
  # cat .profile
  ...
  TERM=vt100
  export TERM
  ...
 
  # echo $TERM
  cons325
 eh, well, that's not positive :-) I assume cons325 is a typo and you 
 meant cons25. Then the TERM wasn't set correctly.
 
 Please just do the following directly after login
 
 # tcsh
 # setenv TERM vt100
 # mc

Let's say I fogot to tell you I changed root shell to sh. 
Is the positive then?

325 was a typo, of course.

Regards

-- 
Przemysław Pawełczyk (P2O2) [pron. Pshemislav Paveltchick]
http://pp.blast.pl, pp...@o2.pl


pgpnz8bLIYEnp.pgp
Description: PGP signature


Re: MC not starting

2010-11-04 Thread Paul Onyschuk
It's Slang problem. MC builded with this options, works just fine under
localized cons25l2 terminal and csh:

PKG_OPTIONS.mc= ncurses -slang

Other apps that uses devel/libslang2 like news/slrn and misc/most, also
suffers from the same problem.

-- 
Paul Onyschuk bl...@bojary.koba.pl


Re: MC not starting

2010-11-04 Thread Przemysław Pawełczyk
On Thu, 04 Nov 2010 22:49:03 +0100
Jan Lentfer jan.lent...@web.de wrote:

 Please just do the following directly after login
 
 # tcsh
 # setenv TERM vt100
 # mc

I did, first changing sh shell to tcsh. What I got was inspiring but
more to the avant-garde artists. :-)

See for yourself: http://pp.blast.pl/www.png/dfbsd/df_14.png

Regards

-- 
Przemysław Pawełczyk (P2O2) [pron. Pshemislav Paveltchick]
http://pp.blast.pl, pp...@o2.pl


pgp9BnAeYBU1o.pgp
Description: PGP signature


Re: MC not starting

2010-11-04 Thread Przemysław Pawełczyk
On Thu, 4 Nov 2010 23:38:31 +0100
Paul Onyschuk bl...@bojary.koba.pl wrote:

 It's Slang problem. MC builded with this options, works just fine
 under localized cons25l2 terminal and csh:
 
 PKG_OPTIONS.mc=   ncurses -slang
 
 Other apps that uses devel/libslang2 like news/slrn and misc/most,
 also suffers from the same problem.

Thanks.

But is there any chance to get MC working after downloading its
binaries just after fresh installation of DF? Just like it is with
other systems?

Now I will try to compile mc from sources.

Regards

-- 
Przemysław Pawełczyk (P2O2) [pron. Pshemislav Paveltchick]
http://pp.blast.pl, pp...@o2.pl


pgpRqE495fuos.pgp
Description: PGP signature


Re: MC not starting

2010-11-04 Thread Justin C. Sherrill
On Thu, November 4, 2010 6:54 pm, Przemysław Pawełczyk wrote:
 On Thu, 4 Nov 2010 23:38:31 +0100
 Paul Onyschuk bl...@bojary.koba.pl wrote:

 It's Slang problem. MC builded with this options, works just fine
 under localized cons25l2 terminal and csh:

 PKG_OPTIONS.mc=  ncurses -slang

 Other apps that uses devel/libslang2 like news/slrn and misc/most,
 also suffers from the same problem.

 Thanks.

 But is there any chance to get MC working after downloading its
 binaries just after fresh installation of DF? Just like it is with
 other systems?

I think I can do the binary builds with PKG_OPTIONS.mc set to that, along
with PKG_OPTIONS.slrn and PKG_OPTIONS.most.  If they aren't going to work
on DragonFly without that, I can see no downside to that.  (Someone please
correct me if there's a hidden gotcha.)



Re: MC not starting

2010-11-04 Thread Przemysław Pawełczyk
On Thu, 4 Nov 2010 23:38:31 +0100
Paul Onyschuk bl...@bojary.koba.pl wrote:

 It's Slang problem. MC builded with this options, works just fine
 under localized cons25l2 terminal and csh:
 
 PKG_OPTIONS.mc=   ncurses -slang
 
 Other apps that uses devel/libslang2 like news/slrn and misc/most,
 also suffers from the same problem.

Got it. Compilation worked. MC runs under tcsh and sh as showed on
the following screenshot:
http://pp.blast.pl/www.png/dfbsd/df_15.png

Regards

-- 
Przemysław Pawełczyk (P2O2) [pron. Pshemislav Paveltchick]
http://pp.blast.pl, pp...@o2.pl


pgpNSyLhIxhqc.pgp
Description: PGP signature


Re: MC not starting

2010-11-04 Thread Paul Onyschuk
On Thu, 4 Nov 2010 19:02:51 -0400
Justin C. Sherrill jus...@shiningsilence.com wrote:

 
 I think I can do the binary builds with PKG_OPTIONS.mc set to that,
 along with PKG_OPTIONS.slrn and PKG_OPTIONS.most.  If they aren't
 going to work on DragonFly without that, I can see no downside to
 that.  (Someone please correct me if there's a hidden gotcha.)


Most and slrn don't have options to build against ncurses, only
possibility is Slang. Tomorrow I'll check if Slang builded against
pkgsrc's termcap (which is ncurses) works properly:

PREFER_PKGSRC= termcap

Something wird is going on between Slang and termcap from
DragonFly BSD. Checking other apps that uses termcap will help
also.

-- 
Paul Onyschuk bl...@bojary.koba.pl