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

apt went "missing" #110346

Closed
OPNA2608 opened this issue Jan 21, 2021 · 4 comments · Fixed by #136483
Closed

apt went "missing" #110346

OPNA2608 opened this issue Jan 21, 2021 · 4 comments · Fixed by #136483

Comments

@OPNA2608
Copy link
Contributor

Describe the bug
Between bdce0b3 and 6c45ecf, apt somehow got reintroduced into the repository (pkgs/tools/package-management/apt) but without an entry in all-packages.nix.

  • It could be bumped to 2.1.18 - Out-of-date package report
  • It doesn't compile for the same reason for which it was originally removed from Nixpkgs and I don't know how to fix it - bug report
    [ 33%] Building CXX object apt-pkg/CMakeFiles/apt-pkg.dir/acquire-item.cc.o
    In file included from /nix/store/kg2s3k77ifsyd59ac08mjmmjjmsvgsvg-gcc-10.2.0/include/c++/10.2.0/ext/string_conversions.h:41,
                     from /nix/store/kg2s3k77ifsyd59ac08mjmmjjmsvgsvg-gcc-10.2.0/include/c++/10.2.0/bits/basic_string.h:6535,
                     from /nix/store/kg2s3k77ifsyd59ac08mjmmjjmsvgsvg-gcc-10.2.0/include/c++/10.2.0/string:55,
                     from /build/source/build/include/apt-pkg/hashes.h:18,
                     from /build/source/build/include/apt-pkg/acquire.h:68,
                     from /build/source/build/include/apt-pkg/acquire-item.h:22,
                     from /build/source/apt-pkg/acquire-item.cc:17:
    /nix/store/kg2s3k77ifsyd59ac08mjmmjjmsvgsvg-gcc-10.2.0/include/c++/10.2.0/cstdlib:75:15: fatal error: stdlib.h: No such file or directory
       75 | #include_next <stdlib.h>
          |               ^~~~~~~~~~
    compilation terminated.
    make[2]: *** [apt-pkg/CMakeFiles/apt-pkg.dir/build.make:82: apt-pkg/CMakeFiles/apt-pkg.dir/acquire-item.cc.o] Error 1
    
  • I need apt for another package to work properly (apt -> python-apt -> python-debian -> click: [WIP] Lomiri DE #108366) - packaging request?

To Reproduce

  1. Search for apt package -> not packaged
  2. Search in Nixpkgs repo -> but package code exists?
  3. Check commit/PR history -> Default gcc to gcc9 #68029 (staging) removed all apt code, apt: 1.4.6 -> 1.8.4 #69571 (master) bumped apt

Expected behavior
apt being either in all-packages.nix or missing from the repository completely. Preferably, a working apt derivation.

Screenshots

Additional context
#108366

Notify maintainers
@cstrahan, package maintainer for apt
@georgyo, last bump to package
@fpletz, originally removed the package

Metadata

  • system: "x86_64-linux"
  • host os: Linux 5.9.16, NixOS, 20.09.2642.88f00e7e12d (Nightingale)
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.3.10
  • channels(root): "nixos-20.09.2642.88f00e7e12d"
  • channels(bt1cn): "unstable-21.03pre259928.2f47650c2f2"
  • nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos

Maintainer information:

# a list of nixpkgs attributes affected by the problem
attribute: [ apt ]
# a list of nixos modules affected by the problem
module:
@iblech
Copy link
Contributor

iblech commented Jan 21, 2021

FWIW, I briefly looked into this: Switching to gcc9 hides the detailed error message, but compilation still fails.

@tobim
Copy link
Contributor

tobim commented Feb 16, 2021

I looked into this a little. #113180 fixes the build, but the binary that can be produced is far from functional. strace reveals that apt expects several other files relative to its install location to exist.

As the package is currently defunct and unreachable, I think it is best to remove it.

@stale
Copy link

stale bot commented Aug 17, 2021

I marked this as stale due to inactivity. → More info

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Aug 17, 2021
@OPNA2608
Copy link
Contributor Author

Bump, pkgs/tools/package-management/apt/default.nix still exists.

@stale stale bot removed the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Aug 18, 2021
@OPNA2608 OPNA2608 mentioned this issue Sep 2, 2021
12 tasks
@AndersonTorres AndersonTorres linked a pull request Sep 3, 2021 that will close this issue
12 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants