Re: [osol-discuss] How to make pkgtool work properly?

2009-04-22 Thread Shao Xuan
Hi halton,

Yes, it's my mistake, sorry. :)

Thanks,
Shao
-- 
This message posted from opensolaris.org
___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org


Re: [osol-discuss] How to make pkgtool work properly?

2009-04-20 Thread Ghee Teo

On 04/17/09 17:10, Shao Xuan wrote:

Thanks Aubrey,

Now I know how the pkgtool works. I can use this tool to build specs. But it 
seems hard for this command to automatically resolve dependencies (using 
--autodeps) and download source codes from urls within the spec files. It 
always fail to download from urls within the spec files. Manually resolve deps 
and download source codes from many urls is a pain,so what is workaround then?
   
No workaround really. Log bug against the spec file owner and tried to 
get the changes back would be best for everyone who uses pkgtool and 
those spec files. That's the spirit of open source community :)


-Ghee

Thanks,
Shao
   


___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org


Re: [osol-discuss] How to make pkgtool work properly?

2009-04-20 Thread Halton Huo

On Thu, 2009-04-16 at 19:59 -0700, Shao Xuan wrote:
 Hello,
 
 I have tried, but with no luck. :(
 
 yuri...@mars:~/SFE$ pkgtool build-only --download SFWnasm.spec
 ips_utils: warning: unknown section variant
 ips_utils: failed to parse line: variant.opensolaris.zone = global
 ips_utils: failed to parse line: variant.arch = i386
 ERROR: SFWnasm.spec not found
 INFO: No spec files specified: nothing to do.
 yuri...@mars:~/SFE$

You might type wrong spec file name here. 

I searched the SFE repo, no SFWnawm.spec but SFEnawm.spec.
$ls |grep nasm
SFEnasm.spec

-Halton

___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org


Re: [osol-discuss] How to make pkgtool work properly?

2009-04-17 Thread Aubrey Li
On Fri, Apr 17, 2009 at 10:59 AM, Shao Xuan shaoxuan...@yahoo.com.cn wrote:
 Hello,

 I have tried, but with no luck. :(

The SPEC file(say SFWnasm.spec here) must exist in your local folder.
That means you should see the file when you run ls command.

yuri...@mars:~/SFE$ ls
SFWnasm.spec

The --download option here does not mean pkgtool can download SPEC file
for you, it means downloading the source files from the URLs specified in
the spec files listed on the command line.

I can write Chinese to you if you want.

Thanks,
-Aubrey


 yuri...@mars:~/SFE$ pkgtool build-only --download SFWnasm.spec
 ips_utils: warning: unknown section variant
 ips_utils: failed to parse line: variant.opensolaris.zone = global
 ips_utils: failed to parse line: variant.arch = i386
 ERROR: SFWnasm.spec not found
 INFO: No spec files specified: nothing to do.
 yuri...@mars:~/SFE$
 --
 This message posted from opensolaris.org
 ___
 opensolaris-discuss mailing list
 opensolaris-discuss@opensolaris.org

___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org


Re: [osol-discuss] How to make pkgtool work properly?

2009-04-17 Thread Shao Xuan
Thanks Aubrey,

Now I know how the pkgtool works. I can use this tool to build specs. But it 
seems hard for this command to automatically resolve dependencies (using 
--autodeps) and download source codes from urls within the spec files. It 
always fail to download from urls within the spec files. Manually resolve deps 
and download source codes from many urls is a pain,so what is workaround then?

Thanks,
Shao
-- 
This message posted from opensolaris.org
___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org


Re: [osol-discuss] How to make pkgtool work properly?

2009-04-16 Thread Shao Xuan
Hello,

I have tried, but with no luck. :(

yuri...@mars:~/SFE$ pkgtool build-only --download SFWnasm.spec
ips_utils: warning: unknown section variant
ips_utils: failed to parse line: variant.opensolaris.zone = global
ips_utils: failed to parse line: variant.arch = i386
ERROR: SFWnasm.spec not found
INFO: No spec files specified: nothing to do.
yuri...@mars:~/SFE$
-- 
This message posted from opensolaris.org
___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org


Re: [osol-discuss] How to make pkgtool work properly?

2009-04-15 Thread kelvin

Hi

The spec file you specified should be exist. The spec file let the 
pkgtool know which source file should be downloaded and should be built.


Shao Xuan 写道:

Hello gurus,

I'm using opensolaris 2008.11, I have successfully installed Sun Studio 12, pkgbuild and 
JDS CBE in my system. but when I execute pkgtool to build spec files, it 
encounters error as follows:

yuri...@mars:~$ pkgtool build --download SFEfoo.spec
ERROR: SFEfoo.spec not found
INFO: No spec files specified: nothing to do.
yuri...@mars:~$ 


What can I do to make pkgtool work properly? Thanks.
  


___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org

Re: [osol-discuss] How to make pkgtool work properly?

2009-04-15 Thread Matt Keenan


Hi,

The spec files that you are trying to build need to be located locally on your 
machine.


the --download option of pkgtool, means to download source tarballs required by 
the spec file(s), you are trying to build.


SFE spec files are located here :
http://pkgbuild.svn.sourceforge.net/viewvc/pkgbuild/spec-files-extra/

JDS Spec files are located :
http://src.opensolaris.org/source/xref/jds/spec-files/


Both are SVN repo's that can be checked out locally.

See : http://blogs.sun.com/mattman/entry/how_to_build_jds_on


cheers

Matt





On 15/04/2009 10:11, Shao Xuan wrote:

Hello gurus,

I'm using opensolaris 2008.11, I have successfully installed Sun Studio 12, pkgbuild and 
JDS CBE in my system. but when I execute pkgtool to build spec files, it 
encounters error as follows:

yuri...@mars:~$ pkgtool build --download SFEfoo.spec
ERROR: SFEfoo.spec not found
INFO: No spec files specified: nothing to do.
yuri...@mars:~$

What can I do to make pkgtool work properly? Thanks.


___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org


Re: [osol-discuss] How to make pkgtool work properly?

2009-04-15 Thread Laszlo (Laca) Peter

On Wed, 2009-04-15 at 02:11 -0700, Shao Xuan wrote:
 Hello gurus,
 
 I'm using opensolaris 2008.11, I have successfully installed Sun Studio 12, 
 pkgbuild and JDS CBE in my system. but when I execute pkgtool to build spec 
 files, it encounters error as follows:
 
 yuri...@mars:~$ pkgtool build --download SFEfoo.spec
 ERROR: SFEfoo.spec not found
 INFO: No spec files specified: nothing to do.
 yuri...@mars:~$ 

Well, foo is like something.  You need to provide a spec
file you want to build.  There are lots of spec files in
SFE: http://pkgbuild.sf.net/spec-files-extra
You can also find some in the sourcejuicer project:
http://jucr.opensolaris.org

Laca


___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org


Re: [osol-discuss] How to make pkgtool work properly?

2009-04-15 Thread Shao Xuan
Hello,

I want to build spec files in 
http://pkgbuild.svn.sourceforge.net/viewvc/pkgbuild/spec-files-extra/
and  I have already executed :svn co 
https://pkgbuild.svn.sourceforge.net/svnroot/pkgbuild/spec-files-extra/trunk 
SFE
But when I execute pkgtool build --download *.spec (*mean anything I have 
tried in the repo's list),it always return:ERROR: SFEfoo.spec not found
INFO: No spec files specified: nothing to do. Have I forgot something? Thanks.
-- 
This message posted from opensolaris.org
___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org

Re: [osol-discuss] How to make pkgtool work properly?

2009-04-15 Thread Matt Keenan

On 15/04/2009 15:32, Shao Xuan wrote:

Hello,

I want to build spec files in 
http://pkgbuild.svn.sourceforge.net/viewvc/pkgbuild/spec-files-extra/
and  I have already executed :svn co 
https://pkgbuild.svn.sourceforge.net/svnroot/pkgbuild/spec-files-extra/trunk SFE
But when I execute pkgtool build --download *.spec (*mean anything I have tried in 
the repo's list),it always return:ERROR: SFEfoo.spec not found
INFO: No spec files specified: nothing to do. Have I forgot something? Thanks.



After you do the checkout, change dir into your checked out source :

e.g. for SFEnasm.spec
  $ svn co 
https://pkgbuild.svn.sourceforge.net/svnroot/pkgbuild/spec-files-extra/trunk SFE

  $ cd SFE
  $ pkgtool build-only --download SFWnasm.spec


This just worked for me...

Matt
___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org