LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Amigo
User Name
Password
Amigo This forum is for the discussion of Amigo Linux.

Notices


Reply
  Search this Thread
Old 02-18-2008, 04:42 AM   #1
piete
Member
 
Registered: Apr 2005
Location: Havant, Hampshire, UK
Distribution: Slamd64, Slackware, PS2Linux
Posts: 465

Rep: Reputation: 44
Lockdev src2pkg "make install" problems


Quote:
Originally Posted by Shingoshi
I just copied the code again and tried it, same results.

Found source archive: lockdev-1.0.3.tar.bz2
Deleting old build files - Done
Creating working directories:
PKG_DIR=/usr/src/panoplyx/tmp/lockdev-1.0.3-pkg-1panoplyx
SRC_DIR=/usr/src/panoplyx/tmp/lockdev-1.0.3-src-1panoplyx
Unpacking source archive - Done
Correcting source permissions - Done
Checking for patches - Found
Applying: lockdev.basedir.diff
Skipping autoconf configuration:
Continuing - We found at least one Makefile
Compiling sources - Using: 'make'
Compiling has been - Successful!
Checking for 'install' rule - Okay
Checking for DESTDIR support - Not found
NOTICE - DESTDIR not supported. Falling back to JAIL install
Installing in jail root - Using: 'make install'
FATAL! Running '' has failed with error: 1
Try using INSTALL_LINE 'make -i install' Exiting...
src2pkg FAILURE in make_install
Ok, we've got the patch to work successfully. No problems there. Still make install problems, which really bothers me.

Some things to look at (let the straw-clutching begin):
* Changes to src2pkg.conf
* Changes to src2pkg executable
* Are you building in a chroot environment?
* Can you get it to build/install manually? Try `make DESTDIR=tmp/lockdevtest install` as a user.

I will get a clean version of src2pkg installed soon and see if I can recreate the problem.

Please use 1 thread per problem/question, too. It makes the thread much easier to read and will help people coming late to a problem to contribute. It'll also likely attract more attention, which will mean you'll get a better quality of responses.

Thanks,
- Piete.
 
Old 02-18-2008, 10:23 AM   #2
piete
Member
 
Registered: Apr 2005
Location: Havant, Hampshire, UK
Distribution: Slamd64, Slackware, PS2Linux
Posts: 465

Original Poster
Rep: Reputation: 44
My src2pkg config:

Code:
# /etc/src2pkg/src2pkg.conf Version-1.0
# Only change stuff here that you want to *always* apply.
# Most configuration options  are set up with sane defaults
# in the file /usr/libexec/src2pkg/DEFINES. The code gets
# executed when the file is sourced, so it shouldn't go here in /etc.
# 

# 'Package by' signature for automatically created slack-desc files
CREATOR="Piete Sartain (src2pkg)"
# Uncomment to turn off color prompting
# COLOR_PROMPT="NO"
# Uncomment to always see all ouput
QUIET="NO"

## Working Directories
# The default settings for these are like for Slackware:
#
# The tarball, or link to it, is in the current directory 
# SOURCES_DIR="$CWD"
# Sources are unpacked and built in /tmp
# SRC_BUILDS_DIR="/tmp"
# The package build tree is also in /tmp
# PKG_BUILDS_DIR="/tmp"
# Finished packages are left in /tmp
# PKG_DEST_DIR="/tmp"
#
# Installwatch backups use a package-specific directory:
# BACKUP_DIR="/tmp/$NAME-$VERSION-backup"

# You can create a separate directory for each package
# and then do everything in the current directory:
#

! [[ $BUILD ]] && BUILD="1"
! [[ $ARCH ]] && ARCH="x86_64"
! [[ $STD_FLAGS ]] && STD_FLAGS="-fPIC -O2"
! [[ $EXTRA_CONFIGS ]] && EXTRA_CONFIGS="--libdir=/usr/lib64"
! [[ $SIG ]] && SIG="_pes_slamd64_11"

# SOURCES_DIR="$CWD"
# SRC_BUILDS_DIR="$CWD"
# PKG_BUILDS_DIR="$CWD"
PKG_DEST_DIR="$CWD"
# BACKUP_DIR="$CWD"

#
# You can also set it up like rpm does and create a build area,
# for example, in /usr/src/src2pkg with subdirectories like:
# SOURCES, BUILDS,  PACKAGES. Then you can make a
# RECIPES directory with subdirs for each src2pkg script
# with it's patches or other resources
1.9.6 build 1 gives me a decent enough package. At least, doesn't bomb out at the install line.

PS: I realise the config file is a bit out of date =)

Last edited by piete; 02-18-2008 at 10:24 AM.
 
Old 02-18-2008, 03:41 PM   #3
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
There's not anything too important in the new src2pkg.conf file that you would really need to update right now.

I have a couple of comments about your options.
1. You don't need to set the BUILD default here as it is done elsewhere. (Note that some defaults are only set when pre_process is run, so if you don't see them in DEFINES then look in pre_process)

2. It would be better if you set the --libdir=/usr/lib64 in STD_CONFIGS instead of EXTRA_CONFIGS -although this is being doen for you now in get_flags. EXTRA_CONFIGS should be reserved for package-specific options when you need to pass options that only apply to the package in question, like '--enable-super-feature --disable-tests'.

Thanks for posting your example as it may help others to set theirs up. I've noticed that quite a few users are using the '-C' option which you have set up with
PKG_DEST_DIR="$CWD".
 
  


Reply



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
So many errors when I typed the "make" and "make install" command Niceman2005 Linux - Software 23 07-22-2009 02:33 PM
window maker "make" / "make install" problem xiekke Fedora 2 08-08-2007 10:55 AM
"Make Install" Problems-not a command hooloovoo33 Linux - Wireless Networking 7 02-15-2006 07:06 AM
Constant errors during "make" or "make install" with SUSE 10.1 Alpha 4 TehFlyingDutchman Linux - Software 3 12-30-2005 06:25 PM
BASH problems: "configure, make, make install" commands don't work ditch* Linux - General 3 07-19-2005 04:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Amigo

All times are GMT -5. The time now is 04:05 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration