I'm trying to publish rpm5 as an IPS package on a local repo on my
laptop. This is my first exercise with IPS.
I'm facing this error. Any tips on what I'm doing wrong ? I've asked
on openindiana discuss as well, and will also ask on the ips mailing
list (once I resubscribe to it).
sriram@ram-oi:~$ sudo pkg install rpm5
Packages to install: 1
Create boot environment: No
DOWNLOAD PKGS FILES XFER (MB)
Completed 1/1 3045/3045 40.3/40.3
PHASE ACTIONS
Install Phase 152/3283Action install
failed for 'usr/src' (pkg://belenix/rpm5):
ActionExecutionError: Requested operation failed for package
pkg://belenix/rp...@5.3.11,5.11:20110821T132056Z:
Unable to create //usr/src; a parent directory /usr/src has been
replaced with a file or link. Please restore the parent directory and
try again.
The Boot Environment rpmbuild failed to be updated. A snapshot was
taken before the failed attempt and is mounted here /tmp/tmp17SgO9.
Use 'beadm unmount rpmbuild-1' and then 'beadm activate rpmbuild-1' if
you wish to boot to this BE.
pkg: Requested operation failed for package
pkg://belenix/rp...@5.3.11,5.11:20110821T132056Z:
Unable to create //usr/src; a parent directory /usr/src has been
replaced with a file or link. Please restore the parent directory and
try again.
-- Sriram
==================
Belenix: www.belenix.org
_______________________________________________
belenix-discuss mailing list
http://mail.opensolaris.org/mailman/listinfo/belenix-discuss
http://groups.google.com/group/belenix-discuss
Thanks for the info, Saurabh !
I didn't consider that this symlink would be a problem. I'll go ask on
ips-discuss what the recommendations are when it comes to dealing with
such links. As a packager, I may not have control over whether a
destination folder is a symlink or not ;)
I needed these folders to enable the "%_topdir
%{_usr}/src/rpm" rpmmacro to point to rpm-supplied defaults.
For now, I'll change the package to simply not deliver /usr/src/rpm as
part of the IPS version of rpm5. Once we have rpm-buildtools, etc,
those should take care of creating the RPM _topdir structure.
In any case, a packager can have a ~/.rpmmacros file which overrides %_topdir.
Thanks for the observations and the advice ! :)
>
> HTH,
> ~Saurabh
>> ug-bosug mailing list
>> List-Unsubscribe: mailto:ug-bosug-u...@opensolaris.org
>> List-Owner: mailto:ug-bosu...@opensolaris.org
>> List-Archives: http://www.opensolaris.org/jive/forum.jspa?forumID=54
>
>
> --
> Sun, an Oracle company
>
> Sun, an Oracle Company
>
> Saurabh Vyas
> Solaris Install Group,
> Revenue Product Engineering (RPE), Systems
>
> |Bangalore |
> Green Oracle <http://www.oracle.com/commitment> Oracle is committed to
> developing practices and products that help protect the environment
>
--