LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   src2pkg install problem (https://www.linuxquestions.org/questions/slackware-14/src2pkg-install-problem-816819/)

charlie_lab 06-28-2010 11:23 AM

src2pkg install problem
 
Hello,

I have a little problem installing src2pkg on my linux from stratch system.

I downloaded the package and saved it on /
After that I did cd /usr/libexec/src2pkg/src2pkg-helpers

There I did a sh src2pkg.setup
But now I'm getting this error message :

/usr/libexec/src2pkg/13-make-description: line 438: 'read_pkg_info_desc : not a valid identifier.

Do anyone have any idea what went wrong ?

Regards,

Roelof

knudfl 06-28-2010 11:28 AM

Why have downloaded packages in / ?
Default is e.g. /home/<name>/Downloads/

But anyway, the install procedure is 1) su
2) installpkg src2pkg-2.2-noarch-3.tgz
3) src2pkg --setup

..

charlie_lab 06-28-2010 01:20 PM

Hello,

I did it now your way but now I get this message :

installpkg src2pkg-2.2-noarch-3.tgz
WARNING: pkgtools are unstable with tar > 1.13.
You should provide a "tar-1.13" in your $PATH.
/sbin/installpkg: line 59: rev: command not found
/sbin/installpkg: line 59: rev: command not found
/sbin/installpkg: line 59: rev: command not found
/sbin/installpkg: line 59: rev: command not found
Cannot install src2pkg-2.2-noarch-3.tgz: file does not end in .tgz, .tbz, .tlz, or .txz


Roelof

Lufbery 06-28-2010 02:14 PM

Did you rerun src2pkg --setup?

charlie_lab 06-28-2010 02:35 PM

Hello,

Nope
I'm now trying to re-install src2pkg. The setup will be the next step.

Roelof

dive 06-28-2010 03:33 PM

Quote:

/sbin/installpkg: line 59: rev: command not found

Looks like you need to install util-linux-ng package.

gnashley 06-29-2010 03:20 AM

Yes, rev is missing. I'm wondering also what 'installpkg' you are using -is that the Slackware version or what?

Lufbery 06-29-2010 06:58 AM

I believe the original poster is building Linux from Scratch using pkgtools with the intent of using src2pkg to make the LFS packages.

gnashley 06-29-2010 01:17 PM

Yeah. charlie_lab, you need to have some basic things installed and working in order to use src2pkg. In short, you need a working development environment with kernel/glibc headers, gcc, autoconf/automake/libtool/m4/perl, pkgconfig, make, binutils. You also need basic command-line tools found in the linux-util(or linux-util-ng) and coreutils software sets. I guess you need what, for LFS, would be a full, running native environment(what you have after pass-2 or pass-3). Only then can you begin to create packages using src2pkg -you can start by packaging all the above-named stuff if you like, or with whatever extra packages you want.

charlie_lab 06-30-2010 09:34 AM

Hello gnashley,

I have that.
But when I do src2pkg --setup I see this messages :
Code:

src2pkg --setup
  Notice - Creating src2pkg-helpers:
  src2pkg uses a shared library and a few programs
  when creating packages. These binaries will be
  compiled on your system for best compatibility,
  and installed. When done, src2pkg is ready for use.

  TEMP_DIR=/usr/src/src2pkg/builds/src2pkg-helpers
  Starting build in 5 seconds
