Bug 246768 - /usr/ports/devel/ccache reinstall does not build.
Summary: /usr/ports/devel/ccache reinstall does not build.
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Many People
Assignee: Bryan Drewery
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-27 08:03 UTC by Ulas SAYGIN
Modified: 2021-07-12 19:24 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (bdrewery)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ulas SAYGIN 2020-05-27 08:03:12 UTC
I have installed ccache for firstly without problem than i want to change options and reinstall it. but it gave error. i make deinstall and remove config and try other options. but no luck. 

I am using ovh vps with FreeBSD s1 12.1-STABLE FreeBSD 12.1-STABLE r361309 GENERIC  amd64 raw vm image.

etc/src.conf
WITHOUT_ATM=YES
WITHOUT_BLUETOOTH=YES
WITHOUT_DICT=YES
WITHOUT_EXAMPLES=YES
WITHOUT_GAMES=YES
WITHOUT_IPFILTER=YES
WITHOUT_HTML=YES
WITHOUT_LPR=YES§
WITHOUT_NDIS=YES
WITHOUT_MAN=YES
WITHOUT_MANPAGES=YES
WITHOUT_MAN_UTILS=YES
WITHOUT_PROFILE=YES
WITHOUT_WIRELESS=YES
WITHOUT_WIRELESS_SUPPORT=YES
WITHOUT_WPA_SUPPLICANT_EAPOL=YES
WITHOUT_sound=YES
WITHOUT_ntfs=YES
WITHOUT_linux=YES
WITH_CLANG= yes
WITH_CLANG_EXTRAS= yes # Build additional clang and llvm tools, such as bugpoint.
WITH_CLANG_IS_CC= yes  # Useful for some buildworld errors
WITH_CCACHE_BUILD=yes

/etc/make.conf
# allow compiler optimizations specific to our CPU model
CPUTYPE?=native
# optimization level O2 is the highest supported by FreeBSD and most ports.
CFLAGS=-O2 -pipe -fno-strict-aliasing
# COPTFLAGS only apply when building the kernel
COPTFLAGS=\$CFLAGS
# disable profiling, unless you like 1hr compile times
MK_PROFILE=no

#Default Versions

DEFAULT_VERSIONS+=ssl=libressl python=3.8 python2=2.7 python3=3.8 php=7.4 pgsql=12 mysql=8

# Headless server options
OPTIONS_SET+=ICONV
OPTIONS_UNSET+=CUPS DEBUG DOCS FONTCONFIG NLS X11 MAN EXAMPLES MAN3 MANPAGES
## Libre SSL Needs These
ftp_curl_UNSET=   TLS_SRP
# LibreSSL doesn't work with GSSAPI_BASE
security_p5-GSSAPI_SET     = GSSAPI_MIT
OPTIONS_UNSET             += GSSAPI_BASE
OPTIONS_SET               += GSSAPI_NONE


I tested for options and error shows below.
- CLANGLINK ,LLVMLINk,MEMCACHED,STATIC,TINDERBOX.

===>  Patching for ccache-3.5.dev.20180926_1
===>  Applying extra patch /usr/ports/devel/ccache/files/extra-patch-Makefile.in
Ignoring previously applied (or reversed) patch.
1 out of 1 hunks ignored--saving rejects to Makefile.in.rej
===>  FAILED Applying extra patch /usr/ports/devel/ccache/files/extra-patch-Makefile.in
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/devel/ccache
*** Error code 1

Stop.
make: stopped in /usr/ports/devel/ccache



- CLANGLINK ,LLVMLINk,MEMCACHED

error is 
root@s1:/usr/ports/devel/ccache # make install
===>  Patching for ccache-3.5.dev.20180926_1
===>  Applying extra patch /usr/ports/devel/ccache/files/extra-patch-Makefile.in
Ignoring previously applied (or reversed) patch.
1 out of 1 hunks ignored--saving rejects to Makefile.in.rej
===>  FAILED Applying extra patch /usr/ports/devel/ccache/files/extra-patch-Makefile.in
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/devel/ccache
*** Error code 1

Stop.
make: stopped in /usr/ports/devel/ccache


- CLANGLINK ,LLVMLINk,MEMCACHED,STATIC
/usr/ports/devel/ccache # make install
===>  Patching for ccache-3.5.dev.20180926_1
===>  Applying extra patch /usr/ports/devel/ccache/files/extra-patch-Makefile.in
Ignoring previously applied (or reversed) patch.
1 out of 1 hunks ignored--saving rejects to Makefile.in.rej
===>  FAILED Applying extra patch /usr/ports/devel/ccache/files/extra-patch-Makefile.in
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/devel/ccache
*** Error code 1

Stop.
make: stopped in /usr/ports/devel/ccache


- CLANGLINK ,LLVMLINk,STATIC

===>  Patching for ccache-3.7.1_1
===>  Applying extra patch /usr/ports/devel/ccache/files/extra-patch-Makefile.in
patch: **** can't cd to /usr/ports/devel/ccache/work/ccache-3.7.1: No such file or directory
===>  FAILED Applying extra patch /usr/ports/devel/ccache/files/extra-patch-Makefile.in
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/devel/ccache
*** Error code 1

Stop.
make: stopped in /usr/ports/devel/ccache


- CLANGLINK ,LLVMLINk

root@s1:/usr/ports/devel/ccache # make install clean
===>  Patching for ccache-3.7.1_1
===>  Applying extra patch /usr/ports/devel/ccache/files/extra-patch-Makefile.in
patch: **** can't cd to /usr/ports/devel/ccache/work/ccache-3.7.1: No such file or directory
===>  FAILED Applying extra patch /usr/ports/devel/ccache/files/extra-patch-Makefile.in
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/devel/ccache
*** Error code 1

Stop.
Comment 1 Ulas SAYGIN 2020-05-27 08:23:51 UTC
I removed make.conf and src.conf and executed portsnap fetch update
than i tried install again and it worked.

when i want to reinstall with options ,CLANGLINK ,LLVMLINk,MEMCACHED,STATIC,TINDERBOX. 

it gaves error below.


/usr/ports/devel/ccache # portsnap fetch update
Looking up portsnap.FreeBSD.org mirrors... 6 mirrors found.
Fetching snapshot tag from ec2-eu-west-1.portsnap.freebsd.org... done.
Fetching snapshot metadata... done.
Updating from Tue May 26 21:36:52 UTC 2020 to Wed May 27 07:46:09 UTC 2020.
Fetching 4 metadata patches... done.
Applying metadata patches... done.
Fetching 0 metadata files... done.
Fetching 15 patches.
(15/15) 100.00%  done.
done.
Applying patches...
done.
Fetching 1 new ports or files... done.
Removing old files and directories... done.
Extracting new files:
/usr/ports/comms/fldigi/
/usr/ports/databases/freetds-devel/
/usr/ports/devel/intel-graphics-compiler/
/usr/ports/games/lugaru/
/usr/ports/graphics/Makefile
/usr/ports/graphics/libglvnd/
/usr/ports/graphics/mesa-libs/
/usr/ports/math/py-cypari2/
/usr/ports/multimedia/ffmpeg/
/usr/ports/net-mgmt/p5-FusionInventory-Agent/
/usr/ports/net/frr7/
/usr/ports/textproc/groonga/
/usr/ports/www/py-dj22-django-cors-headers/
/usr/ports/www/py-django-cors-headers/
/usr/ports/x11-servers/xwayland-devel/
/usr/ports/x11/libexo/
Building new INDEX files... done.


/usr/ports/devel/ccache # make reinstall clean
===>  Deinstalling for ccache
===>   Deinstalling ccache-3.7.1_1
Updating database digests format: 100%
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 1 packages (of 0 packages in the universe):

Installed packages to be REMOVED:
        ccache: 3.7.1_1

Number of packages to be removed: 1
[1/1] Deinstalling ccache-3.7.1_1...
[1/1] Deleting files for ccache-3.7.1_1: 100%
===>  License GPLv3+ accepted by the user
===>   ccache-3.5.dev.20180926_1 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by ccache-3.5.dev.20180926_1 for building
===>  Extracting for ccache-3.5.dev.20180926_1
=> SHA256 Checksum OK for ccache-ccache-3.5.dev.20180926-f7712082106bef085515f86ae47e7dbbd2a48b57_GH0.tar.gz.
===>  Patching for ccache-3.5.dev.20180926_1
===>  Applying extra patch /usr/ports/devel/ccache/files/extra-patch-Makefile.in
Ignoring previously applied (or reversed) patch.
1 out of 1 hunks ignored--saving rejects to Makefile.in.rej
===>  FAILED Applying extra patch /usr/ports/devel/ccache/files/extra-patch-Makefile.in
*** Error code 1

Stop.
make[2]: stopped in /usr/ports/devel/ccache
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/devel/ccache
*** Error code 1

Stop.
make: stopped in /usr/ports/devel/ccache
Comment 2 Ulas SAYGIN 2020-05-28 03:57:59 UTC
removing dist files solves the problem.

/usr/devel/ccache/ make distclean