diff options
author | Michał Masłowski <mtjm@mtjm.eu> | 2012-03-31 12:17:44 +0200 |
---|---|---|
committer | Michał Masłowski <mtjm@mtjm.eu> | 2012-03-31 12:17:44 +0200 |
commit | 22a099ec0cc8532196da82ff11d6fb2b3b34fea8 (patch) | |
tree | 1ef727a0b8dc9350430882f3086d4c17d01ce970 | |
parent | eaaf1e91b1d47d25856928ed24efcb6e99faae8e (diff) | |
parent | 977b78df305a06797773799a7295f2a5f3f013cf (diff) |
Merge branch 'master' of ssh://parabolagnulinux.org:1863/home/parabola/abslibre-pre-mips64el
Conflicts:
extra/libzip/PKGBUILD
extra/qt/PKGBUILD
gnome-unstable/dconf/PKGBUILD
gnome-unstable/gnome-color-manager/PKGBUILD
gnome-unstable/gnome-disk-utility/PKGBUILD
gnome-unstable/gnome-documents/PKGBUILD
gnome-unstable/gnome-font-viewer/PKGBUILD
gnome-unstable/gnome-power-manager/PKGBUILD
gnome-unstable/gnome-system-log/PKGBUILD
gnome-unstable/gnome-themes-standard/PKGBUILD
gnome-unstable/gtk3/PKGBUILD
gnome-unstable/gvfs/PKGBUILD
gnome-unstable/libimobiledevice/PKGBUILD
gnome-unstable/libplist/PKGBUILD
libre/grub2/PKGBUILD
multilib-testing/gcc-multilib/PKGBUILD
multilib-testing/lib32-glibc/PKGBUILD
multilib-testing/lib32-glibc/glibc-__i686.patch
multilib/lib32-qt/PKGBUILD
testing/dhcpcd/PKGBUILD
testing/glibc/PKGBUILD
testing/glibc/glibc-__i686.patch
35 files changed, 937 insertions, 393 deletions
diff --git a/community/gendesk/PKGBUILD b/community/gendesk/PKGBUILD index d5f5589f0..85d8c6f48 100644 --- a/community/gendesk/PKGBUILD +++ b/community/gendesk/PKGBUILD @@ -1,41 +1,34 @@ -# $Id: PKGBUILD 68578 2012-03-28 14:04:58Z arodseth $ +# $Id: PKGBUILD 68610 2012-03-29 14:55:20Z arodseth $ # Maintainer: Alexander Rødseth <rodseth@gmail.com> # Thanks to Moonprincessluna at DeviantArt for the default icon: # http://mylittlepixel.deviantart.com/gallery/35405924#/d4pt23a pkgname=gendesk -pkgver=0.2 +pkgver=0.3 pkgrel=1 pkgdesc="Utility to generate .desktop files and download icons" arch=('x86_64' 'i686') url="http://roboticoverlords.org/gendesk/" license=('MIT') depends=('glibc') -makedepends=('go') +makedepends=('go>=2:1-2') conflicts=('go-hg') source=("http://roboticoverlords.org/$pkgname/$pkgname-$pkgver.tar.gz" "http://roboticoverlords.org/images/default.png") -sha256sums=('51de3dd28ac38da82ca1db1428aad44348bc2edc491931ed0146044e781ca2e8' +sha256sums=('a8d7ba4eacb01351f220ee93f5b72d3e58848f1de6b578d6b1d579e328a2aa37' '4d96eded48e536d02e35727c36dc20844c2e44654e81baf78e10aee4eb48e837') -options=(!strip) -if [ "$CARCH" = "x86_64" ]; then - _go=6 -else - _go=8 -fi build() { cd "$srcdir/$pkgname-$pkgver" msg2 "Compiling..." - "${_go}g" "$pkgname.go" - "${_go}l" -o "$pkgname" "$pkgname.$_go" + go build } package() { cd "$srcdir/$pkgname-$pkgver" - install -Dm755 "$pkgname" "$pkgdir/usr/bin/$pkgname" + install -Dm755 "$pkgname-$pkgver" "$pkgdir/usr/bin/$pkgname" install -Dm644 "$srcdir/default.png" "$pkgdir/usr/share/pixmaps/default.png" install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } diff --git a/community/go/PKGBUILD b/community/go/PKGBUILD index 5b6aec0dc..c835cc950 100644 --- a/community/go/PKGBUILD +++ b/community/go/PKGBUILD @@ -1,23 +1,24 @@ -# $Id: PKGBUILD 68595 2012-03-29 03:48:22Z vegai $ +# $Id: PKGBUILD 68608 2012-03-29 13:28:45Z arodseth $ # Maintainer: Vesa Kaihlavirta <vegai@iki.fi> # Contributor: Andres Perera <andres87p gmail> # Contributor: Matthew Bauer <mjbauer95@gmail.com> # Contributor: Christian Himpel <chressie at gmail dot com> +# Contributor: Mike "str1ngs" Rosset pkgname=go pkgver=1 -pkgrel=1 +pkgrel=2 epoch=2 pkgdesc='Google Go compiler and tools (release version)' arch=('i686' 'x86_64' 'mips64el') url="http://golang.org/" license=('custom') -depends=('perl' 'ed') +depends=('perl' 'ed' 'gawk') makedepends=('mercurial' 'inetutils') -options=('!strip') +options=('!strip' '!emptydirs') install=$pkgname.install source=($pkgname.sh) -md5sums=('67c472bfcfdb760d1d1f0a87cfe3661f') +md5sums=('e7087d190fd519db3be5adb3a51194cc') build() { _hgroot="https://go.googlecode.com/hg/" @@ -35,13 +36,13 @@ build() { fi msg "Mercurial checkout done or server timeout" - msg "Starting make..." rm -rf "$srcdir/$_hgrepo-build" cp -r "$srcdir/$_hgrepo" "$srcdir/$_hgrepo-build" cd "$srcdir/$_hgrepo-build" export GOROOT="$srcdir/$_hgrepo-build" + export GOOS_FINAL="/usr/lib/go" export GOOS=linux export GOBIN="$GOROOT/bin" export PATH="$GOBIN:$PATH" @@ -57,10 +58,14 @@ package() { install -Dm644 LICENSE $pkgdir/usr/share/licenses/go/LICENSE install -Dm644 misc/bash/go $pkgdir/etc/bash_completion.d/go - install -Dm644 misc/emacs/go-mode-load.el $pkgdir/usr/share/emacs/site-lisp/go-mode-load.el - install -Dm644 misc/emacs/go-mode.el $pkgdir/usr/share/emacs/site-lisp/go-mode.el - install -Dm644 misc/vim/ftdetect/gofiletype.vim $pkgdir/usr/share/vim/vimfiles/ftdetect/gofiletype.vim - install -Dm644 misc/vim/syntax/go.vim $pkgdir/usr/share/vim/vimfiles/syntax/go.vim + install -Dm644 misc/emacs/go-mode-load.el \ + $pkgdir/usr/share/emacs/site-lisp/go-mode-load.el + install -Dm644 misc/emacs/go-mode.el \ + $pkgdir/usr/share/emacs/site-lisp/go-mode.el + install -Dm644 misc/vim/ftdetect/gofiletype.vim \ + $pkgdir/usr/share/vim/vimfiles/ftdetect/gofiletype.vim + install -Dm644 misc/vim/syntax/go.vim \ + $pkgdir/usr/share/vim/vimfiles/syntax/go.vim mkdir -p $pkgdir/{etc/profile.d,usr/{share/go,lib/go,lib/go/src}} @@ -69,18 +74,23 @@ package() { ln -s /usr/share/go/doc $pkgdir/usr/lib/go/doc cp -r pkg $pkgdir/usr/lib/go cp -r $GOROOT/src/pkg $pkgdir/usr/lib/go/src/ + cp -r $GOROOT/src/cmd $pkgdir/usr/lib/go/src/cmd cp -r $GOROOT/src/lib9 $pkgdir/usr/lib/go/src/ cp -r $GOROOT/lib $pkgdir/usr/lib/go/ install -Dm644 src/Make.* $pkgdir/usr/lib/go/src - # remove object files from target src dir + # Remove object files from target src dir find $pkgdir/usr/lib/go/src/ -type f -name '*.[ao]' -delete find $pkgdir/usr/lib/go/src/pkg -type f -executable -delete # Headers for C modules - install -Dm644 src/pkg/runtime/runtime.h $pkgdir/usr/lib/go/src/pkg/runtime/runtime.h - install -Dm644 src/pkg/runtime/cgocall.h $pkgdir/usr/lib/go/src/pkg/runtime/cgocall.h + install -Dm644 src/pkg/runtime/runtime.h \ + $pkgdir/usr/lib/go/src/pkg/runtime/runtime.h + install -Dm644 src/pkg/runtime/cgocall.h \ + $pkgdir/usr/lib/go/src/pkg/runtime/cgocall.h install $srcdir/go.sh $pkgdir/etc/profile.d/ } + +# vim:set ts=2 sw=2 et: diff --git a/community/go/go.sh b/community/go/go.sh index 4aa526a11..8393dc8d2 100755 --- a/community/go/go.sh +++ b/community/go/go.sh @@ -1,3 +1 @@ export GOROOT=/usr/lib/go -export GOOS=linux -export GOBIN=/usr/bin diff --git a/community/intellij-idea-libs/PKGBUILD b/community/intellij-idea-libs/PKGBUILD index eb2a209a4..fa2120572 100644 --- a/community/intellij-idea-libs/PKGBUILD +++ b/community/intellij-idea-libs/PKGBUILD @@ -1,8 +1,8 @@ -# $Id: PKGBUILD 63458 2012-02-04 10:12:39Z stativ $ +# $Id: PKGBUILD 68602 2012-03-29 08:23:57Z stativ $ # Maintainer: Lukas Jirkovsky <l.jirkovsky@gmail.com> pkgname=intellij-idea-libs -pkgver=11.0.2 -_pkgver=111.277 +pkgver=11.1 +_pkgver=117.105 pkgrel=1 pkgdesc="Architecture dependend libraries needed by the Intellij Idea IDE" arch=('i686' 'x86_64' 'mips64el') @@ -10,7 +10,7 @@ url="http://www.jetbrains.org/" license=('apache') depends=('glibc') source=(http://download.jetbrains.com/idea/ideaIC-$pkgver.tar.gz) -md5sums=('156fddbdeba44bb9427c05fe567f7070') +md5sums=('bb9943b052bcdb4832ea9b2f3f72848b') build() { cd "$srcdir" diff --git a/community/sxiv/PKGBUILD b/community/sxiv/PKGBUILD index 9af3a3f56..de24295bb 100644 --- a/community/sxiv/PKGBUILD +++ b/community/sxiv/PKGBUILD @@ -1,24 +1,23 @@ -# Maintainer: BartÅ‚omiej Piotrowski <barthalion@gmail.com> +# Maintainer: BartÅ‚omiej Piotrowski <barthalion@gmail.com> # Contributor: Thomas Dziedzic < gostrc at gmail > # Contributor: Bert Muennich <muennich at informatik.hu-berlin.de> # Contributor: Brad Fanella <bradfanella@archlinux.us> pkgname=sxiv pkgver=1.0 -pkgrel=2 +pkgrel=3 pkgdesc='simple x image viewer' arch=('i686' 'x86_64' 'mips64el') license=('GPL2') install=sxiv.install url='https://github.com/muennich/sxiv' -depends=('libx11' 'xproto' 'imlib2' 'giflib' 'desktop-file-utils') +depends=('libx11' 'xproto' 'imlib2' 'giflib' 'libexif' 'desktop-file-utils') source=("https://github.com/downloads/muennich/sxiv/sxiv-${pkgver}.tar.gz" 'sxiv.desktop' 'config.h') md5sums=('c887e0af1e4d5a101b285a46d288c419' '1dda85ff6bed4de337f8fb303075ed11' - '67c470b605eae732aed4a8119a70832b') - + 'c3e6c4b86da6b17687699dbd32c7717b') build() { cd "sxiv-${pkgver}" diff --git a/community/sxiv/config.h b/community/sxiv/config.h index f84629cb4..cc95fd46a 100644 --- a/community/sxiv/config.h +++ b/community/sxiv/config.h @@ -3,7 +3,7 @@ /* auto-orientate jpeg files according to their exif tags? * (requires libexif [-lexif] to be installed) */ -#define EXIF_SUPPORT 0 +#define EXIF_SUPPORT 1 /* load all frames from gif files and support gif animations? * (requires giflib [-lgif] to be installed) */ diff --git a/community/sxiv/sxiv.install b/community/sxiv/sxiv.install index c50e26c78..f09c533f4 100644 --- a/community/sxiv/sxiv.install +++ b/community/sxiv/sxiv.install @@ -1,8 +1,8 @@ post_install () { update-desktop-database -q - echo "* Look into config.h to customize sxiv to your needs." - echo " Use 'makepkg --skipinteg' to rebuild the package after changing config.h." + echo "* Edit config.h in sxiv's PKGBUILD directory (generally /var/abs/community/sxiv/)" + echo " and rebuild package if you want to change settings." echo "* Create the directory ~/.sxiv/ to enable thumbnail caching." echo " See sxiv(1) for more information." } diff --git a/core/dhcpcd/PKGBUILD b/core/dhcpcd/PKGBUILD index 817f7c7d7..b4a3c295d 100644 --- a/core/dhcpcd/PKGBUILD +++ b/core/dhcpcd/PKGBUILD @@ -1,10 +1,10 @@ -# $Id: PKGBUILD 150154 2012-02-13 15:50:03Z ronald $ +# $Id: PKGBUILD 154510 2012-03-29 17:58:41Z ronald $ # Maintainer: Ronald van Haren <ronald.archlinux.org> # Contributor: Tom Killian <tom.archlinux.org> # Contributor: Judd Vinet <jvinet.zeroflux.org> pkgname=dhcpcd -pkgver=5.5.4 +pkgver=5.5.5 pkgrel=1 pkgdesc="RFC2131 compliant DHCP client daemon" url="http://roy.marples.name/dhcpcd/" @@ -15,19 +15,16 @@ depends=('glibc' 'sh') backup=('etc/conf.d/dhcpcd' 'etc/dhcpcd.conf') options=('emptydirs') # We Need the Empty /var/lib/dhcpcd Directory source=("http://roy.marples.name/downloads/$pkgname/$pkgname-$pkgver.tar.bz2" \ - 'dhcpcd.conf.d' '0001-Set-hostname-via-proc-if-file-is-available.patch' \ - '0001-set-MTU-via-sysfs-if-file-is-available.patch') -sha1sums=('8aa42abd28d49cce5b179998490c36f6c490e338' - 'b67b9ce6a2faaca75fea356966a16be2283b7db0' - 'ee85adac972a8172a9d9b3a1bdd46e0430301582' - 'afbed18dc5544f7d0b81e2266b322ca12becf9a4') + 'dhcpcd.conf.d') +sha1sums=('1856ad1535f2c7551cefcb492af24d345c6a1b50' + 'b67b9ce6a2faaca75fea356966a16be2283b7db0') build() { cd ${srcdir}/${pkgname}-${pkgver} - # remove net-tools dep - patch -Np1 -i ${srcdir}/0001-Set-hostname-via-proc-if-file-is-available.patch - patch -Np1 -i ${srcdir}/0001-set-MTU-via-sysfs-if-file-is-available.patch + # remove net-tools dep (upstream now) +# patch -Np1 -i ${srcdir}/0001-Set-hostname-via-proc-if-file-is-available.patch +# patch -Np1 -i ${srcdir}/0001-set-MTU-via-sysfs-if-file-is-available.patch # configure variables ./configure --libexecdir=/usr/lib/dhcpcd --dbdir=/var/lib/dhcpcd \ diff --git a/core/gnupg/PKGBUILD b/core/gnupg/PKGBUILD index 7b2003a56..5e8fe1088 100644 --- a/core/gnupg/PKGBUILD +++ b/core/gnupg/PKGBUILD @@ -1,11 +1,12 @@ -# $Id: PKGBUILD 154386 2012-03-27 12:00:15Z bisson $ -# Maintainer: Tobias Powalowski <tpowa@archlinux.org> +# $Id: PKGBUILD 154487 2012-03-29 08:18:37Z bisson $ +# Maintainer: Gaetan Bisson <bisson@archlinux.org> +# Contributor: Tobias Powalowski <tpowa@archlinux.org> # Contributor: Andreas Radke <andyrtr@archlinux.org> # Contributor: Judd Vinet <jvinet@zeroflux.org> pkgname=gnupg -pkgver=2.0.18 -pkgrel=2 +pkgver=2.0.19 +pkgrel=1 pkgdesc='Complete and free implementation of the OpenPGP standard' url='http://www.gnupg.org/' license=('GPL') @@ -16,29 +17,30 @@ optdepends=('curl: gpg2keys_curl' 'texinfo: documentation') makedepends=('curl' 'libldap' 'libusb-compat' 'texinfo') depends=('bzip2' 'libksba' 'libgcrypt' 'pth' 'libassuan' 'readline' 'pinentry' 'dirmngr') -install=${pkgname}.install -source=(ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-$pkgver.tar.bz2{,.sig}) -sha1sums=('5ec2f718760cc3121970a140aeea004b64545c46' - 'c1b15a6c204434081e2bd8249dde233b6c88c4d0') +source=("ftp://ftp.gnupg.org/gcrypt/${pkgname}/${pkgname}-${pkgver}.tar.bz2"{,.sig}) +sha1sums=('190c09e6688f688fb0a5cf884d01e240d957ac1f' + 'f6e6830610a8629b0aad69d789373bf8ca481733') + +install=install conflicts=('gnupg2') provides=("gnupg2=${pkgver}") replaces=('gnupg2') build() { - cd "${srcdir}/${pkgname}-${pkgver}" - ./configure --prefix=/usr --libexecdir=/usr/lib/gnupg - make + cd "${srcdir}/${pkgname}-${pkgver}" + ./configure --prefix=/usr --libexecdir=/usr/lib/gnupg + make } check() { - cd "${srcdir}/${pkgname}-${pkgver}" - make check + cd "${srcdir}/${pkgname}-${pkgver}" + make check } package() { - cd "${srcdir}/${pkgname}-${pkgver}" - make DESTDIR="${pkgdir}" install - ln -s gpg2 "${pkgdir}"/usr/bin/gpg - ln -s gpg2.1.gz "${pkgdir}"/usr/share/man/man1/gpg.1.gz + cd "${srcdir}/${pkgname}-${pkgver}" + make DESTDIR="${pkgdir}" install + ln -s gpg2 "${pkgdir}"/usr/bin/gpg + ln -s gpg2.1.gz "${pkgdir}"/usr/share/man/man1/gpg.1.gz } diff --git a/core/gnupg/install b/core/gnupg/install new file mode 100644 index 000000000..3a5dc9fd6 --- /dev/null +++ b/core/gnupg/install @@ -0,0 +1,20 @@ +info_dir=/usr/share/info +info_files=(gnupg.info gnupg.info-1 gnupg.info-2) + +post_install() { + [ -x usr/bin/install-info ] || return 0 + for f in ${info_files[@]}; do + usr/bin/install-info ${info_dir}/$f ${info_dir}/dir 2> /dev/null + done +} + +post_upgrade() { + post_install $1 +} + +pre_remove() { + [ -x usr/bin/install-info ] || return 0 + for f in ${info_files[@]}; do + usr/bin/install-info --delete ${info_dir}/$f ${info_dir}/dir 2> /dev/null + done +} diff --git a/extra/clamav/PKGBUILD b/extra/clamav/PKGBUILD index 7c4eb55fc..5fe88e742 100644 --- a/extra/clamav/PKGBUILD +++ b/extra/clamav/PKGBUILD @@ -1,11 +1,11 @@ -# $Id: PKGBUILD 153568 2012-03-16 04:06:01Z bisson $ +# $Id: PKGBUILD 154496 2012-03-29 15:43:20Z bisson $ # Contributor: Dale Blount <dale@archlinux.org> # Contributor: Gregor Ibic <gregor.ibic@intelicom.si> # Maintainer: Gaetan Bisson <bisson@archlinux.org> pkgname=clamav pkgver=0.97.4 -pkgrel=1 +pkgrel=2 pkgdesc='Anti-virus toolkit for Unix' url='http://www.clamav.net/' license=('GPL') @@ -17,12 +17,14 @@ source=("http://downloads.sourceforge.net/project/${pkgname}/${pkgname}/${pkgver 'rc.d' 'conf.d' 'logrotate' + 'tmpfiles.d' 'config.patch') sha1sums=('56f90cf8a73acba8f97beca86b42c65c3923935d' - '50cfe02c97e4297a0efd25b23142408380305d30' + 'c9d508c1e5972f0f849d8694c1872455fa9e74de' 'cb116cdab49a810381a515cbcfb6a6c148547f07' - 'be3310d2b41a68ce06e33c84ab68ffe59fdce104' - '701a61571788d10ff7af01597785835c6bfea918') + '7cace58743a36dae3e63e5e0c6cc73ea5ef9a6ee' + 'a224ea9b4d0f4f196827347d54bed51e11c197ea' + '1c8ef193919b041135115170acd6313f008de808') install=install @@ -44,15 +46,16 @@ package() { cd "${srcdir}/${pkgname}-${pkgver}" make DESTDIR="${pkgdir}" install - # make sure conf files get installed, because make install + # Make sure conf files get installed, because make install # doesn't do that if clamav is already installed upon building. install -D -m644 etc/clamd.conf "${pkgdir}/etc/clamav/clamd.conf" install -D -m644 etc/freshclam.conf "${pkgdir}/etc/clamav/freshclam.conf" + install -D -m644 ../tmpfiles.d "${pkgdir}/usr/lib/tmpfiles.d/clamav.conf" install -D -m644 ../logrotate "${pkgdir}/etc/logrotate.d/clamav" install -D -m644 ../conf.d "${pkgdir}/etc/conf.d/clamav" install -D -m755 ../rc.d "${pkgdir}/etc/rc.d/clamav" - # un-distribute databases to require freshclam + # Un-distribute databases to require freshclam. rm "${pkgdir}"/var/lib/clamav/*.cvd } diff --git a/extra/clamav/config.patch b/extra/clamav/config.patch index a0105bd48..0640df2c3 100644 --- a/extra/clamav/config.patch +++ b/extra/clamav/config.patch @@ -9,7 +9,7 @@ diff -arU 0 old/etc/clamd.conf new/etc/clamd.conf +LogTime yes @@ -61 +61 @@ -#PidFile /var/run/clamd.pid -+PidFile /var/run/clamav/clamd.pid ++PidFile /run/clamav/clamd.pid @@ -65 +65 @@ -#TemporaryDirectory /var/tmp +TemporaryDirectory /tmp diff --git a/extra/clamav/install b/extra/clamav/install index 144134dde..a2092e815 100644 --- a/extra/clamav/install +++ b/extra/clamav/install @@ -2,9 +2,9 @@ post_install() { getent group clamav &>/dev/null || groupadd -r -g 64 clamav >/dev/null getent passwd clamav &>/dev/null || useradd -r -u 64 -g clamav -d /dev/null -s /bin/false -c "Clam AntiVirus" clamav >/dev/null - install -d /var/log/clamav - chown clamav:root /var/log/clamav chown -R clamav:clamav /var/lib/clamav + install -o clamav -g clamav -d /run/clamav + install -o clamav -g clamav -d /var/log/clamav } post_remove() { diff --git a/extra/clamav/logrotate b/extra/clamav/logrotate index d1dc94dce..6a9051bed 100644 --- a/extra/clamav/logrotate +++ b/extra/clamav/logrotate @@ -2,7 +2,7 @@ create 644 clamav clamav sharedscripts postrotate - /bin/kill -HUP `cat /var/run/clamav/clamd.pid 2>/dev/null` 2> /dev/null || true - /bin/kill -HUP `cat /var/run/clamav/freshclam.pid 2>/dev/null` 2> /dev/null || true + /bin/kill -HUP `cat /run/clamav/clamd.pid 2>/dev/null` 2> /dev/null || true + /bin/kill -HUP `cat /run/clamav/freshclam.pid 2>/dev/null` 2> /dev/null || true endscript } diff --git a/extra/clamav/rc.d b/extra/clamav/rc.d index 04e959903..127c86c0f 100644 --- a/extra/clamav/rc.d +++ b/extra/clamav/rc.d @@ -3,8 +3,7 @@ . /etc/rc.conf . /etc/rc.d/functions -[[ -f /etc/conf.d/clamav ]] && . /etc/conf.d/clamav -[[ -d /var/run/clamav ]] || install -d -o clamav -g root /var/run/clamav +[[ -f /etc/conf.d/clamav ]] && source /etc/conf.d/clamav PID_FC=$(pidof -o %PPID /usr/bin/freshclam) PID_CD=$(pidof -o %PPID /usr/sbin/clamd) @@ -24,7 +23,7 @@ case "$1" in sleep 1 if [[ $START_FRESHCLAM = yes ]]; then stat_busy "Starting FreshClam" - [[ -z $PID_FC ]] && /usr/bin/freshclam -p /var/run/clamav/freshclam.pid -d $FRESHCLAM_OPTS + [[ -z $PID_FC ]] && /usr/bin/freshclam -p /run/clamav/freshclam.pid -d $FRESHCLAM_OPTS if [[ $? -gt 0 ]]; then stat_fail else diff --git a/extra/clamav/tmpfiles.d b/extra/clamav/tmpfiles.d new file mode 100644 index 000000000..22d29941e --- /dev/null +++ b/extra/clamav/tmpfiles.d @@ -0,0 +1 @@ +d /run/clamav 0755 clamav clamav diff --git a/extra/libdrm/PKGBUILD b/extra/libdrm/PKGBUILD index dc9e17584..fa9f64eed 100644 --- a/extra/libdrm/PKGBUILD +++ b/extra/libdrm/PKGBUILD @@ -1,8 +1,8 @@ -# $Id: PKGBUILD 153938 2012-03-20 20:33:27Z andyrtr $ +# $Id: PKGBUILD 154508 2012-03-29 17:30:54Z andyrtr $ # Maintainer: Jan de Groot <jgc@archlinux.org> pkgname=libdrm -pkgver=2.4.32 +pkgver=2.4.33 pkgrel=1 pkgdesc="Userspace interface to kernel DRM services" arch=(i686 x86_64 'mips64el') @@ -17,7 +17,7 @@ source=(http://dri.freedesktop.org/${pkgname}/${pkgname}-${pkgver}.tar.bz2 COPYING # git_fixes.diff ) -sha1sums=('4aab6cc1c0d2a4822ffd83bd3da0e7a5479bf842' +sha1sums=('4da2c635491724e44326871e6a49ccfec0b6b5a6' '825ff5e0c4238b31bdea52f104bfec8949270e25' 'ba3dcd636997ee0d30df14b03dae05c24ae5d094') diff --git a/extra/libzip/PKGBUILD b/extra/libzip/PKGBUILD index 66338532f..c970e31d4 100644 --- a/extra/libzip/PKGBUILD +++ b/extra/libzip/PKGBUILD @@ -1,19 +1,19 @@ -# $Id: PKGBUILD 150601 2012-02-18 22:35:18Z pierre $ +# $Id: PKGBUILD 154546 2012-03-30 00:01:03Z eric $ # Maintainer: Andrea Scarpino <andrea@archlinux.org> # Contributor: Tobias Powalowski <tpowa@archlinux.org> pkgname=libzip -pkgver=0.10 -pkgrel=2 +pkgver=0.10.1 +pkgrel=1 pkgdesc="A C library for reading, creating, and modifying zip archives" url="http://www.nih.at/libzip/index.html" -license=('GPL2') +license=('BSD') arch=('i686' 'x86_64' 'mips64el') depends=('zlib') options=('!libtool') -source=("http://www.nih.at/${pkgname}/${pkgname}-${pkgver}.tar.gz" +source=("http://www.nih.at/${pkgname}/${pkgname}-${pkgver}.tar.bz2" 'fix-headers.patch') -md5sums=('47cdfcbc08c8bea0b52fdee4bf591622' +md5sums=('d3e933ae049204badccf605f20aaecde' '249395bd3a426c4c4e993e9d4753e1dd') build() { @@ -27,5 +27,6 @@ build() { package() { cd "${srcdir}/${pkgname}-${pkgver}" - make DESTDIR=${pkgdir} install + make DESTDIR="${pkgdir}" install + install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" } diff --git a/extra/qt/PKGBUILD b/extra/qt/PKGBUILD index ee76a64b1..26fc428d1 100644 --- a/extra/qt/PKGBUILD +++ b/extra/qt/PKGBUILD @@ -1,11 +1,11 @@ -# $Id: PKGBUILD 152665 2012-03-08 10:07:57Z andrea $ +# $Id: PKGBUILD 154524 2012-03-29 20:18:01Z andrea $ # Maintainer: Andrea Scarpino <andrea@archlinux.org> # Contributor: Pierre Schmitz <pierre@archlinux.de> pkgbase=qt pkgname=('qt' 'qt-private-headers') -pkgver=4.8.0 -pkgrel=6 +pkgver=4.8.1 +pkgrel=1 arch=('i686' 'x86_64' 'mips64el') url='http://qt-project.org/' license=('GPL3' 'LGPL') @@ -18,35 +18,23 @@ _pkgfqn="${pkgbase}-everywhere-opensource-src-${pkgver}" source=("http://get.qt.nokia.com/qt/source/${_pkgfqn}.tar.gz" 'assistant.desktop' 'designer.desktop' 'linguist.desktop' 'qtconfig.desktop' - 'fix-qgraphicsscene-regression.patch' - 'improved-filter-event.patch' - 'qurl-backward-compatibility.patch' - 'declarative-fix-sigbus.patch' - 'improve-cups-support.patch') -md5sums=('e8a5fdbeba2927c948d9f477a6abe904' + 'gcc47.patch' + 'declarative-fix-sigbus.patch') +md5sums=('7960ba8e18ca31f0c6e4895a312f92ff' 'fc211414130ab2764132e7370f8e5caa' '85179f5e0437514f8639957e1d8baf62' 'f11852b97583610f3dbb669ebc3e21bc' '6b771c8a81dd90b45e8a79afa0e5bbfd' - 'c2e91fc028250a590e76effe234468e2' - '444ebeb716d7c7379835efb8aa88e6c8' - '7bc255a36733d0fbc80c1902ade4beca' - 'aac963d05a9d5733e2bfce9e26607f51' - 'c439c7731c25387352d8453ca7574971') + 'd8a0e81075b290ddc18ecd33b9b7ee22' + 'aac963d05a9d5733e2bfce9e26607f51') build() { cd "${srcdir}"/${_pkgfqn} # MIPS N32-specific fix, shouldn't affect correctness on other platforms. patch -Np1 -i "${srcdir}/declarative-fix-sigbus.patch" - # (FS#28707) - patch -p1 -i "${srcdir}"/fix-qgraphicsscene-regression.patch - # (FS#27757) (KDEBUG#275469) - patch -p1 -i "${srcdir}"/improved-filter-event.patch - patch -p1 -i "${srcdir}"/qurl-backward-compatibility.patch - - # (FS#28381) (KDEBUG#180051) - patch -p1 -i "${srcdir}"/improve-cups-support.patch + + patch -p1 -i "${srcdir}"/gcc47.patch export QT4DIR="${srcdir}"/${_pkgfqn} export LD_LIBRARY_PATH=${QT4DIR}/lib:${LD_LIBRARY_PATH} diff --git a/extra/qt/gcc47.patch b/extra/qt/gcc47.patch new file mode 100644 index 000000000..62c436e6a --- /dev/null +++ b/extra/qt/gcc47.patch @@ -0,0 +1,27 @@ +diff -up qt-everywhere-opensource-src-4.8.0/src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSGlobalObject.h.me qt-everywhere-opensource-src-4.8.0/src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSGlobalObject.h +--- qt-everywhere-opensource-src-4.8.0/src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSGlobalObject.h.me 2012-01-24 11:24:14.729942043 +0100 ++++ qt-everywhere-opensource-src-4.8.0/src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSGlobalObject.h 2012-01-24 14:28:39.848109534 +0100 +@@ -57,9 +57,7 @@ namespace JSC { + + class JSGlobalObject : public JSVariableObject { + protected: +- using JSVariableObject::JSVariableObjectData; +- +- struct JSGlobalObjectData : public JSVariableObjectData { ++ struct JSGlobalObjectData : public JSVariableObject::JSVariableObjectData { + // We use an explicit destructor function pointer instead of a + // virtual destructor because we want to avoid adding a vtable + // pointer to this struct. Adding a vtable pointer would force the +diff -up qt-everywhere-opensource-src-4.8.0/src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSStaticScopeObject.h.me qt-everywhere-opensource-src-4.8.0/src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSStaticScopeObject.h +--- qt-everywhere-opensource-src-4.8.0/src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSStaticScopeObject.h.me 2012-01-24 11:40:07.167856677 +0100 ++++ qt-everywhere-opensource-src-4.8.0/src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSStaticScopeObject.h 2012-01-24 14:28:34.640306629 +0100 +@@ -32,8 +32,7 @@ namespace JSC{ + + class JSStaticScopeObject : public JSVariableObject { + protected: +- using JSVariableObject::JSVariableObjectData; +- struct JSStaticScopeObjectData : public JSVariableObjectData { ++ struct JSStaticScopeObjectData : public JSVariableObject::JSVariableObjectData { + JSStaticScopeObjectData() + : JSVariableObjectData(&symbolTable, ®isterStore + 1) + { diff --git a/extra/xf86-video-ati/PKGBUILD b/extra/xf86-video-ati/PKGBUILD index 5cce5b37c..a9aae7f3d 100644 --- a/extra/xf86-video-ati/PKGBUILD +++ b/extra/xf86-video-ati/PKGBUILD @@ -1,10 +1,10 @@ -# $Id: PKGBUILD 153325 2012-03-12 20:53:16Z andyrtr $ +# $Id: PKGBUILD 154506 2012-03-29 17:23:01Z andyrtr $ # Maintainer: Jan de Groot <jgc@archlinux.org> # Contributor: Alexander Baldeck <alexander@archlinux.org> pkgname=xf86-video-ati -pkgver=6.14.3 -pkgrel=2 +pkgver=6.14.4 +pkgrel=1 pkgdesc="X.org ati video driver" arch=('i686' 'x86_64') url="http://xorg.freedesktop.org/" @@ -15,7 +15,7 @@ conflicts=('xorg-server<1.11.99.902') groups=('xorg-drivers' 'xorg') options=('!libtool') source=(${url}/releases/individual/driver/${pkgname}-${pkgver}.tar.bz2) -sha1sums=('db635e2e2858d5db90362f546ac0adad85474bad') +sha1sums=('75ad000bc00599e1797134f2d20d3094cba6af92') build() { cd "${srcdir}/${pkgname}-${pkgver}" diff --git a/libre/grub/PKGBUILD b/libre/grub/PKGBUILD index 91ad4a5cf..29870d611 100644 --- a/libre/grub/PKGBUILD +++ b/libre/grub/PKGBUILD @@ -50,6 +50,7 @@ DESTARCH="x86_64" build() { cd $srcdir/$pkgname-$pkgver + fgrep -rlZ pkglib_DATA --include Makefile.am . | xargs -0 sed -i 's/pkglib_DATA/pkgdata_DATA/g' # optimizations break the build -- disable them # adding special devices to grub, patches are from fedora diff --git a/libre/grub2/20_memtest86+ b/libre/grub2/20_memtest86+ index 41ca11f02..1d3096f6b 100644 --- a/libre/grub2/20_memtest86+ +++ b/libre/grub2/20_memtest86+ @@ -4,11 +4,13 @@ # if memtest is installed on the system. # ######################################################## -prefix=/usr -exec_prefix=${prefix} -libdir=${exec_prefix}/lib +prefix="/usr" +exec_prefix="${prefix}" -. ${libdir}/grub/grub-mkconfig_lib +datarootdir="/usr/share" +datadir="${datarootdir}" + +. "${datadir}/grub/grub-mkconfig_lib" MEMTEST86_IMAGE="/boot/memtest86+/memtest.bin" CLASS="--class memtest86 --class gnu --class tool" diff --git a/libre/grub2/PKGBUILD b/libre/grub2/PKGBUILD index 3680a5228..b8c43150a 100644 --- a/libre/grub2/PKGBUILD +++ b/libre/grub2/PKGBUILD @@ -1,222 +1,257 @@ # Maintainer: Ronald van Haren <ronald.archlinux.org> -# Contributor: Keshav P R <skodabenz at rocketmail dot com> +# Contributor: Keshav P R <(the.ridikulus.rat) (aatt) (gemmaeiil) (ddoott) (ccoomm)> +# Maintainer (Parabola): André Silva <andre.paulista@adinet.com.uy> -# The src pkg includes grub2_bzr_export.sh to create newer grub-extras snapshots. Modify the paths in it accordingly. +_grub_bzr_rev="4169" +_pkgver="2.00~beta2" -# _grub2_rev=3238 - -_grub2_lua_ver=20 -_grub2_gpxe_ver=12 -_grub2_ntldr_ver=17 -_grub2_915_ver=7 +_grub_lua_ver=24 +_grub_gpxe_ver=12 +_grub_ntldr_ver=21 +_grub_915_ver=9 pkgname=('grub2-common' 'grub2-bios' 'grub2-efi-i386') [ "$CARCH" = "mips64el" ] && pkgname=('grub2-common' 'grub2-loongson') -pkgbase="grub2" -pkgver='1.99' -pkgrel=4 +pkgbase=grub2 +pkgver=2.00beta2 +pkgrel=3 url="http://www.gnu.org/software/grub/" arch=('i686' 'x86_64' 'mips64el') license=('GPL3') -epoch=1 -makedepends=('bdf-unifont' 'python2' 'xz' 'autogen' 'texinfo' 'help2man' 'gettext' 'device-mapper') -options=(strip purge docs zipman !emptydirs) - -# "http://alpha.gnu.org/gnu/grub/grub-${pkgver}.tar.xz" -source=("ftp://ftp.gnu.org/gnu/grub/grub-1.99.tar.xz" - "ftp://ftp.archlinux.org/other/grub2/grub2_extras_lua_r${_grub2_lua_ver}.tar.xz" - "ftp://ftp.archlinux.org/other/grub2/grub2_extras_gpxe_r${_grub2_gpxe_ver}.tar.xz" - "ftp://ftp.archlinux.org/other/grub2/grub2_extras_ntldr-img_r${_grub2_ntldr_ver}.tar.xz" - "ftp://ftp.archlinux.org/other/grub2/grub2_extras_915resolution_r${_grub2_915_ver}.tar.xz" - 'archlinux_grub2_mkconfig_fixes.patch' - 'grub.default' - 'grub.cfg' - '20_memtest86+' - 'grub2_bzr_export.sh' - 'parabola-mkconfig.patch') - -noextract=("grub2_extras_lua_r${_grub2_lua_ver}.tar.xz" - "grub2_extras_gpxe_r${_grub2_gpxe_ver}.tar.xz" - "grub2_extras_ntldr-img_r${_grub2_ntldr_ver}.tar.xz" - "grub2_extras_915resolution_r${_grub2_915_ver}.tar.xz") - -sha1sums=('a5ae9558f30ce7757a76aa130088b053a87e2fb6' - '9f2dbf7a3faab24ca92266400aa513fecd3895c8' +epoch="1" +makedepends=('rsync' 'xz' 'bdf-unifont' 'python' 'autogen' 'texinfo' + 'help2man' 'gettext' 'device-mapper' 'fuse' 'dosfstools' 'efibootmgr') + +# source=("ftp://ftp.archlinux.org/other/grub2/grub_r${_grub_bzr_rev}.tar.xz" +source=("http://alpha.gnu.org/gnu/grub/grub-${_pkgver}".tar.xz + "ftp://ftp.archlinux.org/other/grub2/grub2_extras_lua_r${_grub_lua_ver}.tar.xz" + "ftp://ftp.archlinux.org/other/grub2/grub2_extras_gpxe_r${_grub_gpxe_ver}.tar.xz" + "ftp://ftp.archlinux.org/other/grub2/grub2_extras_ntldr-img_r${_grub_ntldr_ver}.tar.xz" + "ftp://ftp.archlinux.org/other/grub2/grub2_extras_915resolution_r${_grub_915_ver}.tar.xz" + 'archlinux_grub_mkconfig_fixes.patch' + 'grub.default' + 'grub.cfg' + '20_memtest86+') + +noextract=("grub2_extras_lua_r${_grub_lua_ver}.tar.xz" + "grub2_extras_gpxe_r${_grub_gpxe_ver}.tar.xz" + "grub2_extras_ntldr-img_r${_grub_ntldr_ver}.tar.xz" + "grub2_extras_915resolution_r${_grub_915_ver}.tar.xz") + +sha1sums=('2ba583f9466fb676b0ae3d7a9a82d1299b153a98' + '89290031b974780c6df76893836d2477d4add895' 'b04994c005910b4bf123f034b30109d5c8d6fd86' - 'e0c1a97770cc23226cf4535c029ef50b17f67974' - '8bcaed545956bb33581e1b97ac96a2c3717ec793' - 'b7e5510c7b171e9c4dbddb42bbf54ce5ee86e2de' - 'd1252b837b13ebf817dbc45cfd4d772c7d1b621f' - '7df0516c6c45816aa330b775f1ed6f652e4f0380' - '82a27eca5277218cf57c6c5767e0b17a72f62229' - 'beb31419045db70fee7401aa6448c220a491e2a3' - '27930016362d6647282405183b9977f0a7b15c1a') + 'eb4b35b4c36b64f9405cbcbc538cb205171c1c0a' + 'd5ae2efec25616028a9d89e98b6e454f1c4c415f' + 'cdace8067562fab04aaacac8d99a4ea612fa0c5b' + '348b148d5183825f31a3d24a7ebf2d6a709f4e6a' + '6f0870673b9f994163326a416432aee7eacdbfc5' + 'ce35d7ae75cd1b5b677e894e528f96add40e77b9') -build() { - # set architecture dependent variables - if [ "${CARCH}" = "x86_64" ] ; then - _EFIEMU="--enable-efiemu" - else - _EFIEMU="--disable-efiemu" - fi - _HOST="${CARCH}" +_build_grub2-common_and_bios() { - build_grub2-common_and_bios - [ "$CARCH" = "mips64el" ] || \ - build_grub2-efi -} + ## copy the source for building the common/bios package + cp -r "${srcdir}/grub-${_pkgver}" "${srcdir}/grub_bios-${_pkgver}" + cd "${srcdir}/grub_bios-${_pkgver}" -build_grub2-common_and_bios() { - # copy the source for building the common/bios package - cp -r ${srcdir}/grub-${pkgver} ${srcdir}/grub2_bios-${pkgver} - - ## Apply Archlinux specific fixes to enable grub2-mkconfig detect Arch kernels and initramfs - cd ${srcdir}/grub2_bios-${pkgver} - patch -Np1 -i ${srcdir}/archlinux_grub2_mkconfig_fixes.patch - patch -Np1 -i ${srcdir}/parabola-mkconfig.patch - - # add the grub-extra sources - export GRUB_CONTRIB=${srcdir}/grub2_bios-${pkgver}/grub2-extras/ - install -d ${srcdir}/grub2_bios-${pkgver}/grub2-extras - bsdtar xf ${srcdir}/grub2_extras_lua_r${_grub2_lua_ver}.tar.xz \ - -C ${srcdir}/grub2_bios-${pkgver}/grub2-extras - bsdtar xf ${srcdir}/grub2_extras_gpxe_r${_grub2_gpxe_ver}.tar.xz \ - -C ${srcdir}/grub2_bios-${pkgver}/grub2-extras - bsdtar xf ${srcdir}/grub2_extras_ntldr-img_r${_grub2_ntldr_ver}.tar.xz \ - -C ${srcdir}/grub2_bios-${pkgver}/grub2-extras - bsdtar xf ${srcdir}/grub2_extras_915resolution_r${_grub2_915_ver}.tar.xz \ - -C ${srcdir}/grub2_bios-${pkgver}/grub2-extras - - ## Need to use python2 - sed -i 's|python|python2|' ${srcdir}/grub2_bios-${pkgver}/autogen.sh + ## Apply Archlinux specific fixes to enable grub-mkconfig detect Arch kernels and initramfs + patch -Np1 -i "${srcdir}/archlinux_grub_mkconfig_fixes.patch" + echo - # start the actual build process - cd ${srcdir}/grub2_bios-${pkgver} + ## add the grub-extra sources + export GRUB_CONTRIB="${srcdir}/grub_bios-${_pkgver}/grub-extras/" + install -d "${srcdir}/grub_bios-${_pkgver}/grub-extras" + + bsdtar xf "${srcdir}/grub2_extras_lua_r${_grub_lua_ver}.tar.xz" \ + -C "${srcdir}/grub_bios-${_pkgver}/grub-extras" + + bsdtar xf "${srcdir}/grub2_extras_gpxe_r${_grub_gpxe_ver}.tar.xz" \ + -C "${srcdir}/grub_bios-${_pkgver}/grub-extras" + + bsdtar xf "${srcdir}/grub2_extras_ntldr-img_r${_grub_ntldr_ver}.tar.xz" \ + -C "${srcdir}/grub_bios-${_pkgver}/grub-extras" + + bsdtar xf "${srcdir}/grub2_extras_915resolution_r${_grub_915_ver}.tar.xz" \ + -C "${srcdir}/grub_bios-${_pkgver}/grub-extras" + + ## Requires python2 + # sed 's|python |python2 |g' -i "${srcdir}/grub_bios-${_pkgver}/autogen.sh" + + ## start the actual build process + cd "${srcdir}/grub_bios-${_pkgver}" ./autogen.sh - + ## fix unifont.bdf location so grub-mkfont can create *.pf2 files - sed -i 's|/usr/share/fonts/unifont|/usr/share/fonts/misc|' ${srcdir}/grub2_bios-${pkgver}/configure - -# mkdir ${srcdir}/grub2_bios-${pkgver}/BUILD_BIOS -# cd ${srcdir}/grub2_bios-${pkgver}/BUILD_BIOS - - if [ "$CARCH" = "mips64el" ]; then - CFLAGS="" ./configure \ - --with-platform=yeeloong --enable-mm-debug \ - --host=${CARCH}-unknown-linux-gnu \ - --enable-grub-mkfont --prefix=/usr \ - --bindir=/bin --sbindir=/sbin \ - --mandir=/usr/share/man --infodir=/usr/share/info \ - --sysconfdir=/etc --enable-nls \ - --program-transform-name=s,grub,grub, - CFLAGS="" make - else + sed 's|/usr/share/fonts/unifont|/usr/share/fonts/misc|g' -i "${srcdir}/grub_bios-${_pkgver}/configure" + + # install -d "${srcdir}/grub_bios-${_pkgver}/BUILD_BIOS" + # cd "${srcdir}/grub_bios-${_pkgver}/BUILD_BIOS" + CFLAGS="" ./configure \ - --with-platform=pc --enable-mm-debug \ - ${_EFIEMU} --host=${CARCH}-unknown-linux-gnu \ - --enable-grub-mkfont --prefix=/usr \ - --bindir=/bin --sbindir=/sbin \ - --mandir=/usr/share/man --infodir=/usr/share/info \ - --sysconfdir=/etc --enable-nls \ - --program-transform-name=s,grub,grub, - CFLAGS="" make - fi + --with-platform="pc" \ + --target="i386" \ + --host="${CARCH}-unknown-linux-gnu" \ + "${_EFIEMU}" \ + --enable-mm-debug \ + --enable-nls \ + --enable-device-mapper \ + --enable-cache-stats \ + --enable-grub-mkfont \ + --enable-grub-mount \ + --prefix="/usr" \ + --bindir="/usr/bin" \ + --sbindir="/usr/sbin" \ + --mandir="/usr/share/man" \ + --infodir="/usr/share/info" \ + --datarootdir="/usr/share" \ + --sysconfdir="/etc" \ + --program-prefix="" \ + --with-bootdir="/boot" \ + --with-grubdir="grub" \ + --disable-werror + + CFLAGS="" make + } -build_grub2-efi() { - # copy the source for building the efi package - cp -r ${srcdir}/grub-${pkgver} ${srcdir}/grub2_efi-${pkgver} - - # add the grub-extra sources - export GRUB_CONTRIB=${srcdir}/grub2_efi-${pkgver}/grub2-extras/ - install -d ${srcdir}/grub2_efi-${pkgver}/grub2-extras - bsdtar xf ${srcdir}/grub2_extras_lua_r${_grub2_lua_ver}.tar.xz \ - -C ${srcdir}/grub2_efi-${pkgver}/grub2-extras - bsdtar xf ${srcdir}/grub2_extras_gpxe_r${_grub2_gpxe_ver}.tar.xz \ - -C ${srcdir}/grub2_efi-${pkgver}/grub2-extras - - ## Need to use python2 - sed -i 's|python|python2|' ${srcdir}/grub2_efi-${pkgver}/autogen.sh - - # start the actual build process - cd ${srcdir}/grub2_efi-${pkgver} +_build_grub2-efi-i386() { + + ## copy the source for building the efi package + cp -r "${srcdir}/grub-${_pkgver}" "${srcdir}/grub_efi-${_pkgver}" + cd "${srcdir}/grub_efi-${_pkgver}" + + export GRUB_CONTRIB="${srcdir}/grub_efi-${_pkgver}/grub-extras/" + install -d "${srcdir}/grub_efi-${_pkgver}/grub-extras" + + bsdtar xf "${srcdir}/grub2_extras_lua_r${_grub_lua_ver}.tar.xz" \ + -C "${srcdir}/grub_efi-${_pkgver}/grub-extras" + + bsdtar xf "${srcdir}/grub2_extras_gpxe_r${_grub_gpxe_ver}.tar.xz" \ + -C "${srcdir}/grub_efi-${_pkgver}/grub-extras" + + ## Requires python2 + # sed 's|python |python2 |g' -i "${srcdir}/grub_efi-${_pkgver}/autogen.sh" + + cd "${srcdir}/grub_efi-${_pkgver}" ./autogen.sh CFLAGS="" ./configure \ - --with-platform=efi --target=i386 \ - --enable-mm-debug --disable-efiemu \ - --host=${CARCH}-unknown-linux-gnu \ - --prefix=/usr --bindir=/bin \ - --sbindir=/sbin --mandir=/usr/share/man \ - --infodir=/usr/share/info --sysconfdir=/etc \ - --enable-nls --program-transform-name=s,grub,grub, - CFLAGS="" make + --with-platform="efi" \ + --target="i386" \ + --host="${CARCH}-unknown-linux-gnu" \ + --disable-efiemu \ + --enable-mm-debug \ + --enable-nls \ + --enable-device-mapper \ + --enable-cache-stats \ + --enable-grub-mkfont \ + --enable-grub-mount \ + --prefix="/usr" \ + --bindir="/usr/bin" \ + --sbindir="/usr/sbin" \ + --mandir="/usr/share/man" \ + --infodir="/usr/share/info" \ + --datarootdir="/usr/share" \ + --sysconfdir="/etc" \ + --program-prefix="" \ + --with-bootdir="/boot" \ + --with-grubdir="grub" \ + --disable-werror + + CFLAGS="" make +} + +#_get_locale_files() { +# +# cd "${srcdir}/grub-${_pkgver}" +# rsync -Lrtvz translationproject.org::tp/latest/grub/ "${srcdir}/grub-${_pkgver}/po" || true +# (cd "${srcdir}/grub-${_pkgver}/po" && ls *.po | cut -d. -f1 | xargs) > "${srcdir}/grub-${_pkgver}/po/LINGUAS" +#} + +build() { + + ## set architecture dependent variables + if [[ "${CARCH}" == 'x86_64' ]]; then + _EFIEMU="--enable-efiemu" + else + _EFIEMU="--disable-efiemu" + fi + + _HOST="${CARCH}" + + cd "${srcdir}/grub-${_pkgver}" + # _get_locale_files + + _build_grub2-common_and_bios + _build_grub2-efi-i386 + } package_grub2-common() { + pkgdesc="The GNU GRand Unified Bootloader version 2 - Files common for all platforms" - install="grub2.install" - depends=('xz' 'freetype2' 'device-mapper' 'gettext' 'texinfo') + depends=('xz' 'freetype2' 'gettext' 'device-mapper' 'fuse' 'sh') conflicts=('grub') backup=('boot/grub/grub.cfg' 'etc/default/grub' 'etc/grub.d/40_custom') - cd ${srcdir}/grub2_bios-${pkgver} - make DESTDIR=${pkgdir} install - - install -Dm755 ${pkgdir}/sbin/grub-install ${pkgdir}/sbin/grub_bios-install - install -Dm755 ${pkgdir}/sbin/grub-install ${pkgdir}/sbin/grub_efi_x86_64-install - install -Dm755 ${pkgdir}/sbin/grub-install ${pkgdir}/sbin/grub_efi_i386-install - - sed -i "s|^\(target_cpu\)=.*|\1=i386|; \ - s|^\(platform\)=.*|\1=pc|" \ - ${pkgdir}/sbin/grub_bios-install - - sed -i "s|^\(target_cpu\)=.*|\1=x86_64|; \ - s|^\(platform\)=.*|\1=efi|" \ - ${pkgdir}/sbin/grub_efi_x86_64-install - - sed -i "s|^\(target_cpu\)=.*|\1=i386|; \ - s|^\(platform\)=.*|\1=efi|" \ - ${pkgdir}/sbin/grub_efi_i386-install - + optdepends=('libisoburn: provides xorriso for generating grub rescue iso using grub-mkrescue' + 'os-prober: to detect other OSes when generating grub.cfg in BIOS systems' + 'mtools: for grub-mkrescue FAT FS support') + install="grub2.install" + options=('strip' 'purge' 'docs' 'zipman' '!emptydirs') + + cd "${srcdir}/grub_bios-${_pkgver}" + make DESTDIR="${pkgdir}/" install + ## install extra /etc/grub.d/ files - install -Dm755 ${srcdir}/20_memtest86+ ${pkgdir}/etc/grub.d/20_memtest86+ - + install -D -m0755 "${srcdir}/20_memtest86+" "${pkgdir}/etc/grub.d/20_memtest86+" + ## install /etc/default/grub (used by grub-mkconfig) - install -Dm644 ${srcdir}/grub.default ${pkgdir}/etc/default/grub + install -D -m0644 "${srcdir}/grub.default" "${pkgdir}/etc/default/grub" ## install grub.cfg (needed so it doesn't get removed on upgrading because it was previously here) - install -Dm644 ${srcdir}/grub.cfg ${pkgdir}/boot/grub/grub.cfg + install -D -m0644 "${srcdir}/grub.cfg" "${pkgdir}/boot/grub/grub.cfg" # remove platform specific files - rm -rf ${pkgdir}/usr/lib/grub/i386-pc/ + rm -rf "${pkgdir}/usr/lib/grub/i386-pc/" + } package_grub2-bios() { - pkgdesc="The GNU GRand Unified Bootloader version 2 - Built for PC BIOS" - depends=(grub2-common=${epoch}:${pkgver}) - replaces=('grub2' 'grub2-libre') - provides=('grub2' 'grub2-libre') - - cd ${srcdir}/grub2_bios-${pkgver} - make DESTDIR=${pkgdir} install + + pkgdesc="The GNU GRand Unified Bootloader version 2 - Built for i386 PC BIOS" + depends=("grub2-common=${epoch}:${pkgver}") + options=('!strip' '!emptydirs') + + cd "${srcdir}/grub_bios-${_pkgver}" + make DESTDIR="${pkgdir}/" install ## remove non platform-specific files - rm -rf ${pkgdir}/{boot,bin,sbin,etc,usr/share} - rm ${pkgdir}/usr/lib/grub/{grub-mkconfig_lib,update-grub_lib} + rm -rf "${pkgdir}"/{boot,etc,usr/{share,bin,sbin}} + + ## remove gdb debugging related files + rm -f "${pkgdir}/usr/lib/grub/i386-pc"/*.module || true + rm -f "${pkgdir}/usr/lib/grub/i386-pc"/*.image || true + rm -f "${pkgdir}/usr/lib/grub/i386-pc"/{kernel.exec,gdb_grub,gmodule.pl} || true + } package_grub2-efi-i386() { pkgdesc="The GNU GRand Unified Bootloader version 2 - i386 UEFI version" depends=("grub2-common=${epoch}:${pkgver}" 'dosfstools' 'efibootmgr') - optdepends=('mtools') - - cd ${srcdir}/grub2_efi-${pkgver} - make DESTDIR=${pkgdir} install + options=('!strip' '!emptydirs') + + cd "${srcdir}/grub_efi-${_pkgver}" + make DESTDIR="${pkgdir}/" install ## remove non platform-specific files - rm -rf ${pkgdir}/{boot,bin,sbin,etc,usr/share} - rm ${pkgdir}/usr/lib/grub/{grub-mkconfig_lib,update-grub_lib} + rm -rf "${pkgdir}"/{boot,etc,usr/{share,bin,sbin}} + + ## remove gdb debugging related files + rm -f "${pkgdir}/usr/lib/grub/i386-efi"/*.module || true + rm -f "${pkgdir}/usr/lib/grub/i386-efi"/*.image || true + rm -f "${pkgdir}/usr/lib/grub/i386-efi"/{kernel.exec,gdb_grub,gmodule.pl} || true + } # Same as -bios but different pkgdesc diff --git a/libre/grub2/archlinux_grub2_mkconfig_fixes.patch b/libre/grub2/archlinux_grub2_mkconfig_fixes.patch index 11805e309..ef4b10ee6 100644 --- a/libre/grub2/archlinux_grub2_mkconfig_fixes.patch +++ b/libre/grub2/archlinux_grub2_mkconfig_fixes.patch @@ -1,7 +1,21 @@ -diff -Nur a/util/grub.d/00_header.in b/util/grub.d/00_header.in ---- a/util/grub.d/00_header.in 2011-04-06 13:14:27.000000000 +0200 -+++ b/util/grub.d/00_header.in 2011-08-01 15:19:57.919100452 +0200 -@@ -100,6 +100,14 @@ +diff --git a/util/grub-mkconfig.in b/util/grub-mkconfig.in +index 859c2e8..c754dd7 100644 +--- a/util/grub-mkconfig.in ++++ b/util/grub-mkconfig.in +@@ -242,6 +242,8 @@ export GRUB_DEFAULT \ + GRUB_THEME \ + GRUB_GFXPAYLOAD_LINUX \ + GRUB_DISABLE_OS_PROBER \ ++ GRUB_COLOR_NORMAL \ ++ GRUB_COLOR_HIGHLIGHT \ + GRUB_INIT_TUNE \ + GRUB_SAVEDEFAULT \ + GRUB_ENABLE_CRYPTODISK \ +diff --git a/util/grub.d/00_header.in b/util/grub.d/00_header.in +index d9bcc15..a93dcb7 100644 +--- a/util/grub.d/00_header.in ++++ b/util/grub.d/00_header.in +@@ -100,6 +100,14 @@ cat <<EOF EOF @@ -16,10 +30,11 @@ diff -Nur a/util/grub.d/00_header.in b/util/grub.d/00_header.in serial=0; gfxterm=0; for x in ${GRUB_TERMINAL_INPUT} ${GRUB_TERMINAL_OUTPUT}; do -diff -Nur a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in ---- a/util/grub.d/10_linux.in 2011-05-14 22:36:49.000000000 +0200 -+++ b/util/grub.d/10_linux.in 2011-08-01 15:56:53.324779083 +0200 -@@ -31,8 +31,8 @@ +diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in +index bc738f2..a6ab326 100644 +--- a/util/grub.d/10_linux.in ++++ b/util/grub.d/10_linux.in +@@ -31,8 +31,8 @@ CLASS="--class gnu-linux --class gnu --class os" if [ "x${GRUB_DISTRIBUTOR}" = "x" ] ; then OS=GNU/Linux else @@ -30,7 +45,16 @@ diff -Nur a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in fi # loop-AES arranges things so that /dev/loop/X can be our root device, but -@@ -65,7 +65,9 @@ +@@ -48,7 +48,7 @@ if [ "x${GRUB_DEVICE_UUID}" = "x" ] || [ "x${GRUB_DISABLE_LINUX_UUID}" = "xtrue" + || uses_abstraction "${GRUB_DEVICE}" lvm; then + LINUX_ROOT_DEVICE=${GRUB_DEVICE} + else +- LINUX_ROOT_DEVICE=UUID=${GRUB_DEVICE_UUID} ++ LINUX_ROOT_DEVICE="/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" + fi + + if [ "x`${grub_probe} --device ${GRUB_DEVICE} --target=fs 2>/dev/null || true`" = xbtrfs ]; then +@@ -65,7 +65,9 @@ linux_entry () version="$2" recovery="$3" args="$4" @@ -41,7 +65,17 @@ diff -Nur a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in title="$(gettext_quoted "%s, with Linux %s (recovery mode)")" else title="$(gettext_quoted "%s, with Linux %s")" -@@ -132,7 +134,7 @@ +@@ -113,7 +115,9 @@ EOF + fi + printf '%s\n' "${prepare_boot_cache}" + fi ++ + message="$(gettext_printf "Loading Linux %s ..." ${version})" ++ + cat << EOF + echo '$message' + linux ${rel_dirname}/${basename} root=${linux_root_device_thisversion} ro ${args} +@@ -132,11 +136,11 @@ EOF case x`uname -m` in xi?86 | xx86_64) @@ -50,22 +84,39 @@ diff -Nur a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in if grub_file_is_not_garbage "$i" ; then echo -n "$i " ; fi done` ;; *) -@@ -160,7 +162,8 @@ +- list=`for i in /boot/vmlinuz-* /boot/vmlinux-* /vmlinuz-* /vmlinux-* /boot/kernel-* ; do ++ list=`for i in /boot/vmlinuz* /boot/vmlinux* /vmlinuz* /vmlinux* /boot/kernel-* ; do + if grub_file_is_not_garbage "$i" ; then echo -n "$i " ; fi + done` ;; + esac +@@ -151,16 +155,19 @@ while [ "x$list" != "x" ] ; do + dirname=`dirname $linux` + rel_dirname=`make_system_path_relative_to_its_root $dirname` + version=`echo $basename | sed -e "s,^[^0-9]*-,,g"` +- alt_version=`echo $version | sed -e "s,\.old$,,g"` ++ base_init=`echo $basename | sed -e "s,vmlinuz,initramfs,g"` ++ alt_version="${base_init}-fallback" + linux_root_device_thisversion="${LINUX_ROOT_DEVICE}" + + initrd= ++ + for i in "initrd.img-${version}" "initrd-${version}.img" "initrd-${version}.gz" \ + "initrd-${version}" "initramfs-${version}.img" \ "initrd.img-${alt_version}" "initrd-${alt_version}.img" \ "initrd-${alt_version}" "initramfs-${alt_version}.img" \ "initramfs-genkernel-${version}" \ - "initramfs-genkernel-${alt_version}"; do + "initramfs-genkernel-${alt_version}" \ -+ "${basename/vmlinuz/kernel}.img"; do ++ "${basename/vmlinuz/initramfs}.img" "${basename/vmlinuz/kernel}.img"; do if test -e "${dirname}/${i}" ; then initrd="$i" break -@@ -190,6 +193,15 @@ +@@ -190,6 +197,16 @@ while [ "x$list" != "x" ] ; do linux_entry "${OS}" "${version}" false \ "${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT}" + for i in "initramfs-${version}-fallback.img" \ -+ "${basename/vmlinuz/kernel}-fallback.img"; do ++ "${basename/vmlinuz/initramfs}-fallback.img" "${basename/vmlinuz/kernel}-fallback.img"; do + if test -e "${dirname}/${i}"; then + initrd="$i" + linux_entry "${OS}" "${version}" true \ @@ -73,18 +124,7 @@ diff -Nur a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in + break + fi + done ++ if [ "x${GRUB_DISABLE_RECOVERY}" != "xtrue" ]; then linux_entry "${OS}" "${version}" true \ "single ${GRUB_CMDLINE_LINUX}" -diff -Nur a/util/grub-mkconfig.in b/util/grub-mkconfig.in ---- a/util/grub-mkconfig.in 2011-04-06 17:45:53.000000000 +0200 -+++ b/util/grub-mkconfig.in 2011-08-01 15:20:49.256867648 +0200 -@@ -252,6 +252,8 @@ - GRUB_THEME \ - GRUB_GFXPAYLOAD_LINUX \ - GRUB_DISABLE_OS_PROBER \ -+ GRUB_COLOR_NORMAL \ -+ GRUB_COLOR_HIGHLIGHT \ - GRUB_INIT_TUNE \ - GRUB_SAVEDEFAULT \ - GRUB_BADRAM diff --git a/libre/grub2/archlinux_grub_mkconfig_fixes.patch b/libre/grub2/archlinux_grub_mkconfig_fixes.patch new file mode 100644 index 000000000..4b4cba92a --- /dev/null +++ b/libre/grub2/archlinux_grub_mkconfig_fixes.patch @@ -0,0 +1,141 @@ +diff --git a/util/grub-mkconfig.in b/util/grub-mkconfig.in +index df3b733..65a7fff 100644 +--- a/util/grub-mkconfig.in ++++ b/util/grub-mkconfig.in +@@ -213,6 +213,8 @@ export GRUB_DEFAULT \ + GRUB_THEME \ + GRUB_GFXPAYLOAD_LINUX \ + GRUB_DISABLE_OS_PROBER \ ++ GRUB_COLOR_NORMAL \ ++ GRUB_COLOR_HIGHLIGHT \ + GRUB_INIT_TUNE \ + GRUB_SAVEDEFAULT \ + GRUB_ENABLE_CRYPTODISK \ +diff --git a/util/grub.d/00_header.in b/util/grub.d/00_header.in +index 765bfdc..b148558 100644 +--- a/util/grub.d/00_header.in ++++ b/util/grub.d/00_header.in +@@ -115,6 +115,14 @@ cat <<EOF + + EOF + ++if [ x$GRUB_COLOR_NORMAL != x ] && [ x$GRUB_COLOR_HIGHLIGHT != x ] ; then ++ cat << EOF ++set menu_color_normal=$GRUB_COLOR_NORMAL ++set menu_color_highlight=$GRUB_COLOR_HIGHLIGHT ++ ++EOF ++fi ++ + serial=0; + gfxterm=0; + for x in ${GRUB_TERMINAL_INPUT} ${GRUB_TERMINAL_OUTPUT}; do +diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in +index 8c75fab..0d4a137 100644 +--- a/util/grub.d/10_linux.in ++++ b/util/grub.d/10_linux.in +@@ -87,6 +87,8 @@ linux_entry () + case $type in + recovery) + title="$(gettext_printf "%s, with Linux %s (recovery mode)" "${os}" "${version}")" ;; ++ fallback) ++ title="$(gettext_printf "%s, with Linux %s (Fallback initramfs)" "${os}" "${version}")" ;; + *) + title="$(gettext_printf "%s, with Linux %s" "${os}" "${version}")" ;; + esac +@@ -100,7 +102,7 @@ linux_entry () + else + echo "menuentry '$(echo "$os" | grub_quote)' ${CLASS} \$menuentry_id_option 'gnulinux-simple-$boot_device_id' {" | sed "s/^/$submenu_indentation/" + fi +- if [ x$type != xrecovery ] ; then ++ if [ x$type != xrecovery ] && [ x$type != xfallback ] ; then + save_default_entry | sed -e "s/^/\t/" + fi + +@@ -132,7 +134,8 @@ linux_entry () + fi + printf '%s\n' "${prepare_boot_cache}" | sed "s/^/$submenu_indentation/" + fi +- message="$(gettext_printf "Loading Linux %s ..." ${version})" ++ ++ message="$(gettext_printf "Loading Linux %s ..." "${version}")" + sed "s/^/$submenu_indentation/" << EOF + echo '$message' + linux ${rel_dirname}/${basename} root=${linux_root_device_thisversion} ro ${args} +@@ -181,13 +184,29 @@ while [ "x$list" != "x" ] ; do + alt_version=`echo $version | sed -e "s,\.old$,,g"` + linux_root_device_thisversion="${LINUX_ROOT_DEVICE}" + ++ if test -e "/etc/arch-release" ; then ++ if echo "${basename}" | grep -q 'vmlinuz-linux' ; then ++ version="`echo "${basename}" | sed -e 's,vmlinuz-linux,,g'`" ++ ++ if [ "x${version}" = "x" ] ; then ++ version="core repo kernel" ++ else ++ version="`echo "${version}" | sed -e 's,-,,g'`" ++ version="${version} kernel" ++ fi ++ fi ++ fi ++ + initrd= ++ initrd_arch="`echo "${basename}" | sed -e 's,vmlinuz,initramfs,g'`" ++ + for i in "initrd.img-${version}" "initrd-${version}.img" "initrd-${version}.gz" \ + "initrd-${version}" "initramfs-${version}.img" \ + "initrd.img-${alt_version}" "initrd-${alt_version}.img" \ + "initrd-${alt_version}" "initramfs-${alt_version}.img" \ + "initramfs-genkernel-${version}" \ +- "initramfs-genkernel-${alt_version}"; do ++ "initramfs-genkernel-${alt_version}" \ ++ "${initrd_arch}.img" ; do + if test -e "${dirname}/${i}" ; then + initrd="$i" + break +@@ -215,6 +234,22 @@ while [ "x$list" != "x" ] ; do + linux_root_device_thisversion=${GRUB_DEVICE} + fi + ++ if test -e "/etc/arch-release" ; then ++ is_first_entry="false" ++ ++ linux_entry "${OS}" "${version}" true \ ++ "${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT}" ++ ++ for i in "${initrd_arch}-fallback.img" "initramfs-${version}-fallback.img" ; do ++ if test -e "${dirname}/${i}" ; then ++ initrd="${i}" ++ linux_entry "${OS}" "${version}" fallback \ ++ "${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT}" ++ break ++ fi ++ done ++ fi ++ + if [ "x$is_first_entry" = xtrue ]; then + linux_entry "${OS}" "${version}" simple \ + "${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT}" +@@ -228,8 +263,11 @@ while [ "x$list" != "x" ] ; do + echo "submenu '$(gettext_printf "Advanced options for %s" "${OS}" | grub_quote)' \$menuentry_id_option 'gnulinux-advanced-$boot_device_id' {" + fi + ++ if ! test -e "/etc/arch-release" ; then + linux_entry "${OS}" "${version}" advanced \ + "${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT}" ++ fi ++ + if [ "x${GRUB_DISABLE_RECOVERY}" != "xtrue" ]; then + linux_entry "${OS}" "${version}" recovery \ + "single ${GRUB_CMDLINE_LINUX}" +@@ -241,8 +279,10 @@ done + + # If at least one kernel was found, then we need to + # add a closing '}' for the submenu command. ++if ! test -e "/etc/arch-release" ; then + if [ x"$is_first_entry" != xtrue ]; then + echo '}' + fi ++fi + + echo "$title_correction_code" diff --git a/libre/grub2/fix_stack_pointer_handling_16_relocator.patch b/libre/grub2/fix_stack_pointer_handling_16_relocator.patch new file mode 100644 index 000000000..edc0ef502 --- /dev/null +++ b/libre/grub2/fix_stack_pointer_handling_16_relocator.patch @@ -0,0 +1,13 @@ +diff --git a/grub-core/lib/i386/relocator16.S b/grub-core/lib/i386/relocator16.S +index c3768f4..982415d 100644 +--- a/grub-core/lib/i386/relocator16.S ++++ b/grub-core/lib/i386/relocator16.S +@@ -130,7 +130,7 @@ VARIABLE(grub_relocator16_ss) + .byte 0xb8 + VARIABLE(grub_relocator16_sp) + .word 0 +- movw %ax, %ss ++ movzwl %ax, %esp + + /* movw imm32, %edx. */ + .byte 0x66, 0xba diff --git a/libre/grub2/grub-mkconfig-Use_outside_GRUB_PREFIX_if_defined.patch b/libre/grub2/grub-mkconfig-Use_outside_GRUB_PREFIX_if_defined.patch new file mode 100644 index 000000000..e1de26859 --- /dev/null +++ b/libre/grub2/grub-mkconfig-Use_outside_GRUB_PREFIX_if_defined.patch @@ -0,0 +1,15 @@ +diff --git a/util/grub-mkconfig.in b/util/grub-mkconfig.in +index 859c2e8..c4391dc 100644 +--- a/util/grub-mkconfig.in ++++ b/util/grub-mkconfig.in +@@ -40,7 +40,9 @@ self=`basename $0` + grub_probe="${sbindir}/`echo grub-probe | sed "${transform}"`" + grub_script_check="${bindir}/`echo grub-script-check | sed "${transform}"`" + +-GRUB_PREFIX=`echo '/@bootdirname@/@grubdirname@' | sed "s,//*,/,g"` ++if test -z "${GRUB_PREFIX}"; then ++ GRUB_PREFIX=`echo '/@bootdirname@/@grubdirname@' | sed "s,//*,/,g"` ++fi + + . "${datadir}/@PACKAGE@/grub-mkconfig_lib" + diff --git a/libre/grub2/grub.cfg b/libre/grub2/grub.cfg index 1f0e41471..4f5a21991 100644 --- a/libre/grub2/grub.cfg +++ b/libre/grub2/grub.cfg @@ -1,26 +1,127 @@ -# Config file for GRUB2 - The GNU GRand Unified Bootloader -# /boot/grub/grub.cfg - -# DEVICE NAME CONVERSIONS # -# Linux Grub -# ------------------------- -# /dev/fd0 (fd0) -# /dev/sda (hd0) -# /dev/sdb2 (hd1,2) -# /dev/sda3 (hd0,3) +# DO NOT EDIT THIS FILE +# +# It is automatically generated by grub-mkconfig using templates +# from /etc/grub.d and settings from /etc/default/grub # -# Timeout for menu -set timeout=5 +### BEGIN /etc/grub.d/00_header ### +insmod part_gpt +insmod part_msdos +if [ -s $prefix/grubenv ]; then + load_env +fi +set default="0" +if [ "${prev_saved_entry}" ]; then + set saved_entry="${prev_saved_entry}" + save_env saved_entry + set prev_saved_entry= + save_env prev_saved_entry + set boot_once=true +fi + +function savedefault { + if [ -z "${boot_once}" ]; then + saved_entry="${chosen}" + save_env saved_entry + fi +} + +function load_video { + if [ x$feature_all_video_module = xy ]; then + insmod all_video + else + insmod efi_gop + insmod efi_uga + insmod ieee1275_fb + insmod vbe + insmod vga + insmod video_bochs + insmod video_cirrus + fi +} -# Set default boot entry as Entry 0 -set default=0 +if [ x$feature_default_font_path = xy ] ; then + font=unicode +else +insmod part_gpt +insmod ext2 +set root='hd0,gpt9' +if [ x$feature_platform_search_hint = xy ]; then + search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt9 --hint-efi=hd0,gpt9 --hint-baremetal=ahci0,gpt9 0cc6e472-7f98-42ff-b7f3-309b641377ad +else + search --no-floppy --fs-uuid --set=root 0cc6e472-7f98-42ff-b7f3-309b641377ad +fi + font="/usr/share/grub/unicode.pf2" +fi -# (0) Parabola GNU/Linux-libre -menuentry "Parabola GNU/Linux-libre" { -set root=(hd0,1) -linux /vmlinuz26 root=/dev/sda1 ro -initrd /kernel26.img +if loadfont $font ; then + set gfxmode=auto + load_video + insmod gfxterm + set locale_dir=$prefix/locale + set lang=en_US + insmod gettext +fi +terminal_input console +terminal_output gfxterm +set timeout=5 +### END /etc/grub.d/00_header ### + +### BEGIN /etc/grub.d/10_linux ### +menuentry 'Parabola GNU/Linux-libre, with Linux libre' --class parabolagnu/linux-libre --class gnu-linux --class gnu --class os { + load_video + set gfxpayload=keep + insmod gzio + insmod part_gpt + insmod ext2 + set root='hd0,gpt3' + if [ x$feature_platform_search_hint = xy ]; then + search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3 2ccd62fe-2204-44e8-bcfd-ce33996f9852 + else + search --no-floppy --fs-uuid --set=root 2ccd62fe-2204-44e8-bcfd-ce33996f9852 + fi + echo 'Loading Linux libre ...' + linux /vmlinuz-linux-libre root=/dev/disk/by-uuid/0cc6e472-7f98-42ff-b7f3-309b641377ad ro quiet + echo 'Loading initial ramdisk ...' + initrd /initramfs-linux-libre.img } +menuentry 'Parabola GNU/Linux-libre, with Linux libre Fallback' --class parabolagnu/linux-libre --class gnu-linux --class gnu --class os { + load_video + set gfxpayload=keep + insmod gzio + insmod part_gpt + insmod ext2 + set root='hd0,gpt3' + if [ x$feature_platform_search_hint = xy ]; then + search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3 2ccd62fe-2204-44e8-bcfd-ce33996f9852 + else + search --no-floppy --fs-uuid --set=root 2ccd62fe-2204-44e8-bcfd-ce33996f9852 + fi + echo 'Loading Linux libre ...' + linux /vmlinuz-linux-libre root=/dev/disk/by-uuid/0cc6e472-7f98-42ff-b7f3-309b641377ad ro quiet + echo 'Loading initial ramdisk ...' + initrd /initramfs-linux-libre-fallback.img +} +### END /etc/grub.d/10_linux ### + +### BEGIN /etc/grub.d/20_linux_xen ### +### END /etc/grub.d/20_linux_xen ### + +### BEGIN /etc/grub.d/20_memtest86+ ### +### END /etc/grub.d/20_memtest86+ ### + +### BEGIN /etc/grub.d/30_os-prober ### +### END /etc/grub.d/30_os-prober ### + +### BEGIN /etc/grub.d/40_custom ### +# This file provides an easy way to add custom menu entries. Simply type the +# menu entries you want to add after this comment. Be careful not to change +# the 'exec tail' line above. +### END /etc/grub.d/40_custom ### +### BEGIN /etc/grub.d/41_custom ### +if [ -f $prefix/custom.cfg ]; then + source $prefix/custom.cfg; +fi +### END /etc/grub.d/41_custom ### diff --git a/libre/grub2/grub.default b/libre/grub2/grub.default index fecc09af6..4ab37bbfc 100644 --- a/libre/grub2/grub.default +++ b/libre/grub2/grub.default @@ -1,10 +1,7 @@ -# If you change this file, run 'update-grub' afterwards to update -# /boot/grub/grub.cfg. - GRUB_DEFAULT=0 GRUB_TIMEOUT=5 GRUB_DISTRIBUTOR="Parabola GNU/Linux-libre" -GRUB_CMDLINE_LINUX_DEFAULT="quiet" +GRUB_CMDLINE_LINUX_DEFAULT="quiet add_efi_memmap" GRUB_CMDLINE_LINUX="" # Preload both GPT and MBR modules so that they are not missed @@ -37,8 +34,8 @@ GRUB_DISABLE_RECOVERY=true # Uncomment and set to the desired menu colors. Used by normal and wallpaper # modes only. Entries specified as foreground/background. -GRUB_COLOR_NORMAL="light-blue/black" -GRUB_COLOR_HIGHLIGHT="light-cyan/blue" +#GRUB_COLOR_NORMAL="light-blue/black" +#GRUB_COLOR_HIGHLIGHT="light-cyan/blue" # Uncomment one of them for the gfx desired, a image background or a gfxtheme #GRUB_BACKGROUND="/path/to/wallpaper" diff --git a/libre/grub2/grub2.install b/libre/grub2/grub2.install index 9baf14776..000533553 100644 --- a/libre/grub2/grub2.install +++ b/libre/grub2/grub2.install @@ -7,7 +7,11 @@ post_install() { install -Dm644 /boot/grub/grub.cfg.pacsave /boot/grub/grub.cfg fi - echo -n "Generating grub.cfg.example config file... " + cat << 'EOM' +Generating grub.cfg.example config file... +This may fail on some machines running a custom kernel. +EOM + grub-mkconfig -o /boot/grub/grub.cfg.example 2> /dev/null echo "done." diff --git a/libre/grub2/grub2_automake_1.11.2_pkglib_to_pkgdata.patch b/libre/grub2/grub2_automake_1.11.2_pkglib_to_pkgdata.patch new file mode 100644 index 000000000..0e396b210 --- /dev/null +++ b/libre/grub2/grub2_automake_1.11.2_pkglib_to_pkgdata.patch @@ -0,0 +1,134 @@ +diff --git a/ChangeLog_Keshav b/ChangeLog_Keshav +new file mode 100644 +index 0000000..0eafd65 +--- /dev/null ++++ b/ChangeLog_Keshav +@@ -0,0 +1,12 @@ ++2012-01-04 Keshav P R <the.ridikulus.rat@gmail.com> ++ ++ Fixes for automake 1.11.2 ++ ++ * conf/Makefile.common: Change pkglib_SCRIPTS to pkgdata_SCRIPTS. ++ * conf/Makefile.common: Change pkglib_DATA to pkgdata_DATA. ++ * Makefile.am: Likewise. ++ * gentpl.py: Likewise. ++ * util/grub-mkstandalone.in: Likewise. ++ * util/grub-mknetdir.in: Likewise. ++ * util/grub-mkrescue.in: Likewise. ++ * util/grub-mkstandalone.in: Likewise. +diff --git a/Makefile.am b/Makefile.am +index c5f486e..395b0dd 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -101,8 +101,8 @@ CLEANFILES += widthspec.h + # Install config.h into platformdir + platform_HEADERS = config.h + +-pkglib_DATA += grub-mkconfig_lib +-pkglib_DATA += update-grub_lib ++pkgdata_DATA += grub-mkconfig_lib ++pkgdata_DATA += update-grub_lib + + + if COND_i386_coreboot +diff --git a/conf/Makefile.common b/conf/Makefile.common +index 751188b..bbd59cc 100644 +--- a/conf/Makefile.common ++++ b/conf/Makefile.common +@@ -137,7 +137,7 @@ KERNEL_HEADER_FILES = + + man_MANS = + noinst_DATA = +-pkglib_DATA = ++pkgdata_DATA = + bin_SCRIPTS = + sbin_SCRIPTS = + bin_PROGRAMS = +@@ -147,7 +147,7 @@ check_SCRIPTS = + grubconf_DATA = + check_PROGRAMS = + noinst_SCRIPTS = +-pkglib_SCRIPTS = ++pkgdata_SCRIPTS = + noinst_PROGRAMS = + grubconf_SCRIPTS = + noinst_LIBRARIES = +diff --git a/gentpl.py b/gentpl.py +index 3008b80..a935f4d 100644 +--- a/gentpl.py ++++ b/gentpl.py +@@ -512,7 +512,7 @@ def script(platform): + r += "[+ ENDIF +]" + + r += rule("[+ name +]", platform_sources(platform) + " $(top_builddir)/config.status", """ +-$(top_builddir)/config.status --file=-:$< | sed -e 's,@pkglib_DATA@,$(pkglib_DATA),g' > $@ ++$(top_builddir)/config.status --file=-:$< | sed -e 's,@pkgdata_DATA@,$(pkgdata_DATA),g' > $@ + chmod a+x [+ name +] + """) + +diff --git a/util/grub-mknetdir.in b/util/grub-mknetdir.in +index e5a2172..7f6a36d 100644 +--- a/util/grub-mknetdir.in ++++ b/util/grub-mknetdir.in +@@ -30,7 +30,7 @@ PACKAGE_VERSION=@PACKAGE_VERSION@ + host_os=@host_os@ + localedir=@datadir@/locale + datarootdir=@datarootdir@ +-pkglib_DATA="moddep.lst command.lst fs.lst partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst" ++pkgdata_DATA="moddep.lst command.lst fs.lst partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst" + + self=`basename $0` + +@@ -183,7 +183,7 @@ process_input_dir () + cp -f "$file" "$grubdir/" + fi + done +- for file in ${pkglib_DATA}; do ++ for file in ${pkgdata_DATA}; do + if test -f "${input_dir}/${file}"; then + cp -f "${input_dir}/${file}" "$grubdir/" + fi +diff --git a/util/grub-mkrescue.in b/util/grub-mkrescue.in +index eff7708..f6b96d4 100644 +--- a/util/grub-mkrescue.in ++++ b/util/grub-mkrescue.in +@@ -27,7 +27,7 @@ libdir=@libdir@ + PACKAGE_NAME=@PACKAGE_NAME@ + PACKAGE_TARNAME=@PACKAGE_TARNAME@ + PACKAGE_VERSION=@PACKAGE_VERSION@ +-pkglib_DATA="moddep.lst command.lst fs.lst partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst" ++pkgdata_DATA="moddep.lst command.lst fs.lst partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst" + + self=`basename $0` + +@@ -163,7 +163,7 @@ process_input_dir () + cp -f "$file" ${iso9660_dir}/boot/grub/${platform}/ + fi + done +- for file in ${pkglib_DATA}; do ++ for file in ${pkgdata_DATA}; do + if test -f "${input_dir}/${file}"; then + cp -f "${input_dir}/${file}" ${iso9660_dir}/boot/grub/${platform}/ + fi +diff --git a/util/grub-mkstandalone.in b/util/grub-mkstandalone.in +index b0dbf9b..92b7306 100644 +--- a/util/grub-mkstandalone.in ++++ b/util/grub-mkstandalone.in +@@ -27,7 +27,7 @@ libdir=@libdir@ + PACKAGE_NAME=@PACKAGE_NAME@ + PACKAGE_TARNAME=@PACKAGE_TARNAME@ + PACKAGE_VERSION=@PACKAGE_VERSION@ +-pkglib_DATA="moddep.lst command.lst fs.lst partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst" ++pkgdata_DATA="moddep.lst command.lst fs.lst partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst" + + self=`basename $0` + +@@ -163,7 +163,7 @@ for file in "${source_directory}/"*.mod "${source_directory}/"efiemu32.o "${sour + fi + done + +-for file in ${pkglib_DATA}; do ++for file in ${pkgdata_DATA}; do + if test -f "${source_directory}/${file}"; then + cp -f "${source_directory}/${file}" "${memdisk_dir}"/boot/grub/ + fi diff --git a/libre/grub2/grub2_bzr_export.sh b/libre/grub2/grub2_bzr_export.sh index 7c42d0c28..f40588f82 100644 --- a/libre/grub2/grub2_bzr_export.sh +++ b/libre/grub2/grub2_bzr_export.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash ## For actual repos @@ -9,65 +9,67 @@ ## For launchpad mirror -# bzr branch lp:~skodabenz/grub/grub2-extras-lua lua -# bzr branch lp:~skodabenz/grub/grub2-extras-gpxe gpxe -# bzr branch lp:~skodabenz/grub/grub2-extras-ntldr-img ntldr-img -# bzr branch lp:~skodabenz/grub/grub2-extras-915resolution 915resolution +# bzr branch lp:~the-ridikulus-rat/grub/grub2-extras-lua lua +# bzr branch lp:~the-ridikulus-rat/grub/grub2-extras-gpxe gpxe +# bzr branch lp:~the-ridikulus-rat/grub/grub2-extras-ntldr-img ntldr-img +# bzr branch lp:~the-ridikulus-rat/grub/grub2-extras-915resolution 915resolution ## grub-extras zfs is integrated into grub2 bzr main repo and is no longer needed separately. -wd=${PWD}/ -output_dir=${wd}/ +_WD="${PWD}/" +_OUTPUT_DIR="${_WD}/" -grub2_bzr_dir=${wd}/grub2_BZR/ -grub2_bzr_exp_dir=${wd}/grub2_experimental_BZR/ -grub2_extras_dir=${wd}/grub2_extras_BZR/ +_ACTUAL_PKGVER="1.99" -main_snapshot() { +_GRUB2_BZR_REPO_DIR="${_WD}/grub2_BZR/" +_GRUB2_BZR_EXP_REPO_DIR="${_WD}/grub2_experimental_BZR/" +_GRUB2_EXTRAS_REPOS_DIR="${_WD}/grub2_extras_BZR/" + +_MAIN_SNAPSHOT() { - cd ${grub2_bzr_dir}/ + cd "${_GRUB2_BZR_REPO_DIR}/" echo - revnum=$(bzr revno ${grub2_bzr_dir}) - bzr export --root=grub2 --format=tar ${output_dir}/grub2_r${revnum}.tar + _REVNUM="$(bzr revno ${_GRUB2_BZR_REPO_DIR})" + bzr export --root="grub-${_ACTUAL_PKGVER}" --format="tar" "${_OUTPUT_DIR}/grub2_r${_REVNUM}.tar" echo - cd ${output_dir}/ + cd "${_OUTPUT_DIR}/" - xz -9 ${output_dir}/grub2_r${revnum}.tar + xz -9 "${_OUTPUT_DIR}/grub2_r${_REVNUM}.tar" echo } -exp_snapshot() { +_EXP_SNAPSHOT() { - cd ${grub2_bzr_exp_dir}/ + cd "${_GRUB2_BZR_EXP_REPO_DIR}/" echo - revnum=$(bzr revno ${grub2_bzr_exp_dir}) - bzr export --root=grub2_exp --format=tar ${output_dir}/grub2_exp_r${revnum}.tar + _REVNUM="$(bzr revno ${_GRUB2_BZR_EXP_REPO_DIR})" + bzr export --root="grub-${_ACTUAL_PKGVER}" --format="tar" "${_OUTPUT_DIR}/grub2_exp_r${_REVNUM}.tar" echo - cd ${output_dir}/ + cd "${_OUTPUT_DIR}/" - xz -9 ${output_dir}/grub2_exp_r${revnum}.tar + xz -9 "${_OUTPUT_DIR}/grub2_exp_r${_REVNUM}.tar" echo } -extras_snapshot() { +_EXTRAS_SNAPSHOT() { - cd ${grub2_extras_dir}/${grub2_extras_name}/ + cd "${_GRUB2_EXTRAS_REPOS_DIR}/${_GRUB2_EXTRAS_NAME}/" echo - revnum=$(bzr revno ${grub2_extras_dir}/${grub2_extras_name}) - bzr export --root=${grub2_extras_name} --format=tar ${output_dir}/grub2_extras_${grub2_extras_name}_r${revnum}.tar + _REVNUM="$(bzr revno ${_GRUB2_EXTRAS_REPOS_DIR}/${_GRUB2_EXTRAS_NAME})" + bzr export --root="${_GRUB2_EXTRAS_NAME}" --format=tar "${_OUTPUT_DIR}/grub2_extras_${_GRUB2_EXTRAS_NAME}_r${_REVNUM}.tar" echo - cd ${output_dir}/ + cd "${_OUTPUT_DIR}/" echo - xz -9 ${output_dir}/grub2_extras_${grub2_extras_name}_r${revnum}.tar + xz -9 "${_OUTPUT_DIR}/grub2_extras_${_GRUB2_EXTRAS_NAME}_r${_REVNUM}.tar" echo } @@ -76,28 +78,36 @@ echo set -x -e -# main_snapshot +echo -# exp_snapshot +_MAIN_SNAPSHOT -grub2_extras_name="lua" -extras_snapshot +echo -grub2_extras_name="gpxe" -extras_snapshot +# _EXP_SNAPSHOT + +echo -grub2_extras_name="ntldr-img" -extras_snapshot +_GRUB2_EXTRAS_NAME="lua" +_EXTRAS_SNAPSHOT -grub2_extras_name="915resolution" -extras_snapshot +_GRUB2_EXTRAS_NAME="gpxe" +_EXTRAS_SNAPSHOT + +_GRUB2_EXTRAS_NAME="ntldr-img" +_EXTRAS_SNAPSHOT + +_GRUB2_EXTRAS_NAME="915resolution" +_EXTRAS_SNAPSHOT + +echo set +x +e echo -unset wd -unset output_dir -unset grub2_bzr_dir -unset grub2_extras_dir -unset grub2_extras_name +unset _WD +unset _OUTPUT_DIR +unset _GRUB2_BZR_REPO_DIR +unset _GRUB2_EXTRAS_REPOS_DIR +unset _GRUB2_EXTRAS_NAME diff --git a/libre/grub2/grub_extras_lua_args_fix.patch b/libre/grub2/grub_extras_lua_args_fix.patch new file mode 100644 index 000000000..5cb317ce3 --- /dev/null +++ b/libre/grub2/grub_extras_lua_args_fix.patch @@ -0,0 +1,13 @@ +diff --git a/grub-extras/lua/grub_lib.c b/grub-extras/lua/grub_lib.c +index 9014320..055d620 100644 +--- a/grub-extras/lua/grub_lib.c ++++ b/grub-extras/lua/grub_lib.c +@@ -466,7 +466,7 @@ grub_lua_add_menu (lua_State *state) + if (! p) + return push_result (state); + +- grub_normal_add_menu_entry (n, args, NULL, NULL, NULL, NULL, p, 0); ++ grub_normal_add_menu_entry (n, args, NULL, NULL, NULL, NULL, NULL, p, 0); + } + else + { diff --git a/libre/thunderbird-libre/PKGBUILD b/libre/thunderbird-libre/PKGBUILD index b822bbf37..a55282b95 100644 --- a/libre/thunderbird-libre/PKGBUILD +++ b/libre/thunderbird-libre/PKGBUILD @@ -3,10 +3,10 @@ # Contributor: Alexander Baldeck <alexander@archlinux.org> # Contributor: Dale Blount <dale@archlinux.org> # Contributor: Anders Bostrom <anders.bostrom@home.se> -# Contributor (Parabola): André Silva <andre.paulista@adinet.com.uy> +# Maintainer (Parabola): André Silva <andre.paulista@adinet.com.uy> pkgname=thunderbird-libre -pkgver=11.0 +pkgver=11.0.1 pkgrel=1 pkgdesc="Standalone Mail/News reader" arch=('i686' 'x86_64' 'mips64el') @@ -26,7 +26,7 @@ source=(ftp://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/$pkgver/sourc channel-prefs.js vendor.js libvpx.patch) -md5sums=('1d7127a3282e62d95eb9b59d47291b70' +md5sums=('b500560a006cb10194281263c78841f2' 'ca98c2bf1017b33e19dae22fdcef2e73' 'af3e5b344d2edf1c7d61bb0a5a96de9a' 'aea906acf72c43dd82ead2fabcc1c6db' |