Sponsored Content
Full Discussion: Error with pkgmk command
Operating Systems Solaris Error with pkgmk command Post 302675277 by solaris_user on Sunday 22nd of July 2012 02:55:32 PM
Old 07-22-2012
Error with pkgmk command

Hi guys

I need some help with the following error

Code:
# pkgmk -r 'pwd'
## Building pkgmap from package prototype file.
ERROR in prototype:
    garbled entry
    - pathname: none
    - problem: extra tokens on input line
pkgmk: ERROR: unable to build pkgmap from prototype file
## Packaging was not successful.

My protoype file

Code:
# cat prototype
d none / ? ? ?
i none copyright 0755 root sys
i none depend 0755 root sys
i none pkginfo 0755 root sys
d none kernel 0755 root sys
d none kernel/drv 0755 root sys
f none kernel/drv/nfo.conf 0755 root sys
d none kernel/drv/amd64 0755 root sys
f none kernel/drv/amd64/nfo 0755 root sys
f none kernel/drv/nfo 0755 root sys

and directory hieararchy looks

Code:
# ls -al
total 22
drwxr-xr-x   3 root     sys            8 Jul 22 20:48 .
drwxr-xr-x   4 denis    other         20 Jul 22 20:38 ..
-rwxrwxrwx   1 root     sys         1640 Jul 17 19:38 copyright
-rwxrwxrwx   1 root     sys          321 Jul 17 19:31 depend
drwxr-xr-x   3 root     sys            3 Jul 22 20:33 kernel
-rwxrwxrwx   1 root     sys          224 Jul 22 20:35 pkginfo
-rwxrwxrwx   1 root     sys          320 Jul 22 20:48 prototype
-rwxrwxrwx   1 root     sys          320 Jul 22 20:47 prototype~
#

 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Solaris pkgmk -> prototype errors...

I'm attempting to create another package (i.e. for utilizing pkgadd/pkgrm/pkgchk/etc.) But after creating the prototype file, I noticed that some of my files begin with the '=' character. How do I get pkgmk to interpret the "/path/=file" as a single file, rather than interpreting it as... (7 Replies)
Discussion started by: mslightn
7 Replies

2. UNIX for Dummies Questions & Answers

Pkgmk....question on prototype file

I've read the man page, but still unclear a bit.... I'm making some packages of files. My pkginfo file has a line BASEDIR=/base/path. I also have several prototype files (depending on the package), that either list the destination path as absolute: f non /abs/path/to/go/here/file1 or are... (0 Replies)
Discussion started by: Yinzer955i
0 Replies

3. Shell Programming and Scripting

if else command syntax error

