Commit fb0d8e34 authored by Alexander Larsson's avatar Alexander Larsson
Browse files

Switch to using freedesktop-sdk-images as base

parent d1b4b42b
srcdir = $(CURDIR)
builddir = $(CURDIR)
FREEDESKTOP_VERSION=1.0
GNOME_VERSION=3.16
NAME=gnome
ID=org.gnome
VERSION=3.18
ARCH=x86_64
IMAGEDIR=freedesktop-sdk-base/images/$(ARCH)
SPECS=packages/SPECS
NOARCH=packages/RPMS/noarch
BASE_HASH=7c8b7a164472f67b5ed69802e3119bc1804127aa
IMAGEDIR=freedesktop-sdk-images/freedesktop-sdk-base/images/$(ARCH)
BASE_HASH=cda42b256f1691e750bce3a421a4fe6536115ac3
EXTRA_NAME=
DELTAS=
GPG_KEY=
GPG_HOME=
all: gnome-platform.tar.gz gnome-sdk.tar.gz
SDK_BASE_IMAGE=$(IMAGEDIR)/freedesktop-contents-sdk-$(ARCH)-$(BASE_HASH).tar.gz
PLATFORM_BASE_IMAGE=$(IMAGEDIR)/freedesktop-contents-platform-$(ARCH)-$(BASE_HASH).tar.gz
$(SDK_BASE_IMAGE) $(PLATFORM_BASE_IMAGE) images:
if test ! -d freedesktop-sdk-base; then \
git clone git://anongit.freedesktop.org/xdg-app/freedesktop-sdk-base;\
fi
(cd freedesktop-sdk-base && \
git fetch origin && \
git checkout $(BASE_HASH) && \
make)
NULL=
PACKAGES = \
freedesktop-platform-base \
freedesktop-sdk-base \
freedesktop-platform \
freedesktop-sdk \
freedesktop-debug \
gnome-platform \
gnome-sdk \
gnome-debug \
\
SDL2 \
SDL2_image \
SDL2_mixer \
SDL2_net \
SDL2_ttf \
abattis-cantarell-fonts \
adwaita-icon-theme \
aspell \
at-spi2-atk \
at-spi2-core \
atk \
cairo \
clutter \
clutter-gtk \
cogl \
dbus \
dbus-glib \
dconf \
dejavu-fonts \
desktop-file-utils \
enchant \
fontconfig \
freetype \
gdk-pixbuf2 \
gjs \
glib-networking \
glib2 \
gnome-common \
gnome-themes-standard \
gnu-free-fonts \
gobject-introspection \
google-crosextra-caladea-fonts \
google-crosextra-carlito-fonts \
graphite2 \
gsettings-desktop-schemas \
gstreamer1 \
gstreamer1-plugins-base \
gtk-doc-stub \
gtk2 \
gtk3 \
gvfs \
harfbuzz \
hicolor-icon-theme \
hunspell-en hunspell \
itstool \
json-glib \
libICE \
libSM \
libX11 \
libXScrnSaver \
libXau \
libXcomposite \
libXcursor \
libXdamage \
libXdmcp \
libXext \
libXfixes \
libXft \
libXi \
libXinerama \
libXpm \
libXrandr \
libXrender \
libXt \
libXtst \
libXv \
libXvMC \
libXxf86vm \
libappstream-glib \
libcroco \
libdatrie \
libdrm \
libepoxy \
liberation-fonts \
libnotify \
libpciaccess \
libproxy \
librsvg2 \
libsecret \
libsoup \
libthai \
libxcb \
libxkbcommon \
libxkbfile \
libxshmfence \
llvm \
mesa \
mozjs24 \
orc \
pango \
pixman \
pulseaudio \
pygobject3 \
python3-cairo \
shared-mime-info \
vala \
vte \
wayland \
webkitgtk4 \
xcb-proto \
xkeyboard-config \
xorg-x11-proto-devel \
xorg-x11-util-macros \
xorg-x11-xtrans-devel \
yelp-tools \
yelp-xsl \
zenity \
$(NULL)
ALL_SPECS =$(PACKAGES:%=$(SPECS)/%.spec)
deps: rpm-dependencies.P
rpm-dependencies.P: $(ALL_SPECS) makedeps.sh $(SDK_BASE_IMAGE)
./setup.sh $(SDK_BASE_IMAGE)
./build.sh ./makedeps.sh $(ALL_SPECS) > rpm-dependencies.P
./clear_root.sh
gnome-sdk.tar.gz gnome-sdk-rpmdb.tar.gz: $(NOARCH)/gnome-sdk-0.1-1.sdk.noarch.rpm
./setup.sh $(SDK_BASE_IMAGE)
./build.sh smart install -y $(NOARCH)/gnome-sdk-0.1-1.sdk.noarch.rpm
./build.sh ./post.sh
rm -rf gnome-sdk.tar.gz gnome-sdk-rpmdb.tar.gz
tar --transform 's,^build/root/usr,files,S' -czf gnome-sdk.tar.gz build/root/usr --owner=root
tar --transform 's,^build/var,files,S' -czf gnome-sdk-rpmdb.tar.gz build/var/lib/rpm --owner=root
./clear_root.sh
gnome-debug.tar.gz gnome-debug-src.tar.gz: $(NOARCH)/gnome-debug-0.1-1.sdk.noarch.rpm
./setup.sh $(SDK_BASE_IMAGE)
./build.sh smart install -y $(NOARCH)/gnome-debug-0.1-1.sdk.noarch.rpm
rm -rf gnome-debug.tar.gz gnome-debug-src.tar.gz
tar --transform 's,^build/root/usr/lib/debug,files,S' -czf gnome-debug.tar.gz build/root/usr/lib/debug --owner=root
tar --transform 's,^build/root/usr/src/debug,files,S' -czf gnome-debug-src.tar.gz build/root/usr/src/debug --owner=root
./clear_root.sh
freedesktop-sdk.tar.gz freedesktop-sdk-rpmdb.tar.gz: $(NOARCH)/freedesktop-sdk-0.1-1.sdk.noarch.rpm
./setup.sh $(SDK_BASE_IMAGE)
./build.sh smart install -y $(NOARCH)/freedesktop-sdk-0.1-1.sdk.noarch.rpm
./build.sh ./post.sh
rm -rf freedesktop-sdk.tar.gz freedesktop-sdk-rpmdb.tar.gz
tar --transform 's,^build/root/usr,files,S' -czf freedesktop-sdk.tar.gz build/root/usr --owner=root
tar --transform 's,^build/var,files,S' -czf freedesktop-sdk-rpmdb.tar.gz build/var/lib/rpm --owner=root
./clear_root.sh
freedesktop-debug.tar.gz freedesktop-debug-src.tar.gz: $(NOARCH)/freedesktop-debug-0.1-1.sdk.noarch.rpm
./setup.sh $(SDK_BASE_IMAGE)
./build.sh smart install -y $(NOARCH)/freedesktop-debug-0.1-1.sdk.noarch.rpm
rm -rf freedesktop-debug.tar.gz freedesktop-debug-src.tar.gz
tar --transform 's,^build/root/usr/lib/debug,files,S' -czf freedesktop-debug.tar.gz build/root/usr/lib/debug --owner=root
tar --transform 's,^build/root/usr/src/debug,files,S' -czf freedesktop-debug-src.tar.gz build/root/usr/src/debug --owner=root
./clear_root.sh
freedesktop-platform-base: $(NOARCH)/freedesktop-platform-base-0.1-1.sdk.noarch.rpm
$(NOARCH)/freedesktop-platform-base-0.1-1.sdk.noarch.rpm: $(SPECS)/freedesktop-platform-base.spec setup.sh build.sh $(PLATFORM_BASE_IMAGE) $(SDK_BASE_IMAGE)
-echo building freedesktop-platform-base.spec
rm -rf packages/freedesktop-platform
mkdir -p packages/freedesktop-platform
tar -C packages/freedesktop-platform -xzf $(PLATFORM_BASE_IMAGE)
./setup.sh $(SDK_BASE_IMAGE)
./build.sh rpmbuild -ba $(SPECS)/freedesktop-platform-base.spec
./clear_root.sh
freedesktop-sdk-base: $(NOARCH)/freedesktop-sdk-base-0.1-1.sdk.noarch.rpm
freedesktop-platform-packages: $(NOARCH)/freedesktop-platform-0.1-1.sdk.noarch.rpm $(NOARCH)/freedesktop-platform-base-0.1-1.sdk.noarch.rpm setup.sh build.sh
./setup.sh $(SDK_BASE_IMAGE)
rm -f freedesktop-platform-packages
./build.sh ./list_packages.sh freedesktop-platform > freedesktop-platform-packages
./clear_root.sh
freedesktop-platform.tar.gz freedesktop-platform-rpmdb.tar.gz: freedesktop-platform-packages $(NOARCH)/freedesktop-platform-0.1-1.sdk.noarch.rpm setup.sh build.sh $(PLATFORM_BASE_IMAGE)
-echo building freedesktop-platform
./setup_root.sh $(PLATFORM_BASE_IMAGE)
./build.sh rpm -Uvh `cat freedesktop-platform-packages`
./build.sh ./post.sh
tar --transform 's,^build/root/usr,files,S' -czf freedesktop-platform.tar.gz build/root/usr --owner=root
tar --transform 's,^build/var,files,S' -czf freedesktop-platform-rpmdb.tar.gz build/var/lib/rpm --owner=root
./clear_root.sh
gnome-platform-packages: $(NOARCH)/gnome-platform-0.1-1.sdk.noarch.rpm $(NOARCH)/freedesktop-platform-base-0.1-1.sdk.noarch.rpm setup.sh build.sh
./setup.sh $(SDK_BASE_IMAGE)
rm -f gnome-platform-packages
./build.sh ./list_packages.sh gnome-platform > gnome-platform-packages
./clear_root.sh
gnome-platform.tar.gz gnome-platform-rpmdb.tar.gz: gnome-platform-packages $(NOARCH)/gnome-platform-0.1-1.sdk.noarch.rpm setup.sh build.sh $(PLATFORM_BASE_IMAGE)
-echo building gnome-platform
./setup_root.sh $(PLATFORM_BASE_IMAGE)
./build.sh rpm -Uvh `cat gnome-platform-packages`
./build.sh ./post.sh
tar --transform 's,^build/root/usr,files,S' -czf gnome-platform.tar.gz build/root/usr --owner=root
tar --transform 's,^build/var,files,S' -czf gnome-platform-rpmdb.tar.gz build/var/lib/rpm --owner=root
./clear_root.sh
repo:
ostree init --mode=archive-z2 --repo=repo
commit-freedesktop-platform: repo freedesktop-platform.tar.gz freedesktop-platform-rpmdb.tar.gz
./commit.sh repo freedesktop-platform.tar.gz freedesktop-platform-rpmdb.tar.gz metadata.freedesktop-platform org.freedesktop.Platform$(EXTRA_NAME) $(ARCH) $(FREEDESKTOP_VERSION)
commit-freedesktop-sdk: repo freedesktop-sdk.tar.gz freedesktop-sdk-rpmdb.tar.gz
./commit.sh repo freedesktop-sdk.tar.gz freedesktop-sdk-rpmdb.tar.gz metadata.freedesktop-sdk org.freedesktop.Sdk$(EXTRA_NAME) $(ARCH) $(FREEDESKTOP_VERSION)
commit-freedesktop-debug: repo freedesktop-debug.tar.gz freedesktop-debug-src.tar.gz
./simple-commit.sh repo freedesktop-debug.tar.gz org.freedesktop.Debug$(EXTRA_NAME) $(ARCH) $(FREEDESKTOP_VERSION)
./simple-commit.sh repo freedesktop-debug-src.tar.gz org.freedesktop.DebugSrc$(EXTRA_NAME) $(ARCH) $(FREEDESKTOP_VERSION)
commit-platform: repo gnome-platform.tar.gz gnome-platform-rpmdb.tar.gz
./commit.sh repo gnome-platform.tar.gz gnome-platform-rpmdb.tar.gz metadata.platform org.gnome.Platform$(EXTRA_NAME) $(ARCH) $(GNOME_VERSION)
commit-sdk: repo gnome-sdk.tar.gz gnome-sdk-rpmdb.tar.gz
./commit.sh repo gnome-sdk.tar.gz gnome-sdk-rpmdb.tar.gz metadata.sdk org.gnome.Sdk$(EXTRA_NAME) $(ARCH) $(GNOME_VERSION)
commit-debug: repo gnome-debug.tar.gz gnome-debug-src.tar.gz
./simple-commit.sh repo gnome-debug.tar.gz org.gnome.Debug$(EXTRA_NAME) $(ARCH) $(GNOME_VERSION)
./simple-commit.sh repo gnome-debug-src.tar.gz org.gnome.DebugSrc$(EXTRA_NAME) $(ARCH) $(GNOME_VERSION)
commit-gnome: commit-sdk commit-platform commit-debug
echo done
BASE_SPECS=$(wildcard freedesktop-sdk-images/specs/*.spec)
BASE_SPECS_BASENAME=$(notdir $(BASE_SPECS))
GNOME_SPECS=$(wildcard specs/*.spec)
GNOME_SPECS_BASENAME=$(notdir $(GNOME_SPECS))
commit-freedesktop: commit-freedesktop-sdk commit-freedesktop-platform commit-freedesktop-debug
echo done
# ALL_SPECS is all of GNOME_SPECS and the ones from BASE_SPECS that are not overridden by GNOME_SPECS
ALL_SPECS = $(addprefix freedesktop-sdk-images/specs/,$(filter-out $(GNOME_SPECS_BASENAME),$(BASE_SPECS_BASENAME))) $(GNOME_SPECS)
commit: commit-gnome commit-freedesktop
echo done
all: $(NAME)-$(VERSION)-platform.tar.gz $(NAME)-$(VERSION)-sdk.tar.gz
untag:
./untag.sh repo org.freedesktop.Platform $(ARCH) $(FREEDESKTOP_VERSION) $(EXTRA_NAME)
./untag.sh repo org.freedesktop.Sdk $(ARCH) $(FREEDESKTOP_VERSION) $(EXTRA_NAME)
./untag.sh repo org.freedesktop.Debug $(ARCH) $(FREEDESKTOP_VERSION) $(EXTRA_NAME)
./untag.sh repo org.freedesktop.DebugSrc $(ARCH) $(FREEDESKTOP_VERSION) $(EXTRA_NAME)
./untag.sh repo org.gnome.Platform $(ARCH) $(GNOME_VERSION) $(EXTRA_NAME)
./untag.sh repo org.gnome.Sdk $(ARCH) $(GNOME_VERSION) $(EXTRA_NAME)
./untag.sh repo org.gnome.Debug $(ARCH) $(GNOME_VERSION) $(EXTRA_NAME)
./untag.sh repo org.gnome.DebugSrc $(ARCH) $(GNOME_VERSION) $(EXTRA_NAME)
debug: $(NAME)-$(VERSION)-debug.tar.gz
include freedesktop-sdk-images/Makefile.inc
-include rpm-dependencies.P
freedesktop-sdk-images/bin
\ No newline at end of file
#!/bin/sh
BUILD=`pwd`/build
CHROOT=$BUILD/chroot
ROOT=$BUILD/root
VAR=$BUILD/var
SRC=`pwd`
XDG_APP_HELPER=`which xdg-app-helper 2> /dev/null`
LINUX_USER_CHROOT=`which linux-user-chroot 2> /dev/null`
declare -x LC_ALL=en_US.utf8
declare -x HOME=/app/packages
unset CFLAGS
unset CXXFLAGS
unset LDFLAGS
unset FFLAGS
unset ACLOCAL_FLAGS
unset ACLOCAL_PATH
unset CPLUS_INCLUDE_PATH
unset C_INCLUDE_PATH
unset GI_TYPELIB_PATH
unset INSTALL
unset LDFLAGS
unset LD_LIBRARY_PATH
unset PERL5LIB
unset PKG_CONFIG_PATH
unset PYTHONPATH
unset XDG_CONFIG_DIRS
unset XDG_DATA_DIRS
declare -x PATH="/usr/bin:/app/packages/bin"
if test -d packages/.ccache; then
declare -x PATH="/app/packages/bin/ccache:$PATH"
fi
echo "builduser:x:`id -u`:`id -u`:Build user:/app/packages:/sbin/nologin" >> $ROOT/usr/etc/passwd
echo "builduser:x:`id -g`:" >> $ROOT/usr/etc/group
rc=1
if test "x${XDG_APP_HELPER}" != "x"; then
$XDG_APP_HELPER -w -W -E -a $SRC -v $VAR $ROOT/usr env PATH="$PATH" /app/cd.sh "$@"
rc=$?;
elif test "x${LINUX_USER_CHROOT}" != "x"; then
$LINUX_USER_CHROOT --unshare-ipc --unshare-pid --unshare-net --mount-bind /dev /dev --mount-proc /proc --mount-bind $ROOT/usr /usr --mount-bind $VAR /var --mount-bind $SRC /app --chdir /app $CHROOT "$@"
rc=$?;
else
echo "No containment helper found"
fi
cp -a $BUILD/passwd.orig $ROOT/usr/etc/passwd
cp -a $BUILD/group.orig $ROOT/usr/etc/group
exit $rc
freedesktop-sdk-images/buildhome/
\ No newline at end of file
#!/bin/sh
cd /app
exec "$@"
#!/bin/sh
ROOT=`pwd`/build/root
VAR=`pwd`/build/var
rm -rf $ROOT
rm -rf $VAR
#!/bin/sh
REPO=$1
TAR=$2
TAR_VAR=$3
METADATA=$4
NAME=$5
ARCH=$6
VERSION=$7
REV=`git rev-parse HEAD`
rm -rf build/commit
mkdir -p build/commit
rm -rf build/commit-locales
mkdir -p build/commit-locales
echo "extracting ${TAR}"
tar xf ${TAR} -C build/commit
cp ${METADATA} build/commit/metadata
COMMIT_ARGS="--repo=${REPO} --owner-uid=0 --owner-gid=0 --no-xattrs"
if [ "x${GPG_KEY}" != "x" ]; then
COMMIT_ARGS="${COMMIT_ARGS} --gpg-sign=${GPG_KEY}"
fi
if [ "x${GPG_HOME}" != "x" ]; then
COMMIT_ARGS="${COMMIT_ARGS} --gpg-homedir=${GPG_HOME}"
fi
echo "extracting locales"
for F in build/commit/files/share/locale/*; do
BASENAME=`basename $F`
LOCALE=`basename $F | sed s/[@_].*//`
if [ ${BASENAME} != "en_US" ]; then
mkdir -p build/commit-locales/$LOCALE/files/share
mkdir -p build/commit/files/share/runtime/locale/$LOCALE/share/$BASENAME
mv $F build/commit-locales/$LOCALE/files/share
ln -s ../runtime/locale/$LOCALE/share/$BASENAME $F
fi
done
for F in build/commit/files/lib/locale/*; do
BASENAME=`basename $F`
LOCALE=`basename $F | sed s/[@_].*//`
if [ ${BASENAME} != "en_US" ]; then
mkdir -p build/commit-locales/$LOCALE/files/lib
mkdir -p build/commit/files/share/runtime/locale/$LOCALE/lib/$BASENAME
mv $F build/commit-locales/$LOCALE/files/lib
ln -s ../../share/runtime/locale/$LOCALE/lib/$BASENAME $F
fi
done
echo "commiting runtime/${NAME}/${ARCH}/${VERSION}"
ostree commit ${COMMIT_ARGS} --branch=runtime/${NAME}/${ARCH}/${VERSION} -s "build of ${REV}" build/commit
for F in build/commit-locales/*; do
LOCALE=`basename $F`
echo "commiting runtime/${NAME}.Locale.$LOCALE/${ARCH}/${VERSION}"
ostree commit ${COMMIT_ARGS} --branch=runtime/${NAME}.Locale.$LOCALE/${ARCH}/${VERSION} -s "build of ${REV}" $F
done
rm -rf build/commit
mkdir -p build/commit
echo "extracting ${TAR_VAR}"
tar xf ${TAR_VAR} -C build/commit
echo "commiting runtime/${NAME}.Var/${ARCH}/${VERSION}"
ostree commit ${COMMIT_ARGS} --branch=runtime/${NAME}.Var/${ARCH}/${VERSION} -s "build of ${REV}" build/commit
if [ "x${DELTAS}" != "x" ]; then
echo "commiting generating deltas"
ostree static-delta generate --repo=${REPO} --min-fallback-size 1 --empty runtime/${NAME}/x86_64/$VERSION
ostree static-delta generate --repo=${REPO} --min-fallback-size 1 --empty runtime/${NAME}.Var/x86_64/$VERSION
fi
echo "commiting summary"
ostree summary -u --repo=${REPO}
rm -rf build/commit build/commit-locales
echo "syncing"
sync
#!/bin/sh
USR=$1
export LC_ALL=C
for i in $USR/bin/*; do
j=`basename $i`
echo -n "/usr/bin/$j /bin/$j /sbin/$j "
done
echo $USR/lib/* | /usr/lib/rpm/find-provides | tr '\n' ' '
if [ -d $USR/lib/perl5 ]; then
find $USR/lib/perl5/ -type f | /usr/lib/rpm/perl.prov | tr '\n' ' '
fi
if [ -d $USR/lib/pkgconfig/ ]; then
find $USR/lib/pkgconfig/ -type f -or -type l | /usr/lib/rpm/pkgconfigdeps.sh -P | tr '\n' ' '
fi
#!/bin/sh
for i in $@; do
PROG=`rpm -qp --qf '%{POSTINPROG}' $i`
if [ $PROG == '(none)' -o $PROG == '/sbin/ldconfig' ]; then
true;
elif [ $PROG == '/bin/sh' ]; then
echo "#from `basename $i`";
rpm -qp --qf '%{POSTIN}\n' $i
else
echo $PROG not supported
exit 1
fi
done
for i in $@; do
PROG=`rpm -qp --qf '%{POSTTRANSPROG}' $i`
if [ $PROG == '(none)' -o $PROG == '/sbin/ldconfig' ]; then
true;
elif [ $PROG == '/bin/sh' ]; then
echo "#from `basename $i`";
rpm -qp --qf '%{POSTTRANS}\n' $i
else
echo $PROG not supported
exit 1
fi
done
echo "#always"
echo /sbin/ldconfig
#!/bin/sh
smart install --urls $@ 2>&1 >/dev/null | sed "s#file:///#/#"
SPECS="$@"
export LC_ALL=C
rm -rf /tmp/dep
mkdir -p /tmp/dep
# Generate mapping package name => package name + full version + arch
for spec in $SPECS; do
export spec
bash -c "`rpmspec -q $spec --qf 'echo packages/RPMS/%{ARCH}/%{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}.rpm > /tmp/dep/%{NAME}.pkg;'`";
done
ALL_SOURCES=
for spec in $SPECS; do
SOURCES=`rpmspec -P $spec | grep "^Source.*:" | awk '{ print $2 }' /dev/stdin | grep 'http\|ftp'`
SPEC_SOURCES=
for i in $SOURCES; do
echo packages/SOURCES/`basename $i`:;
echo -e "\twget -P packages/SOURCES/ $i\n";
SPEC_SOURCES="$SPEC_SOURCES packages/SOURCES/`basename $i`";
done
ALL_SOURCES="$ALL_SOURCES $SPEC_SOURCES";
PACKAGES=`rpmspec -q ${spec} --qf 'packages/RPMS/%{ARCH}/%{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}.rpm '`
BUILDREQS=`rpmspec -q ${spec} --buildrequires`
BRS=""
for br in $BUILDREQS; do
BRS="$BRS `cat /tmp/dep/${br}.pkg`"
done
echo "$PACKAGES: $spec $BRS setup.sh build.sh \$(SDK_BASE_IMAGE) $SPEC_SOURCES"
echo " -echo Building $spec"
echo " ./setup.sh \$(SDK_BASE_IMAGE)"
if [ "x${BRS}" != "x" ]; then
echo " ./build.sh smart install -y $BRS"
fi
echo " ./build.sh rpmbuild --clean -bb $spec"
echo " ./clear_root.sh"
echo
echo "`basename ${spec} .spec`: $PACKAGES"
echo
echo "only-`basename ${spec} .spec`: "
echo " -echo Building only $spec"
echo " ./setup.sh \$(SDK_BASE_IMAGE)"
if [ "x${BRS}" != "x" ]; then
echo " ./build.sh smart install -y $BRS"
fi
echo " ./build.sh rpmbuild --clean -bb $spec"
echo " ./clear_root.sh"
echo
done
echo -e "sources: $ALL_SOURCES"
[Runtime]
name=org.freedesktop.Platform/x86_64/1.0
runtime=org.freedesktop.Platform/x86_64/1.0
sdk=org.freedesktop.Sdk/x86_64/1.0
[Extension org.freedesktop.Platform.GL]
directory=lib/GL
[Extension org.freedesktop.Platform.Timezones]
directory=share/zoneinfo
[Extension org.freedesktop.Platform.Locale]
directory=share/runtime/locale
subdirectories=true
[Environment]
GI_TYPELIB_PATH=/app/lib/girepository-1.0
[Runtime]
name=org.freedesktop.Sdk/x86_64/1.0
runtime=org.freedesktop.Platform/x86_64/1.0
sdk=org.freedesktop.Sdk/x86_64/1.0
[Extension org.freedesktop.Sdk.GL]
directory=lib/GL
[Extension org.freedesktop.Platform.Timezones]
directory=share/zoneinfo
[Extension org.freedesktop.Sdk.Locale]
directory=share/runtime/locale
subdirectories=true
[Extension org.freedesktop.Debug]
directory=lib/debug
[Extension org.freedesktop.DebugSrc]
directory=src/debug
[Environment]
GI_TYPELIB_PATH=/app/lib/girepository-1.0
%_topdir /app/packages
%_srcrpmdir /app/packages/SRPMS
%_buildrootdir %{_topdir}/BUILDROOT
%_builddir %{_topdir}/BUILD_XXXXX
%dist .sdk
%_enable_debug_packages 1
%__os_install_post \
/usr/lib/rpm/brp-compress \
%{!?__debug_package:\
/usr/lib/rpm/brp-strip %{__strip} \
/usr/lib/rpm/brp-strip-comment-note %{__strip} %{__objdump} \
} \
/usr/lib/rpm/brp-strip-static-archive %{__strip} \
%{nil}
%install %{?_enable_debug_packages:%{?buildsubdir:%{debug_package}}}\
%%install\
%{nil}
%__spec_install_pre %{___build_pre}\
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf "${RPM_BUILD_ROOT}"\
mkdir -p `dirname "$RPM_BUILD_ROOT"`\
mkdir "$RPM_BUILD_ROOT"\
%{nil}
From 166978a09cf5edff4028e670b6074215a4c75eca Mon Sep 17 00:00:00 2001
From: Colin Walters <walters@verbum.org>
Date: Thu, 14 Feb 2013 10:19:34 -0500
Subject: [PATCH] CVE-2013-0292: dbus-gproxy: Verify sender of NameOwnerChanged signals to be o.f.DBus
Anyone can hop on the bus and emit a signal whose interface is
o.f.DBus; it's expected at the moments that clients (and notably DBus
libraries) check the sender.
This could previously be used to trick a system service using dbus-glib
into thinking a malicious signal came from a privileged source, by
claiming that ownership of the privileged source's well-known name had
changed from the privileged source's real unique name to the attacker's