Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
5f26cc2
profile support first part
Alessandro-Barbieri May 28, 2017
5132298
removed redundant parent
Alessandro-Barbieri May 28, 2017
6ca7c77
added architectures to the prefix profiles
Alessandro-Barbieri May 28, 2017
6056c89
added linux-standalone prefix to profile
Alessandro-Barbieri May 28, 2017
97adc62
add profiles part 2 (x86 and amd64)
Alessandro-Barbieri May 29, 2017
65944c2
standalone profiles
Alessandro-Barbieri Jun 1, 2017
7f4658e
absolute paths instead of relative
Alessandro-Barbieri Jun 1, 2017
1263e25
corrected reference to the wrong folder
Alessandro-Barbieri Jun 1, 2017
adadd0f
profile part 3 + fixes
Alessandro-Barbieri Jun 2, 2017
5481b98
removed ::sage-on-gentoo from keywords
Alessandro-Barbieri Jun 2, 2017
9ec09c6
fixes
Alessandro-Barbieri Jun 2, 2017
59759db
updating to the last master changes
Alessandro-Barbieri Jun 2, 2017
f6b2339
profile support first part
Alessandro-Barbieri May 28, 2017
03ef3c2
removed redundant parent
Alessandro-Barbieri May 28, 2017
738bf82
added architectures to the prefix profiles
Alessandro-Barbieri May 28, 2017
8fbd705
added linux-standalone prefix to profile
Alessandro-Barbieri May 28, 2017
242f6f4
add profiles part 2 (x86 and amd64)
Alessandro-Barbieri May 29, 2017
738aac2
standalone profiles
Alessandro-Barbieri Jun 1, 2017
80eb5a3
absolute paths instead of relative
Alessandro-Barbieri Jun 1, 2017
1926456
corrected reference to the wrong folder
Alessandro-Barbieri Jun 1, 2017
6eaf684
profile part 3 + fixes
Alessandro-Barbieri Jun 2, 2017
0d0ca9e
removed ::sage-on-gentoo from keywords
Alessandro-Barbieri Jun 2, 2017
45eeab6
fixes
Alessandro-Barbieri Jun 2, 2017
35c53bb
Merge branch 'profile' of https://github.com/Alessandro-Barbieri/sage…
Alessandro-Barbieri Jun 2, 2017
b46d8d4
updated readme
Alessandro-Barbieri Jun 7, 2017
4adba11
updated devel package.keywords
Alessandro-Barbieri Jun 12, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
120 changes: 71 additions & 49 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -48,55 +48,77 @@ QUICK INSTALLATION GUIDE
might want to try skipping to step 5 first, and if it doesn't work,
coming back and doing steps 3 and 4.

3. *UNMASK EBUILDS*:
Before being able to install you may need to unmask the required ebuilds. If
you are using Gentoo/unstable or Funtoo (i.e. you have a line like
``ACCEPT_KEYWORDS=~arch`` in your /etc/portage/make.conf) you can at least
skip the ``keywords`` entries, but the ``unmask`` entries may still be
relevant. You can make use of the following files, which already contain all
required entries::

sage-on-gentoo/package.unmask/sage
sage-on-gentoo/package.keywords/sage
sage-on-gentoo/package.keywords/sage.prefix (for prefix users only)

To use these files permanently, place symbolic links to those files into your
``/etc/portage/package.unmask`` and ``/etc/portage/package.keywords/``
directories, respectively::

ln -s <path-to-layman>/sage-on-gentoo/package.unmask/sage \
/etc/portage/package.unmask/sage
ln -s <path-to-layman>/sage-on-gentoo/package.keywords/sage \
/etc/portage/package.keywords/sage

Otherwise, simply copy them into the respective directories for a one-time
fix.

The sage.prefix files contains keywords for ebuilds lacking any prefix
keywords.

4. *ADD USE-FLAGS FOR EBUILDS*:
Since Sage's ebuild requires its dependencies to be built with several USE-
flags we provide a standard package.use file as well::

ln -s <path-to-layman>/sage-on-gentoo/package.use/sage \
/etc/portage/package.use/sage

If you are using unstable or Funtoo you may also need the following file::

ln -s <path-to-layman>/sage-on-gentoo/package.use/sage-unstable \
/etc/portage/package.use/sage-unstable

<path-to-layman> is usually /var/lib/layman (this path used to be
/usr/local/portage/layman for older version of layman).

You should also consider linking in the same way the file ``99sage-doc-bin``.
This file sets sane default options for installing html documentation from a binary
tarball. Building the sage documentation from scratch is memory hungry and you
shouldn't consider doing it with less than 6GB of free memory on your system.
This is only available for stable realease of sage (sage-X.Y). User of the development
version of sage (sage-9999 ebuild) need to build their own documentation from scratch
if they need it.
3. *USE THE PROFILE*:
This overlay provides three types of profiles::

stable
stable/bindoc
devel

you can see them with the command::

eselect profile list

the fastest method for using the profile chosen is via::

eselect profile set <number>

where <number> is the number of the profile you want to use.

Alternatively, if you don't want to lose your profile, you can combine your
existing profile with one of the sage-on-gentoo overlay; you may want to
get a look to this link

https://wiki.gentoo.org/wiki/Profile_(Portage)#Combining_profiles

or follow our quickguide.
To get started you need a local overlay, for example in::

/usr/local/portage

next you have to put this line::

profile-formats = portage-2

in the file::

/usr/local/portage/metadata/layout.conf

then you have to create the path for your local profile, for example combining
hardened-amd64 with stable-bindoc-amd64::

mkdir -p /usr/local/portage/profiles/hardened/linux/amd64/sage-stable-bindoc/

once created, you put the lines corresponding to the path of the profiles (found
with eselect profile list)

sage-on-gentoo:default/linux/amd64/13.0/stable/bindoc
gentoo:hardened/linux/amd64

in::

/usr/local/portage/profiles/hardened/linux/amd64/sage-stable-bindoc/parent

remember that the order matters.
Lastly you have to add a line corresponding to the path you have created
following this format::

amd64 hardened/linux/amd64/sage-stable-bindoc stable

to the file::

/usr/local/portage/profiles/profiles.desc

remember to change "stable" into "dev" if you use the "devel" profile or into
"exp" if you use any of the prefix profiles and "amd64" to your architecture.

The new profile will show if you run::

eselect profile list

and now you can choose it with::

eselect profile set <number>

5. *INSTALL SAGE*:
Type::
Expand Down
2 changes: 2 additions & 0 deletions metadata/layout.conf
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,5 @@ thin-manifests = true
update-changelog = false

use-manifests = strict

profile-formats = portage-2
1 change: 0 additions & 1 deletion package.keywords/sage

This file was deleted.

188 changes: 0 additions & 188 deletions package.keywords/sage-7.5.1

This file was deleted.

1 change: 0 additions & 1 deletion package.keywords/sage-devel

This file was deleted.

4 changes: 4 additions & 0 deletions profiles/arch.list
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
amd64
x86
amd64-linux
x86-linux
2 changes: 2 additions & 0 deletions profiles/default/linux/amd64/13.0/devel/parent
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
..
sage-on-gentoo:releases/devel
2 changes: 2 additions & 0 deletions profiles/default/linux/amd64/13.0/parent
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
gentoo:default/linux/amd64/13.0
..
2 changes: 2 additions & 0 deletions profiles/default/linux/amd64/13.0/stable/bindoc/parent
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
..
sage-on-gentoo:features/bindoc
2 changes: 2 additions & 0 deletions profiles/default/linux/amd64/13.0/stable/parent
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
..
sage-on-gentoo:releases/stable
2 changes: 2 additions & 0 deletions profiles/default/linux/amd64/parent
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
..
sage-on-gentoo:arch/amd64
1 change: 1 addition & 0 deletions profiles/default/linux/parent
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
..
2 changes: 2 additions & 0 deletions profiles/default/linux/x86/13.0/devel/parent
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
..
sage-on-gentoo:releases/devel
2 changes: 2 additions & 0 deletions profiles/default/linux/x86/13.0/parent
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
gentoo:default/linux/x86/13.0
..
2 changes: 2 additions & 0 deletions profiles/default/linux/x86/13.0/stable/bindoc/parent
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
..
sage-on-gentoo:features/bindoc
2 changes: 2 additions & 0 deletions profiles/default/linux/x86/13.0/stable/parent
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
..
sage-on-gentoo:releases/stable
1 change: 1 addition & 0 deletions profiles/default/linux/x86/parent
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sage-on-gentoo:arch/x86
1 change: 1 addition & 0 deletions profiles/default/parent
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
..
1 change: 1 addition & 0 deletions profiles/eapi
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
5
1 change: 1 addition & 0 deletions profiles/features/bindoc/eapi
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
5
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions profiles/prefix/eapi
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
5
2 changes: 2 additions & 0 deletions profiles/prefix/linux-standalone/amd64/devel/parent
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
..
sage-on-gentoo:releases/devel
3 changes: 3 additions & 0 deletions profiles/prefix/linux-standalone/amd64/parent
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
gentoo:prefix/linux-standalone/amd64
..
sage-on-gentoo:arch/amd64
2 changes: 2 additions & 0 deletions profiles/prefix/linux-standalone/amd64/stable/bindoc/parent
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
..
sage-on-gentoo:features/bindoc
2 changes: 2 additions & 0 deletions profiles/prefix/linux-standalone/amd64/stable/parent
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
..
sage-on-gentoo:releases/stable
1 change: 1 addition & 0 deletions profiles/prefix/linux-standalone/parent
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
..
2 changes: 2 additions & 0 deletions profiles/prefix/linux-standalone/x86/devel/parent
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
..
sage-on-gentoo:releases/devel
3 changes: 3 additions & 0 deletions profiles/prefix/linux-standalone/x86/parent
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
gentoo:prefix/linux-standalone/x86
..
sage-on-gentoo:arch/x86
2 changes: 2 additions & 0 deletions profiles/prefix/linux-standalone/x86/stable/bindoc/parent
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
..
sage-on-gentoo:features/bindoc
2 changes: 2 additions & 0 deletions profiles/prefix/linux-standalone/x86/stable/parent
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
..
sage-on-gentoo:releases/stable
Loading