Giter VIP home page Giter VIP logo

freebsd-update-build's Introduction

FreeBSD Source:

This is the top level of the FreeBSD source directory.

FreeBSD is an operating system used to power modern servers, desktops, and embedded platforms. A large community has continually developed it for more than thirty years. Its advanced networking, security, and storage features have made FreeBSD the platform of choice for many of the busiest web sites and most pervasive embedded networking and storage devices.

For copyright information, please see the file COPYRIGHT in this directory. Additional copyright information also exists for some sources in this tree - please see the specific source directories for more information.

The Makefile in this directory supports a number of targets for building components (or all) of the FreeBSD source tree. See build(7), config(8), FreeBSD handbook on building userland, and Handbook for kernels for more information, including setting make(1) variables.

For information on the CPU architectures and platforms supported by FreeBSD, see the FreeBSD website's Platforms page.

For official FreeBSD bootable images, see the release page.

Source Roadmap:

Directory Description
bin System/user commands.
cddl Various commands and libraries under the Common Development and Distribution License.
contrib Packages contributed by 3rd parties.
crypto Cryptography stuff (see crypto/README).
etc Template files for /etc.
gnu Commands and libraries under the GNU General Public License (GPL) or Lesser General Public License (LGPL). Please see gnu/COPYING and gnu/COPYING.LIB for more information.
include System include files.
kerberos5 Kerberos5 (Heimdal) package.
lib System libraries.
libexec System daemons.
release Release building Makefile & associated tools.
rescue Build system for statically linked /rescue utilities.
sbin System commands.
secure Cryptographic libraries and commands.
share Shared resources.
stand Boot loader sources.
sys Kernel sources (see sys/README.md).
targets Support for experimental DIRDEPS_BUILD
tests Regression tests which can be run by Kyua. See tests/README for additional information.
tools Utilities for regression testing and miscellaneous tasks.
usr.bin User commands.
usr.sbin System administration commands.

For information on synchronizing your source tree with one or more of the FreeBSD Project's development branches, please see FreeBSD Handbook.

freebsd-update-build's People

Contributors

asomers avatar cperciva avatar delphij avatar emaste avatar glebius avatar tetlowgm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

freebsd-update-build's Issues

Broken for 13.2-RELEASE?

Hi,

I have tried to use it on 13.2-RELEASE but got these errors below.

/usr/local/freebsd-update-server # sh scripts/init.sh amd64 13.2-RELEASE
(...)
world|lib32|/usr/libdata
world|lib32|/usr/libdata/pkgconfig
world|lib32|/usr/libdata/pkgconfig/libcrypto.pc
world|lib32|/usr/libdata/pkgconfig/liblzma.pc
world|lib32|/usr/libdata/pkgconfig/libmagic.pc
world|lib32|/usr/libdata/pkgconfig/libssl.pc
world|lib32|/usr/libdata/pkgconfig/libusb-0.1.pc
world|lib32|/usr/libdata/pkgconfig/libusb-1.0.pc
world|lib32|/usr/libdata/pkgconfig/libusb-2.0.pc
world|lib32|/usr/libdata/pkgconfig/openssl.pc
world|lib32|/usr/libdata/pkgconfig/zlib.pc
Files which differ by more than contents:
Files which differ between release and build:

Fri Sep 15 17:02:59 CEST 2023 Extracting world+src for FreeBSD/amd64
13.2-RELEASE
ls: /usr/local/freebsd-update-server/patches/13.2-RELEASE: No such file or
directory
sed:
/usr/local/freebsd-update-server/work/13.2-RELEASE/amd64/world1/usr/src/sys/conf/newvers.sh:
No such file or directory
sed:
/usr/local/freebsd-update-server/work/13.2-RELEASE/amd64/world1/usr/src/sys/conf/newvers.sh:
No such file or directory
Sat Oct 19 15:03:11 UTC 2024 Building world for FreeBSD/amd64 13.2-RELEASE
jail: /usr/bin/env -i
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin
RELP=13.2-RELEASE JFLAG=-j9 BRANCH_OVERRIDE=FUTUREBUILD XZ_THREADS=16
TARGET=amd64 TARGET_ARCH=amd64 /bin/sh -e: failed
Sat Oct 19 17:03:11 CEST 2024 Moving components into staging area for
FreeBSD/amd64 13.2-RELEASE
cat: /R/ftp/base.txz: No such file or directory
cat: /R/ftp/catpages.txz: No such file or directory
cat: /R/ftp/dict.txz: No such file or directory
cat: /R/ftp/doc.txz: No such file or directory
cat: /R/ftp/games.txz: No such file or directory
cat: /R/ftp/info.txz: No such file or directory
cat: /R/ftp/manpages.txz: No such file or directory
cat: /R/ftp/proflibs.txz: No such file or directory
cat: /R/ftp/lib32.txz: No such file or directory
cat: /R/ftp/generic.txz: No such file or directory
cat: /R/ftp/base.txz: No such file or directory
cat: /R/ftp/bin.txz: No such file or directory
cat: /R/ftp/contrib.txz: No such file or directory
cat: /R/ftp/crypto.txz: No such file or directory
cat: /R/ftp/etc.txz: No such file or directory
cat: /R/ftp/games.txz: No such file or directory
cat: /R/ftp/gnu.txz: No such file or directory
cat: /R/ftp/include.txz: No such file or directory
cat: /R/ftp/krb5.txz: No such file or directory
cat: /R/ftp/lib.txz: No such file or directory
cat: /R/ftp/libexec.txz: No such file or directory
cat: /R/ftp/release.txz: No such file or directory
cat: /R/ftp/rescue.txz: No such file or directory
cat: /R/ftp/sbin.txz: No such file or directory
cat: /R/ftp/secure.txz: No such file or directory
cat: /R/ftp/share.txz: No such file or directory
cat: /R/ftp/sys.txz: No such file or directory
cat: /R/ftp/tools.txz: No such file or directory
cat: /R/ftp/ubin.txz: No such file or directory
cat: /R/ftp/usbin.txz: No such file or directory
cat: /R/ftp/cddl.txz: No such file or directory
Fri Sep 15 17:03:11 CEST 2023 Indexing world1 for FreeBSD/amd64
13.2-RELEASE
Fri Sep 15 17:03:11 CEST 2023 Locating build stamps for FreeBSD/amd64
13.2-RELEASE
Fri Sep 15 17:03:48 CEST 2023 Cleaning staging area for FreeBSD/amd64
13.2-RELEASE
Fri Sep 15 17:03:48 CEST 2023 Preparing to copy files into staging area for
FreeBSD/amd64 13.2-RELEASE
Fri Sep 15 17:03:51 CEST 2023 Copying data files into staging area for
FreeBSD/amd64 13.2-RELEASE
Fri Sep 15 17:20:29 CEST 2023 Copying metadata files into staging area for
FreeBSD/amd64 13.2-RELEASE
Fri Sep 15 17:20:29 CEST 2023 Constructing metadata index and tag for
FreeBSD/amd64 13.2-RELEASE

Files found which include build stamps:

Values of build stamps, excluding library archive headers:

FreeBSD/amd64 13.2-RELEASE initialization build complete. Please
review the list of build stamps printed above to confirm that
they look sensible, then run
# sh -e approve.sh amd64 13.2-RELEASE
to sign the release.



/usr/local/freebsd-update-server # echo $? 
0

Any hints?

Regards,
vermaden

Wrong nohash files comparation

There is a typo in findstamps() function of scripts/build.subr (context):

        cut -f 1-8,10 -d '|' < ${WORKDIR}/$1-index              \
            > ${WORKDIR}/$1-index-nohash
        cut -f 1-8,10 -d '|' < ${WORKDIR}/$2-index              \
            > ${WORKDIR}/$2-index-nohash
        if ! cmp -s ${WORKDIR}/$1-index-nohash                  \
            ${WORKDIR}/$1-index-nohash; then
                echo -n "Current and future builds differ "
                echo "by more than just hashes!"
                exit 1

cmp should compare two different indexes, here is proposed patch:

        cut -f 1-8,10 -d '|' < ${WORKDIR}/$2-index              \
            > ${WORKDIR}/$2-index-nohash
        if ! cmp -s ${WORKDIR}/$1-index-nohash                  \
-           ${WORKDIR}/$1-index-nohash; then
+           ${WORKDIR}/$2-index-nohash; then
                echo -n "Current and future builds differ "
                echo "by more than just hashes!"
                exit 1

diff.sh deletes /dev/null when using diffs generated by git

When a git revision deletes a file, git diff --no-prefix will generate a fragment like this:

diff --git contrib/tzdata/pacificnew contrib/tzdata/pacificnew
deleted file mode 100644
index 8403219f6236..000000000000
--- contrib/tzdata/pacificnew
+++ /dev/null

The patch command will correctly apply such a patch. However, the logic in applypatches that tries to delete patch's resulting backup files will attempt to delete both /dev/null.orig and /dev/null. Deleting the latter has obviously bad consequences.

Does not build updates to freebsd-version for each release

I'm using freebsd-update-build in my workplace. A persistent problem is that the freebsd-update binary never gets updated so freebsd-update -u never shows the right -pX level. This problem only exists when building a release based on stable/13 at 5dc6fedeb40a2a5a99ef35ed390ba2dbdc28c0bf . I do not experience this problem when building releases based on 12.2-RELEASE or 13.0-RELEASE. Can anybody give me tips on how to track this down? I still have trouble understanding the whole release process.
Also, I suggest that somebody should test this on the 13.1 branch before release.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.