Redhat&CentOS 8.5系统使用网卡驱动源码制作RPM安装包

时间:2025-03-31 16:56:41

[root@localhost SPECS]# rpmbuild -ba

warning: Macro expanded in comment on line 16: %define debug_package %{nil}

Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.1k2IlG

+ umask 022

+ cd /root/rpmbuild/BUILD

+ cd /root/rpmbuild/BUILD

+ rm -rf txgbe-1.3.4

+ /usr/bin/gzip -dc /root/rpmbuild/SOURCES/txgbe-1.3.

+ /usr/bin/tar -xvvof -

drwxr-xr-x root/root         0 2023-04-19 11:15 txgbe-1.3.4/

-rw-r--r-- root/root      8436 2023-04-19 11:15 txgbe-1.3.4/release

-rw-r--r-- root/root     34543 2023-04-19 11:15 txgbe-1.3.4/README

-rw-r--r-- root/root      8039 2023-04-19 11:15 txgbe-1.3.4/txgbe.7

drwxr-xr-x root/root         0 2023-04-19 11:15 txgbe-1.3.4/src/

-rw-r--r-- root/root    327472 2023-04-19 11:15 txgbe-1.3.4/src/txgbe_main.c

-rw-r--r-- root/root     28611 2023-04-19 11:15 txgbe-1.3.4/src/kcompat_ethtool.c

-rw-r--r-- root/root      7279 2023-04-19 11:15 txgbe-1.3.4/src/txgbe_dcb.h

-rw-r--r-- root/root     32979 2023-04-19 11:15 txgbe-1.3.4/src/txgbe_phy.c

-rw-r--r-- root/root     23149 2023-04-19 11:15 txgbe-1.3.4/src/txgbe_dcb_nl.c

-rw-r--r-- root/root       809 2023-04-19 11:15 txgbe-1.3.4/src/txgbe_bp.h

-rw-r--r-- root/root      3053 2023-04-19 11:15 txgbe-1.3.4/src/txgbe_sriov.h

-rw-r--r-- root/root     29164 2023-04-19 11:15 txgbe-1.3.4/src/txgbe_ptp.c

-rw-r--r-- root/root     26430 2023-04-19 11:15 txgbe-1.3.4/src/txgbe_procfs.c

-rw-r--r-- root/root      6147 2023-04-19 11:15 txgbe-1.3.4/src/txgbe_sysfs.c

-rw-r--r-- root/root        18 2023-04-19 11:15 txgbe-1.3.4/src/

-rw-r--r-- root/root      7739 2023-04-19 11:15 txgbe-1.3.4/src/txgbe_mbx.h

-rw-r--r-- root/root     48496 2023-04-19 11:15 txgbe-1.3.4/src/txgbe_sriov.c

-rw-r--r-- root/root     55546 2023-04-19 11:15 txgbe-1.3.4/src/txgbe_mtd.h

-rw-r--r-- root/root     18453 2023-04-19 11:15 txgbe-1.3.4/src/txgbe_dcb.c

-rw-r--r-- root/root      4108 2023-04-19 11:15 txgbe-1.3.4/src/configure

-rw-r--r-- root/root     14549 2023-04-19 11:15 txgbe-1.3.4/src/

-rw-r--r-- root/root       115 2023-04-19 11:15 txgbe-1.3.4/src/txgbe_pcierr.h

-rw-r--r-- root/root     23962 2023-04-19 11:15 txgbe-1.3.4/src/txgbe_bp.c

-rw-r--r-- root/root     34857 2023-04-19 11:15 txgbe-1.3.4/src/txgbe_lib.c

-rw-r--r-- root/root     41053 2023-04-19 11:15 txgbe-1.3.4/src/

-rw-r--r-- root/root      8680 2023-04-19 11:15 txgbe-1.3.4/src/txgbe_osdep.h

-rw-r--r-- root/root      8138 2023-04-19 11:15 txgbe-1.3.4/src/txgbe_pcierr.c

-rw-r--r-- root/root       480 2023-04-19 11:15 txgbe-1.3.4/src/kcompat_gcc.h

-rw-r--r-- root/root    144756 2023-04-19 11:15 txgbe-1.3.4/src/txgbe_ethtool.c

-rw-r--r-- root/root     41621 2023-04-19 11:15 txgbe-1.3.4/src/txgbe_mtd.c