can anyone tell me what`s going wrong with my if else statement? set exam=(AAA BBB CCC) foreach ii ($exam) if ($ii -eq "AAA") do echo "PASS" else echo "FAILED" done end (4 Replies)
Discussion started by: c0384
4 Replies

4. Shell Programming and Scripting

If..else command gives error

Hi, I am a newbie and was getting an error when I use the if..else syntax. The script looks like this echo "Please specify the database version (9i/10g): " read VERS if then echo "Its a 9i Database" sqlplus -s $puser/$ppass << EOF_I spool cxcreate9i.lst @... (3 Replies)
Discussion started by: bhatia333
3 Replies

5. Shell Programming and Scripting

awk command in script gives error while same awk command at prompt runs fine: Why?

Hello all, Here is what my bash script does: sums number columns, saves the tot in new column, outputs if tot >= threshold val: > cat getnon0file.sh #!/bin/bash this="getnon0file.sh" USAGE=$this" InFile="xyz.38" Min="0.05" # awk '{sum=0; for(n=2; n<=NF; n++){sum+=$n};... (4 Replies)
Discussion started by: catalys
4 Replies

6. Shell Programming and Scripting

Error with using a shell command(looks more generic error)

Hi, This error is actually out of implementing the command posted here - https://www.unix.com/shell-programming-scripting/155589-remove-blank-lines-merge-lines-shell.html Here is the error i get - awk: Input line xxxxx cannot be longer than 3,000 bytes. The source line number is 1.... (1 Reply)
Discussion started by: dvah
1 Replies

7. Shell Programming and Scripting

Linux Command Error for nawk command

Hi All We are migrating our projects from unix environment to linux. I tried running a install script which sets up my project, i.e. the directory structure and all. But in the middle of the script i started receiveing following error : nawk: command not found . So i need to know which... (1 Reply)
Discussion started by: vee_789
1 Replies

8. UNIX for Advanced & Expert Users

AT command Error

Hi I have used the AT command in my shell script to schedule the jobs. Sometimes it works fine but sometimes it throws an error, such as : at: can't change the owner of your job to you. I could not find any solution to this issue yet. If anyone can please provide any pointer what doe this... (3 Replies)
Discussion started by: MD21
3 Replies

9. Shell Programming and Scripting

Error : command not found

Hi , I am an Oracle developer. trying to write a shell script to compile all the forms that are modified in last 1 hour. Script Body cat cmp.sh for f in `find ./*fmb* -mmin -60`; do "`frmcmp_batch.sh userid=ba/ba@testdb batch=yes module=$f module_type=form compile_all=yes... (2 Replies)
Discussion started by: imrandec85
2 Replies

10. AIX

I'm facing problem with rpm command, when running the command and appears this error:

exec(): 0509-036 Cannot load program /usr/opt/freeware/bin/rpm because of the following errors: 0509-022 Cannot load module /opt/freeware/lib/libintl.a(libintl.so.1). 0509-150 Dependent module /opt/freeware/lib/libiconv.a(shr4.o) could not be loaded. 0509-152 Member... (4 Replies)
Discussion started by: Ohmkar
4 Replies
pkgproto(1)                                                        User Commands                                                       pkgproto(1)

NAME
pkgproto - generate prototype file entries for input to pkgmk command SYNOPSIS
pkgproto [-i] [-c class] [path1] pkgproto [-i] [-c class] [path1=path2...] DESCRIPTION
pkgproto scans the indicated paths and generates prototype(4) file entries that may be used as input to the pkgmk(1) command. If no paths are specified on the command line, standard input is assumed to be a list of paths. If the pathname listed on the command line is a directory, the contents of the directory is searched. However, if input is read from stdin, a directory specified as a pathname will not be searched. OPTIONS
-i Ignores symbolic links and records the paths as ftype=f (a file) versus ftype=s (symbolic link). -c class Maps the class of all paths to class. OPERANDS
path1 Pathname where objects are located. path2 Pathname which should be substituted on output for path1. EXAMPLES
Example 1: Examples of the use of pkgproto.1. The following two examples show uses of pkgproto and a partial listing of the output produced. Example 1: example% pkgproto /bin=bin /usr/bin=usrbin /etc=etc f none bin/sed=/bin/sed 0775 bin bin f none bin/sh=/bin/sh 0755 bin daemon f none bin/sort=/bin/sort 0755 bin bin f none usrbin/sdb=/usr/bin/sdb 0775 bin bin f none usrbin/shl=/usr/bin/shl 4755 bin bin d none etc/master.d 0755 root daemon f none etc/master.d/kernel=/etc/master.d/kernel 0644 root daemon f none etc/rc=/etc/rc 0744 root daemon Example 2: example% find / -type d -print | pkgproto d none / 755 root root d none /bin 755 bin bin d none /usr 755 root root d none /usr/bin 775 bin bin d none /etc 755 root root d none /tmp 777 root root EXIT STATUS
0 Successful completion. >0 An error occurred. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcsu | +-----------------------------+-----------------------------+ SEE ALSO
pkgmk(1), pkgparam(1), pkgtrans(1), prototype(4), attributes(5) Application Packaging Developer's Guide NOTES
By default, pkgproto creates symbolic link entries for any symbolic link encountered (ftype=s). When you use the -i option, pkgproto cre- ates a file entry for symbolic links (ftype=f). The prototype(4) file would have to be edited to assign such file types as v (volatile), e (editable), or x (exclusive directory). pkgproto detects linked files. If multiple files are linked together, the first path encountered is considered the source of the link. By default, pkgproto prints prototype entries on the standard output. However, the output should be saved in a file (named Prototype or prototype, for convenience) to be used as input to the pkgmk(1) command. SunOS 5.10 6 Nov 2000 pkgproto(1)
All times are GMT -4. The time now is 11:59 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy