[#6233] Lots of warnings show up when install elf-gcc and uclibc rpms

Document created by Aaronwu Employee on Oct 17, 2013
Version 1Show Document
  • View in full screen mode

[#6233] Lots of warnings show up when install elf-gcc and uclibc rpms

Submitted By: Vivi Li

Open Date

2010-09-02 23:22:25     Close Date

2010-09-13 23:19:52

Priority:

Medium High     Assignee:

Vivi Li

Stuart Henderson

Board:

N/A     Silicon Revision:

Resolution:

Fixed     Fixed In Release:

N/A

Processor:

ALL     

Host Operating System:

toolchain rev.:

    kernel rev.:

State:

Closed     Found In Release:

N/A

Is this bug repeatable?:

N/A     

Summary: Lots of warnings show up when install elf-gcc and uclibc rpms

Details:

 

First install blackfin-toolchain-2010R1-RC1.i386.rpm, then install blackfin-toolchain-elf-gcc-4.3-2010R1-RC1.i386.rpm and blackfin-toolchain-uclibc-default-2010R1-RC1.i386.rpm, lots of warning show up.

This can happen on suse 10.2/11.0/11.2.

 

--

rpm -ivh blackfin-toolchain-elf-gcc-4.3-2010R1-RC1.i386.rpm

########################################### [100%]

...

warning: user comptest does not exist - using root

warning: user comptest does not exist - using root

warning: user comptest does not exist - using root

warning: user comptest does not exist - using root

warning: user comptest does not exist - using root

warning: user comptest does not exist - using root

warning: user comptest does not exist - using root

warning: user comptest does not exist - using root

warning: user comptest does not exist - using root

warning: user comptest does not exist - using root

warning: user comptest does not exist - using root

warning: user comptest does not exist - using root

warning: user comptest does not exist - using root

warning: user comptest does not exist - using root

warning: user comptest does not exist - using root

warning: user comptest does not exist - using root

warning: user comptest does not exist - using root

warning: user comptest does not exist - using root

warning: user comptest does not exist - using root

warning: user comptest does not exist - using root

warning: user comptest does not exist - using root

########################################### [100%]

 

 

rpm -ivh blackfin-toolchain-uclibc-default-2010R1-RC1.i386.rpm

########################################### [100%]

...

warning: user comptest does not exist - using root

warning: user comptest does not exist - using root

warning: user comptest does not exist - using root

warning: user comptest does not exist - using root

warning: user comptest does not exist - using root

warning: user comptest does not exist - using root

warning: user comptest does not exist - using root

warning: user comptest does not exist - using root

warning: user comptest does not exist - using root

warning: user comptest does not exist - using root

warning: user comptest does not exist - using root

warning: user comptest does not exist - using root

warning: user comptest does not exist - using root

warning: user comptest does not exist - using root

warning: user comptest does not exist - using root

warning: user comptest does not exist - using root

warning: user comptest does not exist - using root

warning: user comptest does not exist - using root

warning: user comptest does not exist - using root

warning: user comptest does not exist - using root

warning: user comptest does not exist - using root

########################################### [100%]

--

 

Follow-ups

 

--- Mike Frysinger                                           2010-09-02 23:31:18

it has always been this way

 

--- Mike Frysinger                                           2010-09-02 23:34:39

err, i'm thinking of the rpm building steps where these warnings get dumped.

the rpm scripts specifically chown to root to avoid warnings during install.

 

--- Vivi Li                                                  2010-09-02 23:59:38

In previous releases, I didn't see such warnings.

 

--- Mike Frysinger                                           2010-09-03 00:10:40

the releases should have been built as root and so the ownership would be

root:root.  i'm guessing stuart built them as non-root.

 

--- Mike Frysinger                                           2010-09-03 11:35:02

i noticed that %defattr(-,root,root) was only being used for one set of %files.

i'm not an expert at rpm specs, but ive propagated that to all %files section.

but stuart will need to rebuild to see if this makes a difference.

 

--- Stuart Henderson                                         2010-09-07 04:20:49

I hadn't built as root as the build script warns against doing so.  i can do

this in future, however i'm testing the fix you've added now to see if this is a

suitable alternative.

 

--- Mike Frysinger                                           2010-09-07 12:21:59

the script is warning against random users.

 

but how are you running as non-root ?  did you create your own user in that

suse dist and then chroot/su into it ?

 

--- Stuart Henderson                                         2010-09-08 05:18:45

We're using a clean install of Suse 8, not the chroot tarball.

"comptest" was the default user created on that install.

 

Are you sure we've previously built the RPMs as root?  looking at previously

released SRPMs we get:

"rpm -i blackfin-toolchain-09r1.1-2.src.rpm

warning: user bernds does not exist - using root

warning: user bernds does not exist - using root

warning: user bernds does not exist - using root

warning: user bernds does not exist - using root

warning: user bernds does not exist - using root

warning: user bernds does not exist - using root

warning: user bernds does not exist - using root

warning: user bernds does not exist - using root

warning: user bernds does not exist - using root

warning: user bernds does not exist - using root

warning: user bernds does not exist - using root

warning: user bernds does not exist - using root

warning: user bernds does not exist - using root"

 

suggesting we built as user "bernds" but used defattr to make the

binary packages' owner "root".

 

from the reading i've done it seems building RPMs as root is discouraged, and

the couple of other SRPMs i've checked have suffered from this same warning in

the SRPMs only (again, suggesting it was built as a user but defattr'ed to

root).

 

my testing of your fix (built as comptest) resulted in the RPMs being built

with owner "root" and the SRPM retaining the user they were built

with, meaning we'd get the same error shown in the previous release, but with

"comptest" instead of "bernds".

 

having the SRPMs with this ownership does seem a bit odd, but seems to be

standard and I can't see an obvious fix (other than building as root).

 

 

I'm happy to build the release as root if this is what we definitely prefer.

 

--- Mike Frysinger                                           2010-09-08 16:36:30

the src rpm issues that warning for a few of its files, but none of the binary

rpms do.  since these warnings will simply confuse end users (and i dont want to

deal with answering their questions), the best is to do it all as root.

 

the defattr change didnt seem to make a difference in my rpm building.

 

--- Stuart Henderson                                         2010-09-09 07:02:39

Mike, the defattr change worked fine for me.  All of the RPMs build with

ownership set to root.

The SRPM has the same warnings as in the 09r1.1-2 release (s/bernds/comptest/),

which suggests it wasn't built as root, but regardless we currently have the

same behaviour as before.

 

--- Mike Frysinger                                           2010-09-09 12:49:30

OK, so this should be fixed for 2010R1-RC2

 

--- Vivi Li                                                  2010-09-13 23:19:52

OK now. Close it.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes