LinuxQuestions.org
Visit the LQ Articles and Editorials section
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
 
Search this Thread
Old 02-24-2009, 05:22 PM   #1
Panci
LQ Newbie
 
Registered: Nov 2005
Location: Italy
Distribution: Slackware 12.1
Posts: 22

Rep: Reputation: 0
Slackpkg and slack-desc


I'm learning how to build a binary slackware package.Everything works but when I install the package I made with pkgtool I cannot see the description I put in the slack-desc file.

I follow all the instruction in the template.Here is one example of slack-desc file I made that do not work properly:



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------------------------------------------------------|
remind: Remind
remind:
remind: Remind is a sophisticated calendar and alarm program. 
remind: 
remind: 
remind: 
remind:
remind: 
remind:   
remind:   
remind:
--------------------------------------------------------------------------------
I followed all the instruction in the
wiki,and I also tried without comments.

Which is the problem ?? where I did wrong??

Thanks
 
Old 02-24-2009, 05:30 PM   #2
C-Sniper
Member
 
Registered: Dec 2006
Distribution: Slackware
Posts: 507

Rep: Reputation: 33
Try making sure that the name of your slack-desc file matches the name of the program exactly. (no version numbers). If it doesn't the slackbuild script will not import it.
 
Old 02-24-2009, 05:51 PM   #3
Panci
LQ Newbie
 
Registered: Nov 2005
Location: Italy
Distribution: Slackware 12.1
Posts: 22

Original Poster
Rep: Reputation: 0
if you mean the name before the columns (in this case remind) is exatly the same as the package .
 
Old 02-24-2009, 07:27 PM   #4
MannyNix
Member
 
Registered: Dec 2005
Location: ~
Distribution: Slackware -current, OpenBSD
Posts: 449

Rep: Reputation: 41
Thumbs down

Make sure you're not missing something like:
Code:
cat $CWD/slack-desc > $PKG/install/slack-desc
from your slackbuild.
slackbuilds.org template may help (in case you're not following that already).
Good luck
 
Old 02-24-2009, 07:37 PM   #5
larryhaja
Member
 
Registered: Jul 2008
Distribution: Slackware 13.1
Posts: 292

Rep: Reputation: 75
Quote:
Originally Posted by C-Sniper View Post
Try making sure that the name of your slack-desc file matches the name of the program exactly. (no version numbers). If it doesn't the slackbuild script will not import it.
I ran into something similar and it happens to me from time to time. In the one that happened to me recently I made a slackbuild for qutecom 2.2RC3. The first time I made it the resulting slack package was qutecome-2.2-RC3-i486-1_lh.tgz. When I installed it the slack-desc didn't show up. It turned out that installpkg installed my package as qutecome-2.2 instead of qutecom. Part of the version number was included in the package name. I solved it by renaming it in the slackbuild to qutecom-2.2_RC3-i486-1_lh.tgz. This may not be your problem but it does show how the slack package name can be misinterpreted.
 
Old 02-24-2009, 08:29 PM   #6
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 1,754

Rep: Reputation: 169Reputation: 169
Please post the whole name of the tgz file
 
Old 02-25-2009, 03:21 AM   #7
Panci
LQ Newbie
 
Registered: Nov 2005
Location: Italy
Distribution: Slackware 12.1
Posts: 22

Original Poster
Rep: Reputation: 0
Ok thanks I understand my error: I didn't add the Build field in the package name,I used
Code:
remind-3.1.6-i486-1.tgz
and now everything works!!

Thanks
 
Old 04-05-2009, 01:44 AM   #8
brixtoncalling
Member
 
Registered: Jul 2008
Location: British Columbia
Distribution: Slackware current
Posts: 403

Rep: Reputation: 67
I'm having this same problem with a kphotoalbum-3.1.1-noil8n package that I created with my own Slackbuild.

I assume that the -noil8n part is causing the kphotoalbum-3.1.1-noi18n-i486-1_SBo.tgz to 1) not display slack-desc when installed 2) fail with "removepkg kphotoalbum". Otherwise the package works.

What is the general solution to this problem?
 
Old 04-05-2009, 02:38 AM   #9
astrogeek
Senior Member
 
Registered: Oct 2008
Distribution: Slackware: 12.1, 13.1, 14.1, 64-14.1, -current, FreeBSD-10
Posts: 1,888

Rep: Reputation: 661Reputation: 661Reputation: 661Reputation: 661Reputation: 661Reputation: 661
Watch the number of dashes...

Quote:
Originally Posted by brixtoncalling View Post
I assume that the -noil8n part is causing the kphotoalbum-3.1.1-noi18n-i486-1_SBo.tgz to 1) not display slack-desc when installed 2) fail with "removepkg kphotoalbum". Otherwise the package works.

What is the general solution to this problem?
When you build change the Slackbuild script to use...

kphotoalbum as PRGNAM
3.1.1_noi18n as the VERSION (note '_' instead of '-')

installpkg breaks the package name into four parts from the right on '-', so with the extra '-' in '3.1.1-noi18n' the fourth part, package name, becomes 'kphotoalbum-3.1.1'. The general solution is to build with the correct number of '-'s in the package filename.

Hope this helps.
 
Old 04-05-2009, 06:15 AM   #10
brixtoncalling
Member
 
Registered: Jul 2008
Location: British Columbia
Distribution: Slackware current
Posts: 403

Rep: Reputation: 67
Quote:
installpkg breaks the package name into four parts from the right on '-', so with the extra '-' in '3.1.1-noi18n' the fourth part, package name, becomes 'kphotoalbum-3.1.1'. The general solution is to build with the correct number of '-'s in the package filename.

Hope this helps.
It most certainly does help. Thanks.

Last edited by brixtoncalling; 04-05-2009 at 06:24 AM.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
slack-desc requirements/expectations Woodsman Slackware 4 10-18-2008 10:26 AM
package creation and slack-desc file mobilemonkey Slackware 6 07-02-2007 10:53 AM
create a slack-desc file also learning in prep for use of makepkg acummings Slackware 10 01-27-2007 12:01 PM
Makepkg and slack-desc mirto Slackware 7 10-15-2005 03:17 PM
Format of slack-desc file Azmeen Slackware 6 07-11-2003 02:36 AM


All times are GMT -5. The time now is 03:57 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 Google+: linuxquestions
Open Source Consulting | Domain Registration