anchor.diff:        ## techdoc.pdf still doesn't build ...
         substituteInPlace ./parser/Makefile --replace "manpages htmlmanpages pdf" "manpages htmlmanpages"
       '';
  -
  -    buildPhase = ''
  -      cd ./parser
  -      make LANGS="" USE_SYSTEM=1 INCLUDEDIR=${libapparmor}/include
  -    '';
  -
  -    installPhase = ''
  -      make install LANGS="" USE_SYSTEM=1 INCLUDEDIR=${libapparmor}/include DESTDIR="$out" DISTRO="unknown"
  -    '';
  +    postPatch = "cd ./parser";
  +    makeFlags = ''LANGS= USE_SYSTEM=1 INCLUDEDIR=${libapparmor}/include'';
  +    installFlags = ''DESTDIR=$(out) DISTRO=unknown'';
   
       meta = apparmor-meta "rule parser";
     };
  
positive.code:       which
      ];
  
      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
      '';
  
      meta = apparmor-meta "library";
    };
  
negative.code:     buildInputs = [
        autoconf
        automake
        autoreconfHook
        bison
        flex
        glibc
  