Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Feb 2023 16:22:51 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 269443] sysutils/jdupes: Update to 1.21.3
Message-ID:  <bug-269443-7788-znbNCWtgEV@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-269443-7788@https.bugs.freebsd.org/bugzilla/>
References:  <bug-269443-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D269443

--- Comment #10 from Fernando Apestegu=C3=ADa <fernape@FreeBSD.org> ---
(In reply to Thomas Hurst from comment #9)
I can reproduce it with your script. However, having a look at the compilat=
ion
output log from both poudriere and in host, the outputs are far from being
identical. For instance:

>From your script (ie, 13.1 amd64 host):

cc -Wall -Wwrite-strings -Wcast-align -Wstrict-aliasing -Wstrict-prototypes
-Wpointer-arith -Wundef -Wshadow -Wfloat-equal -Waggregate-return -Wcast-qu=
al
-Wswitch-default -Wswitch-enum -Wconversion -Wunreachable-code -Wformat=3D2
-std=3Dgnu99 -O2 -g -D_FILE_OFFSET_BITS=3D64 -fstrict-aliasing -pipe
-DSMA_MAX_FREE=3D11 -DNO_ATIME -DNDEBUG -Wl,-z,stack-size=3D16777216    -c =
-o
jdupes.o jdupes.c

>From poudriere jail for 13.1 amd64:

cc -O2 -pipe  -fstack-protector-strong -isystem /usr/local/include
-fno-strict-aliasing  -Wall -Wwrite-strings -Wcast-align -Wstrict-aliasing
-Wstrict-prototypes -Wpointer-arith -Wundef -Wshadow -Wfloat-equal
-Waggregate-return -Wcast-qual -Wswitch-default -Wswitch-enum -Wconversion
-Wunreachable-code -Wformat=3D2 -std=3Dgnu99 -D_FILE_OFFSET_BITS=3D64
-fstrict-aliasing -pipe -DSMA_MAX_FREE=3D11 -DNO_ATIME -Wextra
-Wstrict-overflow=3D5 -Winit-self -DNDEBUG -Wl,-z,stack-size=3D16777216  -i=
system
/usr/local/include  -c -o jdupes.o jdupes.c

That's why I asked before if you might have any specific options in make.co=
nf
or something.

So the output from poudriere has all the flags it has in the hosted compila=
tion
except for "-g".

In addition, the ports framework adds the following:

-Wextra
-Winit-self
-Wstrict-overflow=3D5
-fno-strict-aliasing
-fstack-protector-strong
-isystem

One question would be, why would you want to strip an executable that has b=
een
compiled with debug info (-g). At least in the porter's handbook we say "Wh=
en
WITH_DEBUG is defined, elf files must not be stripped." Do you have WITH_DE=
BUG
in make.conf?

As a workaround, I think we could add a build dependency on devel/binutils =
and
then overwrite ${STRIP_CMD}.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-269443-7788-znbNCWtgEV>