Skip to content

Commit

Permalink
package.yml: Add new macros
Browse files Browse the repository at this point in the history
- Add `%configure_no_runstatedir`
- Add `%symlink_check`
- Resolves #522
  • Loading branch information
davidjharder committed May 4, 2024
1 parent ceca0e1 commit b1e3987
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions docs/packaging/package.yml.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,17 +145,19 @@ Macros are prefixed with `%`, and are substituted before your script is executed

### Actionable macros

| Macro | Description |
| ------------------ | --------------------------------------------------------------------------------------------------------------------------- |
| **%autogen** | Runs autogen with our `%CONFOPTS%` to create a configure script then proceeds to run `%configure`. |
| **%cmake** | Configures a cmake project with the distribution specific options, such as prefix and release type. |
| **%cmake_ninja** | Configures a cmake project with ninja so it can be used with `%ninja_build`, `%ninja_install` and `%ninja_check` macros. |
| **%configure** | Runs `./configure` with our `%CONFOPTS%` variable macro. |
| **%make** | Runs the `make` command with the job count specified in `eopkg.conf`. ([More info](advanced-config/eopkg-configuration.md)) |
| **%make_install** | Performs a `make install`, using the `DESTDIR` variant. Should work for the vast majority of packages. |
| **%patch** | Sane patch macro to run in batch mode and not contaminate source tree on failure. |
| **%apply_patches** | Applies all patches listed in the `series` file in `./files` folder. |
| **%reconfigure** | Updates build scripts such as `./configure` and proceeds to run `%configure`. |
| Macro | Description |
| ----------------------------- | --------------------------------------------------------------------------------------------------------------------------- |
| **%autogen** | Runs autogen with our `%CONFOPTS%` to create a configure script then proceeds to run `%configure`. |
| **%cmake** | Configures a cmake project with the distribution specific options, such as prefix and release type. |
| **%cmake_ninja** | Configures a cmake project with ninja so it can be used with `%ninja_build`, `%ninja_install` and `%ninja_check` macros. |
| **%configure** | Runs `./configure` with our `%CONFOPTS%` variable macro. |
| **%configure_no_runstatedir** | Use if `%configure` returns `configure: error: unrecognized option: '--runstatedir=/run'` |

Check warning on line 154 in docs/packaging/package.yml.md

View workflow job for this annotation

GitHub Actions / spellcheck

Unknown word (runstatedir)

Check warning on line 154 in docs/packaging/package.yml.md

View workflow job for this annotation

GitHub Actions / spellcheck

Unknown word (runstatedir)
| **%make** | Runs the `make` command with the job count specified in `eopkg.conf`. ([More info](advanced-config/eopkg-configuration.md)) |
| **%make_install** | Performs a `make install`, using the `DESTDIR` variant. Should work for the vast majority of packages. |
| **%patch** | Sane patch macro to run in batch mode and not contaminate source tree on failure. |
| **%apply_patches** | Applies all patches listed in the `series` file in `./files` folder. |
| **%reconfigure** | Updates build scripts such as `./configure` and proceeds to run `%configure`. |
| **%symlink_check** | Installed symlinks are checked; if a broken symlink is found the build will fail. Must run after install macros |

### Haskell actionable macros

Expand Down

0 comments on commit b1e3987

Please sign in to comment.