Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 274444 - sys-fs/mdadm-3.0 version bump
Summary: sys-fs/mdadm-3.0 version bump
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Gentoo's Team for Core System packages
URL: http://www.kernel.org/pub/linux/utils...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-17 04:20 UTC by Michael Evans
Modified: 2009-08-23 11:19 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
NON-WORKING modification of the prior build. (mdadm-3.0.ebuild,1.75 KB, application/octet-stream)
2009-06-17 04:48 UTC, Michael Evans
Details
rename and parallel make fix for 3.0 release (mdadm-3.0-fixed-j1.ebuild,1.76 KB, text/plain)
2009-06-17 05:18 UTC, Michael Evans
Details
diff -u between the mdadm 2.6.9 and 3.0 builds (mdadm-3.0,945 bytes, patch)
2009-06-22 04:21 UTC, Michael Evans
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Evans 2009-06-17 04:20:44 UTC
Could you please add mdadm 3.0 to testing, I think it might offer some useful new features.
Comment 1 Michael Evans 2009-06-17 04:48:17 UTC
Created attachment 194953 [details]
NON-WORKING modification of the prior build.

make -j3 CROSS_COMPILE=x86_64-pc-linux-gnu- CWFLAGS=-Wall CXFLAGS=-O2 -pipe -march=native all mdassemble
...
normal things compiling
...
nroff -man mdmon.8 > mdmon.man                                                                                                                               
rm -f mdadm.o config.o mdstat.o  ReadMe.o util.o Manage.o Assemble.o Build.o Create.o Detail.o Examine.o Grow.o Monitor.o dlink.o Kill.o Query.o Incremental.o mdopen.o super0.o super1.o super-ddf.o super-intel.o bitmap.o restripe.o sysfs.o sha1.o mapfile.o crc32.o sg_io.o msg.o platform-intel.o probe_roms.o      
gcc -DHAVE_STDINT_H -Wall -O2 -pipe -march=native -DSendmail=\""/usr/sbin/sendmail -t"\" -DCONFFILE=\"/etc/mdadm.conf\" -DCONFFILE2=\"/etc/mdadm/mdadm.conf\" -DMDASSEMBLE -o mdassemble mdassemble.c Assemble.c Manage.c config.c dlink.c util.c super0.c super1.c super-ddf.c super-intel.c sha1.c crc32.c sg_io.c mdstat.c platform-intel.c probe_roms.c sysfs.c  pwgr.c                                                                                                            
x86_64-pc-linux-gnu-gcc -Wl,-O1 -o mdadm mdadm.o config.o mdstat.o  ReadMe.o util.o Manage.o Assemble.o Build.o Create.o Detail.o Examine.o Grow.o Monitor.o dlink.o Kill.o Query.o Incremental.o mdopen.o super0.o super1.o super-ddf.o super-intel.o bitmap.o restripe.o sysfs.o sha1.o mapfile.o crc32.o sg_io.o msg.o platform-intel.o probe_roms.o                                                                                                                                
x86_64-pc-linux-gnu-gcc: mdadm.o: No such file or directory                                                                                                  
x86_64-pc-linux-gnu-gcc: config.o: No such file or directory                                                                                                 
x86_64-pc-linux-gnu-gcc: mdstat.o: No such file or directory

--- Wait, why'd it -remove- all those? ---

make: *** [mdadm] Error 1
make: *** Waiting for unfinished jobs....
/usr/libexec/paludis/utils/emake: emake returned error 2
Comment 2 Michael Evans 2009-06-17 05:18:40 UTC
Created attachment 194955 [details]
rename and parallel make fix for 3.0 release

I figured out what is going on.

It effectively does this:

make all
make mdassemble (which removes the old object files!)
make install (which depends on mdadm)

Only mdadm's dependencies aren't there.  Is this a parallel make error?

Yes, it was a parallel make error.  A race condition exists when using parallel make with this build file.  Creating a new revision.  (this is tested and installs.)
Comment 3 Michael Evans 2009-06-17 16:19:48 UTC
I tried testing the build on the system I wanted to use mdadm-3.0 on, and it failed.  Pasted are the profiles for the working, and then non-working systems.



(Used Paludis though, not emerge.)
Portage 2.1.6.13 (default/linux/amd64/2008.0, gcc-4.3.3, glibc-2.10.1-r0, 2.6.29-tuxonice-r3 x86_64)
=================================================================                                   
System uname: Linux-2.6.29-tuxonice-r3-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_4400+-with-gentoo-2.0.1
Timestamp of tree: Tue, 16 Jun 2009 10:00:20 +0000                                                            
distcc 3.1 x86_64-pc-linux-gnu [disabled]                                                                     
app-shells/bash:     4.0_p24                                                                                  
dev-java/java-config: 1.3.7-r1, 2.1.8-r1                                                                      
dev-lang/python:     2.4.4-r13, 2.5.4-r2, 2.6.2-r1                                                            
dev-python/pycrypto: 2.0.1-r8                                                                                 
dev-util/cmake:      2.6.4                                                                                    
sys-apps/baselayout: 2.0.1                                                                                    
sys-apps/openrc:     0.4.3-r3                                                                                 
sys-apps/sandbox:    2.0
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2, 1.11
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.29
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"



HOWEVER it failed on this system:

Portage 2.1.6.13 (default/linux/amd64/2008.0, gcc-4.1.2, glibc-2.8_p20080602-r1, 2.6.30-gentoo-r1 x86_64)                                                    
=================================================================                                                                                            
System uname: Linux-2.6.30-gentoo-r1-x86_64-AMD_Athlon-tm-_X2_Dual_Core_Processor_BE-2350-with-glibc2.2.5                                                    
Timestamp of tree: Wed, 17 Jun 2009 10:00:02 +0000                                                                                                           
distcc 3.1 x86_64-pc-linux-gnu [disabled]                                                                                                                    
app-shells/bash:     3.2_p39                                                                                                                                 
dev-java/java-config: 1.3.7-r1, 2.1.7                                                                                                                        
dev-lang/python:     2.4.4-r13, 2.5.4-r2                                                                                                                     
dev-python/pycrypto: 2.0.1-r8                                                                                                                                
dev-util/cmake:      2.4.8                                                                                                                                   
sys-apps/baselayout: 1.12.11.1                                                                                                                               
sys-apps/sandbox:    1.6-r2                                                                                                                                  
sys-devel/autoconf:  2.13, 2.63                                                                                                                              
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2                                                                                        
sys-devel/binutils:  2.18-r3                                                                                                                                 
sys-devel/gcc-config: 1.4.1                                                                                                                                  
sys-devel/libtool:   1.5.26                                                                                                                                  
virtual/os-headers:  2.6.29                                                                                                                                  
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=athlon64"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe -march=athlon64"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://mirror.usu.edu/mirrors/gentoo/ http://gentoo.mirrors.easynews.com/linux/gentoo/ ftp://ftp.wwc.edu/pub/mirrors/ftp.gentoo.org "
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1"
LINGUAS="en"
MAKEOPTS="-j3"
PKGDIR="/media/large/gentoo.bin"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl alsa amd64 apache2 asf ati avi berkdb bitmap-fonts bzip bzip2 cairo clamav cli cracklib crypt css cups dbus doc dri dts dvb dvd dvdr dvdread encode fame ffmpeg firefox flac fortran freetype gdbm gif gimp gimpprint gpm gstreamer gtk gtk2 gv gzip hal httpd iconv ieee1394 ipv6 isdnlog ivtv java jpeg jpeg2k kde libclamav lirc live lm_sensors lua mad midi mjpeg mmap mmx mmxext mng mozilla mp3 mpeg mplayer mtp mudflap multilib mysql mythtv ncurses njb nls nptl nptlonly nsplugin ogg oggvorbis opengl openmp pam pcre pdf perl png postgres pppd python qt3 quicktime rar readline realmedia reflection rtc schroedinger session speex spell spl sse sse2 sse3 ssl stream subtitles svg sysfs tcpd theora tiff transcode truetype truetype-fonts unicode usb userlocales vcd vlm vorbis wmf wmp x264 xinerama xml xorg xv xvid zlib" ALSA_CARDS="emu10k1x ens1370 ens1371 es1938 es1968 hda-intel intel8x0 intel8x0m" ALSA_PCM_PLUGINS="adpcm alaw copy file ladspa lfloat linear mulaw rate shm dmix open asym dshare dsnoop empty extplug hooks iec958 ioplug meter mmap_emul multi null plug route sharesoftvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="ati amd radeon vga vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTDIR_OVERLAY
Comment 4 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-06-21 19:00:20 UTC
Please attach unified diffs (diff -u) when you did changes to an ebuild. That would be much more handy for our devs.
Comment 5 Michael Evans 2009-06-22 04:21:05 UTC
Created attachment 195416 [details, diff]
diff -u between the mdadm 2.6.9 and 3.0 builds

Functional differences from 2.6.9:
version bump to 3.0 (yes, not 3.0.0)
removed old patches (untested, assumed they were submitted upstream)
added -j1 to force -NON PARALLEL- make, due to race condition clobbering between objects.  (Some targets remove components required by other targets without some kind of mechanism to note that they also clobber other targets.)
Comment 6 SpanKY gentoo-dev 2009-08-23 11:19:29 UTC
added 3.0 to the tree, thanks