Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=308df55950045bdad2a9432b485db582fae8c3dc

commit 308df55950045bdad2a9432b485db582fae8c3dc
Author: crazy <[email protected]>
Date:   Wed Jan 11 15:38:33 2017 +0100

virtualbox-5.1.12-3-x86_64
* well we need to strip this package manually in build()
* xxxx.r0 file are in real .o files so we cannot strip these
* also we should not strip *.fd , *.rc and *.xpt files =)

diff --git a/source/xapps-extra/virtualbox/FrugalBuild 
b/source/xapps-extra/virtualbox/FrugalBuild
index ef00e26..482b59c 100644
--- a/source/xapps-extra/virtualbox/FrugalBuild
+++ b/source/xapps-extra/virtualbox/FrugalBuild
@@ -7,12 +7,12 @@
## nostrip+debug = 60 MB fpm
## so we use full debug for now , maybe better anyway..

-USE_VBOX_DEBUG=${USE_VBOX_DEBUG:-"y"}
+USE_VBOX_DEBUG=${USE_VBOX_DEBUG:-"n"}

pkgname=virtualbox
realname=VirtualBox
pkgver=5.1.12
-pkgrel=2
+pkgrel=3
pkgdesc="Oracle VirtualBox is a family of powerful x86 virtualization products 
for enterprise as well as home use."
url="http://www.virtualbox.org";
depends=('xerces-c>=2.8.0' 'xalan-c>=1.10.0-2' 'iasl' 'dev86' 'libxslt' 
'libxcursor' 'libidl' 'sdl' \
@@ -30,16 +30,12 @@ 
source=(http://download.virtualbox.org/virtualbox/${pkgver}/${realname}-${pkgver

## WARNING:
## It seems something gets misscompiled *again* with gcc6 ..
-## DO NOT REMOVE 'nostrip' and DO NOT REMOVE -O0 from _OPT
+## DO NOT REMOVE 'nostrip' , we strip mauanlly

## PDMLdr: pdmR3LoadR0U: pszName="VMMR0.r0" rc=VERR_INVALID_PARAMETER 
szErr="SUP_IOCTL_LDR_OPEN failed"
## SUP_IOCTL_LDR_OPEN: pReq->u.In.cbImageBits < pReq->u.In.cbImageWithTabs

-options=('scriptlet' 'genscriptlet')
-
-if Fuse $USE_VBOX_DEBUG; then
-       options+=('nostrip')
-fi
+options=('scriptlet' 'genscriptlet' 'nostrip') ## we strip manually in build()

_F_cd_path="${realname}-${pkgver}"
sha1sums=('447fc16082fa3bbb4be6c1db70cee176cf31ae66' \
@@ -66,10 +62,8 @@ build() {

Fsed 'DocPath=.*' '' src/VBox/Installer/common/virtualbox.desktop.in

-       echo "VBOX_GCC_OPT=-O0" >> LocalConfig.kmk ## DO NOT REMOVE
+       echo "VBOX_GCC_OPT=$CXXFLAGS" >> LocalConfig.kmk ## DO NOT REMOVE

-       ## also we do disable all C/CXX Flags..
-       unset CFLAGS CXXFLAGS

## we'll add an separate package for this OR we split here
## however we don't use these by now so we don't want to build these
@@ -98,7 +92,7 @@ build() {
Fexec kmk KBUILD_VERBOSE=2  all || Fdie


-       local i k j
+       local i k j s

Fmkdir 
usr/share/icons/hicolor/{16x16,20x20,32x32,40x40,48x48,64x64,128x128,scalable}/apps

@@ -167,6 +161,13 @@ build() {

Fmkdir etc/ld.so.conf.d
echo /usr/lib/virtualbox  >> "$Fdestdir/etc/ld.so.conf.d/virtualbox.conf" || 
Fdie
+
+       if ! Fuse $USE_VBOX_DEBUG; then
+               Fmessage "Stripping symbols from $pkgname.."
+               for s in `find  $Fdestdir/usr/lib/virtualbox -type f -not -name 
"*.rc" -not -name "*.r0" -not -name "*.fd" -not -name "*.xpt"`; do
+                       strip -s $s
+               done
+       fi
}

# optimization OK
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to