Laszlo (Laca) Peter wrote:
> Hi,
>
> On Tue, 2006-04-25 at 16:16 -0300, rafael david tinoco wrote:
>> Hello everybody, I'm getting some weird errors compiling JDS.
>>
>> Okay, first of all, I have compiled CBE environment.
>> After this I had to change the default PATH in /etc/default/su to have
>> the /jds/cbe/bin dir. (first thing).
>
> Yes, this has been reported before.
> It only happens if you try to build as root.
Thew problem here is the script kick off the build command,
su -c 'pkgbuild ....'
When doing su when you are root, the environment values do not get carry
forward, hence the build script failed at this point. As the main page
of su says,
If the first argument to su is a dash (-), the environment
will be changed to what would be expected if the user actu-
ally logged in as the specified user. Otherwise, the
environment is passed along, with the exception of $PATH,
which is controlled by PATH and SUPATH in /etc/default/su.
So what Rafael did is absolutely correct.
May be this is a feature for pkgtool that should be documented :)
-Ghee
> It's a better idea to update /etc/user_attr so that the build
> user has Software Installation privileges and then build as
> the build user.
>
>> Now, with pkgtool --download build -v *.spec on jds-spec-blahblah/Solaris/
>>
>> Im getting 404 HTTP errors cause the line wget $URL is not finding the
>> files (outdated).
>
> Right. Unfortunately some source tarball locations are not very
> stable. You can try googling for the moved tarball for
> take a look at the latest spec files at
> http://dlc.sun.com/osol/jds/downloads/current/
>
>> Is there a way of getting updated SPEC files for building JDS ?
>
> Which tarballs are not found?
> If there's a new URL, we can update the spec files and
> make them available or if a tarball's gone completely,
> we have a copy that we can share.
>
> Ideally, we should host a mirror of all tarballs used for
> building JDS, I'll check if this is something we can do.
>
> Laca
>
>
> _______________________________________________
> desktop-discuss mailing list
> desktop-discuss at opensolaris.org