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

archivemount: Update to 1, change upstream #25953

Merged

Conversation

TheRealKeto
Copy link
Contributor

Description

archivemount has changed upstreams, per this Trac ticket

Tested on

macOS 12.6 21G115 arm64
Command Line Tools 14.2.0.0.1.1668646533

Verification

Have you

  • followed our Commit Message Guidelines?
  • squashed and minimized your commits?
  • checked that there aren't other open pull requests for the same change?
  • referenced existing tickets on Trac with full URL in commit message?
  • checked your Portfile with port lint --nitpick?
  • tried existing tests with sudo port test?
  • tried a full install with sudo port -d install?
  • tested basic functionality of all binary files?

@TheRealKeto
Copy link
Contributor Author

@barracuda156 Would you mind testing this on OSX 10.6 or 10.7? I think this builds correctly with macports-clang-17, but I'm still not sure if that's the right compiler or how to even restrict the port to use that compiler.

Also, I'm not sure if this would need MacPorts's legacysupport.use_mp_libcxx flag enabled, given that (even though it build on OSX 10.7 for me), it didn't exactly work (though I doubt these are limitations of the project and more like they're limitations with a VM); this is why the port is specifically darwin >= 16.

@barracuda156
Copy link
Contributor

barracuda156 commented Sep 27, 2024

@TheRealKeto I reckon you wanna see it building on x86_64? Apparently it works:

--->  Fetching archive for archivemount
--->  archivemount-0.9.1_1.darwin_12.x86_64.tbz2 doesn't seem to exist in /opt/local/var/macports/incoming/verified
--->  Attempting to fetch archivemount-0.9.1_1.darwin_12.x86_64.tbz2 from http://packages.macports.org/archivemount
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0   126    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
--->  Attempting to fetch archivemount-0.9.1_1.darwin_12.x86_64.tbz2 from http://kmq.jp.packages.macports.org/archivemount
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0   303    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
--->  Attempting to fetch archivemount-0.9.1_1.darwin_12.x86_64.tbz2 from http://pek.cn.packages.macports.org/macports/packages/archivemount
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0   153    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
--->  Fetching distfiles for archivemount
--->  archivemount-0.9.1.tar.gz does not exist in /opt/local/var/macports/distfiles/archivemount
--->  Attempting to fetch archivemount-0.9.1.tar.gz from http://distfiles.macports.org/archivemount
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  130k  100  130k    0     0  43487      0  0:00:03  0:00:03 --:--:-- 43503
--->  Verifying checksums for archivemount
--->  Checksumming archivemount-0.9.1.tar.gz
--->  Extracting archivemount
--->  Extracting archivemount-0.9.1.tar.gz
Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_fuse_archivemount/archivemount/work" && /usr/bin/gzip -dc '/opt/local/var/macports/distfiles/archivemount/archivemount-0.9.1.tar.gz' | /usr/bin/gnutar --no-same-owner -xf - 
--->  Applying patches to archivemount
--->  Applying patch-archivemount.diff
Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_fuse_archivemount/archivemount/work/archivemount-0.9.1" && /usr/bin/patch -p0 < '/opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/fuse/archivemount/files/patch-archivemount.diff'
patching file archivemount.c
Hunk #1 succeeded at 29 (offset 2 lines).
--->  Configuring archivemount
Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_fuse_archivemount/archivemount/work/archivemount-0.9.1" && ./configure --prefix=/opt/local 
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /opt/local/bin/gmkdir -p
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for gcc... /usr/bin/clang
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /usr/bin/clang accepts -g... yes
checking for /usr/bin/clang option to accept ISO C89... none needed
checking whether /usr/bin/clang understands -c and -o together... yes
checking whether make supports the include directive... yes (GNU style)
checking dependency style of /usr/bin/clang... gcc3
checking for pkg-config... /opt/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for FUSE... yes
checking for archive_read_new in -larchive... yes
checking how to run the C preprocessor... /usr/bin/clang -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking archive.h usability... yes
checking archive.h presence... yes
checking for archive.h... yes
checking archive_entry.h usability... yes
checking archive_entry.h presence... yes
checking for archive_entry.h... yes
checking regex.h usability... yes
checking regex.h presence... yes
checking for regex.h... yes
checking if you want debug support... no
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating archivemount.1
config.status: creating config.h
config.status: executing depfiles commands
--->  Building archivemount
Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_fuse_archivemount/archivemount/work/archivemount-0.9.1" && /usr/bin/make -j4 -w all 
make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_fuse_archivemount/archivemount/work/archivemount-0.9.1'
/usr/bin/make  all-am
make[1]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_fuse_archivemount/archivemount/work/archivemount-0.9.1'
/usr/bin/clang -DHAVE_CONFIG_H -I.   -I/opt/local/include -I/opt/local/include/osxfuse -I/opt/local/include/osxfuse/fuse -D_FILE_OFFSET_BITS=64 -D_DARWIN_USE_64_BIT_INODE -I/opt/local/include/osxfuse/fuse -D_FILE_OFFSET_BITS=64  -O2 -pipe -Os -I/opt/local/include/osxfuse -I/opt/local/include/osxfuse/fuse -arch x86_64 -MT archivemount-archivemount.o -MD -MP -MF .deps/archivemount-archivemount.Tpo -c -o archivemount-archivemount.o `test -f 'archivemount.c' || echo './'`archivemount.c
mv -f .deps/archivemount-archivemount.Tpo .deps/archivemount-archivemount.Po
/usr/bin/clang -D_FILE_OFFSET_BITS=64 -D_DARWIN_USE_64_BIT_INODE -I/opt/local/include/osxfuse/fuse -D_FILE_OFFSET_BITS=64  -O2 -pipe -Os -I/opt/local/include/osxfuse -I/opt/local/include/osxfuse/fuse -arch x86_64  -L/opt/local/lib -Wl,-headerpad_max_install_names -arch x86_64 -o archivemount archivemount-archivemount.o -larchive -L/opt/local/lib -losxfuse 
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_fuse_archivemount/archivemount/work/archivemount-0.9.1'
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_fuse_archivemount/archivemount/work/archivemount-0.9.1'
--->  Staging archivemount into destroot
. changed
	gid expected 0 found 80 modified
