[belenix-discuss] Help needed with IPS

3 views
Skip to first unread message

Sriram Narayanan

unread,
Aug 21, 2011, 10:08:13 AM8/21/11
to Bangalore OpenSolaris User Group, Belenix Discuss
Hi folks:

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

Sriram Narayanan

unread,
Aug 21, 2011, 11:41:50 AM8/21/11
to Saurabh Vyas - Oracle, ug-b...@opensolaris.org, belenix...@opensolaris.org
On Mon, Aug 22, 2011 at 2:05 AM, Saurabh Vyas - Oracle
<saurab...@oracle.com> wrote:
> Hi Sriram,
>
> The package you are trying to install delivers bits inside /usr/src and
> assumes it to be a regular dir, but we have /usr/src as symlink
>
> vyas@Fierro:~$ ls -ld /usr/src
> lrwxrwxrwx   1 root     root          11 Feb  3  2011 /usr/src ->
> ./share/src
>
> so as a workaround you an remove the link & create a regular dir (and can
> restore the original symlink after 'rpm5' is installed.
>
> Please let me know if you face any issue (just FYI 'pkg install -vvv
> <pkg-name>' will provide more debug info !!)

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
>

--

Reply all
Reply to author
Forward
0 new messages