Author Topic: Strange troubles setting up MiniMe packaging environment  (Read 487 times)

Offline sling-shot

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1730
  • Satyameva Jayate | Truth Alone Triumphs.
Strange troubles setting up MiniMe packaging environment
« on: November 21, 2012, 09:16:34 AM »
Setting up from the MiniMe as recommended but cannot get "Build All, Create log file" to work. Nothing happens.
Just "Build All" works though.

I have successfully set up a packaging environ based on KDE regular iso though on another partition.
Packaging well will cure headaches of many :) But learning to package will cause headaches in many :(

AMD AthlonX2 3600+/ASUS M2NPV-VM/ATi HD4670/Onboard sound/3.5GB DDR2-533 RAM/SEAGATE 160+320GB HDD/DELL S2240L FullHD/Creative SBS370 2.1/PCLinuxOS2013/KDE4
Samsung NP305U1-A06IN | Nokia E6

Offline MBantz

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1317
Re: Strange troubles setting up MiniMe packaging environment
« Reply #1 on: November 21, 2012, 10:29:08 AM »
Hi Sling-Shot,

are you using pkgutils-thunar? If so, what version of pkgutils are you using?

In case you use thunar, you can check the command that is called when right-clicking on a spec file,

the servicemenu editor is somewhere in the thunar menu (I have a danish system here, can't remember the english menuname),

cheers,
MBantz

Offline sling-shot

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1730
  • Satyameva Jayate | Truth Alone Triumphs.
Re: Strange troubles setting up MiniMe packaging environment
« Reply #2 on: November 21, 2012, 09:01:37 PM »
No. It is pkgutils KDE.
Packaging well will cure headaches of many :) But learning to package will cause headaches in many :(

AMD AthlonX2 3600+/ASUS M2NPV-VM/ATi HD4670/Onboard sound/3.5GB DDR2-533 RAM/SEAGATE 160+320GB HDD/DELL S2240L FullHD/Creative SBS370 2.1/PCLinuxOS2013/KDE4
Samsung NP305U1-A06IN | Nokia E6

Offline TerryN

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 725
Re: Strange troubles setting up MiniMe packaging environment
« Reply #3 on: November 22, 2012, 04:48:39 AM »
Since "Build All" opens a Konsole window you can just do a File->Save Output As ...  ;)  ;D

It is probably not working because xterm is not installed by default on MiniMe IIRC.

Terry.
« Last Edit: November 22, 2012, 04:58:14 AM by TerryN »
Dell E521 - AMD 64 X2 5000+, 4GB RAM, ATI X1300 graphics
PCLinuxOS 2013 (KDE)
|Twitter|

Offline sling-shot

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1730
  • Satyameva Jayate | Truth Alone Triumphs.
Re: Strange troubles setting up MiniMe packaging environment
« Reply #4 on: November 22, 2012, 07:41:34 AM »
[TerryN]
You are indeed correct. That was exactly what was missing.
Now the "Build All, Create logfile" option works fine.

I see that it is only about 600 kB in size and comes with no attachments (it does not pull any other package and when trying to remove does not remove anything else). So why not consider including it in our MiniMe? Since MiniMe is recommended as the base for a packaging setup and without it pkgutils will appear broken?
Packaging well will cure headaches of many :) But learning to package will cause headaches in many :(

AMD AthlonX2 3600+/ASUS M2NPV-VM/ATi HD4670/Onboard sound/3.5GB DDR2-533 RAM/SEAGATE 160+320GB HDD/DELL S2240L FullHD/Creative SBS370 2.1/PCLinuxOS2013/KDE4
Samsung NP305U1-A06IN | Nokia E6

Offline TerryN

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 725
Re: Strange troubles setting up MiniMe packaging environment
« Reply #5 on: November 22, 2012, 07:48:13 AM »
I see that it is only about 600 kB in size and comes with no attachments (it does not pull any other package and when trying to remove does not remove anything else). So why not consider including it in our MiniMe? Since MiniMe is recommended as the base for a packaging setup and without it pkgutils will appear broken?

Strictly speaking, if pkgutils-kde needs it then pkgutils-kde should install it as a dependency  ;D
MiniMe users who are not packagers might take to the streets in protest at that loss of 600kB  :D

Terry
« Last Edit: November 22, 2012, 07:55:40 AM by TerryN »
Dell E521 - AMD 64 X2 5000+, 4GB RAM, ATI X1300 graphics
PCLinuxOS 2013 (KDE)
|Twitter|

Offline sling-shot

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1730
  • Satyameva Jayate | Truth Alone Triumphs.
Re: Strange troubles setting up MiniMe packaging environment
« Reply #6 on: November 22, 2012, 09:21:43 AM »
Strictly speaking, if pkgutils-kde needs it then pkgutils-kde should install it as a dependency  ;D
MiniMe users who are not packagers might take to the streets in protest at that loss of 600kB  :D
Terry

What an absurd scenario ;) :) :)
May be those LFS people but not MiniMe's :) :) :)
Packaging well will cure headaches of many :) But learning to package will cause headaches in many :(

AMD AthlonX2 3600+/ASUS M2NPV-VM/ATi HD4670/Onboard sound/3.5GB DDR2-533 RAM/SEAGATE 160+320GB HDD/DELL S2240L FullHD/Creative SBS370 2.1/PCLinuxOS2013/KDE4
Samsung NP305U1-A06IN | Nokia E6

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Strange troubles setting up MiniMe packaging environment
« Reply #7 on: November 22, 2012, 03:34:11 PM »
Since "Build All" opens a Konsole window you can just do a File->Save Output As ...  ;)  ;D

It is probably not working because xterm is not installed by default on MiniMe IIRC.

Terry.
     
pkgutils-kde is supposed to call up konsole for Build All and Build All, Create log file instead of calling for xterm. It does on my system.     

Offline TerryN

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 725
Re: Strange troubles setting up MiniMe packaging environment
« Reply #8 on: November 22, 2012, 04:58:04 PM »
pkgutils-kde is supposed to call up konsole for Build All and Build All, Create log file instead of calling for xterm. It does on my system.      

From pkgutils-kde4-0.1.6-3pclos2012 (32 bit repo):

pclos-pkgutils-all.spec:
Quote
[Desktop Action buildallnlog]
Name=Build all, Create logfile
Name[da]=Byg alt, med logfil
Exec=spec_buildnlog %F
#Exec=xterm %{xtermopt} -e "rpmbuild -ba %F 2>&1 | tee %F.log"
Icon=application-x-rpm
EOF

spec_buildnlog:
Quote
#!/bin/bash
#

# verbose output for debugging
#set -xv;


for item in $@; do
  if [ -e $item ]; then
#    workin_dir=$(`dirname $item`)
    log_file=${item}.log
    xterm -hold +sb -geometry 120x40 -bg gray28 -fg grey94 -fn *-fixed-*-*-*-20-* -e "rpmbuild -ba $item 2>&1 | tee $item.log"
  fi
done

EDIT:
Checked pkgutils-kde4-0.1.6-8pclos2012 in 64 bit repo and it is the same.
« Last Edit: November 22, 2012, 05:05:34 PM by TerryN »
Dell E521 - AMD 64 X2 5000+, 4GB RAM, ATI X1300 graphics
PCLinuxOS 2013 (KDE)
|Twitter|

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Strange troubles setting up MiniMe packaging environment
« Reply #9 on: November 22, 2012, 05:06:19 PM »
 ??? Strange. Every time I use dolphin instead of thunar, konsole is opened. ???