Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
jami-project
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
172
Issues
172
List
Boards
Labels
Service Desk
Milestones
Iterations
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Analytics
Analytics
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
savoirfairelinux
jami-project
Commits
7a6c7d8d
Commit
7a6c7d8d
authored
Nov 28, 2016
by
Stefan Langenmaier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docker build : Gentoo
Change-Id: I63ef5ea9d28b1fc3cc34cc5ffda3a78ecfc41363
parent
e87b19de
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
133 additions
and
1 deletion
+133
-1
Makefile.packaging
Makefile.packaging
+2
-1
docker/Dockerfile_gentoo
docker/Dockerfile_gentoo
+18
-0
scripts/build-package-gentoo.sh
scripts/build-package-gentoo.sh
+38
-0
scripts/gentoo/portage/bashrc
scripts/gentoo/portage/bashrc
+5
-0
scripts/gentoo/portage/make.conf
scripts/gentoo/portage/make.conf
+17
-0
scripts/gentoo/portage/package.env/ring
scripts/gentoo/portage/package.env/ring
+18
-0
scripts/gentoo/portage/package.keywords/ring
scripts/gentoo/portage/package.keywords/ring
+16
-0
scripts/gentoo/portage/package.use/ring
scripts/gentoo/portage/package.use/ring
+13
-0
scripts/make-packaging-target.py
scripts/make-packaging-target.py
+6
-0
No files found.
Makefile.packaging
View file @
7a6c7d8d
...
...
@@ -88,7 +88,8 @@ package-all: package-debian_8 \
package-fedora_23
\
package-fedora_23_i386
\
package-fedora_24
\
package-fedora_24_i386
package-fedora_24_i386
\
package-gentoo
# Append the output of make-packaging-target to this Makefile
# see Makefile.packaging.distro_targets
...
...
docker/Dockerfile_gentoo
0 → 100644
View file @
7a6c7d8d
FROM gentoo/stage3-amd64:latest
RUN emerge-webrsync
ADD scripts/gentoo/portage/ /etc/portage/
# profile with gnome and systemd configuration
RUN eselect profile set 5 && \
emerge -uDN world
RUN eselect news read
RUN emerge layman && echo "source /var/lib/layman/make.conf" >> /etc/portage/make.conf
ADD scripts/build-package-gentoo.sh /opt/build-package-gentoo.sh
CMD /bin/bash /opt/build-package-gentoo.sh
scripts/build-package-gentoo.sh
0 → 100644
View file @
7a6c7d8d
#!/usr/bin/env bash
#
# Copyright (C) 2016 Savoir-faire Linux Inc.
#
# Author: Stefan Langenmaier <stefan.langenmaier@savoirfairelinux.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# This script is used in the packaging containers to build packages on
# rpm-based distros.
#
set
-e
layman
-f
-a
ring-overlay
cp
/opt/ring-project-ro/
${
RELEASE_TARBALL_FILENAME
}
/usr/portage/distfiles
cd
/var/lib/layman/ring-overlay
&&
bash scripts/bump-ring-ebuilds.sh /usr/portage/distfiles/
${
RELEASE_TARBALL_FILENAME
}
# problem with cirrcular deps
USE
=
"-qt5"
emerge
-1
dev-util/cmake
emerge gnome-ring kde-ring
touch
/opt/output/.packages-built
chown
-R
${
CURRENT_UID
}
:
${
CURRENT_UID
}
/opt/output
scripts/gentoo/portage/bashrc
0 → 100644
View file @
7a6c7d8d
updatePkgs() {
chown -R ${CURRENT_UID}:${CURRENT_UID} /opt/output
}
[[ $EBUILD_PHASE == "postinst" || $EBUILD_PHASE == "clean" ]] && updatePkgs
scripts/gentoo/portage/make.conf
0 → 100644
View file @
7a6c7d8d
# standard configuration to maximise portability
CFLAGS
=
"-O2 -pipe"
CXXFLAGS
=
"${CFLAGS}"
CHOST
=
"x86_64-pc-linux-gnu"
USE
=
"bindist -qt4 qt5"
CPU_FLAGS_X86
=
"mmx mmxext sse sse2"
PORTDIR
=
"/usr/portage"
DISTDIR
=
"${PORTDIR}/distfiles"
# modification to ouput built packages to a non standard folder
PKGDIR
=
"/opt/output/packages"
FEATURES
=
"$FEATURES buildpkg"
EMERGE_DEFAULT_OPTS
=
"${EMERGE_DEFAULT_OPTS} --usepkg"
# necessary for current layman version, should be removed with layman >2.0.0
# cannot be specified from the beginning because layman is not yet installed
#source /var/lib/layman/make.conf
scripts/gentoo/portage/package.env/ring
0 → 100644
View file @
7a6c7d8d
# docker build
# not necessary when docker runs with PTRACE capability
dev-libs/gobject-introspection docker-build
app-text/poppler docker-build
dev-libs/crypto++ docker-build
dev-libs/libical docker-build
dev-libs/appstream-glib docker-build
net-libs/webkit-gtk docker-build
net-libs/gnome-online-accounts docker-build
# build pkg
dev-libs/msgpack build-pkg
net-libs/libringclient build-pkg
net-libs/opendht build-pkg
net-voip/gnome-ring build-pkg
net-voip/kde-ring build-pkg
net-voip/ring-daemon build-pkg
scripts/gentoo/portage/package.keywords/ring
0 → 100644
View file @
7a6c7d8d
# overlay
net-voip/gnome-ring ~amd64
=net-voip/kde-ring-99999999 **
net-libs/libringclient ~amd64
net-voip/ring-daemon ~amd64
dev-libs/msgpack ~amd64
net-libs/opendht ~amd64
# deps
dev-libs/crypto++ ~amd64
dev-libs/jsoncpp ~amd64
net-libs/libupnp ~amd64
media-libs/opus ~amd64
media-libs/libvpx ~amd64
dev-libs/dbus-c++ ~amd64
scripts/gentoo/portage/package.use/ring
0 → 100644
View file @
7a6c7d8d
dev-libs/libpcre pcre16
sys-libs/zlib minizip
dev-libs/libdbusmenu-qt qt5
media-libs/phonon-gstreamer qt5
dev-qt/qtcore icu
media-libs/phonon-vlc qt5
sys-auth/polkit-qt qt5
media-libs/phonon qt5
# avoiding a cirrcular dep
media-libs/harfbuzz -graphite
dev-util/cmake -qt5
scripts/make-packaging-target.py
View file @
7a6c7d8d
...
...
@@ -181,6 +181,12 @@ def run_generate_all(parsed_args):
"debian_packaging_override"
:
""
,
"output_file"
:
".packages-built"
,
},
# Gentoo
{
"distribution"
:
"gentoo"
,
"debian_packaging_override"
:
""
,
"output_file"
:
".packages-built"
,
},
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment