LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Pkgtool in -current Nov 27th: 'View' does not work (https://www.linuxquestions.org/questions/slackware-14/pkgtool-in-current-nov-27th-view-does-not-work-4175560000/)

andrew.46 11-27-2015 05:22 AM

Pkgtool in -current Nov 27th: 'View' does not work
 
Most of the problems I have found in -current so far have been my own fault so I am wary of making this post :). When using pkgtool (the application rather than the package of installpkg, removepkg etc) all of the menus work as expected except:

Code:

View    View the list of files contained in a package
On my system there is a quick flash of terminal screen and then returns to the 'Slackware Package Tool (pkgtool version 14.2)─' screen. The terminal flash is seen as the following when pkgtool is shut down:

Code:

cdialog (ComeOn Dialog!) version 1.2-20130523
Copyright 2000-2012,2013 Thomas E. Dickey
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

* Display dialog boxes from shell scripts *

Usage: dialog <options> { --and-widget <options> }
where options are "common" options, followed by "box" options

Special options:
  [--create-rc "file"]
Common options:
  [--ascii-lines] [--aspect <ratio>] [--backtitle <backtitle>] [--beep]
  [--beep-after] [--begin <y> <x>] [--cancel-label <str>] [--clear]
  [--colors] [--column-separator <str>] [--cr-wrap] [--date-format <str>]
  [--default-button <str>] [--default-item <str>] [--defaultno]
  [--exit-label <str>] [--extra-button] [--extra-label <str>]
  [--help-button] [--help-label <str>] [--help-status] [--hfile <str>]
  [--hline <str>] [--ignore] [--input-fd <fd>] [--insecure] [--item-help]
  [--keep-tite] [--keep-window] [--last-key] [--max-input <n>]
  [--no-cancel] [--no-collapse] [--no-cr-wrap] [--no-items] [--no-kill]
  [--no-label <str>] [--no-lines] [--no-mouse] [--no-nl-expand]
  [--no-ok] [--no-shadow] [--no-tags] [--nook] [--ok-label <str>]
  [--output-fd <fd>] [--output-separator <str>] [--print-maxsize]
  [--print-size] [--print-version] [--quoted] [--scrollbar]
  [--separate-output] [--separate-widget <str>] [--shadow]
  [--single-quoted] [--size-err] [--sleep <secs>] [--stderr] [--stdout]
  [--tab-correct] [--tab-len <n>] [--time-format <str>] [--timeout <secs>]
  [--title <title>] [--trace <file>] [--trim] [--version] [--visit-items]
  [--yes-label <str>]
Box options:
  --buildlist    <text> <height> <width> <tag1> <item1> <status1>...
  --calendar    <text> <height> <width> <day> <month> <year>
  --checklist    <text> <height> <width> <list height> <tag1> <item1> <status1>...
  --dselect      <directory> <height> <width>
  --editbox      <file> <height> <width>
  --form        <text> <height> <width> <form height> <label1> <l_y1> <l_x1> <item1> <i_y1> <i_x1> <flen1> <ilen1>...
  --fselect      <filepath> <height> <width>
  --gauge        <text> <height> <width> [<percent>]
  --infobox      <text> <height> <width>
  --inputbox    <text> <height> <width> [<init>]
  --inputmenu    <text> <height> <width> <menu height> <tag1> <item1>...
  --menu        <text> <height> <width> <menu height> <tag1> <item1>...
  --mixedform    <text> <height> <width> <form height> <label1> <l_y1> <l_x1> <item1> <i_y1> <i_x1> <flen1> <ilen1> <itype>...
  --mixedgauge  <text> <height> <width> <percent> <tag1> <item1>...
  --msgbox      <text> <height> <width>
  --passwordbox  <text> <height> <width> [<init>]
  --passwordform <text> <height> <width> <form height> <label1> <l_y1> <l_x1> <item1> <i_y1> <i_x1> <flen1> <ilen1>...
  --pause        <text> <height> <width> <seconds>
  --prgbox      <text> <command> <height> <width>
  --programbox  <text> <height> <width>
  --progressbox  <text> <height> <width>
  --radiolist    <text> <height> <width> <list height> <tag1> <item1> <status1>...
  --rangebox    <text> <height> <width> <min-value> <max-value> <default-value>
  --tailbox      <file> <height> <width>
  --tailboxbg    <file> <height> <width>
  --textbox      <file> <height> <width>
  --timebox      <text> <height> <width> <hour> <minute> <second>
  --treeview    <text> <height> <width> <list-height> <tag1> <item1> <status1> <depth1>...
  --yesno        <text> <height> <width>

Auto-size with height and width = 0. Maximize with height and width = -1.
Global-auto-size if also menu_height/list_height = 0.

Can this be reproduced by any other -current user?

drmozes 11-27-2015 06:52 AM

Quote:

Originally Posted by andrew.46 (Post 5455924)
Most of the problems I have found in -current so far have been my own fault so I am wary of making this post :). When using pkgtool (the application rather than the package of installpkg, removepkg etc) all of the menus work as expected except:

I don't have that problem.
Try upgradepkg --reinstall pkgtools and the same with dialog.

If you can install a Virtual Machine such as VirtualBox, install a new -current in there and see if most of your problems exist on a fresh installation.

TLE 11-27-2015 08:18 AM

It's the same for me on two laptops running current

There is a thread about this a while ago.
Solution was to start pkgtool as: env LC_ALL=C pkgtool
It works for me

I'm sure that there is a better solution...

yars 11-27-2015 10:26 AM

No problem. Maybe it will be reproduced on one package, not on all? What package you want view?

andrew.46 11-27-2015 04:22 PM

Quote:

Originally Posted by TLE (Post 5455985)
There is a thread about this a while ago.
Solution was to start pkgtool as: env LC_ALL=C pkgtool
It works for me

And this solution works for me as well. My apologies for not seeing the previous thread on this issue:

Pkgtool functions not working anymore
http://www.linuxquestions.org/questi...re-4175528373/

Quote:

I'm sure that there is a better solution...
Indeed, this solution is a little clumsy although I am glad to get the View function back again...

Edit: Ugly solution for me was to create a ~/.bashrc for root and make an alias

andrew.46 12-03-2015 05:07 PM

Thanks PV and team for this:

Code:

a/pkgtools-14.2-noarch-5.txz:  Rebuilt.
  Set LANG=C in pkgtool.

A much more elegant solution which works for me...


All times are GMT -5. The time now is 02:08 PM.