Solaris pkgmk -> prototype errors...

Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Solaris pkgmk -> prototype errors...
# 1  
Old 07-29-2002
Data 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 "/path/"="file"? I would argue that having an '=' character within the filename is undesireable, but unfortunately I have no control over this.
# 2  
Old 07-30-2002
Exactly how are you creating the prototype file? And how are you using it (within a script, command line)?

Possibly you need to \ the = so the shell does not interpert...but more info is required.
# 3  
Old 07-30-2002
PKGDIR=` echo '/var/tmp/tas_bkup'`; export PKGDIR;
if [ ! -d $PKGDIR ];
then mkdir $PKGDIR;
# --> CREATE .../prototype
echo "1 i pkginfo" > $PKGDIR/prototype;
echo "1 i copyright" >> $PKGDIR/prototype;
echo "1 i checkinstall" >> $PKGDIR/prototype;
echo "1 i preinstall" >> $PKGDIR/prototype;
echo "1 i postinstall" >> $PKGDIR/prototype;
echo "1 i prototype" >> $PKGDIR/prototype;

find /etc/opt/totalnet /etc/totalnet /opt/totalnet /var/opt/totalnet | sort | uniq | pkgproto >> $PKGDIR/prototype;

echo "1 f none /etc/init.d/TAS 0555 totalnet totalnet" >> $PKGDIR/prototype;

echo "1 d none /usr/kernel/drv/sparc9 0755 root sys" >> $PKGDIR/prototype;

echo "1 d none /usr/kernel/strmod/sparc9 0755 root sys" >> $PKGDIR/prototype;
# 4  
Old 07-30-2002
After commenting out all of the offending lines (i.e. lines with files containint the "=" character), I am then able to run pkgmk successfully.

I then uncommented the following offending line - which caused pkgmk to then fail ...
1 f none '/var/opt/totalnet/tndb/=flock.file' 0664 totalnet totalnet

I tried altering this to the following, but it failed...
1 f none '/var/opt/totalnet/tndb/\=flock.file' 0664 totalnet totalnet

I tried this also, and it failed as well...
1 f none '/var/opt/totalnet/tndb/==flock.file' 0664 totalnet totalnet
# 5  
Old 07-30-2002
P.S. I realize that the "=flock.file" is not an important file, but I do have other files, files containing configuration info, which also have the "=" character in them...
# 6  
Old 07-30-2002
Instead of
1 f none '/var/opt/totalnet/tndb/=flock.file' 0664 totalnet totalnet

1 f none '/var/opt/totalnet/tndb/flock.file' 0664 totalnet totalnet

(assuming from the examples on the man page this is what you are attempting {and that flock.file is in that path}:

f none /usr/wrap/bin/INSTALL 0755 root bin
f none /usr/wrap/bin/REMOVE 0755 root bin
f none /usr/wrap/bin/addpkg 0755 root bin

Check out the man page for prototype.
# 7  
Old 07-30-2002
# pkgmk -o -r /
## Building pkgmap from package prototype file.
ERROR in prototype:
no object for <'/var/opt/totalnet/tndb/flock.file'> found in root directory
pkgmk: ERROR: unable to build pkgmap from prototype file
## Packaging was not successful.

Trouble is, the object should be '/var/opt/totalnet/tndb/=flock.file'> since the file is "=flock.file" and not "flock.file".

I may need to tar these to an appropriate filename, and then have the tar file untar'ed through the postinstall. This would be a compromise, but it may get me further than I've gotten so far - unless we have other ideas... <Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

apache 2.2.22 Solaris errors

Hi, I have installed apache 2.2.22 on solaris machine and trying to do some basic testing, but it is failing for one of the scenario. Seeing below in the error logs But noy sure why there is a need for AuthUserFile when i mentioned AuthldapURL. Please advise Thanks (1 Reply)
Discussion started by: prash358
1 Replies

2. Solaris

Solaris with Soft Errors in XIV

Hi guys, I had a solaris box, with veritas controled disk. 1 disc is showing soft errors, how can I repair the soft errors? Please help. Cheers; (4 Replies)
Discussion started by: Mujakol
4 Replies

3. Solaris

Error with pkgmk command

Hi guys I need some help with the following error # 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 ##... (2 Replies)
Discussion started by: solaris_user
2 Replies

4. Linux

xset errors when trying to remote x11 from solaris

Hi all, Trying to achieve: Remote X11 app (advance trader workstation... really old) from solaris to linux. This app uses a startup script that loads some fonts via xset. I get an error from xset saying "incorrect font server address or syntax" Of course its not correct since i'm... (0 Replies)
Discussion started by: maverick72
0 Replies

5. Solaris

Errors in postfix configuration on solaris 10

Hi Geeks, I am trying to configure 'postfix' for sending mail only instead of 'sendmail'. I am getting following error when I try to send mail using mailx command. #echo "test" | mailx -s "test mail" <username> -- command executed from server --/var/log/syslog output : Jul 8 12:55:44... (0 Replies)
Discussion started by: abhkadam
0 Replies

6. Solaris

Solaris Zone errors

after booting up my zone i get following error # zlogin -C DB_zone Sep 29 09:18:46 svc.startd: Could not log for svc:/system/filesystem/root:default: write(51) failed with I/O error. Sep 29 09:18:47 svc.startd: Could not log for svc:/system/installupdates:default: write(17) failed with... (5 Replies)
Discussion started by: fugitive
5 Replies

7. Solaris

Solaris 9 lroundf errors

When I want to install some softwares from source with gcc/4.3 on a sparc solaris 9 I always have errors like this one : (example with lapack-3.2) ../../lapack_SUN4.a(slacn2.o): In function `slacn2_': slacn2.f:(.text+0x1b0): undefined reference to `lroundf' slacn2.f:(.text+0x370): undefined... (0 Replies)
Discussion started by: wolfhurt
0 Replies

8. Solaris

Solaris Installation errors Please help

Hi to all I have a sun Ultra 10 workstation with the following configuration SUN ULTRA-10 Workstation 440 Mhz CPU 1024 MB RAM 40 GB HDD Seagate (Connected as Primary master) FDD Samsung DVD Writer (connected as Secondary master) CABINET SMPS Sun keyboard and mouse the command -... (3 Replies)
Discussion started by: network45
3 Replies

9. Shell Programming and Scripting

Errors while executing cmds in sun solaris

Hi All, I am using mysql at sun solaris unix(Hp) server. I logged into mysql server with root as user. its logged in properly. Then i used 'show databases' mysql command. its display all the available databases. for example mysql > show databases; It displayed as follows. exampledb1 ... (1 Reply)
Discussion started by: dbsurf
1 Replies

10. 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
Login or Register to Ask a Question