/usr/src/src2pkg/src2pkg-helpers/src2pkg.setup: line 580: -p: command not found
/usr/src/src2pkg/src2pkg-helpers/src2pkg.setup: line 98: cd: /usr/src/src2pkg/builds/src2pkg-helpers: No such file or directory
Unpacking sources - OK
/usr/src/src2pkg/src2pkg-helpers/src2pkg.setup: line 585: cd: /usr/src/src2pkg/builds/src2pkg-helpers/src2pkg-helpers-1.1: No such file or directory
/usr/src/src2pkg/src2pkg-helpers/src2pkg.setup: line 586: cd: libsentry-0.6.9: No such file or directory
Creating libsentry - /usr/src/src2pkg/src2pkg-helpers/src2pkg.setup: line 590: -p: command not found
/usr/src/src2pkg/src2pkg-helpers/src2pkg.setup: line 591: -f: command not found
/usr/src/src2pkg/src2pkg-helpers/src2pkg.setup: line 592: 755: command not found
/usr/src/src2pkg/src2pkg-helpers/src2pkg.setup: line 594: -p: command not found
/usr/src/src2pkg/src2pkg-helpers/src2pkg.setup: line 595: /usr/src/src2pkg/builds/src2pkg-helpers/PKG/usr/libexec/src2pkg/bin/version: No such file or directory
OK
/usr/src/src2pkg/src2pkg-helpers/src2pkg.setup: line 106: cd: /usr/src/src2pkg/builds/src2pkg-helpers/src2pkg-helpers-1.1: No such file or directory
/usr/src/src2pkg/src2pkg-helpers/src2pkg.setup: line 110: cd: tar-1.13a: No such file or directory
Creating tar-1.13 - /usr/src/src2pkg/src2pkg-helpers/src2pkg.setup: line 116: -p: command not found
/usr/src/src2pkg/src2pkg-helpers/src2pkg.setup: line 117: -f: command not found
/usr/src/src2pkg/src2pkg-helpers/src2pkg.setup: line 118: 755: command not found
OK
/usr/src/src2pkg/src2pkg-helpers/src2pkg.setup: line 126: cd: coreutils-5.2.1a: No such file or directory
Creating coreutils - /usr/src/src2pkg/src2pkg-helpers/src2pkg.setup: line 129: /usr/src/src2pkg/builds/src2pkg-helpers/src2pkg-helpers-1.1/coreutils-5.2.1a-mktime.diff: No such file or directory
/usr/src/src2pkg/src2pkg-helpers/src2pkg.setup: line 133: cd: src: No such file or directory
/usr/src/src2pkg/src2pkg-helpers/src2pkg.setup: line 135: -f: command not found
/usr/src/src2pkg/src2pkg-helpers/src2pkg.setup: line 136: 755: command not found
/usr/src/src2pkg/src2pkg-helpers/src2pkg.setup: line 135: -f: command not found
/usr/src/src2pkg/src2pkg-helpers/src2pkg.setup: line 136: 755: command not found
/usr/src/src2pkg/src2pkg-helpers/src2pkg.setup: line 135: -f: command not found
/usr/src/src2pkg/src2pkg-helpers/src2pkg.setup: line 136: 755: command not found
/usr/src/src2pkg/src2pkg-helpers/src2pkg.setup: line 135: -f: command not found
/usr/src/src2pkg/src2pkg-helpers/src2pkg.setup: line 136: 755: command not found
/usr/src/src2pkg/src2pkg-helpers/src2pkg.setup: line 135: -f: command not found
/usr/src/src2pkg/src2pkg-helpers/src2pkg.setup: line 136: 755: command not found
/usr/src/src2pkg/src2pkg-helpers/src2pkg.setup: line 135: -f: command not found
/usr/src/src2pkg/src2pkg-helpers/src2pkg.setup: line 136: 755: command not found
/usr/src/src2pkg/src2pkg-helpers/src2pkg.setup: line 135: -f: command not found
/usr/src/src2pkg/src2pkg-helpers/src2pkg.setup: line 136: 755: command not found
/usr/src/src2pkg/src2pkg-helpers/src2pkg.setup: line 135: -f: command not found
/usr/src/src2pkg/src2pkg-helpers/src2pkg.setup: line 136: 755: command not found
/usr/src/src2pkg/src2pkg-helpers/src2pkg.setup: line 135: -f: command not found
/usr/src/src2pkg/src2pkg-helpers/src2pkg.setup: line 136: 755: command not found
/usr/src/src2pkg/src2pkg-helpers/src2pkg.setup: line 135: -f: command not found
/usr/src/src2pkg/src2pkg-helpers/src2pkg.setup: line 136: 755: command not found
/usr/src/src2pkg/src2pkg-helpers/src2pkg.setup: line 135: -f: command not found
/usr/src/src2pkg/src2pkg-helpers/src2pkg.setup: line 136: 755: command not found
/usr/src/src2pkg/src2pkg-helpers/src2pkg.setup: line 135: -f: command not found
/usr/src/src2pkg/src2pkg-helpers/src2pkg.setup: line 136: 755: command not found
/usr/src/src2pkg/src2pkg-helpers/src2pkg.setup: line 135: -f: command not found
/usr/src/src2pkg/src2pkg-helpers/src2pkg.setup: line 136: 755: command not found
/usr/src/src2pkg/src2pkg-helpers/src2pkg.setup: line 135: -f: command not found
/usr/src/src2pkg/src2pkg-helpers/src2pkg.setup: line 136: 755: command not found
/usr/src/src2pkg/src2pkg-helpers/src2pkg.setup: line 135: -f: command not found
/usr/src/src2pkg/src2pkg-helpers/src2pkg.setup: line 136: 755: command not found
/usr/src/src2pkg/src2pkg-helpers/src2pkg.setup: line 135: -f: command not found
/usr/src/src2pkg/src2pkg-helpers/src2pkg.setup: line 136: 755: command not found
/usr/src/src2pkg/src2pkg-helpers/src2pkg.setup: line 135: -f: command not found
/usr/src/src2pkg/src2pkg-helpers/src2pkg.setup: line 136: 755: command not found
/usr/src/src2pkg/src2pkg-helpers/src2pkg.setup: line 139: cd: /usr/src/src2pkg/builds/src2pkg-helpers/PKG/usr/libexec/src2pkg/bin: No such file or directory
OK
Notice - Skipping creation of unionfs-fuse -you don't have fuse installed.
/usr/src/src2pkg/src2pkg-helpers/src2pkg.setup: line 611: -p: command not found
/usr/src/src2pkg/src2pkg-helpers/src2pkg.setup: line 612: /usr/src/src2pkg/builds/src2pkg-helpers/src2pkg-helpers-1.1/README: No such file or directory
- Creating Slackware-type tgz package -
/usr/src/src2pkg/src2pkg-helpers/src2pkg.setup: line 177: -p: command not found
/usr/src/src2pkg/src2pkg-helpers/src2pkg.setup: line 178: /usr/src/src2pkg/src2pkg-helpers/slack-desc: Permission denied
/usr/src/src2pkg/src2pkg-helpers/src2pkg.setup: line 179: /usr/src/src2pkg/src2pkg-helpers/doinst.sh: Permission denied
/usr/src/src2pkg/src2pkg-helpers/src2pkg.setup: line 180: cd: /usr/src/src2pkg/builds/src2pkg-helpers/PKG: No such file or directory
WARNING: pkgtools are unstable with tar > 1.13.
        You should provide a "tar-1.13" in your $PATH.