-rw-r--r-- root/root     26682 2023-04-19 11:15 txgbe-1.3.4/src/txgbe_fcoe.c

-rw-r--r-- root/root     39923 2023-04-19 11:15 txgbe-1.3.4/src/txgbe_param.c

-rw-r--r-- root/root      8415 2023-04-19 11:15 txgbe-1.3.4/src/txgbe_phy.h

-rw-r--r-- root/root     75838 2023-04-19 11:15 txgbe-1.3.4/src/

-rw-r--r-- root/root    136100 2023-04-19 11:15 txgbe-1.3.4/src/txgbe_type.h

-rw-r--r-- root/root      1657 2023-04-19 11:15 txgbe-1.3.4/src/kcompat_chn_os.h

-rw-r--r-- root/root     12467 2023-04-19 11:15 txgbe-1.3.4/src/txgbe_hw.h

-rw-r--r-- root/root    240833 2023-04-19 11:15 txgbe-1.3.4/src/

-rw-r--r-- root/root      2646 2023-04-19 11:15 txgbe-1.3.4/src/txgbe_fcoe.h

-rw-r--r-- root/root     21027 2023-04-19 11:15 txgbe-1.3.4/src/txgbe_debugfs.c

-rw-r--r-- root/root      6209 2023-04-19 11:15 txgbe-1.3.4/src/kcompat_sles_defs.h

-rw-r--r-- root/root     17691 2023-04-19 11:15 txgbe-1.3.4/src/txgbe_mbx.c

-rw-r--r-- root/root    219916 2023-04-19 11:15 txgbe-1.3.4/src/txgbe_hw.c

-rw-r--r-- root/root      8048 2023-04-19 11:15 txgbe-1.3.4/src/Makefile

-rw-r--r-- root/root      3112 2023-04-19 11:15 txgbe-1.3.4/

-rw-r--r-- root/root      2991 2023-04-19 11:15 txgbe-1.3.4/txgbe_kmp.spec

-rw-r--r-- root/root     18092 2023-04-19 11:15 txgbe-1.3.4/COPYING

drwxr-xr-x root/root         0 2023-04-19 11:15 txgbe-1.3.4/scripts/

-rw-r--r-- root/root      6099 2023-04-19 11:15 txgbe-1.3.4/scripts/set_irq_affinity

-rw-r--r-- root/root      1446 2023-04-19 11:15 txgbe-1.3.4/

-rw-r--r-- root/root      9692 2023-04-19 11:15 txgbe-1.3.4/

+ STATUS=0

+ '[' 0 -ne 0 ']'

+ cd txgbe-1.3.4

+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .

+ exit 0

Executing(%build): /bin/sh -e /var/tmp/

+ umask 022

+ cd /root/rpmbuild/BUILD

+ cd txgbe-1.3.4

+ make -C src clean

make: Entering directory '/root/rpmbuild/BUILD/txgbe-1.3.4/src'

*** The target kernel has CONFIG_MODULE_SIG_ALL enabled, but

*** the signing key cannot be found. Module signing has been

*** disabled for this build.

make[1]: Entering directory '/usr/src/kernels/4.18.0-348.el8.x86_64'

make[1]: Leaving directory '/usr/src/kernels/4.18.0-348.el8.x86_64'

make: Leaving directory '/root/rpmbuild/BUILD/txgbe-1.3.4/src'

+ make -C src

make: Entering directory '/root/rpmbuild/BUILD/txgbe-1.3.4/src'

*** The target kernel has CONFIG_MODULE_SIG_ALL enabled, but

*** the signing key cannot be found. Module signing has been

*** disabled for this build.

make[1]: Entering directory '/usr/src/kernels/4.18.0-348.el8.x86_64'

  CC [M]  /root/rpmbuild/BUILD/txgbe-1.3.4/src/txgbe_main.o

  CC [M]  /root/rpmbuild/BUILD/txgbe-1.3.4/src/txgbe_dcb.o

  CC [M]  /root/rpmbuild/BUILD/txgbe-1.3.4/src/txgbe_ethtool.o

  CC [M]  /root/rpmbuild/BUILD/txgbe-1.3.4/src/txgbe_lib.o

  CC [M]  /root/rpmbuild/BUILD/txgbe-1.3.4/src/txgbe_mbx.o

  CC [M]  /root/rpmbuild/BUILD/txgbe-1.3.4/src/txgbe_sriov.o

  CC [M]  /root/rpmbuild/BUILD/txgbe-1.3.4/src/txgbe_param.o

  CC [M]  /root/rpmbuild/BUILD/txgbe-1.3.4/src/txgbe_phy.o

  CC [M]  /root/rpmbuild/BUILD/txgbe-1.3.4/src/txgbe_procfs.o

  CC [M]  /root/rpmbuild/BUILD/txgbe-1.3.4/src/txgbe_hw.o

  CC [M]  /root/rpmbuild/BUILD/txgbe-1.3.4/src/txgbe_mtd.o

  CC [M]  /root/rpmbuild/BUILD/txgbe-1.3.4/src/txgbe_pcierr.o

  CC [M]  /root/rpmbuild/BUILD/txgbe-1.3.4/src/txgbe_bp.o

  CC [M]  /root/rpmbuild/BUILD/txgbe-1.3.4/src/txgbe_dcb_nl.o

  CC [M]  /root/rpmbuild/BUILD/txgbe-1.3.4/src/txgbe_debugfs.o

  CC [M]  /root/rpmbuild/BUILD/txgbe-1.3.4/src/txgbe_ptp.o

  CC [M]  /root/rpmbuild/BUILD/txgbe-1.3.4/src/txgbe_sysfs.o

  CC [M]  /root/rpmbuild/BUILD/txgbe-1.3.4/src/

  LD [M]  /root/rpmbuild/BUILD/txgbe-1.3.4/src/

  Building modules, stage 2.

  MODPOST 1 modules

  CC      /root/rpmbuild/BUILD/txgbe-1.3.4/src/

  LD [M]  /root/rpmbuild/BUILD/txgbe-1.3.4/src/

make[1]: Leaving directory '/usr/src/kernels/4.18.0-348.el8.x86_64'

make: Leaving directory '/root/rpmbuild/BUILD/txgbe-1.3.4/src'

+ exit 0

Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.phf8iI

+ umask 022

+ cd /root/rpmbuild/BUILD

+ '[' /root/rpmbuild/BUILDROOT/txgbe-1.3.4-1.x86_64 '!=' / ']'

+ rm -rf /root/rpmbuild/BUILDROOT/txgbe-1.3.4-1.x86_64

++ dirname /root/rpmbuild/BUILDROOT/txgbe-1.3.4-1.x86_64

+ mkdir -p /root/rpmbuild/BUILDROOT

+ mkdir /root/rpmbuild/BUILDROOT/txgbe-1.3.4-1.x86_64

+ cd txgbe-1.3.4

+ make -C src INSTALL_MOD_PATH=/root/rpmbuild/BUILDROOT/txgbe-1.3.4-1.x86_64 MANDIR=/usr/share/man install

make: Entering directory '/root/rpmbuild/BUILD/txgbe-1.3.4/src'

*** The target kernel has CONFIG_MODULE_SIG_ALL enabled, but

*** the signing key cannot be found. Module signing has been

*** disabled for this build.

make[1]: Entering directory '/usr/src/kernels/4.18.0-348.el8.x86_64'

  Building modules, stage 2.

  MODPOST 1 modules

make[1]: Leaving directory '/usr/src/kernels/4.18.0-348.el8.x86_64'

Installing modules...

*** The target kernel has CONFIG_MODULE_SIG_ALL enabled, but

*** the signing key cannot be found. Module signing has been

*** disabled for this build.

make[1]: Entering directory '/usr/src/kernels/4.18.0-348.el8.x86_64'

  INSTALL /root/rpmbuild/BUILD/txgbe-1.3.4/src/

  DEPMOD  4.18.0-348.el8.x86_64

depmod: WARNING: could not open /root/rpmbuild/BUILDROOT/txgbe-1.3.4-1.x86_64/lib/modules/4.18.0-348.el8.x86_64/: No such file or directory

depmod: WARNING: could not open /root/rpmbuild/BUILDROOT/txgbe-1.3.4-1.x86_64/lib/modules/4.18.0-348.el8.x86_64/: No such file or directory

make[1]: Leaving directory '/usr/src/kernels/4.18.0-348.el8.x86_64'

