anchor.diff:        which
       ];
   
  +    # required to build apparmor-parser
  +    dontDisableStatic = true;
  +
       prePatch = prePatchCommon + ''
         substituteInPlace ./libraries/libapparmor/src/Makefile.am --replace "/usr/include/netinet/in.h" "${glibc}/include/netinet/in.h"
         substituteInPlace ./libraries/libapparmor/src/Makefile.in --replace "/usr/include/netinet/in.h" "${glibc}/include/netinet/in.h"
         '';
   
  -    buildPhase = ''
  -      cd ./libraries/libapparmor
  -      ./autogen.sh
  -      ./configure --prefix="$out" --with-python --with-perl
  -      make
  -      '';
  -
  -    installPhase = ''
  -      make install
  -    '';
  +    postPatch = "cd ./libraries/libapparmor";
  +    configureFlags = "--with-python --with-perl";
   
       meta = apparmor-meta "library";
     };
  
positive.code:       which
      ];
  
      buildPhase = ''
        cd ./changehat/pam_apparmor
        make USE_SYSTEM=1
      '';
  
      installPhase = ''
        make install DESTDIR="$out"
      '';
  
      meta = apparmor-meta "PAM service";
    };
  
negative.code:     ];
  
      prePatch = prePatchCommon;
      postPatch = "cd ./utils";
      makeFlags = ''LANGS='';
      installFlags = ''DESTDIR=$(out) BINDIR=$(out)/bin VIM_INSTALL_PATH=$(out)/share PYPREFIX='';
  
      meta = apparmor-meta "user-land utilities";
    };
  