Bug 13813 - Update request: clang-3.3-2.1.mga4, clang-3.2-5.1.mga3
Summary: Update request: clang-3.3-2.1.mga4, clang-3.2-5.1.mga3
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 4
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: MGA3TOO advisory has_procedure MGA4-6...
Keywords: validated_update
Depends on:
Blocks: 11805 clang-ASAN
  Show dependency treegraph
 
Reported: 2014-07-28 00:24 CEST by Thomas Backlund
Modified: 2014-08-04 12:02 CEST (History)
5 users (show)

See Also:
Source RPM: llvm
CVE:
Status comment:


Attachments

Description Thomas Backlund 2014-07-28 00:24:56 CEST
Advisory:
Updated clang packages fixes clang build on 32bit and missing compiler-rt

This update to clang packages fixes the following issues:

clang does not properly detect Mageia on 32bit installs (mga#11805)

clang is missing compiler-rt (runtime component library for address,
integer,⦠sanitizer) (mga#13141)

SRPM:
llvm-3.3-2.1.mga4.src.rpm

i586:
clang-3.3-2.1.mga4.i586.rpm
clang-analyzer-3.3-2.1.mga4.i586.rpm
clang-doc-3.3-2.1.mga4.noarch.rpm
libclang3.3-3.3-2.1.mga4.i586.rpm
libclang-devel-3.3-2.1.mga4.i586.rpm
libllvm3.3-3.3-2.1.mga4.i586.rpm
libllvm-devel-3.3-2.1.mga4.i586.rpm
llvm-3.3-2.1.mga4.i586.rpm

x86_64:
clang-3.3-2.1.mga4.x86_64.rpm
clang-analyzer-3.3-2.1.mga4.x86_64.rpm
clang-doc-3.3-2.1.mga4.noarch.rpm
lib64clang3.3-3.3-2.1.mga4.x86_64.rpm
lib64clang-devel-3.3-2.1.mga4.x86_64.rpm
lib64llvm3.3-3.3-2.1.mga4.x86_64.rpm
lib64llvm-devel-3.3-2.1.mga4.x86_64.rpm
llvm-3.3-2.1.mga4.x86_64.rpm


Reproducible: 

Steps to Reproduce:
Thomas Backlund 2014-07-28 11:36:53 CEST

Blocks: (none) => 11805

Thomas Backlund 2014-07-28 11:37:15 CEST

Blocks: (none) => 13141

Comment 1 Thomas Backlund 2014-07-28 12:44:26 CEST
The testcase in bug 13811 confirms that the bug 11805 is fixed, as for the fix for bug 13141, one can probably consider that verifying the fix with rpmdiff now finding additional files in the rpms is enough
Comment 2 Rémi Verschelde 2014-07-28 20:18:55 CEST
Advisory uploaded.

CC: (none) => remi
Whiteboard: (none) => advisory

Comment 3 Christian Lohmaier 2014-07-31 13:31:05 CEST
thx I confirm that package from update testing solves the problem

CC: (none) => lohmaier+mageia

Comment 4 Rémi Verschelde 2014-07-31 14:12:33 CEST
Thanks Christian, could you tell us on which arch you tested the update?
Comment 5 Rémi Verschelde 2014-08-01 09:58:40 CEST
Testcase available in bug 13811 comment 0.

Whiteboard: advisory => advisory has_procedure

Comment 6 Christian Lohmaier 2014-08-01 16:34:22 CEST
sorry, I use x86_64
Comment 7 Rémi Verschelde 2014-08-01 16:35:56 CEST
Thanks! Adding the corresponding QA tag.

Whiteboard: advisory has_procedure => advisory has_procedure MGA4-64-OK

Comment 8 Thomas Backlund 2014-08-01 18:00:47 CEST
As David noticed in mga3 32bit, the same issues is there, so I've pushed the same fixes to mga3....

Mga3:

SRPM:
llvm-3.2-5.1.mga3.src.rpm

i586:
clang-3.2-5.1.mga3.i586.rpm
clang-analyzer-3.2-5.1.mga3.i586.rpm
clang-doc-3.2-5.1.mga3.noarch.rpm
libclang3.2-3.2-5.1.mga3.i586.rpm
libclang-devel-3.2-5.1.mga3.i586.rpm
libllvm3.2-3.2-5.1.mga3.i586.rpm
libllvm-devel-3.2-5.1.mga3.i586.rpm
llvm-3.2-5.1.mga3.i586.rpm

x86_64:
clang-3.2-5.1.mga3.x86_64.rpm
clang-analyzer-3.2-5.1.mga3.x86_64.rpm
clang-doc-3.2-5.1.mga3.noarch.rpm
lib64clang3.2-3.2-5.1.mga3.x86_64.rpm
lib64clang-devel-3.2-5.1.mga3.x86_64.rpm
lib64llvm3.2-3.2-5.1.mga3.x86_64.rpm
lib64llvm-devel-3.2-5.1.mga3.x86_64.rpm
llvm-3.2-5.1.mga3.x86_64.rpm

Whiteboard: advisory has_procedure MGA4-64-OK => MGA3TOO advisory has_procedure MGA4-64-OK

Comment 9 Rémi Verschelde 2014-08-01 18:07:41 CEST
Advisory updated to list the mga3 SRPM too.
Comment 10 Marja Van Waes 2014-08-01 18:42:37 CEST
(In reply to Thomas Backlund from comment #1)
> The testcase in bug 13811 confirms that the bug 11805 is fixed, as for the
> fix for bug 13141, one can probably consider that verifying the fix with
> rpmdiff now finding additional files in the rpms is enough

For each of the rpms, or is just the difference between the srpms
http://sophie.zarb.org/rpms/8674116b1c0cce8ae23969f30de4dea2/files
http://sophie.zarb.org/rpms/f4a8b6da175425b87b1fdd3f4e48a201/files
enough?
For Mageia 4, the updated llvm source rpm has the following files that the current source rpm doesn't have:
cfe-3.3-detect-Mageia.patch
compiler-rt-3.3.src.tar.gz

My brain refuses to tell me how to verify the rpms with rpmdiff (I wouldn't, at this moment, know how to checkout a mga4 package and the same one from updates_testing.... oh, wait, maybe download the srpms for both and then build the packages locally, on both arches?)

CC: (none) => marja11

Comment 11 Thomas Backlund 2014-08-01 19:21:10 CEST
Sorry for not being specific...

something like:

rpmdiff release/clang-3.3-2.mga4.i586.rpm updates_testing/clang-3.3-2.1.mga4.i586.rpm |grep libclang_rt

should give:
added       /usr/lib/clang/3.3/lib/linux/libclang_rt.asan-i386.a
added       /usr/lib/clang/3.3/lib/linux/libclang_rt.full-i386.a
added       /usr/lib/clang/3.3/lib/linux/libclang_rt.profile-i386.a
added       /usr/lib/clang/3.3/lib/linux/libclang_rt.san-i386.a
added       /usr/lib/clang/3.3/lib/linux/libclang_rt.ubsan-i386.a
added       /usr/lib/clang/3.3/lib/linux/libclang_rt.ubsan_cxx-i386.a


and for 64bit:

rpmdiff release/clang-3.3-2.mga4.x86_64.rpm updates_testing/clang-3.3-2.1.mga4.x86_64.rpm |grep libclang_rt

added       /usr/lib/clang/3.3/lib/linux/libclang_rt.asan-i386.a
added       /usr/lib/clang/3.3/lib/linux/libclang_rt.asan-x86_64.a
added       /usr/lib/clang/3.3/lib/linux/libclang_rt.full-x86_64.a
added       /usr/lib/clang/3.3/lib/linux/libclang_rt.msan-x86_64.a
added       /usr/lib/clang/3.3/lib/linux/libclang_rt.profile-x86_64.a
added       /usr/lib/clang/3.3/lib/linux/libclang_rt.san-i386.a
added       /usr/lib/clang/3.3/lib/linux/libclang_rt.san-x86_64.a
added       /usr/lib/clang/3.3/lib/linux/libclang_rt.tsan-x86_64.a
added       /usr/lib/clang/3.3/lib/linux/libclang_rt.ubsan-i386.a
added       /usr/lib/clang/3.3/lib/linux/libclang_rt.ubsan-x86_64.a
added       /usr/lib/clang/3.3/lib/linux/libclang_rt.ubsan_cxx-i386.a
added       /usr/lib/clang/3.3/lib/linux/libclang_rt.ubsan_cxx-x86_64.a



and on mga3:

rpmdiff release/clang-3.2-5.mga3.i586.rpm updates_testing/clang-3.2-5.1.mga3.i586.rpm |grep libclang_rt
added       /usr/lib/clang/3.2/lib/linux/libclang_rt.asan-i386.a
added       /usr/lib/clang/3.2/lib/linux/libclang_rt.full-i386.a
added       /usr/lib/clang/3.2/lib/linux/libclang_rt.profile-i386.a

rpmdiff release/clang-3.2-5.mga3.x86_64.rpm updates_testing/clang-3.2-5.1.mga3.x86_64.rpm |grep libclang_rt
added       /usr/lib/clang/3.2/lib/linux/libclang_rt.asan-i386.a
added       /usr/lib/clang/3.2/lib/linux/libclang_rt.asan-x86_64.a
added       /usr/lib/clang/3.2/lib/linux/libclang_rt.full-x86_64.a
added       /usr/lib/clang/3.2/lib/linux/libclang_rt.profile-x86_64.a
added       /usr/lib/clang/3.2/lib/linux/libclang_rt.tsan-x86_64.a
Comment 12 Marja Van Waes 2014-08-01 21:37:45 CEST
(In reply to Thomas Backlund from comment #11)
> Sorry for not being specific...
> 
> something like:
> 
> rpmdiff release/clang-3.3-2.mga4.i586.rpm
> updates_testing/clang-3.3-2.1.mga4.i586.rpm |grep libclang_rt

Sorry, that doesn't work here:
[root@localhost u]# rpmdiff release/clang-3.3-2.mga4.i586.rpm updates_testing/clang-3.3-2.1.mga4.i586.rpm | grep libclang_rt
'No installed packages by name release/clang-3.3-2.mga4.i586.rpm'
[root@localhost u]# rpm -qa | grep clang
clang-3.3-2.1.mga4
libclang3.3-3.3-2.1.mga4
[root@localhost u]


> 
> should give:
> added       /usr/lib/clang/3.3/lib/linux/libclang_rt.asan-i386.a
> added       /usr/lib/clang/3.3/lib/linux/libclang_rt.full-i386.a
> added       /usr/lib/clang/3.3/lib/linux/libclang_rt.profile-i386.a
> added       /usr/lib/clang/3.3/lib/linux/libclang_rt.san-i386.a
> added       /usr/lib/clang/3.3/lib/linux/libclang_rt.ubsan-i386.a
> added       /usr/lib/clang/3.3/lib/linux/libclang_rt.ubsan_cxx-i386.a
> 
> 

but, after running updatedb, I can see those files are installed:

[root@localhost u]# updatedb
[root@localhost u]# locate libclang_rt
/usr/lib/clang/3.3/lib/linux/libclang_rt.asan-i386.a
/usr/lib/clang/3.3/lib/linux/libclang_rt.full-i386.a
/usr/lib/clang/3.3/lib/linux/libclang_rt.profile-i386.a
/usr/lib/clang/3.3/lib/linux/libclang_rt.san-i386.a
/usr/lib/clang/3.3/lib/linux/libclang_rt.ubsan-i386.a
/usr/lib/clang/3.3/lib/linux/libclang_rt.ubsan_cxx-i386.a
[root@localhost u]# 

I suppose that's good enough?

Whiteboard: MGA3TOO advisory has_procedure MGA4-64-OK => MGA3TOO advisory has_procedure MGA4-64-OK MGA4-32-OK

Comment 13 Thomas Backlund 2014-08-01 21:51:52 CEST
(In reply to Marja van Waes from comment #12)
> (In reply to Thomas Backlund from comment #11)
> > Sorry for not being specific...
> > 
> > something like:
> > 
> > rpmdiff release/clang-3.3-2.mga4.i586.rpm
> > updates_testing/clang-3.3-2.1.mga4.i586.rpm |grep libclang_rt
> 
> Sorry, that doesn't work here:
> [root@localhost u]# rpmdiff release/clang-3.3-2.mga4.i586.rpm
> updates_testing/clang-3.3-2.1.mga4.i586.rpm | grep libclang_rt
> 'No installed packages by name release/clang-3.3-2.mga4.i586.rpm'
> [root@localhost u]# rpm -qa | grep clang
> clang-3.3-2.1.mga4
> libclang3.3-3.3-2.1.mga4
> [root@localhost u]

Ah, sorry... more info missing ... 
I compared the rpms in the <arch>/media/core/* on my local mirror...

> 
> 
> > 
> > should give:
> > added       /usr/lib/clang/3.3/lib/linux/libclang_rt.asan-i386.a
> > added       /usr/lib/clang/3.3/lib/linux/libclang_rt.full-i386.a
> > added       /usr/lib/clang/3.3/lib/linux/libclang_rt.profile-i386.a
> > added       /usr/lib/clang/3.3/lib/linux/libclang_rt.san-i386.a
> > added       /usr/lib/clang/3.3/lib/linux/libclang_rt.ubsan-i386.a
> > added       /usr/lib/clang/3.3/lib/linux/libclang_rt.ubsan_cxx-i386.a
> > 
> > 
> 
> but, after running updatedb, I can see those files are installed:
> 
> [root@localhost u]# updatedb
> [root@localhost u]# locate libclang_rt
> /usr/lib/clang/3.3/lib/linux/libclang_rt.asan-i386.a
> /usr/lib/clang/3.3/lib/linux/libclang_rt.full-i386.a
> /usr/lib/clang/3.3/lib/linux/libclang_rt.profile-i386.a
> /usr/lib/clang/3.3/lib/linux/libclang_rt.san-i386.a
> /usr/lib/clang/3.3/lib/linux/libclang_rt.ubsan-i386.a
> /usr/lib/clang/3.3/lib/linux/libclang_rt.ubsan_cxx-i386.a
> [root@localhost u]# 
> 
> I suppose that's good enough?


Yep, that also confirms them, so simply checking for:

l -1 /usr/lib/clang/3.*/lib/linux/libclang_rt*

can also be done
Comment 14 Marja Van Waes 2014-08-01 22:07:04 CEST
(In reply to Thomas Backlund from comment #13)
> (In reply to Marja van Waes from comment #12)
> > (In reply to Thomas Backlund from comment #11)
> > > Sorry for not being specific...
> > > 
> > > something like:
> > > 
> > > rpmdiff release/clang-3.3-2.mga4.i586.rpm
> > > updates_testing/clang-3.3-2.1.mga4.i586.rpm |grep libclang_rt
> > 
> > Sorry, that doesn't work here:
> > [root@localhost u]# rpmdiff release/clang-3.3-2.mga4.i586.rpm
> > updates_testing/clang-3.3-2.1.mga4.i586.rpm | grep libclang_rt
> > 'No installed packages by name release/clang-3.3-2.mga4.i586.rpm'
> > [root@localhost u]# rpm -qa | grep clang
> > clang-3.3-2.1.mga4
> > libclang3.3-3.3-2.1.mga4
> > [root@localhost u]
> 
> Ah, sorry... more info missing ... 
> I compared the rpms in the <arch>/media/core/* on my local mirror...

I don't have a local mirror, and it didn't work with a remote one, either
[root@localhost u]# rpmdiff ftp://mageia.webconquest.com/distrib/4/i586/media/core/release/clang-3.3-2.mga4.i586.rpm ftp://mageia.webconquest.com/distrib/4/i586/media/core/updates_testing/clang-3.3-2.1.mga4.i586.rpm
'No installed packages by name ftp://mageia.webconquest.com/distrib/4/i586/media/core/release/clang-3.3-2.mga4.i586.rpm'
[root@localhost u]#

Or does this command only work with the mirror that was used to install from? 

> > [root@localhost u]# updatedb
> > [root@localhost u]# locate libclang_rt
> > /usr/lib/clang/3.3/lib/linux/libclang_rt.asan-i386.a
> > /usr/lib/clang/3.3/lib/linux/libclang_rt.full-i386.a
> > /usr/lib/clang/3.3/lib/linux/libclang_rt.profile-i386.a
> > /usr/lib/clang/3.3/lib/linux/libclang_rt.san-i386.a
> > /usr/lib/clang/3.3/lib/linux/libclang_rt.ubsan-i386.a
> > /usr/lib/clang/3.3/lib/linux/libclang_rt.ubsan_cxx-i386.a
> > [root@localhost u]# 
> > 
> > I suppose that's good enough?
> 
> 
> Yep, that also confirms them, so simply checking for:
> 
> l -1 /usr/lib/clang/3.*/lib/linux/libclang_rt*
> 
> can also be done

Thx, I'll try to check 64bits Mga 3 tonight, too.
Comment 15 Thomas Backlund 2014-08-01 22:13:13 CEST
(In reply to Marja van Waes from comment #14)

> 
> I don't have a local mirror, and it didn't work with a remote one, either
> [root@localhost u]# rpmdiff
> ftp://mageia.webconquest.com/distrib/4/i586/media/core/release/clang-3.3-2.
> mga4.i586.rpm
> ftp://mageia.webconquest.com/distrib/4/i586/media/core/updates_testing/clang-
> 3.3-2.1.mga4.i586.rpm
> 'No installed packages by name
> ftp://mageia.webconquest.com/distrib/4/i586/media/core/release/clang-3.3-2.
> mga4.i586.rpm'
> [root@localhost u]#
> 
> Or does this command only work with the mirror that was used to install
> from? 


No, rpmdiff can lnly handle local files, so you can test:

wget ftp://mageia.webconquest.com/distrib/4/i586/media/core/release/clang-3.3-2.mga4.i586.rpm 
wget ftp://mageia.webconquest.com/distrib/4/i586/media/core/updates_testing/clang-3.3-2.1.mga4.i586.rpm

rpmdiff clang-3.3-2.mga4.i586.rpm clang-3.3-2.1.mga4.i586.rpm |grep libclang_rt


the rpmdiff is  quite nice to see what changes between 2 rpms
Comment 16 Marja Van Waes 2014-08-01 22:24:40 CEST
(In reply to Thomas Backlund from comment #15)
> 
> No, rpmdiff can lnly handle local files, so you can test:
> 
> wget
> ftp://mageia.webconquest.com/distrib/4/i586/media/core/release/clang-3.3-2.
> mga4.i586.rpm 
> wget
> ftp://mageia.webconquest.com/distrib/4/i586/media/core/updates_testing/clang-
> 3.3-2.1.mga4.i586.rpm
> 
> rpmdiff clang-3.3-2.mga4.i586.rpm clang-3.3-2.1.mga4.i586.rpm |grep
> libclang_rt
> 
> 
> the rpmdiff is  quite nice to see what changes between 2 rpms

Nice, thanks :-)

I did that with the 32bits Mga3 clang and then:

[user@Mga3_64bits 32bits]$ rpmdiff clang-3.2-5.mga3.i586.rpm clang-3.2-5.1.mga3.i586.rpm | grep libclang_rt
added       /usr/lib/clang/3.2/lib/linux/libclang_rt.asan-i386.a
added       /usr/lib/clang/3.2/lib/linux/libclang_rt.full-i386.a
added       /usr/lib/clang/3.2/lib/linux/libclang_rt.profile-i386.a
[user@Mga3_64bits 32bits]$

Luigi already confirmed in bug 13811 that bug 11805 is fixed in Mga3, too, so testing complete for 3 i586

Summary: Update request: clang-3.3-2.1.mga4 => Update request: clang-3.3-2.1.mga4, clang-3.2-5.1.mga3
Whiteboard: MGA3TOO advisory has_procedure MGA4-64-OK MGA4-32-OK => MGA3TOO advisory has_procedure MGA4-64-OK MGA4-32-OK MGA3-32-OK

Comment 17 Marja Van Waes 2014-08-01 22:33:16 CEST
and now 64bits Mga3

before updating llvm + clang
"l -1 /usr/lib/clang/3.*/lib/linux/libclang_rt*" gave no files.

After updating:

[root@Mga3_64bits user]# l -1 /usr/lib/clang/3.*/lib/linux/libclang_rt*
/usr/lib/clang/3.2/lib/linux/libclang_rt.asan-i386.a
/usr/lib/clang/3.2/lib/linux/libclang_rt.asan-x86_64.a
/usr/lib/clang/3.2/lib/linux/libclang_rt.full-x86_64.a
/usr/lib/clang/3.2/lib/linux/libclang_rt.profile-x86_64.a
/usr/lib/clang/3.2/lib/linux/libclang_rt.tsan-x86_64.a
[root@Mga3_64bits user]# 

So for both arches on both Mga 3 and 4 testing is complete :-)

Whiteboard: MGA3TOO advisory has_procedure MGA4-64-OK MGA4-32-OK MGA3-32-OK => MGA3TOO advisory has_procedure MGA4-64-OK MGA4-32-OK MGA3-32-OK MGA3-64-OK

Comment 18 Rémi Verschelde 2014-08-01 23:45:42 CEST
Validating the update, advisory has already been uploaded.

Keywords: (none) => validated_update
CC: (none) => sysadmin-bugs

Comment 19 Colin Guthrie 2014-08-04 12:02:25 CEST
Update pushed.

http://advisories.mageia.org/MGAA-2014-0146.html

Status: NEW => RESOLVED
CC: (none) => mageia
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.