LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 09-18-2009, 03:25 AM   #1
karp
LQ Newbie
 
Registered: Sep 2009
Posts: 3

Rep: Reputation: 0
src2pkg


I have some problems:
Code:
root@mops:/home/karp# src2pkg -C -VV -W /home/karp/Distrib/seamonkey-1.1.18.en-US.linux-i686.tar.gzFound global src2pkg.conf - Reading /etc/src2pkg/src2pkg.conf                                      
Found source archive: seamonkey-1.1.18.en-US.linux-i686.tar.gz                                     
Removing existing package build directory from previous build -                                    
Removing existing source build directory from previous build -                                     
Creating working directories:                                                                      
   PKG_DIR=/tmp/seamonkey-1.1.18.en-pkg-1                                                          
   SRC_DIR=/tmp/seamonkey-1.1.18.en-src-1                                                          
Unpacking source archive -                                                                         
seamonkey/                                                                                       


seamonkey/libsmime3.so

Correcting source permissions - Done
Checking for patches - None found
Skipping configure_source -
Skipping compile_source -
FAILED!! No INSTALL_LINE given.
root@mops:/home/karp#
slackware

Last edited by XavierP; 09-19-2009 at 04:24 PM.
 
Old 09-18-2009, 05:37 PM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
Moved: This thread is more suitable in <Slackware> and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 09-18-2009, 06:23 PM   #3
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-14.1
Posts: 1,220

Rep: Reputation: 177Reputation: 177
Quote:
Originally Posted by karp View Post
I have some problems:
Code:
root@mops:/home/karp# src2pkg -C -VV -W /home/karp/Distrib/seamonkey-1.1.18.en-US.linux-i686.tar.gzFound global src2pkg.conf - Reading /etc/src2pkg/src2pkg.conf                                      
Found source archive: seamonkey-1.1.18.en-US.linux-i686.tar.gz                                     
Removing existing package build directory from previous build -                                    
Removing existing source build directory from previous build -                                     
Creating working directories:                                                                      
   PKG_DIR=/tmp/seamonkey-1.1.18.en-pkg-1                                                          
   SRC_DIR=/tmp/seamonkey-1.1.18.en-src-1                                                          
Unpacking source archive -                                                                         
seamonkey/                                                                                       


seamonkey/libsmime3.so

Correcting source permissions - Done
Checking for patches - None found
Skipping configure_source -
Skipping compile_source -
FAILED!! No INSTALL_LINE given.
root@mops:/home/karp#
slackware

Just curious is there a reason your building this yourself, because its already included in slackware, even the newest version ftp://elektroni.phys.tut.fi/slackwar...ches/packages/

Just download seamonkey-1.1.18-i486-1.txz the as root run
upgradepkg seamonkey-1.1.18-i486-1.txz
and your done.


Also src2pkg won't work with that version of seamonkey because its a redistributable binary not the source. src2pkg makes packages from source.

Last edited by XavierP; 09-19-2009 at 04:24 PM.
 
Old 09-18-2009, 07:34 PM   #4
piete
Member
 
Registered: Apr 2005
Location: Havant, Hampshire, UK
Distribution: Slamd64, Slackware, PS2Linux
Posts: 465

Rep: Reputation: 44
Quote:
Also src2pkg won't work with that version of seamonkey because its a redistributable binary not the source. src2pkg makes packages from source.
Strictly speaking src2pkg makes packages (tgz / txz) from tarballs, it doesn't care much about what's in the tarball, but pkg2pkg sounds a bit wierd

Anyway, src2pkg will try to guess what you want done, and will do it's best to sort you out with an installable package, but sometimes it gets a bit confused and you have to give it some help.

In this case, after some pondering, I decided the best kind of help I could give it would be do write a new bit of script.

My version of a script, I'm sure Gilbert will chime in soon with an improved version:

seamonkey.src2pkg
Code:
#!/bin/bash
## src2pkg script for: 	seamonkey-1.1.18.en-us.linux
## Auto-generated by src2pkg-1.9.9
## Tweaked by Piete Sartain
## src2pkg - Copyright 2005-2009 Gilbert Ashley <amigo@ibilio.org>

SOURCE_NAME='seamonkey-1.1.18.en-US.linux-i686.installer.tar.gz'
ALT_NAME='seamonkey'
ALT_VERSION='1.1.18'   # Use ALT_VERSION to override guessed value
ARCH='i686'
BUILD='1'
PRE_FIX='usr'
# Any extra options go here:
# EXTRA_CONFIGS=""

INSTALL_TYPE='JAIL'

# Optional function replaces configure_source, compile_source, fake_install
# To use, uncomment and write/paste CODE between the {} brackets.
build() { 
cd $SRC_DIR
## Not strictly src2pkg-safe, since it relies on sed
sed 's_Location=/usr/local/seamonkey_Location='"$PKG_DIR"'/opt/seamonkey"_' config.ini >> config.ini.new
mv config.ini.new config.ini
./seamonkey-installer -ms
}

# Get the functions and configs
. /usr/libexec/src2pkg/FUNCTIONS ;

# Execute the named packaging steps:
pre_process
find_source
make_dirs
unpack_source
fix_source_perms
configure_source #
compile_source   # If used, the 'build' function replaces these 3
fake_install     #
fix_pkg_perms
strip_bins
create_docs
compress_man_pages
make_description
make_doinst
make_package
post_process

## See the documentation for more help and examples. Below are some of
# the most common Extras and Options for easy cut-and-paste use.
# DOCLIST='' PATCHLIST='' INSTALL_TYPE=''
# CONFIG_COMMAND='' MAKE_COMMAND='' INSTALL_LINE='' 
# When editing src2pkg scripts to add custom code, use these variables
# to refer to the current directory, the sources or the package tree:
# $CWD (current directory), $SRC_DIR (sources), $PKG_DIR (package tree)
# Other commonly-used directories include: $DOC_DIR (document directory)
# $MAN_DIR (man-page directory) $DATA_DIR (shared-data directory)
- Piete.

PS: You might try using the [ code][/ code] tags (without spaces) for other text dumps to save forcing a scrollbar on the browser

Last edited by piete; 09-18-2009 at 07:35 PM.
 
Old 09-19-2009, 12:30 AM   #5
karp
LQ Newbie
 
Registered: Sep 2009
Posts: 3

Original Poster
Rep: Reputation: 0
Thank you very much!
 
Old 09-19-2009, 02:35 PM   #6
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,752

Rep: Reputation: 463Reputation: 463Reputation: 463Reputation: 463Reputation: 463
Let's see, that archive is not the installer, so you need a script like this:

Code:
#!/bin/bash
## src2pkg script for: 	seamonkey-1.1.18.en-us.linux
## Auto-generated by src2pkg-1.9.9
## Tweaked by Piete Sartain
## src2pkg - Copyright 2005-2009 Gilbert Ashley <amigo@ibilio.org>

SOURCE_NAME='seamonkey-1.1.18.en-US.linux-i686.tar.gz'
ALT_NAME='seamonkey'
ALT_VERSION='1.1.18'   # Use ALT_VERSION to override guessed value
ARCH='i686'
BUILD='1'
PRE_FIX='usr'
# Any extra options go here:
# EXTRA_CONFIGS=""
# allow this package to install an empty log file: usr/lib/seamonkey-1.1.18/regxpcom.log
ALLOW_EMPTY_FILES=YES

# Optional function replaces configure_source, compile_source, fake_install
# To use, uncomment and write/paste CODE between the {} brackets.
build() { 
sed -i 's_usr\/local/_usr\/' seamonkey
mkdir -p $PKG_DIR/usr/lib/seamonkey-1.1.18
(cd $PKG_DIR/usr/lib ; ln -sf seamonkey-1.1.18 seamonkey)
mkdir -p $PKG_DIR/usr/lib/mre/mre-1.1.18
mv $SRC_DIR/* $PKG_DIR/usr/lib/seamonkey-1.1.18
mkdir -p $PKG_DIR/usr/bin
(cd $PKG_DIR/usr/bin ; ln -sf ../lib/seamonkey-1.1.18 seamonkey)
}

# Get the functions and configs
. /usr/libexec/src2pkg/FUNCTIONS ;

# Execute the named packaging steps:
pre_process
find_source
make_dirs
unpack_source
fix_source_perms
configure_source #
compile_source   # If used, the 'build' function replaces these 3
fake_install     #
fix_pkg_perms
strip_bins
create_docs
compress_man_pages
make_description
make_doinst
make_package
post_process
Then you can run it with:
src2pkg -X -C -VV -W

You'd use the same basic scheme for re-packaging the binary archive of FF.
 
Old 09-20-2009, 05:59 AM   #7
karp
LQ Newbie
 
Registered: Sep 2009
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by gnashley View Post
Let's see, that archive is not the installer, so you need a script like this:

Code:
#!/bin/bash
## src2pkg script for: 	seamonkey-1.1.18.en-us.linux
## Auto-generated by src2pkg-1.9.9
## Tweaked by Piete Sartain
## src2pkg - Copyright 2005-2009 Gilbert Ashley <amigo@ibilio.org>

SOURCE_NAME='seamonkey-1.1.18.en-US.linux-i686.tar.gz'
ALT_NAME='seamonkey'
ALT_VERSION='1.1.18'   # Use ALT_VERSION to override guessed value
ARCH='i686'
BUILD='1'
PRE_FIX='usr'
# Any extra options go here:
# EXTRA_CONFIGS=""
# allow this package to install an empty log file: usr/lib/seamonkey-1.1.18/regxpcom.log
ALLOW_EMPTY_FILES=YES

# Optional function replaces configure_source, compile_source, fake_install
# To use, uncomment and write/paste CODE between the {} brackets.
build() { 
sed -i 's_usr\/local/_usr\/' seamonkey
mkdir -p $PKG_DIR/usr/lib/seamonkey-1.1.18
(cd $PKG_DIR/usr/lib ; ln -sf seamonkey-1.1.18 seamonkey)
mkdir -p $PKG_DIR/usr/lib/mre/mre-1.1.18
mv $SRC_DIR/* $PKG_DIR/usr/lib/seamonkey-1.1.18
mkdir -p $PKG_DIR/usr/bin
(cd $PKG_DIR/usr/bin ; ln -sf ../lib/seamonkey-1.1.18 seamonkey)
}

# Get the functions and configs
. /usr/libexec/src2pkg/FUNCTIONS ;

# Execute the named packaging steps:
pre_process
find_source
make_dirs
unpack_source
fix_source_perms
configure_source #
compile_source   # If used, the 'build' function replaces these 3
fake_install     #
fix_pkg_perms
strip_bins
create_docs
compress_man_pages
make_description
make_doinst
make_package
post_process
Then you can run it with:
src2pkg -X -C -VV -W

You'd use the same basic scheme for re-packaging the binary archive of FF.
Thank you!!!
 
  


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
src2pkg !! netpumber Slackware 13 06-02-2009 08:25 AM
src2pkg macondo Slackware 11 01-07-2009 12:20 AM
New src2pkg release available for download -Introducing the src2pkg WIKI gnashley Slackware 11 05-06-2008 11:09 AM
src2pkg + qt 4.3.3 dive Slackware 9 01-24-2008 02:12 AM
src2pkg-1.7 released gnashley Slackware 23 12-25-2007 02:26 AM


All times are GMT -5. The time now is 03:28 AM.

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