Running depmod manually...

/sbin/depmod -e -F /lib/modules/4.18.0-348.el8.x86_64/source/ -b /root/rpmbuild/BUILDROOT/txgbe-1.3.4-1.x86_64 -a 4.18.0-348.el8.x86_64

depmod: WARNING: could not open /root/rpmbuild/BUILDROOT/txgbe-1.3.4-1.x86_64/lib/modules/4.18.0-348.el8.x86_64/: No such file or directory

depmod: WARNING: could not open /root/rpmbuild/BUILDROOT/txgbe-1.3.4-1.x86_64/lib/modules/4.18.0-348.el8.x86_64/: No such file or directory

Copying manpages...

Updating initramfs...

make: Leaving directory '/root/rpmbuild/BUILD/txgbe-1.3.4/src'

+ find /root/rpmbuild/BUILDROOT/txgbe-1.3.4-1.x86_64/lib/modules/4.18.0-348.el8.x86_64 -name 'modules.*' -exec rm -f '{}' ';'

+ cd /root/rpmbuild/BUILDROOT/txgbe-1.3.4-1.x86_64

+ find lib -name 'txgbe.*o' -exec mv '{}' '{}.new' ';' -fprintf /root/rpmbuild/BUILD/txgbe-1.3.4/ '/%\n'

+ /usr/lib/rpm/check-buildroot

+ /usr/lib/rpm/redhat/brp-ldconfig

/sbin/ldconfig: Warning: ignoring configuration file that cannot be opened: /etc/: No such file or directory

+ /usr/lib/rpm/brp-compress

+ /usr/lib/rpm/brp-strip /usr/bin/strip

+ /usr/lib/rpm/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump

+ /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip

+ /usr/lib/rpm/brp-python-bytecompile '' 1

+ /usr/lib/rpm/brp-python-hardlink

+ PYTHON3=/usr/libexec/platform-python

+ /usr/lib/rpm/redhat/brp-mangle-shebangs

Processing files: txgbe-1.3.4-1.x86_64

Executing(%doc): /bin/sh -e /var/tmp/

+ umask 022

+ cd /root/rpmbuild/BUILD

+ cd txgbe-1.3.4

+ DOCDIR=/root/rpmbuild/BUILDROOT/txgbe-1.3.4-1.x86_64/usr/share/doc/txgbe

+ export LC_ALL=C

+ LC_ALL=C

+ export DOCDIR

+ /usr/bin/mkdir -p /root/rpmbuild/BUILDROOT/txgbe-1.3.4-1.x86_64/usr/share/doc/txgbe

+ cp -pr COPYING /root/rpmbuild/BUILDROOT/txgbe-1.3.4-1.x86_64/usr/share/doc/txgbe

+ cp -pr README /root/rpmbuild/BUILDROOT/txgbe-1.3.4-1.x86_64/usr/share/doc/txgbe

+ cp -pr /root/rpmbuild/BUILDROOT/txgbe-1.3.4-1.x86_64/usr/share/doc/txgbe

+ cp -pr /root/rpmbuild/BUILDROOT/txgbe-1.3.4-1.x86_64/usr/share/doc/txgbe

+ exit 0

warning: Ignoring invalid regex ^%{_scl_prefix}/.*|%{_root_sysconfdir}/rpm/-toolset-9-config$

warning: Ignoring invalid regex ^%{_root_sysconfdir}/rpm/-toolset-9-config$

Provides: txgbe txgbe = 1.3.4-1 txgbe(x86-64) = 1.3.4-1

Requires(interp): /bin/sh /bin/sh /bin/sh

Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1

Requires(post): /bin/sh

Requires(preun): /bin/sh

Requires(postun): /bin/sh

Checking for unpackaged file(s): /usr/lib/rpm/check-files /root/rpmbuild/BUILDROOT/txgbe-1.3.4-1.x86_64

Wrote: /root/rpmbuild/SRPMS/txgbe-1.3.

Wrote: /root/rpmbuild/RPMS/x86_64/txgbe-1.3.4-1.x86_64.rpm

Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.QJlv9J

+ umask 022

+ cd /root/rpmbuild/BUILD

+ cd txgbe-1.3.4

+ rm -rf /root/rpmbuild/BUILDROOT/txgbe-1.3.4-1.x86_64

+ exit 0