./usr missing (created)
. missing (directory not created: File exists)
./Applications missing (created)
./Developer missing (created)
./Library missing (created)
. changed
	gid expected 80 found 0 modified
./bin missing (created)
./etc missing (created)
./include missing (created)
./lib missing (created)
./lib/pkgconfig missing (created)
./libexec missing (created)
./sbin missing (created)
./share missing (created)
./share/doc missing (created)
./share/info missing (created)
./share/man missing (created)
./share/man/cat1 missing (created)
./share/man/cat2 missing (created)
./share/man/cat3 missing (created)
./share/man/cat4 missing (created)
./share/man/cat5 missing (created)
./share/man/cat6 missing (created)
./share/man/cat7 missing (created)
./share/man/cat8 missing (created)
./share/man/cat9 missing (created)
./share/man/catl missing (created)
./share/man/catn missing (created)
./share/man/man1 missing (created)
./share/man/man2 missing (created)
./share/man/man3 missing (created)
./share/man/man4 missing (created)
./share/man/man5 missing (created)
./share/man/man6 missing (created)
./share/man/man7 missing (created)
./share/man/man8 missing (created)
./share/man/man9 missing (created)
./share/man/manl missing (created)
./share/man/mann missing (created)
./share/nls missing (created)
./share/nls/C missing (created)
./share/nls/af_ZA.ISO8859-1 missing (created)
./share/nls/af_ZA.ISO8859-15 missing (created)
./share/nls/bg_BG.CP1251 missing (created)
./share/nls/cs_CZ.ISO8859-2 missing (created)
./share/nls/da_DK.ISO8859-1 missing (created)
./share/nls/da_DK.ISO8859-15 missing (created)
./share/nls/de_AT.ISO8859-1 missing (created)
./share/nls/de_AT.ISO8859-15 missing (created)
./share/nls/de_CH.ISO8859-1 missing (created)
./share/nls/de_CH.ISO8859-15 missing (created)
./share/nls/de_DE.ISO8859-1 missing (created)
./share/nls/de_DE.ISO8859-15 missing (created)
./share/nls/el_GR.ISO8859-7 missing (created)
./share/nls/en_AU.ISO8859-1 missing (created)
./share/nls/en_AU.ISO8859-15 missing (created)
./share/nls/en_AU.US-ASCII missing (created)
./share/nls/en_CA.ISO8859-1 missing (created)
./share/nls/en_CA.ISO8859-15 missing (created)
./share/nls/en_CA.US-ASCII missing (created)
./share/nls/en_GB.ISO8859-1 missing (created)
./share/nls/en_GB.ISO8859-15 missing (created)
./share/nls/en_GB.US-ASCII missing (created)
./share/nls/en_NZ.ISO8859-1 missing (created)
./share/nls/en_NZ.ISO8859-15 missing (created)
./share/nls/en_NZ.US-ASCII missing (created)
./share/nls/en_US.ISO8859-1 missing (created)
./share/nls/en_US.ISO8859-15 missing (created)
./share/nls/es_ES.ISO8859-1 missing (created)
./share/nls/es_ES.ISO8859-15 missing (created)
./share/nls/et_EE.ISO8859-15 missing (created)
./share/nls/fi_FI.ISO8859-1 missing (created)
./share/nls/fi_FI.ISO8859-15 missing (created)
./share/nls/fr_BE.ISO8859-1 missing (created)
./share/nls/fr_BE.ISO8859-15 missing (created)
./share/nls/fr_CA.ISO8859-1 missing (created)
./share/nls/fr_CA.ISO8859-15 missing (created)
./share/nls/fr_CH.ISO8859-1 missing (created)
./share/nls/fr_CH.ISO8859-15 missing (created)
./share/nls/fr_FR.ISO8859-1 missing (created)
./share/nls/fr_FR.ISO8859-15 missing (created)
./share/nls/hi_IN.ISCII-DEV missing (created)
./share/nls/hr_HR.ISO8859-2 missing (created)
./share/nls/hu_HU.ISO8859-2 missing (created)
./share/nls/is_IS.ISO8859-1 missing (created)
./share/nls/is_IS.ISO8859-15 missing (created)
./share/nls/it_CH.ISO8859-1 missing (created)
./share/nls/it_CH.ISO8859-15 missing (created)
./share/nls/it_IT.ISO8859-1 missing (created)
./share/nls/it_IT.ISO8859-15 missing (created)
./share/nls/ja_JP.SJIS missing (created)
./share/nls/ja_JP.eucJP missing (created)
./share/nls/ko_KR.eucKR missing (created)
./share/nls/la_LN.ISO8859-1 missing (created)
./share/nls/la_LN.ISO8859-15 missing (created)
./share/nls/la_LN.ISO8859-2 missing (created)
./share/nls/la_LN.ISO8859-4 missing (created)
./share/nls/la_LN.US-ASCII missing (created)
./share/nls/lt_LT.ISO8859-4 missing (created)
./share/nls/nl_BE.ISO8859-1 missing (created)
./share/nls/nl_BE.ISO8859-15 missing (created)
./share/nls/nl_NL.ISO8859-1 missing (created)
./share/nls/nl_NL.ISO8859-15 missing (created)
./share/nls/no_NO.ISO8859-1 missing (created)
./share/nls/no_NO.ISO8859-15 missing (created)
./share/nls/pl_PL.ISO8859-2 missing (created)
./share/nls/pt_BR.ISO8859-1 missing (created)
./share/nls/pt_PT.ISO8859-1 missing (created)
./share/nls/pt_PT.ISO8859-15 missing (created)
./share/nls/ro_RO.ISO8859-2 missing (created)
./share/nls/ru_RU.CP866 missing (created)
./share/nls/ru_RU.ISO8859-5 missing (created)
./share/nls/ru_RU.KOI8-R missing (created)
./share/nls/sk_SK.ISO8859-2 missing (created)
./share/nls/sl_SI.ISO8859-2 missing (created)
./share/nls/sv_SE.ISO8859-1 missing (created)
./share/nls/sv_SE.ISO8859-15 missing (created)
./share/nls/tr_TR.ISO8859-9 missing (created)
./share/nls/uk_UA.ISO8859-5 missing (created)
./share/nls/uk_UA.KOI8-U missing (created)
./share/nls/zh_CN.eucCN missing (created)
./share/nls/zh_TW.Big5 missing (created)
./share/skel missing (created)
./var missing (created)
./var/cache missing (created)
./var/db missing (created)
./var/log missing (created)
./var/run missing (created)
./var/spool missing (created)
./www missing (created)
Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_fuse_archivemount/archivemount/work/archivemount-0.9.1" && /usr/bin/make -w install DESTDIR=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_fuse_archivemount/archivemount/work/destroot 
make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_fuse_archivemount/archivemount/work/archivemount-0.9.1'
make[1]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_fuse_archivemount/archivemount/work/archivemount-0.9.1'
 /opt/local/bin/gmkdir -p '/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_fuse_archivemount/archivemount/work/destroot/opt/local/bin'
  /usr/bin/install -c archivemount '/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_fuse_archivemount/archivemount/work/destroot/opt/local/bin'
 /opt/local/bin/gmkdir -p '/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_fuse_archivemount/archivemount/work/destroot/opt/local/share/man/man1'
 /usr/bin/install -c -m 644 archivemount.1 '/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_fuse_archivemount/archivemount/work/destroot/opt/local/share/man/man1'
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_fuse_archivemount/archivemount/work/archivemount-0.9.1'
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_fuse_archivemount/archivemount/work/archivemount-0.9.1'
--->  Compressing man pages for archivemount
man1/archivemount.1:	 63.7% -- replaced with man1/archivemount.1.gz
man1/archivemount.1.gz: changing permissions from 00644 to 00444
--->  Installing archivemount @0.9.1_1
Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_fuse_archivemount/archivemount/work/destroot" && /usr/bin/tar -cvf - . | /usr/bin/bzip2 -c9 > /opt/local/var/macports/software/archivemount/archivemount-0.9.1_1.darwin_12.x86_64.tbz2 
a .
a ./+COMMENT
a ./+CONTENTS
a ./+DESC
a ./+PORTFILE
a ./+STATE
a ./opt
a ./opt/local
a ./opt/local/bin
a ./opt/local/share
a ./opt/local/share/man
a ./opt/local/share/man/man1
a ./opt/local/share/man/man1/archivemount.1.gz
a ./opt/local/bin/archivemount
--->  Activating archivemount @0.9.1_1
x ./
x ./+COMMENT
x ./+CONTENTS
x ./+DESC
x ./+PORTFILE
x ./+STATE
x ./opt/
x ./opt/local/
x ./opt/local/bin/
x ./opt/local/share/
x ./opt/local/share/man/
x ./opt/local/share/man/man1/
x ./opt/local/share/man/man1/archivemount.1.gz
x ./opt/local/bin/archivemount

UPD. Ah, wait, you need 10.6, lumme try.

@barracuda156
Copy link
Contributor

@TheRealKeto Fails on 10.6 x86_64:

--->  Extracting archivemount
--->  Extracting 1.tar.gz
Executing:  cd "/opt/local/var/macports/build/_opt_SLports_fuse_archivemount/archivemount/work" && /usr/bin/gzip -dc '/opt/local/var/macports/distfiles/archivemount/1.tar.gz' | /usr/bin/gnutar --no-same-owner -xf - 
xinstall: mkdir /opt/local/var/macports/build/_opt_SLports_fuse_archivemount/archivemount/work/compwrap
xinstall: mkdir /opt/local/var/macports/build/_opt_SLports_fuse_archivemount/archivemount/work/compwrap/cc
xinstall: mkdir /opt/local/var/macports/build/_opt_SLports_fuse_archivemount/archivemount/work/compwrap/cc/opt
xinstall: mkdir /opt/local/var/macports/build/_opt_SLports_fuse_archivemount/archivemount/work/compwrap/cc/opt/local
xinstall: mkdir /opt/local/var/macports/build/_opt_SLports_fuse_archivemount/archivemount/work/compwrap/cc/opt/local/bin
xinstall: mkdir /opt/local/var/macports/build/_opt_SLports_fuse_archivemount/archivemount/work/compwrap/objc
xinstall: mkdir /opt/local/var/macports/build/_opt_SLports_fuse_archivemount/archivemount/work/compwrap/objc/opt
xinstall: mkdir /opt/local/var/macports/build/_opt_SLports_fuse_archivemount/archivemount/work/compwrap/objc/opt/local
xinstall: mkdir /opt/local/var/macports/build/_opt_SLports_fuse_archivemount/archivemount/work/compwrap/objc/opt/local/bin
xinstall: mkdir /opt/local/var/macports/build/_opt_SLports_fuse_archivemount/archivemount/work/compwrap/cxx
xinstall: mkdir /opt/local/var/macports/build/_opt_SLports_fuse_archivemount/archivemount/work/compwrap/cxx/opt
xinstall: mkdir /opt/local/var/macports/build/_opt_SLports_fuse_archivemount/archivemount/work/compwrap/cxx/opt/local
xinstall: mkdir /opt/local/var/macports/build/_opt_SLports_fuse_archivemount/archivemount/work/compwrap/cxx/opt/local/bin
xinstall: mkdir /opt/local/var/macports/build/_opt_SLports_fuse_archivemount/archivemount/work/compwrap/objcxx
xinstall: mkdir /opt/local/var/macports/build/_opt_SLports_fuse_archivemount/archivemount/work/compwrap/objcxx/opt
xinstall: mkdir /opt/local/var/macports/build/_opt_SLports_fuse_archivemount/archivemount/work/compwrap/objcxx/opt/local
xinstall: mkdir /opt/local/var/macports/build/_opt_SLports_fuse_archivemount/archivemount/work/compwrap/objcxx/opt/local/bin
--->  Applying patches to archivemount
--->  Applying apple-standard-st_mtim-st_mtimespec.patch
Executing:  cd "/opt/local/var/macports/build/_opt_SLports_fuse_archivemount/archivemount/work/archivemount-ng-1" && /usr/bin/patch -p1 < '/opt/SLports/fuse/archivemount/files/apple-standard-st_mtim-st_mtimespec.patch'
patching file archivemount.cpp
--->  Configuring archivemount
--->  Building archivemount
Executing:  cd "/opt/local/var/macports/build/_opt_SLports_fuse_archivemount/archivemount/work/archivemount-ng-1" && /usr/bin/make -j6 -w all CC="/opt/local/var/macports/build/_opt_SLports_fuse_archivemount/archivemount/work/compwrap/cc/opt/local/bin/clang-mp-11" CXX="/opt/local/var/macports/build/_opt_SLports_fuse_archivemount/archivemount/work/compwrap/cxx/opt/local/bin/clang++-mp-11" OBJC="/opt/local/var/macports/build/_opt_SLports_fuse_archivemount/archivemount/work/compwrap/objc/opt/local/bin/clang-mp-11" OBJCXX="/opt/local/var/macports/build/_opt_SLports_fuse_archivemount/archivemount/work/compwrap/objcxx/opt/local/bin/clang++-mp-11" INSTALL="/usr/bin/install -c" 
fatal: not a git repository (or any of the parent directories): .git
make: Entering directory `/opt/local/var/macports/build/_opt_SLports_fuse_archivemount/archivemount/work/archivemount-ng-1'
/opt/local/var/macports/build/_opt_SLports_fuse_archivemount/archivemount/work/compwrap/cxx/opt/local/bin/clang++-mp-11 -Os -arch x86_64 -stdlib=libc++                  -D_FILE_OFFSET_BITS=64 -D_DARWIN_USE_64_BIT_INODE -I/opt/local/include/osxfuse/fuse -O3 -g -Wall -Wextra -fno-exceptions -fno-rtti -Wno-missing-field-initializers -std=c++2b   -I/opt/local/include -I/opt/local/include/osxfuse -I/opt/local/include/osxfuse/fuse -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DVERSION='""' -DNDEBUG -L/opt/local/lib -Wl,-headerpad_max_install_names -arch x86_64  archivemount.cpp  -L/opt/local/lib -larchive -L/opt/local/lib -losxfuse -o archivemount
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
usage: date [-jnu] [-d dst] [-r seconds] [-t west] [-v[+|-]val[ymwdHMS]] ... 
            [-f fmt date | [[[mm]dd]HH]MM[[cc]yy][.ss]] [+format]
fatal: not a git repository (or any of the parent directories): .git
awk '{ gsub(/ \^/, " \\(ha"); gsub(/ ~/, " \\(ti"); if($1 == ".Dd") $2 = ""; if($1 == ".Dt") print ".ds doc-volume-operating-system"; if($1 == ".Os") $2 = "archivemount-ng "; print}' < archivemount.1.in > archivemount.1
fatal: not a git repository (or any of the parent directories): .git
error: invalid value 'c++2b' in '-std=c++2b'
note: use 'c++98' or 'c++03' for 'ISO C++ 1998 with amendments' standard
note: use 'gnu++98' or 'gnu++03' for 'ISO C++ 1998 with amendments and GNU extensions' standard
note: use 'c++11' for 'ISO C++ 2011 with amendments' standard
note: use 'gnu++11' for 'ISO C++ 2011 with amendments and GNU extensions' standard
note: use 'c++14' for 'ISO C++ 2014 with amendments' standard
note: use 'gnu++14' for 'ISO C++ 2014 with amendments and GNU extensions' standard
note: use 'c++17' for 'ISO C++ 2017 with amendments' standard
note: use 'gnu++17' for 'ISO C++ 2017 with amendments and GNU extensions' standard
note: use 'c++20' for 'ISO C++ 2020 DIS' standard
note: use 'gnu++20' for 'ISO C++ 2020 DIS with GNU extensions' standard
make: *** [archivemount] Error 1
make: Leaving directory `/opt/local/var/macports/build/_opt_SLports_fuse_archivemount/archivemount/work/archivemount-ng-1'
Command failed:  cd "/opt/local/var/macports/build/_opt_SLports_fuse_archivemount/archivemount/work/archivemount-ng-1" && /usr/bin/make -j6 -w all CC="/opt/local/var/macports/build/_opt_SLports_fuse_archivemount/archivemount/work/compwrap/cc/opt/local/bin/clang-mp-11" CXX="/opt/local/var/macports/build/_opt_SLports_fuse_archivemount/archivemount/work/compwrap/cxx/opt/local/bin/clang++-mp-11" OBJC="/opt/local/var/macports/build/_opt_SLports_fuse_archivemount/archivemount/work/compwrap/objc/opt/local/bin/clang-mp-11" OBJCXX="/opt/local/var/macports/build/_opt_SLports_fuse_archivemount/archivemount/work/compwrap/objcxx/opt/local/bin/clang++-mp-11" INSTALL="/usr/bin/install -c" 
Exit code: 2
Error: Failed to build archivemount: command execution failed
Error: See /opt/local/var/macports/logs/_opt_SLports_fuse_archivemount/archivemount/main.log for details.

@barracuda156
Copy link
Contributor

Once you add the correct C++20 standard, it fails on:

--->  Building archivemount
Executing:  cd "/opt/local/var/macports/build/_opt_SLports_fuse_archivemount/archivemount/work/archivemount-ng-1" && /usr/bin/make -j6 -w all CC="/opt/local/var/macports/build/_opt_SLports_fuse_archivemount/archivemount/work/compwrap/cc/opt/local/bin/clang-mp-16" CXX="/opt/local/var/macports/build/_opt_SLports_fuse_archivemount/archivemount/work/compwrap/cxx/opt/local/bin/clang++-mp-16" OBJC="/opt/local/var/macports/build/_opt_SLports_fuse_archivemount/archivemount/work/compwrap/objc/opt/local/bin/clang-mp-16" OBJCXX="/opt/local/var/macports/build/_opt_SLports_fuse_archivemount/archivemount/work/compwrap/objcxx/opt/local/bin/clang++-mp-16" INSTALL="/usr/bin/install -c" 
fatal: not a git repository (or any of the parent directories): .git
make: Entering directory `/opt/local/var/macports/build/_opt_SLports_fuse_archivemount/archivemount/work/archivemount-ng-1'
/opt/local/var/macports/build/_opt_SLports_fuse_archivemount/archivemount/work/compwrap/cxx/opt/local/bin/clang++-mp-16 -Os -arch x86_64 -stdlib=libc++                  -D_FILE_OFFSET_BITS=64 -D_DARWIN_USE_64_BIT_INODE -I/opt/local/include/osxfuse/fuse -O3 -g -Wall -Wextra -fno-exceptions -fno-rtti -Wno-missing-field-initializers -std=c++2b   -I/opt/local/include -I/opt/local/include/osxfuse -I/opt/local/include/osxfuse/fuse -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DVERSION='""' -DNDEBUG -L/opt/local/lib -Wl,-headerpad_max_install_names -arch x86_64  archivemount.cpp  -L/opt/local/lib -larchive -L/opt/local/lib -losxfuse -o archivemount
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
usage: date [-jnu] [-d dst] [-r seconds] [-t west] [-v[+|-]val[ymwdHMS]] ... 
            [-f fmt date | [[[mm]dd]HH]MM[[cc]yy][.ss]] [+format]
fatal: not a git repository (or any of the parent directories): .git
awk '{ gsub(/ \^/, " \\(ha"); gsub(/ ~/, " \\(ti"); if($1 == ".Dd") $2 = ""; if($1 == ".Dt") print ".ds doc-volume-operating-system"; if($1 == ".Os") $2 = "archivemount-ng "; print}' < archivemount.1.in > archivemount.1
fatal: not a git repository (or any of the parent directories): .git
archivemount.cpp:697:41: error: use of undeclared identifier 'O_CLOEXEC'
                        fh = open(node->location, O_RDONLY | O_CLOEXEC);
                                                             ^
archivemount.cpp:749:44: error: use of undeclared identifier 'O_CLOEXEC'
                archiveFd = open(archiveFile, O_RDONLY | O_CLOEXEC);
                                                         ^
archivemount.cpp:752:43: error: use of undeclared identifier 'O_CLOEXEC'
        archiveFd = open(oldfilename, O_RDONLY | O_CLOEXEC);
                                                 ^
archivemount.cpp:780:61: error: use of undeclared identifier 'O_CLOEXEC'
        tempfile = open(archiveFile, O_WRONLY | O_CREAT | O_EXCL | O_CLOEXEC, 0644);
                                                                   ^
archivemount.cpp:875:43: error: use of undeclared identifier 'O_CLOEXEC'
        archiveFd = open(archiveFile, O_RDONLY | O_CLOEXEC);
                                                 ^
archivemount.cpp:1016:40: error: use of undeclared identifier 'O_CLOEXEC'
                fh = open(node->location, O_RDONLY | O_CLOEXEC);
                                                     ^
archivemount.cpp:1564:38: error: use of undeclared identifier 'O_CLOEXEC'
                if((fh = open(location, O_WRONLY | O_CLOEXEC)) == -1) {
                                                   ^
archivemount.cpp:1641:38: error: use of undeclared identifier 'O_CLOEXEC'
                if((fh = open(location, O_WRONLY | O_CLOEXEC)) == -1) {
                                                   ^
archivemount.cpp:2200:16: error: use of undeclared identifier 'getline'
        ssize_t ret = getline(lineptr, n, stream);
                      ^
archivemount.cpp:2255:43: error: use of undeclared identifier 'O_CLOEXEC'
        archiveFd = open(archiveFile, O_RDONLY | O_CLOEXEC);
                                                 ^
archivemount.cpp:2274:30: error: use of undeclared identifier 'O_CLOEXEC'
                oldwd = open(".", O_PATH | O_CLOEXEC);
                                           ^
11 errors generated.
make: *** [archivemount] Error 1

@barracuda156
Copy link
Contributor

barracuda156 commented Sep 27, 2024

@TheRealKeto So this is what you need to do to fix it:

PortGroup               legacysupport 1.1
. . .
compiler.cxx_standard    2020

And obviously delete unneeded platform restriction.

Then:

10:~ svacchanda$ port -v installed archivemount
The following ports are currently installed:
  archivemount @1_0 (active) requested_variants='' platform='darwin 10' archs='x86_64' date='2024-09-27T23:51:15+0800'

@barracuda156
Copy link
Contributor

@TheRealKeto Could you please fix this also?

archivemount.cpp:639:37: error: expected ')' before 'PRIu64'
  639 |         if(asprintf(location, "%s/%" PRIu64 "", tmpdir_for_nodes, tmpdir_for_nodes_children++) == -1)
      |                    ~                ^~~~~~~
      |                                     )
archivemount.cpp:44:1: note: 'PRIu64' is defined in header '<cinttypes>'; this is probably fixable by adding '#include <cinttypes>'
   43 | #include <termios.h>
  +++ |+#include <cinttypes>
   44 | #include <time.h>
make: *** [archivemount] Error 1

That file needs the following:

#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#include <cinttypes>

And then it builds for powerpc (at least in Rosetta):

macmini:macports-ports svacchanda$ port -v installed archivemount
The following ports are currently installed:
  archivemount @1_0 (active) requested_variants='' platform='darwin 10' archs='ppc' date='2024-09-28T01:16:47+0800'

@TheRealKeto
Copy link
Contributor Author

@barracuda156 I've pushed all the new changes and I couldn't have done it without your help. Thanks a bunch!

Hopefully, this gets merged after your osxfuse PR get merged, since that's now a requirement

@barracuda156
Copy link
Contributor

@TheRealKeto Thank you!

Hopefully, this gets merged after your osxfuse PR get merged, since that's now a requirement

That only matters for powerpc, but there are no buildbots for powerpc. So while I hope my fix for osxfuse is merged, it does not matter which PR gets merged first. For buildbots this one is self-sufficient.

@TheRealKeto TheRealKeto changed the title archivemount: Change upstream and upgrade archivemount: Update to 1, change upstream Sep 29, 2024
Copy link
Contributor

@ryandesign ryandesign left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This still appears in the log several times:

fatal: not a git repository (or any of the parent directories): .git

Is this ok? What information is it trying to get from git and what happens when it doesn't find it?

fuse/archivemount/Portfile Outdated Show resolved Hide resolved
@TheRealKeto
Copy link
Contributor Author

TheRealKeto commented Sep 30, 2024

Is this ok? What information is it trying to get from git and what happens when it doesn't find it?

@ryandesign Variables from the Makefile, VERSION and SOURCE_DATE_EPOCH, "store" data from git so that it can be used to preprocess the manpage as well as the version number when running archivemount --version

The fields simply don't have a value to them, but the build still succeeds without them being specified. VERSION in particular can simply be amended through the Portfile with build.args-append

@reneeotten reneeotten merged commit da557bc into macports:master Nov 6, 2024
3 checks passed
@TheRealKeto TheRealKeto deleted the update/archivemount/upstream branch November 6, 2024 02:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

5 participants