LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 07-29-2010, 06:50 PM   #1
linus72
Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,057

Rep: Reputation: 326Reputation: 326Reputation: 326Reputation: 326
One problem making a slackware pkg...


OK
I always have just one issue making a slackware pkg using makepkg

the darn install/slack-desc never "shows" and gives the package description when doing installpkg/upgradepkg on the finished package

Example A

I make a package today from "ranger" cli file manager
heres the slack-desc

Code:
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description.  Line
# up the first '|' above the ':' following the base package name, and the '|' on
# the right side marks the last column you can put a character in. You must make
# exactly 11 lines for the formatting to be correct.  It's also customary to
# leave one space after the ':'.

             |----handy-ruler--------------------------------------------------------|
ranger-master: ranger-master (small cli filemanager)
ranger-master: 
ranger-master: Ranger is a small cli file manager
ranger-master: ported from ARCH Linux
ranger-master: 
ranger-master: Homepage: https://savannah.nongnu.org/projects/ranger/
ranger-master: 
ranger-master: 
ranger-master: 
ranger-master: 
ranger-master:
and doing ls -al in terminal shows

Code:
-rw-r--r-- 1 root root  785 2010-07-29 18:24 slack-desc
I think its supposed to be 764?
not sure...how do i change it?

Or, what am I doing wrong?
thx
 
Old 07-29-2010, 07:01 PM   #2
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,024

Rep: Reputation: 197Reputation: 197
Please list the package directory (or the relevant bits).

For what it's worth I just ls -l one of mine:

-rw-r--r-- 1 root root 932 2010-05-16 07:47 slack-desc

Last edited by dive; 07-29-2010 at 07:03 PM.
 
1 members found this post helpful.
Old 07-29-2010, 07:18 PM   #3
piratesmack
Member
 
Registered: Feb 2009
Distribution: Slackware, Arch
Posts: 479

Rep: Reputation: 111Reputation: 111
According the the SBo template:
Quote:
Lines without any other text should *not* have a space after the :
I'm not sure if that's causing the problem though.

Last edited by piratesmack; 07-29-2010 at 10:12 PM.
 
1 members found this post helpful.
Old 07-29-2010, 07:36 PM   #4
GrapefruiTgirl
Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 535Reputation: 535Reputation: 535Reputation: 535Reputation: 535Reputation: 535
What's the actual package called? Like, the filename of the complete package? Whatever it is, the name at the beginning of each entry in the slack-desc must be identical. If it isn't, you get the symptoms you are getting now.

If your package is called ranger-1.2.3-x86-1.tgz then the start of the slack-desc lines should be "ranger:";
If your package is called ranger-master-1.2.3-x86-1.tgz then the start of the slack-desc lines should be "ranger-master:";

Anyhow, that's what usually gets me when making packages.

Last edited by GrapefruiTgirl; 07-29-2010 at 07:37 PM. Reason: Scrapped the idea of not using dashes - there are lots of them (duh!)
 
1 members found this post helpful.
Old 07-29-2010, 07:39 PM   #5
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Rep: Reputation: 221Reputation: 221Reputation: 221
Are you sure you are making the package name correctly. I noticed your package name has a dash which can confuse pkgtools unless you're careful. The standard Slackware package naming is broken dowen like this :
Code:
$APPNAME-$PKG_VERSION-$ARCH-$BUILD
and pkgtools expect this. You shoule name you're package accordingly adding all components. In your case the package name is "ranger-master" so for a Slackware64 package a suitable package name would be "ranger-master-1.0-x86_64-1.txz". If you have missed any components for the package name structure out the dash in "ranger-master" will confuse pkgtools to think "ranger" is the APPNAME portion of the name and ignore your current slack-desc given the "ranger-master" headed lines.

Edit: Sorry, GrapefruiTgirl beat me to it as I was typeing with basically the same information

Last edited by bgeddy; 07-29-2010 at 07:57 PM. Reason: Grapefruitgirl beat me to it
 
1 members found this post helpful.
Old 07-29-2010, 07:47 PM   #6
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,024

Rep: Reputation: 197Reputation: 197
You know I just spent yesterday evening and this evening fixing a friend's virus-ridden laptop. Forgive me for not seeing the wood for the trees.

There is slackbuild for ranger (mine) up at slackbuilds.org. Also, yes, the original ranger source untarred into ranger-master directory, rather than ranger. I have mentioned this upstream and it ought to be fixed soon.

http://slackbuilds.org/repository/13.1/system/ranger/

Last edited by dive; 07-29-2010 at 07:48 PM.
 
1 members found this post helpful.
Old 07-29-2010, 08:11 PM   #7
linus72
Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,057

Original Poster
Rep: Reputation: 326Reputation: 326Reputation: 326Reputation: 326
OK
thanks guys I'll get it

Dive, I didn't know you had a pkg already
thanks I'll use yours probably

..will report back if any more issues
I think as you have said I named it wrong, etc
 
Old 07-29-2010, 08:33 PM   #8
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,024

Rep: Reputation: 197Reputation: 197
I just submitted version 1.1.0 so in a few days that will appear hopefully.
 
Old 07-29-2010, 08:37 PM   #9
linus72
Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,057

Original Poster
Rep: Reputation: 326Reputation: 326Reputation: 326Reputation: 326
Thanks Dive
I need to bookmark your links too...
 
Old 07-29-2010, 08:46 PM   #10
linus72
Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,057

Original Poster
Rep: Reputation: 326Reputation: 326Reputation: 326Reputation: 326
OK
great
you guys advice worked!
duh...

edited slack-desc
Code:
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description.  Line
# up the first '|' above the ':' following the base package name, and the '|' on
# the right side marks the last column you can put a character in. You must make
# exactly 11 lines for the formatting to be correct.  It's also customary to
# leave one space after the ':'.

             |----handy-ruler--------------------------------------------------------|
ranger: ranger (small cli filemanager)
ranger: 
ranger: Ranger is a small cli file manager
ranger: ported from ARCH Linux
ranger: 
ranger: Homepage: https://savannah.nongnu.org/projects/ranger/
ranger: 
ranger: 
ranger: 
ranger: 
ranger:
Code:
makepkg /root/ranger-1.1.2-i686-1.txz
and when I installed it the description came up
awesome
Slackware is best distro ever man...

OH
Dive; my pkg is little diff maybe
as I added

/usr/share/applications/ranger.desktop

Code:
[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=Ranger CLI File Manager
Categories=System;Utility;Core;GTK;
Exec=xterm -e /usr/bin/ranger
Icon=apple-green
StartupNotify=true
Type=Application
Terminal=false
MimeType=x-directory/normal;inode/directory;
GenericName=File Manager
GenericName[ru]=Файловый менеджер
GenericName[zh_TW]=檔案管理程式
GenericName[fi]=Tiedostonhallinta
GenericName[et]=Failihaldur
GenericName[ja]=ファイルマネージャ
Comment=Browse the file system and manage the files
Comment[zh_TW]=瀏覽檔案系統及管理檔案
Comment[fi]=Selaa tiedostojärjestelmää ja hallitse tiedostoja
Comment[et]=Lehitse failisüsteemi ja halda faile
Comment[ja]=ファイルシステムをブラウズし、ファイルの管理を行います
and
/usr/share/pixmaps/apple-green.png

So, it's a great little tool...

EDIT: hey Dive; could you make a SlackBuild for pcmanfm-mod
its great too...
http://sourceforge.net/projects/pcmanfm-mod/

Last edited by linus72; 07-29-2010 at 08:51 PM.
 
Old 07-29-2010, 09:18 PM   #11
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,024

Rep: Reputation: 197Reputation: 197
Quote:
Originally Posted by linus72 View Post
EDIT: hey Dive; could you make a SlackBuild for pcmanfm-mod
its great too...
http://sourceforge.net/projects/pcmanfm-mod/
You might be interested in this:

http://www.dawoodfall.net/slackbuild...rsion/mkslack/

It's not perfect but it gives you a start.
 
Old 07-29-2010, 09:24 PM   #12
linus72
Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,057

Original Poster
Rep: Reputation: 326Reputation: 326Reputation: 326Reputation: 326
Your the man!
aka SubGenius

Thank You
 
Old 07-29-2010, 09:59 PM   #13
linus72
Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,057

Original Poster
Rep: Reputation: 326Reputation: 326Reputation: 326Reputation: 326
So
here's my completed new Slackware pkg's Dive/everyone

just to share and you can check them out

Ranger CLI File Manager
http://multidistro.com/downloads/App...1.2-i686-1.txz

PCManFM-Mod
http://multidistro.com/downloads/App...0.4-i686-1.txz

NOTE: the above pcmanfm installs as "pcmanfm" so you can uninstall SlackBuilds pcmanfm as its same but more extensions, etc

pic below
Attached Images
File Type: jpg rangerpcmanfmmod.jpg (182.6 KB, 17 views)

Last edited by linus72; 07-29-2010 at 10:11 PM.
 
Old 07-30-2010, 04:09 AM   #14
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,024

Rep: Reputation: 197Reputation: 197
Right, after some mishaps on my part we have a proper ranger slackbuild in pending. Linus72, it's worth noting that it is called python-ranger now since the new templates were issued. RWorkman has kindly removed the old ranger from his git leaving python-ranger 1.1.1 on sbo. This is the version that I've updated the slackbuild for.

Mental Note to Self: Don't play with slackbuilds before 9am
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Slapt-get, and Slackware pkg management? annihilan Slackware 11 08-03-2008 10:59 PM
Compiling 2.6.23.1, do i need 2.6.23.1 headers and modules pkg from slackware package agentc0re Slackware 32 11-19-2007 03:21 AM
compiling slackware pkg from source jadukor Slackware 4 07-10-2006 08:48 PM
problem making slackware package busbarn Programming 3 07-21-2004 09:12 PM
Slackware Pkg System GT_Onizuka Slackware 7 11-05-2003 10:21 PM


All times are GMT -5. The time now is 01:11 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration