History log of /haikuporter/HaikuPorter/RecipeTypes.py
Revision Date Author Comments
# ff947a5b 25-Jul-2023 jurgenwigg <53076001+jurgenwigg@users.noreply.github.com>

[CLEANUP] Remove unused import statements (#264)


# 6d562fa2 14-Sep-2021 Augustin Cavalier <waddlesplash@gmail.com>

HaikuPorter: Remove old and obsolete maps from RecipeTypes.


# ddfc743e 06-Sep-2019 Alexander von Gluck IV <kallisti5@unixzen.com>

arch: Add arm64 aka aarch64 since our toolchain now supports it


# 2b588ee6 18-Feb-2019 Adrien Destugues <pulkomandy@gmail.com>

Fix copypaste error


# 871da2a2 17-Feb-2019 Adrien Destugues <pulkomandy@gmail.com>

Add sparc architecture.


# 48860df9 16-Jan-2019 Alexander von Gluck IV <kallisti5@unixzen.com>

architecture: Add riscv64 to fix bootstrap


# 2671a1d6 10-Dec-2017 Michael Lotz <mmlr@mlotz.ch>

RecipeTypes: Remove misleading self argument of YesNo.toBool().


# 9836ce60 10-Dec-2017 Michael Lotz <mmlr@mlotz.ch>

Cleanup: Whitespace and line length cleanup.


# dbea5d5c 20-Nov-2014 Oliver Tappe <zooey@hirschkaefer.de>

Refactoring: fix indents by space (as we use tabs).


# f2c282bc 20-Nov-2014 Oliver Tappe <zooey@hirschkaefer.de>

Refactoring: fix use of reserved keywords.

* Apparently, we were using reserved keywords as variable names, which
didn't seem to cause any problems, but could have done so in future
versions of Python.


# b1edf725 30-Oct-2014 Charlie Clark <charlie.clark@clark-consulting.eu>

Add some refactoring comments.


# fc1d58c6 29-Oct-2014 Charlie Clark <charlie.clark@clark-consulting.eu>

Revert to tab spacing for Pe's sake.


# a5f922e3 27-Oct-2014 Charlie Clark <charlie.clark@clark-consulting.eu>

Try again with whitespace.


# 558fbdb0 27-Oct-2014 Charlie Clark <charlie.clark@clark-consulting.eu>

Second attempt to fix whitespace. Options are different on OS X.


# 429ec015 27-Oct-2014 Charlie Clark <charlie.clark@clark-consulting.eu>

Convert tabs to spaces.


# 8fa09f6b 28-Sep-2013 François Revol <revol@free.fr>

Add ARM and M68K as valid platforms.


# c41138e1 29-Aug-2013 Oliver Tappe <zooey@hirschkaefer.de>

Add x86_64 as supported architecture.


# 1b7b2b75 25-Aug-2013 Oliver Tappe <zooey@hirschkaefer.de>

Drop architectures inherited from MachineArchitecture.


# cfb6096c 22-Aug-2013 Oliver Tappe <zooey@hirschkaefer.de>

Better protect against easy mistakes in recipes:

* explicitly check for dashes in names of provides and requires
declarations and complain if one is found


# 9e8f5c64 16-Aug-2013 Ingo Weinhold <ingo_weinhold@gmx.de>

Change machine triple for x86_gcc2 to i586-pc-haiku

The old one was more correct in principle, but we'd have to apply that
change in the autotools as well and make sure that all build systems
using them still work. Too much work for little benefit.


# e5266aef 19-Jul-2013 Ingo Weinhold <ingo_weinhold@gmx.de>

Clean up trailing whitespace


# bee83662 16-Jul-2013 Ingo Weinhold <ingo_weinhold@gmx.de>

MachineArchitecture: add findMatch()


# 2b8a58d5 13-Jul-2013 Ingo Weinhold <ingo_weinhold@gmx.de>

Start with a build platform abstraction

* Add '--cross-devel-package' option to specify the path to the cross
development package. Can be used for cross-compiling.
* Add module BuildPlatform which exports a buildPlatform variable, which
is initialized to an instance of BuildPlatformHaiku or
BuildPlatformUnix as appropriate.
* Move findDirectory() to BuildPlatformHaiku. BuildPlatformUnix has a
version with some hard-coded mappings.
* Add PackageInfo class. Very simple ATM. It only extracts the version
and the architecture from a package file.
* Rework Main._initGlobalShellVariables() somewhat: Extracting the Haiku
version from the build platform's system haiku package is obviously
not correct when cross-building. Also add support for non-Haiku build
platforms.
* Remove no longer needed MachineArchitecture.getBuildTripleFor().


# 95fd6a8b 17-Jun-2013 Oliver Tappe <zooey@hirschkaefer.de>

Add license header (MIT)

* additionally: uppercase copyright notices and separate them from the
top by a single line


# 46bc2f68 16-Jun-2013 Ingo Weinhold <ingo_weinhold@gmx.de>

RecipeAttributes: make 'extendable' tri-state

There are now two states for attributes that are extendable, which
specify what to do when the attribute has not been set for a package:
INHERITED to inherit the main package attribute's value and DEFAULT to
set the default value.


# 422c89a4 08-Jun-2013 Oliver Tappe <zooey@hirschkaefer.de>

Remove unused MachineArchitecture.getForTargetTriple()


# 3b14b08e 04-Jun-2013 Oliver Tappe <zooey@hirschkaefer.de>

Drop TODO as it's not feasible.


# 97248f4c 02-Jun-2013 Oliver Tappe <zooey@hirschkaefer.de>

Define explicit support for build, host and target architecture.

* added global configuration option HOST_ARCHITECTURE which defines the
architecture the resulting packages will be running on
* instead of TARGET_ARCHITECTURE, HOST_ARCHITECTURE has to be specified
for the cross-build repsository, TARGET_ARCHITECTURE needs only to be
set when it is different (e.g. when building gcc4 packages for a
x86_gcc2 Haiku)
* drop option '--target-arch', it doesn't make sense to switch the
target architecture on-the-fly, as the repository needs to be
repopulated after switching the architecture
* added boolean recipe type (YesNo)
* added global configuration option ALLOW_UNTESTED
* implement support for automatically accepting allowing untested ports
(via ALLOW_UNTESTED)


# 8cd214a9 30-May-2013 Oliver Tappe <zooey@hirschkaefer.de>

Rename i586-pc-haiku_legacy to i586-pc-haiku_gcc2

* makes it easier to grasp that this means gcc2


# ef701907 30-May-2013 Oliver Tappe <zooey@hirschkaefer.de>

Automatically use 'source' architecture for source packages

* this brings the support for source packages to the point where
pkgman complains about not being able to install them


# 74145f7d 29-May-2013 Oliver Tappe <zooey@hirschkaefer.de>

Introduce i586-pc-haiku_legacy

* use different gnu-triples for x86 and x86_gcc2 in order to be able
to keep them apart under all circumstances


# e15a4b1f 15-May-2013 Oliver Tappe <zooey@hirschkaefer.de>

Work on support for cross-building

* add detection of cross-build repository (via file .cross in root)
* add support for specifying target architecture via --target-arch
or via TARGET_ARCHITECTURE in haikuports.conf
* pull MachineArchitecture out of Architectures.


# 56a0cb53 26-Apr-2013 Ingo Weinhold <ingo_weinhold@gmx.de>

Add optional recipe phase PATCH

* ConfigParser does now determine which phases are defined in the
recipe.
* Port.patchSource():
- Call the recipe's PATCH(), if defined.
- If an error occurred applying a patch or calling PATCH() after at
least one patch has already been applied, clear the
checkout/unpack flags.


# 96f2bda4 22-Apr-2013 Oliver Tappe <zooey@hirschkaefer.de>

Drop executable flag from python modules


# 062828ae 17-Apr-2013 Oliver Tappe <zooey@hirschkaefer.de>

* pulled 'Package' out of 'Port' and adjusted everything to support creating multiple
packages from a single recipe file
Not many new features have been implemented yet, but building packages seems to work again.


# df75ebb7 15-Apr-2013 Oliver Tappe <zooey@hirschkaefer.de>

Refactoring: rip haikuporter apart into separate modules


# dbea5d5cc65dfb280dda5fe5057f2120f6fa50d9 20-Nov-2014 Oliver Tappe <zooey@hirschkaefer.de>

Refactoring: fix indents by space (as we use tabs).


# f2c282bc7e38769260bced0980765e02723e9d14 20-Nov-2014 Oliver Tappe <zooey@hirschkaefer.de>

Refactoring: fix use of reserved keywords.

* Apparently, we were using reserved keywords as variable names, which
didn't seem to cause any problems, but could have done so in future
versions of Python.


# b1edf72567405db1018b76aadafb31326d2ea4be 30-Oct-2014 Charlie Clark <charlie.clark@clark-consulting.eu>

Add some refactoring comments.


# fc1d58c6abe57c99c11ec02b27be40844fb53572 29-Oct-2014 Charlie Clark <charlie.clark@clark-consulting.eu>

Revert to tab spacing for Pe's sake.


# a5f922e3fded4460be5a3c717862e7e588772487 27-Oct-2014 Charlie Clark <charlie.clark@clark-consulting.eu>

Try again with whitespace.


# 558fbdb04ff6cb063a4afba7f15b6f1bd0343af2 27-Oct-2014 Charlie Clark <charlie.clark@clark-consulting.eu>

Second attempt to fix whitespace. Options are different on OS X.


# 429ec015d0c47da50e302537ed33bc3f80d035a8 27-Oct-2014 Charlie Clark <charlie.clark@clark-consulting.eu>

Convert tabs to spaces.


# 8fa09f6b927e61445770cfa485bd9f0be070fdf2 28-Sep-2013 François Revol <revol@free.fr>

Add ARM and M68K as valid platforms.


# c41138e1ca24d95b1f06c931b60ba0b77b809325 29-Aug-2013 Oliver Tappe <zooey@hirschkaefer.de>

Add x86_64 as supported architecture.


# 1b7b2b754930476ecb376934423de5b05dbffa40 25-Aug-2013 Oliver Tappe <zooey@hirschkaefer.de>

Drop architectures inherited from MachineArchitecture.


# cfb6096cb285cf1f5dafce1ca5666a48441da100 22-Aug-2013 Oliver Tappe <zooey@hirschkaefer.de>

Better protect against easy mistakes in recipes:

* explicitly check for dashes in names of provides and requires
declarations and complain if one is found


# 9e8f5c64647984f2735ef05ea56c8194e228066b 16-Aug-2013 Ingo Weinhold <ingo_weinhold@gmx.de>

Change machine triple for x86_gcc2 to i586-pc-haiku

The old one was more correct in principle, but we'd have to apply that
change in the autotools as well and make sure that all build systems
using them still work. Too much work for little benefit.


# e5266aef3a8b81f9e6d29e00fecd9da40aafa23b 19-Jul-2013 Ingo Weinhold <ingo_weinhold@gmx.de>

Clean up trailing whitespace


# bee8366223348b0ec5f898d94ab400ae5e55b5f3 16-Jul-2013 Ingo Weinhold <ingo_weinhold@gmx.de>

MachineArchitecture: add findMatch()


# 2b8a58d5a6e9e88c974dc5a9600d9c769b47d8fd 13-Jul-2013 Ingo Weinhold <ingo_weinhold@gmx.de>

Start with a build platform abstraction

* Add '--cross-devel-package' option to specify the path to the cross
development package. Can be used for cross-compiling.
* Add module BuildPlatform which exports a buildPlatform variable, which
is initialized to an instance of BuildPlatformHaiku or
BuildPlatformUnix as appropriate.
* Move findDirectory() to BuildPlatformHaiku. BuildPlatformUnix has a
version with some hard-coded mappings.
* Add PackageInfo class. Very simple ATM. It only extracts the version
and the architecture from a package file.
* Rework Main._initGlobalShellVariables() somewhat: Extracting the Haiku
version from the build platform's system haiku package is obviously
not correct when cross-building. Also add support for non-Haiku build
platforms.
* Remove no longer needed MachineArchitecture.getBuildTripleFor().


# 95fd6a8bd4d47186696c722b6717b2b073e799a1 17-Jun-2013 Oliver Tappe <zooey@hirschkaefer.de>

Add license header (MIT)

* additionally: uppercase copyright notices and separate them from the
top by a single line


# 46bc2f6821c0ba8423f53f6fc5293a6ed9efc595 16-Jun-2013 Ingo Weinhold <ingo_weinhold@gmx.de>

RecipeAttributes: make 'extendable' tri-state

There are now two states for attributes that are extendable, which
specify what to do when the attribute has not been set for a package:
INHERITED to inherit the main package attribute's value and DEFAULT to
set the default value.


# 422c89a40f35141cc2c4a285ff1be582c6d34add 08-Jun-2013 Oliver Tappe <zooey@hirschkaefer.de>

Remove unused MachineArchitecture.getForTargetTriple()


# 3b14b08e8709ca7a4076c79226fbb908991b28a6 04-Jun-2013 Oliver Tappe <zooey@hirschkaefer.de>

Drop TODO as it's not feasible.


# 97248f4cda626f11d40259042c02497c51b09834 02-Jun-2013 Oliver Tappe <zooey@hirschkaefer.de>

Define explicit support for build, host and target architecture.

* added global configuration option HOST_ARCHITECTURE which defines the
architecture the resulting packages will be running on
* instead of TARGET_ARCHITECTURE, HOST_ARCHITECTURE has to be specified
for the cross-build repsository, TARGET_ARCHITECTURE needs only to be
set when it is different (e.g. when building gcc4 packages for a
x86_gcc2 Haiku)
* drop option '--target-arch', it doesn't make sense to switch the
target architecture on-the-fly, as the repository needs to be
repopulated after switching the architecture
* added boolean recipe type (YesNo)
* added global configuration option ALLOW_UNTESTED
* implement support for automatically accepting allowing untested ports
(via ALLOW_UNTESTED)


# 8cd214a93e0f6134b27dfd0542ca4ab048285bd4 30-May-2013 Oliver Tappe <zooey@hirschkaefer.de>

Rename i586-pc-haiku_legacy to i586-pc-haiku_gcc2

* makes it easier to grasp that this means gcc2


# ef70190771713e07074a6d8cb89f38d2a95de8bf 30-May-2013 Oliver Tappe <zooey@hirschkaefer.de>

Automatically use 'source' architecture for source packages

* this brings the support for source packages to the point where
pkgman complains about not being able to install them


# 74145f7dc03ba4464696459ac16d1f1619e39e04 29-May-2013 Oliver Tappe <zooey@hirschkaefer.de>

Introduce i586-pc-haiku_legacy

* use different gnu-triples for x86 and x86_gcc2 in order to be able
to keep them apart under all circumstances


# e15a4b1f28bac93ba0309a2b05b47a3f3f3296e5 15-May-2013 Oliver Tappe <zooey@hirschkaefer.de>

Work on support for cross-building

* add detection of cross-build repository (via file .cross in root)
* add support for specifying target architecture via --target-arch
or via TARGET_ARCHITECTURE in haikuports.conf
* pull MachineArchitecture out of Architectures.


# 56a0cb53b034d8665648231f8d30e432f448de71 26-Apr-2013 Ingo Weinhold <ingo_weinhold@gmx.de>

Add optional recipe phase PATCH

* ConfigParser does now determine which phases are defined in the
recipe.
* Port.patchSource():
- Call the recipe's PATCH(), if defined.
- If an error occurred applying a patch or calling PATCH() after at
least one patch has already been applied, clear the
checkout/unpack flags.


# 96f2bda4f054d40469be1b48504e157f6b6c0718 22-Apr-2013 Oliver Tappe <zooey@hirschkaefer.de>

Drop executable flag from python modules


# 062828ae60e1d6b6a8b6a8d0f2be53294ac6f25b 17-Apr-2013 Oliver Tappe <zooey@hirschkaefer.de>

* pulled 'Package' out of 'Port' and adjusted everything to support creating multiple
packages from a single recipe file
Not many new features have been implemented yet, but building packages seems to work again.


# df75ebb7e7074e47c811442973afefed0360521d 15-Apr-2013 Oliver Tappe <zooey@hirschkaefer.de>

Refactoring: rip haikuporter apart into separate modules