[S]Rebuild all packages that are already installed on system

Ask questions about Arch Linux ARM. Please search before making a new topic.

[S]Rebuild all packages that are already installed on system

Postby SeBO » Sat Feb 28, 2015 3:54 pm

Hi
I'm playing - right now - with makeworld but - on this moment (it is still running) - it looks like it will build all packages from ABS(i mean this by saying ABS ;) : https://github.com/archlinuxarm/PKGBUILDs) without checking that this package is necessary for me or not. I tried pacbuilder from svn but it didn't work for me (i had error: makepkg failed)

Edit:
Title is to long for [Solved] mark :) so I just added [S] as it.
Last edited by SeBO on Mon Mar 02, 2015 6:25 pm, edited 1 time in total.
SeBO
 
Posts: 36
Joined: Tue Jan 27, 2015 6:18 pm

Re: Rebuild all packages that are already installed on syste

Postby WarheadsSE » Sat Feb 28, 2015 6:58 pm

Why?
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Rebuild all packages that are already installed on syste

Postby SeBO » Sat Feb 28, 2015 8:59 pm

:) - because i found some flags for optimization and linpack shows that it is worth it to recompile libs and software, thats why.
SeBO
 
Posts: 36
Joined: Tue Jan 27, 2015 6:18 pm

Re: Rebuild all packages that are already installed on syste

Postby SeBO » Sun Mar 01, 2015 7:28 pm

Examples:
$this->bbcode_second_pass_code('', '
[h3x0r@vulcantwo linpack]$ ./best_performance_build_options.txt
============================
ARCH_FLAGS: -march=armv7-a -mfloat-abi=hard -mfpu=vfpv3-d16 -O2 -pipe -fstack-protector --param=ssp-buffer-size=4
GCC_OPTIMALIZATION:
Enter array size (q to quit) [200]:
Memory required: 315K.


LINPACK benchmark, Double precision.
Machine precision: 15 digits.
Array size 200 X 200.
Average rolled and unrolled performance:

Reps Time(s) DGEFA DGESL OVERHEAD KFLOPS
----------------------------------------------------
32 0.54 90.06% 2.80% 7.14% 87299.695
64 1.10 88.96% 3.37% 7.67% 86739.011
128 2.18 90.12% 2.78% 7.10% 86748.256
256 4.38 90.16% 2.77% 7.07% 86473.737
512 8.74 90.14% 2.77% 7.09% 86614.439
1024 17.48 89.88% 2.89% 7.24% 86721.081

Enter array size (q to quit) [200]: ^C[h3x0r@vulcantwo linpack]$ ./best_performance_build_options.txt
============================
ARCH_FLAGS: -march=armv7-a -mfloat-abi=hard -mfpu=vfpv3-d16 -O3 -pipe -fstack-protector --param=ssp-buffer-size=4
GCC_OPTIMALIZATION:
Enter array size (q to quit) [200]:
Memory required: 315K.


LINPACK benchmark, Double precision.
Machine precision: 15 digits.
Array size 200 X 200.
Average rolled and unrolled performance:

Reps Time(s) DGEFA DGESL OVERHEAD KFLOPS
----------------------------------------------------
64 0.85 89.45% 3.41% 7.15% 110886.686
128 1.97 90.05% 2.80% 7.15% 96340.096
256 4.33 90.06% 2.79% 7.15% 87506.576
512 8.67 90.00% 2.78% 7.21% 87376.642
1024 17.33 90.00% 2.79% 7.22% 87447.194

Enter array size (q to quit) [200]: ^C[h3x0r@vulcantwo linpack]$ ./best_performance_build_options.txt
============================
ARCH_FLAGS: -march=armv7ve -mfloat-abi=hard -mfpu=neon-vfpv4 -mcpu=cortex-a7 -mtune=cortex-a7
GCC_OPTIMALIZATION: -fomit-frame-pointer -ffast-math -funroll-loops -funsafe-loop-optimizations -funsafe-math-optimizations -O3
Enter array size (q to quit) [200]:
Memory required: 315K.


LINPACK benchmark, Double precision.
Machine precision: 15 digits.
Array size 200 X 200.
Average rolled and unrolled performance:

Reps Time(s) DGEFA DGESL OVERHEAD KFLOPS
----------------------------------------------------
64 0.69 89.41% 2.95% 7.64% 137002.814
128 1.53 90.39% 2.94% 6.67% 123089.218
256 3.05 90.15% 2.94% 6.91% 123711.490
512 6.10 90.37% 2.94% 6.69% 123435.876
1024 12.22 90.22% 2.93% 6.85% 123564.094

Enter array size (q to quit) [200]: ^C[h3x0r@vulcantwo linpack]$ ./best_performance_build_options.txt
============================
ARCH_FLAGS: -march=armv7ve -mfloat-abi=hard -mfpu=neon-vfpv4 -mcpu=cortex-a7 -mtune=cortex-a7
GCC_OPTIMALIZATION: -fomit-frame-pointer -ffast-math -funroll-loops -funsafe-math-optimizations -O3
Enter array size (q to quit) [200]:
Memory required: 315K.


LINPACK benchmark, Double precision.
Machine precision: 15 digits.
Array size 200 X 200.
Average rolled and unrolled performance:

Reps Time(s) DGEFA DGESL OVERHEAD KFLOPS
----------------------------------------------------
64 0.75 90.48% 2.90% 6.61% 126008.515
128 1.53 90.44% 2.91% 6.65% 122696.332
256 3.05 90.34% 2.95% 6.71% 123744.496
512 5.33 90.22% 2.97% 6.80% 141651.976
1024 9.49 90.22% 2.98% 6.80% 159072.411
2048 18.97 90.23% 2.98% 6.80% 159050.220

Enter array size (q to quit) [200]: ^C[h3x0r@vulcantwo linpack]$ ./best_performance_build_options.txt
============================
ARCH_FLAGS: -march=armv7ve -mfloat-abi=hard -mfpu=neon-vfpv4 -mcpu=cortex-a7 -mtune=cortex-a7
GCC_OPTIMALIZATION: -fomit-frame-pointer -ffast-math -funroll-loops -funsafe-loop-optimizations -funsafe-math-optimizations -O3
Enter array size (q to quit) [200]:
Memory required: 315K.


LINPACK benchmark, Double precision.
Machine precision: 15 digits.
Array size 200 X 200.
Average rolled and unrolled performance:

Reps Time(s) DGEFA DGESL OVERHEAD KFLOPS
----------------------------------------------------
64 0.64 89.52% 3.80% 6.68% 147880.195
128 1.27 90.34% 2.95% 6.71% 148536.966
256 3.01 90.26% 2.98% 6.76% 125470.132
512 4.97 90.21% 2.99% 6.80% 151694.507
1024 9.49 90.21% 2.99% 6.80% 158936.623
2048 18.99 90.21% 2.99% 6.80% 158912.817

Enter array size (q to quit) [200]: ^C[h3x0r@vulcantwo linpack]$
')
SeBO
 
Posts: 36
Joined: Tue Jan 27, 2015 6:18 pm

Re: Rebuild all packages that are already installed on syste

Postby moonman » Sun Mar 01, 2015 7:57 pm

i think you confused arch with gentoo.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3387
Joined: Sat Jan 15, 2011 3:36 am

Re: Rebuild all packages that are already installed on syste

Postby WarheadsSE » Mon Mar 02, 2015 2:15 pm

So, for your individual system, you want O3, vfpv4 and mtune to a7?

You realize we can't do this distribution wide, correct. and that is why we've gone with the best possible lowest-common-denominator.

I am not saying this stops you from rebuilding the entire pile, but we can't as a distro, currently afford to keep armv7h, and a magic armv7hn(eon) floating around.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Rebuild all packages that are already installed on syste

Postby SeBO » Mon Mar 02, 2015 6:21 pm

Hey - guys I know that arch is not gentoo and i know you need to handle many other devices not only bpi (like in this case ;) ).
Arch is so genius with pacman and other build tools that there is no competition for it ;) and that is why i want to use arch (i have it on my laptop, i had it on my PC, i have it on my BannanaPIs [1 BPI-R1 and 4xBPI]) and i will use it till end of my days :)

I wrote little script to do rebuild (it is under construction so i think it will change soon ;) - but right now it works as expected):

$this->bbcode_second_pass_code('', '
#!/bin/sh
REPOS=('core' 'extra' 'community' 'alarm')
NOT_IN_ARM_ABS_ARRAY=()
SAVEIFS=$IFS
IFS=$(echo -en "\n\b")
for repo in ${REPOS[*]}
do
echo '-------------------------------------'
echo "Trying to find package in $repo repo"
cd $repo
for packages in $(paclist $repo)
do
package_name=${packages%% *}
echo $package_name
arm_pkgbuild=$(find . -maxdepth 1 -name "$package_name" -type d)
if [ -z $arm_pkgbuild ] && [ ! -d ./$package_name ]
then
echo "No ARM PKGBUILD for $package_name - downloading from ABS with yaourt"
#NOT_IN_ARM_ABS_ARRAY+=($package_name)
mkdir $package_name
cd $package_name
yaourt -G $package_name
cd $package_name
makepkg --skippgpcheck --noconfirm -Ais
cd ../..
else
cd $arm_pkgbuild
if [ -d src ]
then
rm -rf src
fi
if [ -d pkg ]
then
rm -rf pkg
fi
makepkg --skippgpcheck --noconfirm -Ais
cd ..
fi
done
cd ..
echo '-------------------------------------'
done
IFS=$SAVEIFS
')
SeBO
 
Posts: 36
Joined: Tue Jan 27, 2015 6:18 pm

Re: [S]Rebuild all packages that are already installed on sy

Postby SeBO » Mon Mar 02, 2015 6:28 pm

Oh, i forgot to mention that i use this script inside dir that comes after
$this->bbcode_second_pass_code('', 'git clone https://github.com/archlinuxarm/PKGBUILDs')
SeBO
 
Posts: 36
Joined: Tue Jan 27, 2015 6:18 pm


Return to User Questions

Who is online

Users browsing this forum: No registered users and 30 guests