Slackware package maker, version 3.14159.

Searching for symbolic links:
/sbin/makepkg: line 196: mktemp: command not found
glib-1.2.10/gmodule/.libs/libgplugin_a.la -> ../libgplugin_a.la
glib-1.2.10/gmodule/.libs/libgplugin_b.la -> ../libgplugin_b.la
glib-1.2.10/gmodule/.libs/libgmodule.la -> ../libgmodule.la
glib-1.2.10/gthread/.libs/libgthread.la -> ../libgthread.la
glib-1.2.10/.libs/libglib.la -> ../libglib.la
install -> ginstall

This seems to me not good. On the install part the installation seems to be stopped. Nothing happens after that even after 20 min.

Roelof

gnashley 06-30-2010 01:25 PM

You need 'mktemp', which I think is part of the 'bin' package for Slackware -a collection of various programs needed for Slackware. What is happening is that src2pkg assumes you want to setup using Slackware-type packages so it calls makepkg. makepkg is calling mktemp which you are missing.
Go to a mirror like this one:
ftp://ftp.slackware.at/slackware-current/source/a/bin/
and download the various sources there and build and install them -the debianutils is what contains mktemp.

In view of this problem I may change the way src2pkg builds the slackware-type package for src2pkg-helpers when you run 'src2pkg --setup', but meanwhile you'll find it easiest to build and install the 'bin' package.

charlie_lab 07-01-2010 10:47 AM

Hello gnashley,

I downloaded mktemp from the mktemp site and I get now these errors :
Code:

src2pkg --setup
  Notice - Creating src2pkg-helpers:
  src2pkg uses a shared library and a few programs
  when creating packages. These binaries will be
  compiled on your system for best compatibility,
  and installed. When done, src2pkg is ready for use.

  TEMP_DIR=/usr/src/src2pkg/builds/src2pkg-helpers
  Starting build in 5 seconds
/usr/src/src2pkg/src2pkg-helpers/src2pkg.setup: line 580: -p: command not found
/usr/src/src2pkg/src2pkg-helpers/src2pkg.setup: line 98: cd: /usr/src/src2pkg/builds/src2pkg-helpers: No such file or directory
Unpacking sources - OK
/usr/src/src2pkg/src2pkg-helpers/src2pkg.setup: line 585: cd: /usr/src/src2pkg/builds/src2pkg-helpers/src2pkg-helpers-1.1: No such file or directory
/usr/src/src2pkg/src2pkg-helpers/src2pkg.setup: line 586: cd: libsentry-0.6.9: No such file or directory

The helpers-helpers-1.1 does exist but in the root.

Roelof

knudfl 07-02-2010 10:24 AM

Now that you have installed all the missing commands
etc. suggested by @ gnashley :

Then may be reinstall src2pkg :
# installpkg src2pkg-2.2-noarch-3.tgz

.. to provide the missing 'src2pkg-helpers' files.
..

charlie_lab 07-02-2010 12:54 PM

Hello,

I did reinstall src2pkg and the same error messages appear.
I begin to think this is a dead end road.


Roelof

charlie_lab 07-03-2010 07:21 AM

Hello,

Nobody who knows the answer ??

Roelof


All times are GMT -5. The time now is 08:21 PM.