Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to YAML #4

Closed
Arcterus opened this issue May 31, 2018 · 1 comment
Closed

Switch to YAML #4

Arcterus opened this issue May 31, 2018 · 1 comment

Comments

@Arcterus
Copy link

Arcterus commented May 31, 2018

We should switch from PKGBUILD-like shell scripts to a custom YAML format like so (this is for glibc):

env:
  name: glibc
  ver: 2.26
  patch: 0

package:
  name: $name
  version: $ver.$patch
  description: Glibc
  license:
    - GPL
    - LGPL

  source:
    - http://ftp.gnu.org/gnu/$name/$name-$ver.tar.gz

  build:
    - |
      echo "slibdir=/usr/lib" >> configparms
      echo "rtlddir=/usr/lib" >> configparms
      echo "sbindir=/usr/bin" >> configparms
      echo "rootsbindir=/usr/bin" >> configparms
    - $name-$ver/configure
          --prefix=/usr
          --libdir=/usr/lib
          --libexecdir=/usr/lib
          --enable-add-ons
          --enable-bind-now
          --disable-profile
          --enable-stackguard-randomization
          --enable-stack-protector=strong
          --enable-lock-elision
          --enable-multi-arch
          --disable-werror

      # build libraries with fortify disabled
    - echo "build-programs=no" >> configparms
    - make

      # re-enable fortify for programs
    - sed -i "/build-programs=/s#no#yes#" configparms

    - |
      echo "CC += -D_FORTIFY_SOURCE=2" >> configparms
      echo "CXX += -D_FORTIFY_SOURCE=2" >> configparms
    - make

  install:
      # mkdir -p install-root
      # make install_root=$(pwd)/install-root install
    - make install_root="$pkgdir" install
    - strip --strip-unneeded "$pkgdir"/usr/lib/{libdl.so.2,libm.so.6,librt.so.1}
@mssun
Copy link
Contributor

mssun commented Aug 19, 2018

The changes have been already merged into master. Thanks.

@mssun mssun closed this as completed Aug 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants